From 77b6da78d0163d2d24a9a26c0c0b3371de2d65a4 Mon Sep 17 00:00:00 2001 From: Orne Brocaar Date: Mon, 1 Apr 2024 10:05:40 +0100 Subject: [PATCH] api: Remove generated API files from repo. All these files can be generated using the `make api` command and there is no real need to commit these into the repo. Only the api/go files need to be comitted of how the Go import system works. --- .gitignore | 14 - Makefile | 3 + api/csharp/.gitignore | 1 + api/csharp/Chirpstack/api/Application.cs | 18096 ---------------- api/csharp/Chirpstack/api/ApplicationGrpc.cs | 3535 --- api/csharp/Chirpstack/api/Device.cs | 10159 --------- api/csharp/Chirpstack/api/DeviceGrpc.cs | 1620 -- api/csharp/Chirpstack/api/DeviceProfile.cs | 5652 ----- .../Chirpstack/api/DeviceProfileGrpc.cs | 559 - .../Chirpstack/api/DeviceProfileTemplate.cs | 3609 --- .../api/DeviceProfileTemplateGrpc.cs | 484 - api/csharp/Chirpstack/api/Gateway.cs | 4227 ---- api/csharp/Chirpstack/api/GatewayGrpc.cs | 632 - api/csharp/Chirpstack/api/Internal.cs | 9088 -------- api/csharp/Chirpstack/api/InternalGrpc.cs | 1295 -- api/csharp/Chirpstack/api/MulticastGroup.cs | 5315 ----- .../Chirpstack/api/MulticastGroupGrpc.cs | 994 - api/csharp/Chirpstack/api/Relay.cs | 2040 -- api/csharp/Chirpstack/api/RelayGrpc.cs | 412 - api/csharp/Chirpstack/api/Tenant.cs | 5531 ----- api/csharp/Chirpstack/api/TenantGrpc.cs | 855 - api/csharp/Chirpstack/api/User.cs | 3198 --- api/csharp/Chirpstack/api/UserGrpc.cs | 558 - api/csharp/Chirpstack/common/Common.cs | 1629 -- .../Chirpstack/google/api/Annotations.cs | 52 - api/csharp/Chirpstack/google/api/Http.cs | 1415 -- api/csharp/Chirpstack/gw/Gw.cs | 12461 ----------- .../Chirpstack/integration/Integration.cs | 5274 ----- api/csharp/Chirpstack/stream/ApiRequest.cs | 311 - .../Chirpstack/stream/BackendInterfaces.cs | 573 - api/csharp/Chirpstack/stream/Frame.cs | 1149 - api/csharp/Chirpstack/stream/Meta.cs | 969 - api/grpc-web/.gitignore | 4 + api/grpc-web/api/application_grpc_web_pb.d.ts | 584 - api/grpc-web/api/application_grpc_web_pb.js | 2951 --- api/grpc-web/api/application_pb.d.ts | 1760 -- api/grpc-web/api/application_pb.js | 14595 ------------- api/grpc-web/api/device_grpc_web_pb.d.ts | 260 - api/grpc-web/api/device_grpc_web_pb.js | 1308 -- api/grpc-web/api/device_pb.d.ts | 1003 - api/grpc-web/api/device_pb.js | 8346 ------- .../api/device_profile_grpc_web_pb.d.ts | 92 - .../api/device_profile_grpc_web_pb.js | 452 - api/grpc-web/api/device_profile_pb.d.ts | 570 - api/grpc-web/api/device_profile_pb.js | 4341 ---- .../device_profile_template_grpc_web_pb.d.ts | 80 - .../device_profile_template_grpc_web_pb.js | 393 - .../api/device_profile_template_pb.d.ts | 359 - .../api/device_profile_template_pb.js | 2866 --- api/grpc-web/api/gateway_grpc_web_pb.d.ts | 104 - api/grpc-web/api/gateway_grpc_web_pb.js | 513 - api/grpc-web/api/gateway_pb.d.ts | 435 - api/grpc-web/api/gateway_pb.js | 3569 --- api/grpc-web/api/internal_grpc_web_pb.d.ts | 218 - api/grpc-web/api/internal_grpc_web_pb.js | 1108 - api/grpc-web/api/internal_pb.d.ts | 884 - api/grpc-web/api/internal_pb.js | 7294 ------- .../api/multicast_group_grpc_web_pb.d.ts | 164 - .../api/multicast_group_grpc_web_pb.js | 818 - api/grpc-web/api/multicast_group_pb.d.ts | 522 - api/grpc-web/api/multicast_group_pb.js | 4263 ---- api/grpc-web/api/relay_grpc_web_pb.d.ts | 68 - api/grpc-web/api/relay_grpc_web_pb.js | 328 - api/grpc-web/api/relay_pb.d.ts | 201 - api/grpc-web/api/relay_pb.js | 1648 -- api/grpc-web/api/tenant_grpc_web_pb.d.ts | 140 - api/grpc-web/api/tenant_grpc_web_pb.js | 694 - api/grpc-web/api/tenant_pb.d.ts | 545 - api/grpc-web/api/tenant_pb.js | 4496 ---- api/grpc-web/api/user_grpc_web_pb.d.ts | 92 - api/grpc-web/api/user_grpc_web_pb.js | 450 - api/grpc-web/api/user_pb.d.ts | 317 - api/grpc-web/api/user_pb.js | 2622 --- api/grpc-web/common/common_pb.d.ts | 216 - api/grpc-web/common/common_pb.js | 1317 -- api/grpc-web/google/api/annotations_pb.d.ts | 6 - api/grpc-web/google/api/annotations_pb.js | 45 - api/grpc-web/google/api/auth_pb.d.ts | 183 - api/grpc-web/google/api/auth_pb.js | 1533 -- api/grpc-web/google/api/backend_pb.d.ts | 92 - api/grpc-web/google/api/backend_pb.js | 695 - api/grpc-web/google/api/billing_pb.d.ts | 49 - api/grpc-web/google/api/billing_pb.js | 405 - api/grpc-web/google/api/client_pb.d.ts | 435 - api/grpc-web/google/api/client_pb.js | 3621 ---- api/grpc-web/google/api/config_change_pb.d.ts | 64 - api/grpc-web/google/api/config_change_pb.js | 480 - api/grpc-web/google/api/consumer_pb.d.ts | 58 - api/grpc-web/google/api/consumer_pb.js | 421 - api/grpc-web/google/api/context_pb.d.ts | 66 - api/grpc-web/google/api/context_pb.js | 552 - api/grpc-web/google/api/control_pb.d.ts | 22 - api/grpc-web/google/api/control_pb.js | 167 - api/grpc-web/google/api/distribution_pb.d.ts | 227 - api/grpc-web/google/api/distribution_pb.js | 1792 -- api/grpc-web/google/api/documentation_pb.d.ts | 100 - api/grpc-web/google/api/documentation_pb.js | 824 - api/grpc-web/google/api/endpoint_pb.d.ts | 36 - api/grpc-web/google/api/endpoint_pb.js | 283 - api/grpc-web/google/api/error_reason_pb.d.ts | 36 - api/grpc-web/google/api/error_reason_pb.js | 52 - .../google/api/field_behavior_pb.d.ts | 15 - api/grpc-web/google/api/field_behavior_pb.js | 58 - api/grpc-web/google/api/http_pb.d.ts | 120 - api/grpc-web/google/api/http_pb.js | 1003 - api/grpc-web/google/api/httpbody_pb.d.ts | 35 - api/grpc-web/google/api/httpbody_pb.js | 283 - api/grpc-web/google/api/label_pb.d.ts | 36 - api/grpc-web/google/api/label_pb.js | 237 - api/grpc-web/google/api/launch_stage_pb.d.ts | 14 - api/grpc-web/google/api/launch_stage_pb.js | 30 - api/grpc-web/google/api/log_pb.d.ts | 37 - api/grpc-web/google/api/log_pb.js | 289 - api/grpc-web/google/api/logging_pb.d.ts | 55 - api/grpc-web/google/api/logging_pb.js | 458 - api/grpc-web/google/api/metric_pb.d.ts | 141 - api/grpc-web/google/api/metric_pb.js | 1007 - .../google/api/monitored_resource_pb.d.ts | 93 - .../google/api/monitored_resource_pb.js | 744 - api/grpc-web/google/api/monitoring_pb.d.ts | 55 - api/grpc-web/google/api/monitoring_pb.js | 458 - api/grpc-web/google/api/quota_pb.d.ts | 106 - api/grpc-web/google/api/quota_pb.js | 860 - api/grpc-web/google/api/resource_pb.d.ts | 84 - api/grpc-web/google/api/resource_pb.js | 673 - api/grpc-web/google/api/routing_pb.d.ts | 47 - api/grpc-web/google/api/routing_pb.js | 407 - api/grpc-web/google/api/service_pb.d.ts | 187 - api/grpc-web/google/api/service_pb.js | 1442 -- api/grpc-web/google/api/source_info_pb.d.ts | 25 - api/grpc-web/google/api/source_info_pb.js | 199 - .../google/api/system_parameter_pb.d.ts | 74 - .../google/api/system_parameter_pb.js | 621 - api/grpc-web/google/api/usage_pb.d.ts | 60 - api/grpc-web/google/api/usage_pb.js | 488 - api/grpc-web/google/api/visibility_pb.d.ts | 47 - api/grpc-web/google/api/visibility_pb.js | 537 - api/grpc-web/gw/gw_pb.d.ts | 1127 - api/grpc-web/gw/gw_pb.js | 9077 -------- api/grpc-web/integration/integration_pb.d.ts | 489 - api/grpc-web/integration/integration_pb.js | 3836 ---- api/java/.gitignore | 2 + api/js/api/application_grpc_pb.d.ts | 255 - api/js/api/application_grpc_pb.js | 1273 -- api/js/api/application_pb.d.ts | 1923 -- api/js/api/application_pb.js | 14595 ------------- api/js/api/device_grpc_pb.d.ts | 120 - api/js/api/device_grpc_pb.js | 606 - api/js/api/device_pb.d.ts | 1074 - api/js/api/device_pb.js | 8346 ------- api/js/api/device_profile_grpc_pb.d.ts | 50 - api/js/api/device_profile_grpc_pb.js | 199 - api/js/api/device_profile_pb.d.ts | 610 - api/js/api/device_profile_pb.js | 4341 ---- .../api/device_profile_template_grpc_pb.d.ts | 45 - api/js/api/device_profile_template_grpc_pb.js | 165 - api/js/api/device_profile_template_pb.d.ts | 376 - api/js/api/device_profile_template_pb.js | 2866 --- api/js/api/gateway_grpc_pb.d.ts | 55 - api/js/api/gateway_grpc_pb.js | 232 - api/js/api/gateway_pb.d.ts | 462 - api/js/api/gateway_pb.js | 3569 --- api/js/api/internal_grpc_pb.d.ts | 102 - api/js/api/internal_grpc_pb.js | 528 - api/js/api/internal_pb.d.ts | 951 - api/js/api/internal_pb.js | 7294 ------- api/js/api/multicast_group_grpc_pb.d.ts | 80 - api/js/api/multicast_group_grpc_pb.js | 358 - api/js/api/multicast_group_pb.d.ts | 569 - api/js/api/multicast_group_pb.js | 4263 ---- api/js/api/relay_grpc_pb.d.ts | 40 - api/js/api/relay_grpc_pb.js | 140 - api/js/api/relay_pb.d.ts | 218 - api/js/api/relay_pb.js | 1648 -- api/js/api/tenant_grpc_pb.d.ts | 70 - api/js/api/tenant_grpc_pb.js | 312 - api/js/api/tenant_pb.d.ts | 583 - api/js/api/tenant_pb.js | 4496 ---- api/js/api/user_grpc_pb.d.ts | 50 - api/js/api/user_grpc_pb.js | 197 - api/js/api/user_pb.d.ts | 342 - api/js/api/user_pb.js | 2622 --- api/js/common/common_grpc_pb.d.ts | 1 - api/js/common/common_pb.d.ts | 254 - api/js/common/common_pb.js | 1317 -- api/js/google/api/annotations_grpc_pb.d.ts | 1 - api/js/google/api/annotations_pb.d.ts | 9 - api/js/google/api/annotations_pb.js | 45 - api/js/google/api/auth_grpc_pb.d.ts | 1 - api/js/google/api/auth_pb.d.ts | 201 - api/js/google/api/auth_pb.js | 1533 -- api/js/google/api/backend_grpc_pb.d.ts | 1 - api/js/google/api/backend_pb.d.ts | 101 - api/js/google/api/backend_pb.js | 695 - api/js/google/api/billing_grpc_pb.d.ts | 1 - api/js/google/api/billing_pb.d.ts | 53 - api/js/google/api/billing_pb.js | 405 - api/js/google/api/client_grpc_pb.d.ts | 1 - api/js/google/api/client_pb.d.ts | 470 - api/js/google/api/client_pb.js | 3621 ---- api/js/google/api/config_change_grpc_pb.d.ts | 1 - api/js/google/api/config_change_pb.d.ts | 72 - api/js/google/api/config_change_pb.js | 480 - api/js/google/api/consumer_grpc_pb.d.ts | 1 - api/js/google/api/consumer_pb.d.ts | 65 - api/js/google/api/consumer_pb.js | 421 - api/js/google/api/context_grpc_pb.d.ts | 1 - api/js/google/api/context_pb.d.ts | 71 - api/js/google/api/context_pb.js | 552 - api/js/google/api/control_grpc_pb.d.ts | 1 - api/js/google/api/control_pb.d.ts | 25 - api/js/google/api/control_pb.js | 167 - api/js/google/api/distribution_grpc_pb.d.ts | 1 - api/js/google/api/distribution_pb.d.ts | 235 - api/js/google/api/distribution_pb.js | 1792 -- api/js/google/api/documentation_grpc_pb.d.ts | 1 - api/js/google/api/documentation_pb.d.ts | 107 - api/js/google/api/documentation_pb.js | 824 - api/js/google/api/endpoint_grpc_pb.d.ts | 1 - api/js/google/api/endpoint_pb.d.ts | 39 - api/js/google/api/endpoint_pb.js | 283 - api/js/google/api/error_reason_grpc_pb.d.ts | 1 - api/js/google/api/error_reason_pb.d.ts | 40 - api/js/google/api/error_reason_pb.js | 52 - api/js/google/api/field_behavior_grpc_pb.d.ts | 1 - api/js/google/api/field_behavior_pb.d.ts | 21 - api/js/google/api/field_behavior_pb.js | 58 - api/js/google/api/http_grpc_pb.d.ts | 1 - api/js/google/api/http_pb.d.ts | 136 - api/js/google/api/http_pb.js | 1003 - api/js/google/api/httpbody_grpc_pb.d.ts | 1 - api/js/google/api/httpbody_pb.d.ts | 38 - api/js/google/api/httpbody_pb.js | 283 - api/js/google/api/label_grpc_pb.d.ts | 1 - api/js/google/api/label_pb.d.ts | 41 - api/js/google/api/label_pb.js | 237 - api/js/google/api/launch_stage_grpc_pb.d.ts | 1 - api/js/google/api/launch_stage_pb.d.ts | 18 - api/js/google/api/launch_stage_pb.js | 30 - api/js/google/api/log_grpc_pb.d.ts | 1 - api/js/google/api/log_pb.d.ts | 40 - api/js/google/api/log_pb.js | 289 - api/js/google/api/logging_grpc_pb.d.ts | 1 - api/js/google/api/logging_pb.d.ts | 59 - api/js/google/api/logging_pb.js | 458 - api/js/google/api/metric_grpc_pb.d.ts | 1 - api/js/google/api/metric_pb.d.ts | 150 - api/js/google/api/metric_pb.js | 1007 - .../api/monitored_resource_grpc_pb.d.ts | 1 - api/js/google/api/monitored_resource_pb.d.ts | 98 - api/js/google/api/monitored_resource_pb.js | 744 - api/js/google/api/monitoring_grpc_pb.d.ts | 1 - api/js/google/api/monitoring_pb.d.ts | 59 - api/js/google/api/monitoring_pb.js | 458 - api/js/google/api/quota_grpc_pb.d.ts | 1 - api/js/google/api/quota_pb.d.ts | 111 - api/js/google/api/quota_pb.js | 860 - api/js/google/api/resource_grpc_pb.d.ts | 1 - api/js/google/api/resource_pb.d.ts | 99 - api/js/google/api/resource_pb.js | 673 - api/js/google/api/routing_grpc_pb.d.ts | 1 - api/js/google/api/routing_pb.d.ts | 54 - api/js/google/api/routing_pb.js | 407 - api/js/google/api/service_grpc_pb.d.ts | 1 - api/js/google/api/service_pb.d.ts | 190 - api/js/google/api/service_pb.js | 1442 -- api/js/google/api/source_info_grpc_pb.d.ts | 1 - api/js/google/api/source_info_pb.d.ts | 28 - api/js/google/api/source_info_pb.js | 199 - .../google/api/system_parameter_grpc_pb.d.ts | 1 - api/js/google/api/system_parameter_pb.d.ts | 81 - api/js/google/api/system_parameter_pb.js | 621 - api/js/google/api/usage_grpc_pb.d.ts | 1 - api/js/google/api/usage_pb.d.ts | 65 - api/js/google/api/usage_pb.js | 488 - api/js/google/api/visibility_grpc_pb.d.ts | 1 - api/js/google/api/visibility_pb.d.ts | 64 - api/js/google/api/visibility_pb.js | 537 - api/js/gw/gw_grpc_pb.d.ts | 1 - api/js/gw/gw_pb.d.ts | 1452 -- api/js/gw/gw_pb.js | 10965 ---------- api/js/integration/integration_grpc_pb.d.ts | 1 - api/js/integration/integration_pb.d.ts | 581 - api/js/integration/integration_pb.js | 4393 ---- api/js/stream/api_request_grpc_pb.d.ts | 1 - api/js/stream/api_request_pb.d.ts | 35 - api/js/stream/api_request_pb.js | 236 - api/js/stream/backend_interfaces_grpc_pb.d.ts | 1 - api/js/stream/backend_interfaces_pb.d.ts | 60 - api/js/stream/backend_interfaces_pb.js | 430 - api/js/stream/frame_grpc_pb.d.ts | 1 - api/js/stream/frame_pb.d.ts | 130 - api/js/stream/frame_pb.js | 997 - api/js/stream/meta_grpc_pb.d.ts | 1 - api/js/stream/meta_pb.d.ts | 105 - api/js/stream/meta_pb.js | 785 - api/kotlin/.gitignore | 2 + api/md/.gitignore | 1 + api/md/api/api.md | 4569 ---- api/python/.gitignore | 7 + .../src/chirpstack_api/api/application_pb2.py | 292 - .../chirpstack_api/api/application_pb2.pyi | 668 - .../api/application_pb2_grpc.py | 1638 -- .../src/chirpstack_api/api/device_pb2.py | 162 - .../src/chirpstack_api/api/device_pb2.pyi | 391 - .../src/chirpstack_api/api/device_pb2_grpc.py | 725 - .../chirpstack_api/api/device_profile_pb2.py | 87 - .../chirpstack_api/api/device_profile_pb2.pyi | 304 - .../api/device_profile_pb2_grpc.py | 244 - .../api/device_profile_template_pb2.py | 68 - .../api/device_profile_template_pb2.pyi | 165 - .../api/device_profile_template_pb2_grpc.py | 207 - .../src/chirpstack_api/api/frame_log_pb2.py | 32 - .../src/chirpstack_api/api/frame_log_pb2.pyi | 55 - .../chirpstack_api/api/frame_log_pb2_grpc.py | 4 - .../src/chirpstack_api/api/gateway_pb2.py | 85 - .../src/chirpstack_api/api/gateway_pb2.pyi | 191 - .../chirpstack_api/api/gateway_pb2_grpc.py | 275 - .../src/chirpstack_api/api/internal_pb2.py | 107 - .../src/chirpstack_api/api/internal_pb2.pyi | 348 - .../chirpstack_api/api/internal_pb2_grpc.py | 615 - .../chirpstack_api/api/multicast_group_pb2.py | 99 - .../api/multicast_group_pb2.pyi | 207 - .../api/multicast_group_pb2_grpc.py | 445 - .../src/chirpstack_api/api/relay_pb2.py | 54 - .../src/chirpstack_api/api/relay_pb2.pyi | 79 - .../src/chirpstack_api/api/relay_pb2_grpc.py | 173 - .../src/chirpstack_api/api/tenant_pb2.py | 92 - .../src/chirpstack_api/api/tenant_pb2.pyi | 212 - .../src/chirpstack_api/api/tenant_pb2_grpc.py | 378 - api/python/src/chirpstack_api/api/user_pb2.py | 66 - .../src/chirpstack_api/api/user_pb2.pyi | 119 - .../src/chirpstack_api/api/user_pb2_grpc.py | 241 - .../src/chirpstack_api/common/common_pb2.py | 54 - .../src/chirpstack_api/common/common_pb2.pyi | 191 - .../chirpstack_api/common/common_pb2_grpc.py | 4 - api/python/src/chirpstack_api/gw/gw_pb2.py | 135 - api/python/src/chirpstack_api/gw/gw_pb2.pyi | 603 - .../src/chirpstack_api/gw/gw_pb2_grpc.py | 4 - .../integration/integration_pb2.py | 63 - .../integration/integration_pb2.pyi | 261 - .../integration/integration_pb2_grpc.py | 4 - .../chirpstack_api/stream/api_request_pb2.py | 34 - .../chirpstack_api/stream/api_request_pb2.pyi | 26 - .../stream/api_request_pb2_grpc.py | 4 - .../stream/backend_interfaces_pb2.py | 28 - .../stream/backend_interfaces_pb2.pyi | 28 - .../stream/backend_interfaces_pb2_grpc.py | 4 - .../src/chirpstack_api/stream/frame_pb2.py | 32 - .../src/chirpstack_api/stream/frame_pb2.pyi | 55 - .../chirpstack_api/stream/frame_pb2_grpc.py | 4 - .../src/chirpstack_api/stream/meta_pb2.py | 31 - .../src/chirpstack_api/stream/meta_pb2.pyi | 46 - .../chirpstack_api/stream/meta_pb2_grpc.py | 4 - api/rust/.gitignore | 1 + .../proto/chirpstack/api/application.proto | 1098 - api/rust/proto/chirpstack/api/device.proto | 581 - .../proto/chirpstack/api/device_profile.proto | 527 - .../api/device_profile_template.proto | 244 - api/rust/proto/chirpstack/api/gateway.proto | 257 - api/rust/proto/chirpstack/api/internal.proto | 424 - .../chirpstack/api/multicast_group.proto | 327 - api/rust/proto/chirpstack/api/relay.proto | 119 - api/rust/proto/chirpstack/api/tenant.proto | 326 - api/rust/proto/chirpstack/api/user.proto | 182 - api/rust/proto/chirpstack/common/common.proto | 224 - api/rust/proto/chirpstack/gw/gw.proto | 715 - .../chirpstack/integration/integration.proto | 350 - .../proto/chirpstack/internal/internal.proto | 410 - .../proto/chirpstack/stream/api_request.proto | 24 - .../stream/backend_interfaces.proto | 40 - api/rust/proto/chirpstack/stream/frame.proto | 74 - api/rust/proto/chirpstack/stream/meta.proto | 61 - .../proto/google/google/api/annotations.proto | 31 - api/rust/proto/google/google/api/http.proto | 379 - 375 files changed, 21 insertions(+), 345202 deletions(-) create mode 100644 api/csharp/.gitignore delete mode 100644 api/csharp/Chirpstack/api/Application.cs delete mode 100644 api/csharp/Chirpstack/api/ApplicationGrpc.cs delete mode 100644 api/csharp/Chirpstack/api/Device.cs delete mode 100644 api/csharp/Chirpstack/api/DeviceGrpc.cs delete mode 100644 api/csharp/Chirpstack/api/DeviceProfile.cs delete mode 100644 api/csharp/Chirpstack/api/DeviceProfileGrpc.cs delete mode 100644 api/csharp/Chirpstack/api/DeviceProfileTemplate.cs delete mode 100644 api/csharp/Chirpstack/api/DeviceProfileTemplateGrpc.cs delete mode 100644 api/csharp/Chirpstack/api/Gateway.cs delete mode 100644 api/csharp/Chirpstack/api/GatewayGrpc.cs delete mode 100644 api/csharp/Chirpstack/api/Internal.cs delete mode 100644 api/csharp/Chirpstack/api/InternalGrpc.cs delete mode 100644 api/csharp/Chirpstack/api/MulticastGroup.cs delete mode 100644 api/csharp/Chirpstack/api/MulticastGroupGrpc.cs delete mode 100644 api/csharp/Chirpstack/api/Relay.cs delete mode 100644 api/csharp/Chirpstack/api/RelayGrpc.cs delete mode 100644 api/csharp/Chirpstack/api/Tenant.cs delete mode 100644 api/csharp/Chirpstack/api/TenantGrpc.cs delete mode 100644 api/csharp/Chirpstack/api/User.cs delete mode 100644 api/csharp/Chirpstack/api/UserGrpc.cs delete mode 100644 api/csharp/Chirpstack/common/Common.cs delete mode 100644 api/csharp/Chirpstack/google/api/Annotations.cs delete mode 100644 api/csharp/Chirpstack/google/api/Http.cs delete mode 100644 api/csharp/Chirpstack/gw/Gw.cs delete mode 100644 api/csharp/Chirpstack/integration/Integration.cs delete mode 100644 api/csharp/Chirpstack/stream/ApiRequest.cs delete mode 100644 api/csharp/Chirpstack/stream/BackendInterfaces.cs delete mode 100644 api/csharp/Chirpstack/stream/Frame.cs delete mode 100644 api/csharp/Chirpstack/stream/Meta.cs create mode 100644 api/grpc-web/.gitignore delete mode 100644 api/grpc-web/api/application_grpc_web_pb.d.ts delete mode 100644 api/grpc-web/api/application_grpc_web_pb.js delete mode 100644 api/grpc-web/api/application_pb.d.ts delete mode 100644 api/grpc-web/api/application_pb.js delete mode 100644 api/grpc-web/api/device_grpc_web_pb.d.ts delete mode 100644 api/grpc-web/api/device_grpc_web_pb.js delete mode 100644 api/grpc-web/api/device_pb.d.ts delete mode 100644 api/grpc-web/api/device_pb.js delete mode 100644 api/grpc-web/api/device_profile_grpc_web_pb.d.ts delete mode 100644 api/grpc-web/api/device_profile_grpc_web_pb.js delete mode 100644 api/grpc-web/api/device_profile_pb.d.ts delete mode 100644 api/grpc-web/api/device_profile_pb.js delete mode 100644 api/grpc-web/api/device_profile_template_grpc_web_pb.d.ts delete mode 100644 api/grpc-web/api/device_profile_template_grpc_web_pb.js delete mode 100644 api/grpc-web/api/device_profile_template_pb.d.ts delete mode 100644 api/grpc-web/api/device_profile_template_pb.js delete mode 100644 api/grpc-web/api/gateway_grpc_web_pb.d.ts delete mode 100644 api/grpc-web/api/gateway_grpc_web_pb.js delete mode 100644 api/grpc-web/api/gateway_pb.d.ts delete mode 100644 api/grpc-web/api/gateway_pb.js delete mode 100644 api/grpc-web/api/internal_grpc_web_pb.d.ts delete mode 100644 api/grpc-web/api/internal_grpc_web_pb.js delete mode 100644 api/grpc-web/api/internal_pb.d.ts delete mode 100644 api/grpc-web/api/internal_pb.js delete mode 100644 api/grpc-web/api/multicast_group_grpc_web_pb.d.ts delete mode 100644 api/grpc-web/api/multicast_group_grpc_web_pb.js delete mode 100644 api/grpc-web/api/multicast_group_pb.d.ts delete mode 100644 api/grpc-web/api/multicast_group_pb.js delete mode 100644 api/grpc-web/api/relay_grpc_web_pb.d.ts delete mode 100644 api/grpc-web/api/relay_grpc_web_pb.js delete mode 100644 api/grpc-web/api/relay_pb.d.ts delete mode 100644 api/grpc-web/api/relay_pb.js delete mode 100644 api/grpc-web/api/tenant_grpc_web_pb.d.ts delete mode 100644 api/grpc-web/api/tenant_grpc_web_pb.js delete mode 100644 api/grpc-web/api/tenant_pb.d.ts delete mode 100644 api/grpc-web/api/tenant_pb.js delete mode 100644 api/grpc-web/api/user_grpc_web_pb.d.ts delete mode 100644 api/grpc-web/api/user_grpc_web_pb.js delete mode 100644 api/grpc-web/api/user_pb.d.ts delete mode 100644 api/grpc-web/api/user_pb.js delete mode 100644 api/grpc-web/common/common_pb.d.ts delete mode 100644 api/grpc-web/common/common_pb.js delete mode 100644 api/grpc-web/google/api/annotations_pb.d.ts delete mode 100644 api/grpc-web/google/api/annotations_pb.js delete mode 100644 api/grpc-web/google/api/auth_pb.d.ts delete mode 100644 api/grpc-web/google/api/auth_pb.js delete mode 100644 api/grpc-web/google/api/backend_pb.d.ts delete mode 100644 api/grpc-web/google/api/backend_pb.js delete mode 100644 api/grpc-web/google/api/billing_pb.d.ts delete mode 100644 api/grpc-web/google/api/billing_pb.js delete mode 100644 api/grpc-web/google/api/client_pb.d.ts delete mode 100644 api/grpc-web/google/api/client_pb.js delete mode 100644 api/grpc-web/google/api/config_change_pb.d.ts delete mode 100644 api/grpc-web/google/api/config_change_pb.js delete mode 100644 api/grpc-web/google/api/consumer_pb.d.ts delete mode 100644 api/grpc-web/google/api/consumer_pb.js delete mode 100644 api/grpc-web/google/api/context_pb.d.ts delete mode 100644 api/grpc-web/google/api/context_pb.js delete mode 100644 api/grpc-web/google/api/control_pb.d.ts delete mode 100644 api/grpc-web/google/api/control_pb.js delete mode 100644 api/grpc-web/google/api/distribution_pb.d.ts delete mode 100644 api/grpc-web/google/api/distribution_pb.js delete mode 100644 api/grpc-web/google/api/documentation_pb.d.ts delete mode 100644 api/grpc-web/google/api/documentation_pb.js delete mode 100644 api/grpc-web/google/api/endpoint_pb.d.ts delete mode 100644 api/grpc-web/google/api/endpoint_pb.js delete mode 100644 api/grpc-web/google/api/error_reason_pb.d.ts delete mode 100644 api/grpc-web/google/api/error_reason_pb.js delete mode 100644 api/grpc-web/google/api/field_behavior_pb.d.ts delete mode 100644 api/grpc-web/google/api/field_behavior_pb.js delete mode 100644 api/grpc-web/google/api/http_pb.d.ts delete mode 100644 api/grpc-web/google/api/http_pb.js delete mode 100644 api/grpc-web/google/api/httpbody_pb.d.ts delete mode 100644 api/grpc-web/google/api/httpbody_pb.js delete mode 100644 api/grpc-web/google/api/label_pb.d.ts delete mode 100644 api/grpc-web/google/api/label_pb.js delete mode 100644 api/grpc-web/google/api/launch_stage_pb.d.ts delete mode 100644 api/grpc-web/google/api/launch_stage_pb.js delete mode 100644 api/grpc-web/google/api/log_pb.d.ts delete mode 100644 api/grpc-web/google/api/log_pb.js delete mode 100644 api/grpc-web/google/api/logging_pb.d.ts delete mode 100644 api/grpc-web/google/api/logging_pb.js delete mode 100644 api/grpc-web/google/api/metric_pb.d.ts delete mode 100644 api/grpc-web/google/api/metric_pb.js delete mode 100644 api/grpc-web/google/api/monitored_resource_pb.d.ts delete mode 100644 api/grpc-web/google/api/monitored_resource_pb.js delete mode 100644 api/grpc-web/google/api/monitoring_pb.d.ts delete mode 100644 api/grpc-web/google/api/monitoring_pb.js delete mode 100644 api/grpc-web/google/api/quota_pb.d.ts delete mode 100644 api/grpc-web/google/api/quota_pb.js delete mode 100644 api/grpc-web/google/api/resource_pb.d.ts delete mode 100644 api/grpc-web/google/api/resource_pb.js delete mode 100644 api/grpc-web/google/api/routing_pb.d.ts delete mode 100644 api/grpc-web/google/api/routing_pb.js delete mode 100644 api/grpc-web/google/api/service_pb.d.ts delete mode 100644 api/grpc-web/google/api/service_pb.js delete mode 100644 api/grpc-web/google/api/source_info_pb.d.ts delete mode 100644 api/grpc-web/google/api/source_info_pb.js delete mode 100644 api/grpc-web/google/api/system_parameter_pb.d.ts delete mode 100644 api/grpc-web/google/api/system_parameter_pb.js delete mode 100644 api/grpc-web/google/api/usage_pb.d.ts delete mode 100644 api/grpc-web/google/api/usage_pb.js delete mode 100644 api/grpc-web/google/api/visibility_pb.d.ts delete mode 100644 api/grpc-web/google/api/visibility_pb.js delete mode 100644 api/grpc-web/gw/gw_pb.d.ts delete mode 100644 api/grpc-web/gw/gw_pb.js delete mode 100644 api/grpc-web/integration/integration_pb.d.ts delete mode 100644 api/grpc-web/integration/integration_pb.js create mode 100644 api/java/.gitignore delete mode 100644 api/js/api/application_grpc_pb.d.ts delete mode 100644 api/js/api/application_grpc_pb.js delete mode 100644 api/js/api/application_pb.d.ts delete mode 100644 api/js/api/application_pb.js delete mode 100644 api/js/api/device_grpc_pb.d.ts delete mode 100644 api/js/api/device_grpc_pb.js delete mode 100644 api/js/api/device_pb.d.ts delete mode 100644 api/js/api/device_pb.js delete mode 100644 api/js/api/device_profile_grpc_pb.d.ts delete mode 100644 api/js/api/device_profile_grpc_pb.js delete mode 100644 api/js/api/device_profile_pb.d.ts delete mode 100644 api/js/api/device_profile_pb.js delete mode 100644 api/js/api/device_profile_template_grpc_pb.d.ts delete mode 100644 api/js/api/device_profile_template_grpc_pb.js delete mode 100644 api/js/api/device_profile_template_pb.d.ts delete mode 100644 api/js/api/device_profile_template_pb.js delete mode 100644 api/js/api/gateway_grpc_pb.d.ts delete mode 100644 api/js/api/gateway_grpc_pb.js delete mode 100644 api/js/api/gateway_pb.d.ts delete mode 100644 api/js/api/gateway_pb.js delete mode 100644 api/js/api/internal_grpc_pb.d.ts delete mode 100644 api/js/api/internal_grpc_pb.js delete mode 100644 api/js/api/internal_pb.d.ts delete mode 100644 api/js/api/internal_pb.js delete mode 100644 api/js/api/multicast_group_grpc_pb.d.ts delete mode 100644 api/js/api/multicast_group_grpc_pb.js delete mode 100644 api/js/api/multicast_group_pb.d.ts delete mode 100644 api/js/api/multicast_group_pb.js delete mode 100644 api/js/api/relay_grpc_pb.d.ts delete mode 100644 api/js/api/relay_grpc_pb.js delete mode 100644 api/js/api/relay_pb.d.ts delete mode 100644 api/js/api/relay_pb.js delete mode 100644 api/js/api/tenant_grpc_pb.d.ts delete mode 100644 api/js/api/tenant_grpc_pb.js delete mode 100644 api/js/api/tenant_pb.d.ts delete mode 100644 api/js/api/tenant_pb.js delete mode 100644 api/js/api/user_grpc_pb.d.ts delete mode 100644 api/js/api/user_grpc_pb.js delete mode 100644 api/js/api/user_pb.d.ts delete mode 100644 api/js/api/user_pb.js delete mode 100644 api/js/common/common_grpc_pb.d.ts delete mode 100644 api/js/common/common_pb.d.ts delete mode 100644 api/js/common/common_pb.js delete mode 100644 api/js/google/api/annotations_grpc_pb.d.ts delete mode 100644 api/js/google/api/annotations_pb.d.ts delete mode 100644 api/js/google/api/annotations_pb.js delete mode 100644 api/js/google/api/auth_grpc_pb.d.ts delete mode 100644 api/js/google/api/auth_pb.d.ts delete mode 100644 api/js/google/api/auth_pb.js delete mode 100644 api/js/google/api/backend_grpc_pb.d.ts delete mode 100644 api/js/google/api/backend_pb.d.ts delete mode 100644 api/js/google/api/backend_pb.js delete mode 100644 api/js/google/api/billing_grpc_pb.d.ts delete mode 100644 api/js/google/api/billing_pb.d.ts delete mode 100644 api/js/google/api/billing_pb.js delete mode 100644 api/js/google/api/client_grpc_pb.d.ts delete mode 100644 api/js/google/api/client_pb.d.ts delete mode 100644 api/js/google/api/client_pb.js delete mode 100644 api/js/google/api/config_change_grpc_pb.d.ts delete mode 100644 api/js/google/api/config_change_pb.d.ts delete mode 100644 api/js/google/api/config_change_pb.js delete mode 100644 api/js/google/api/consumer_grpc_pb.d.ts delete mode 100644 api/js/google/api/consumer_pb.d.ts delete mode 100644 api/js/google/api/consumer_pb.js delete mode 100644 api/js/google/api/context_grpc_pb.d.ts delete mode 100644 api/js/google/api/context_pb.d.ts delete mode 100644 api/js/google/api/context_pb.js delete mode 100644 api/js/google/api/control_grpc_pb.d.ts delete mode 100644 api/js/google/api/control_pb.d.ts delete mode 100644 api/js/google/api/control_pb.js delete mode 100644 api/js/google/api/distribution_grpc_pb.d.ts delete mode 100644 api/js/google/api/distribution_pb.d.ts delete mode 100644 api/js/google/api/distribution_pb.js delete mode 100644 api/js/google/api/documentation_grpc_pb.d.ts delete mode 100644 api/js/google/api/documentation_pb.d.ts delete mode 100644 api/js/google/api/documentation_pb.js delete mode 100644 api/js/google/api/endpoint_grpc_pb.d.ts delete mode 100644 api/js/google/api/endpoint_pb.d.ts delete mode 100644 api/js/google/api/endpoint_pb.js delete mode 100644 api/js/google/api/error_reason_grpc_pb.d.ts delete mode 100644 api/js/google/api/error_reason_pb.d.ts delete mode 100644 api/js/google/api/error_reason_pb.js delete mode 100644 api/js/google/api/field_behavior_grpc_pb.d.ts delete mode 100644 api/js/google/api/field_behavior_pb.d.ts delete mode 100644 api/js/google/api/field_behavior_pb.js delete mode 100644 api/js/google/api/http_grpc_pb.d.ts delete mode 100644 api/js/google/api/http_pb.d.ts delete mode 100644 api/js/google/api/http_pb.js delete mode 100644 api/js/google/api/httpbody_grpc_pb.d.ts delete mode 100644 api/js/google/api/httpbody_pb.d.ts delete mode 100644 api/js/google/api/httpbody_pb.js delete mode 100644 api/js/google/api/label_grpc_pb.d.ts delete mode 100644 api/js/google/api/label_pb.d.ts delete mode 100644 api/js/google/api/label_pb.js delete mode 100644 api/js/google/api/launch_stage_grpc_pb.d.ts delete mode 100644 api/js/google/api/launch_stage_pb.d.ts delete mode 100644 api/js/google/api/launch_stage_pb.js delete mode 100644 api/js/google/api/log_grpc_pb.d.ts delete mode 100644 api/js/google/api/log_pb.d.ts delete mode 100644 api/js/google/api/log_pb.js delete mode 100644 api/js/google/api/logging_grpc_pb.d.ts delete mode 100644 api/js/google/api/logging_pb.d.ts delete mode 100644 api/js/google/api/logging_pb.js delete mode 100644 api/js/google/api/metric_grpc_pb.d.ts delete mode 100644 api/js/google/api/metric_pb.d.ts delete mode 100644 api/js/google/api/metric_pb.js delete mode 100644 api/js/google/api/monitored_resource_grpc_pb.d.ts delete mode 100644 api/js/google/api/monitored_resource_pb.d.ts delete mode 100644 api/js/google/api/monitored_resource_pb.js delete mode 100644 api/js/google/api/monitoring_grpc_pb.d.ts delete mode 100644 api/js/google/api/monitoring_pb.d.ts delete mode 100644 api/js/google/api/monitoring_pb.js delete mode 100644 api/js/google/api/quota_grpc_pb.d.ts delete mode 100644 api/js/google/api/quota_pb.d.ts delete mode 100644 api/js/google/api/quota_pb.js delete mode 100644 api/js/google/api/resource_grpc_pb.d.ts delete mode 100644 api/js/google/api/resource_pb.d.ts delete mode 100644 api/js/google/api/resource_pb.js delete mode 100644 api/js/google/api/routing_grpc_pb.d.ts delete mode 100644 api/js/google/api/routing_pb.d.ts delete mode 100644 api/js/google/api/routing_pb.js delete mode 100644 api/js/google/api/service_grpc_pb.d.ts delete mode 100644 api/js/google/api/service_pb.d.ts delete mode 100644 api/js/google/api/service_pb.js delete mode 100644 api/js/google/api/source_info_grpc_pb.d.ts delete mode 100644 api/js/google/api/source_info_pb.d.ts delete mode 100644 api/js/google/api/source_info_pb.js delete mode 100644 api/js/google/api/system_parameter_grpc_pb.d.ts delete mode 100644 api/js/google/api/system_parameter_pb.d.ts delete mode 100644 api/js/google/api/system_parameter_pb.js delete mode 100644 api/js/google/api/usage_grpc_pb.d.ts delete mode 100644 api/js/google/api/usage_pb.d.ts delete mode 100644 api/js/google/api/usage_pb.js delete mode 100644 api/js/google/api/visibility_grpc_pb.d.ts delete mode 100644 api/js/google/api/visibility_pb.d.ts delete mode 100644 api/js/google/api/visibility_pb.js delete mode 100644 api/js/gw/gw_grpc_pb.d.ts delete mode 100644 api/js/gw/gw_pb.d.ts delete mode 100644 api/js/gw/gw_pb.js delete mode 100644 api/js/integration/integration_grpc_pb.d.ts delete mode 100644 api/js/integration/integration_pb.d.ts delete mode 100644 api/js/integration/integration_pb.js delete mode 100644 api/js/stream/api_request_grpc_pb.d.ts delete mode 100644 api/js/stream/api_request_pb.d.ts delete mode 100644 api/js/stream/api_request_pb.js delete mode 100644 api/js/stream/backend_interfaces_grpc_pb.d.ts delete mode 100644 api/js/stream/backend_interfaces_pb.d.ts delete mode 100644 api/js/stream/backend_interfaces_pb.js delete mode 100644 api/js/stream/frame_grpc_pb.d.ts delete mode 100644 api/js/stream/frame_pb.d.ts delete mode 100644 api/js/stream/frame_pb.js delete mode 100644 api/js/stream/meta_grpc_pb.d.ts delete mode 100644 api/js/stream/meta_pb.d.ts delete mode 100644 api/js/stream/meta_pb.js create mode 100644 api/kotlin/.gitignore create mode 100644 api/md/.gitignore delete mode 100644 api/md/api/api.md create mode 100644 api/python/.gitignore delete mode 100644 api/python/src/chirpstack_api/api/application_pb2.py delete mode 100644 api/python/src/chirpstack_api/api/application_pb2.pyi delete mode 100644 api/python/src/chirpstack_api/api/application_pb2_grpc.py delete mode 100644 api/python/src/chirpstack_api/api/device_pb2.py delete mode 100644 api/python/src/chirpstack_api/api/device_pb2.pyi delete mode 100644 api/python/src/chirpstack_api/api/device_pb2_grpc.py delete mode 100644 api/python/src/chirpstack_api/api/device_profile_pb2.py delete mode 100644 api/python/src/chirpstack_api/api/device_profile_pb2.pyi delete mode 100644 api/python/src/chirpstack_api/api/device_profile_pb2_grpc.py delete mode 100644 api/python/src/chirpstack_api/api/device_profile_template_pb2.py delete mode 100644 api/python/src/chirpstack_api/api/device_profile_template_pb2.pyi delete mode 100644 api/python/src/chirpstack_api/api/device_profile_template_pb2_grpc.py delete mode 100644 api/python/src/chirpstack_api/api/frame_log_pb2.py delete mode 100644 api/python/src/chirpstack_api/api/frame_log_pb2.pyi delete mode 100644 api/python/src/chirpstack_api/api/frame_log_pb2_grpc.py delete mode 100644 api/python/src/chirpstack_api/api/gateway_pb2.py delete mode 100644 api/python/src/chirpstack_api/api/gateway_pb2.pyi delete mode 100644 api/python/src/chirpstack_api/api/gateway_pb2_grpc.py delete mode 100644 api/python/src/chirpstack_api/api/internal_pb2.py delete mode 100644 api/python/src/chirpstack_api/api/internal_pb2.pyi delete mode 100644 api/python/src/chirpstack_api/api/internal_pb2_grpc.py delete mode 100644 api/python/src/chirpstack_api/api/multicast_group_pb2.py delete mode 100644 api/python/src/chirpstack_api/api/multicast_group_pb2.pyi delete mode 100644 api/python/src/chirpstack_api/api/multicast_group_pb2_grpc.py delete mode 100644 api/python/src/chirpstack_api/api/relay_pb2.py delete mode 100644 api/python/src/chirpstack_api/api/relay_pb2.pyi delete mode 100644 api/python/src/chirpstack_api/api/relay_pb2_grpc.py delete mode 100644 api/python/src/chirpstack_api/api/tenant_pb2.py delete mode 100644 api/python/src/chirpstack_api/api/tenant_pb2.pyi delete mode 100644 api/python/src/chirpstack_api/api/tenant_pb2_grpc.py delete mode 100644 api/python/src/chirpstack_api/api/user_pb2.py delete mode 100644 api/python/src/chirpstack_api/api/user_pb2.pyi delete mode 100644 api/python/src/chirpstack_api/api/user_pb2_grpc.py delete mode 100644 api/python/src/chirpstack_api/common/common_pb2.py delete mode 100644 api/python/src/chirpstack_api/common/common_pb2.pyi delete mode 100644 api/python/src/chirpstack_api/common/common_pb2_grpc.py delete mode 100644 api/python/src/chirpstack_api/gw/gw_pb2.py delete mode 100644 api/python/src/chirpstack_api/gw/gw_pb2.pyi delete mode 100644 api/python/src/chirpstack_api/gw/gw_pb2_grpc.py delete mode 100644 api/python/src/chirpstack_api/integration/integration_pb2.py delete mode 100644 api/python/src/chirpstack_api/integration/integration_pb2.pyi delete mode 100644 api/python/src/chirpstack_api/integration/integration_pb2_grpc.py delete mode 100644 api/python/src/chirpstack_api/stream/api_request_pb2.py delete mode 100644 api/python/src/chirpstack_api/stream/api_request_pb2.pyi delete mode 100644 api/python/src/chirpstack_api/stream/api_request_pb2_grpc.py delete mode 100644 api/python/src/chirpstack_api/stream/backend_interfaces_pb2.py delete mode 100644 api/python/src/chirpstack_api/stream/backend_interfaces_pb2.pyi delete mode 100644 api/python/src/chirpstack_api/stream/backend_interfaces_pb2_grpc.py delete mode 100644 api/python/src/chirpstack_api/stream/frame_pb2.py delete mode 100644 api/python/src/chirpstack_api/stream/frame_pb2.pyi delete mode 100644 api/python/src/chirpstack_api/stream/frame_pb2_grpc.py delete mode 100644 api/python/src/chirpstack_api/stream/meta_pb2.py delete mode 100644 api/python/src/chirpstack_api/stream/meta_pb2.pyi delete mode 100644 api/python/src/chirpstack_api/stream/meta_pb2_grpc.py create mode 100644 api/rust/.gitignore delete mode 100644 api/rust/proto/chirpstack/api/application.proto delete mode 100644 api/rust/proto/chirpstack/api/device.proto delete mode 100644 api/rust/proto/chirpstack/api/device_profile.proto delete mode 100644 api/rust/proto/chirpstack/api/device_profile_template.proto delete mode 100644 api/rust/proto/chirpstack/api/gateway.proto delete mode 100644 api/rust/proto/chirpstack/api/internal.proto delete mode 100644 api/rust/proto/chirpstack/api/multicast_group.proto delete mode 100644 api/rust/proto/chirpstack/api/relay.proto delete mode 100644 api/rust/proto/chirpstack/api/tenant.proto delete mode 100644 api/rust/proto/chirpstack/api/user.proto delete mode 100644 api/rust/proto/chirpstack/common/common.proto delete mode 100644 api/rust/proto/chirpstack/gw/gw.proto delete mode 100644 api/rust/proto/chirpstack/integration/integration.proto delete mode 100644 api/rust/proto/chirpstack/internal/internal.proto delete mode 100644 api/rust/proto/chirpstack/stream/api_request.proto delete mode 100644 api/rust/proto/chirpstack/stream/backend_interfaces.proto delete mode 100644 api/rust/proto/chirpstack/stream/frame.proto delete mode 100644 api/rust/proto/chirpstack/stream/meta.proto delete mode 100644 api/rust/proto/google/google/api/annotations.proto delete mode 100644 api/rust/proto/google/google/api/http.proto diff --git a/.gitignore b/.gitignore index b9377bab..4991e11a 100644 --- a/.gitignore +++ b/.gitignore @@ -21,19 +21,5 @@ /ui/node_modules /ui/build -# API -/api/grpc-web/node_modules -/api/java/build -/api/java/src -/api/js/node_modules -/api/kotlin/build -/api/kotlin/src -/api/python/src/*.egg-info/ -/api/python/src/build/ -/api/python/src/dist/ - -# Bitbake recipes -*.bb - # Exclude from gitignore !/.github diff --git a/Makefile b/Makefile index b200d5ea..5b5693b6 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ # Build distributable binaries. dist: + cd api && make grpc-web cd chirpstack && make dist # Install dev dependencies @@ -56,6 +57,7 @@ docker-devshell-ui: # Runs the tests test: + cd api && make cd backend && cargo test cd chirpstack && make test cd lrwn && make test @@ -63,6 +65,7 @@ test: # Runs all the tests (including some that normally are ignored) test-all: + cd api && make cd backend && cargo test cd chirpstack && make test-all cd chirpstack-integration && cargo test diff --git a/api/csharp/.gitignore b/api/csharp/.gitignore new file mode 100644 index 00000000..8143e15f --- /dev/null +++ b/api/csharp/.gitignore @@ -0,0 +1 @@ +*.cs diff --git a/api/csharp/Chirpstack/api/Application.cs b/api/csharp/Chirpstack/api/Application.cs deleted file mode 100644 index 1c471259..00000000 --- a/api/csharp/Chirpstack/api/Application.cs +++ /dev/null @@ -1,18096 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/application.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Chirpstack.Api { - - /// Holder for reflection information generated from api/application.proto - public static partial class ApplicationReflection { - - #region Descriptor - /// File descriptor for api/application.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ApplicationReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ChVhcGkvYXBwbGljYXRpb24ucHJvdG8SA2FwaRocZ29vZ2xlL2FwaS9hbm5v", - "dGF0aW9ucy5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90", - "bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvIqYBCgtBcHBsaWNhdGlv", - "bhIKCgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJEhMKC2Rlc2NyaXB0aW9uGAMg", - "ASgJEhEKCXRlbmFudF9pZBgEIAEoCRIoCgR0YWdzGAUgAygLMhouYXBpLkFw", - "cGxpY2F0aW9uLlRhZ3NFbnRyeRorCglUYWdzRW50cnkSCwoDa2V5GAEgASgJ", - "Eg0KBXZhbHVlGAIgASgJOgI4ASKkAQoTQXBwbGljYXRpb25MaXN0SXRlbRIK", - "CgJpZBgBIAEoCRIuCgpjcmVhdGVkX2F0GAIgASgLMhouZ29vZ2xlLnByb3Rv", - "YnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAMgASgLMhouZ29vZ2xlLnBy", - "b3RvYnVmLlRpbWVzdGFtcBIMCgRuYW1lGAQgASgJEhMKC2Rlc2NyaXB0aW9u", - "GAUgASgJIkEKGENyZWF0ZUFwcGxpY2F0aW9uUmVxdWVzdBIlCgthcHBsaWNh", - "dGlvbhgBIAEoCzIQLmFwaS5BcHBsaWNhdGlvbiInChlDcmVhdGVBcHBsaWNh", - "dGlvblJlc3BvbnNlEgoKAmlkGAEgASgJIiMKFUdldEFwcGxpY2F0aW9uUmVx", - "dWVzdBIKCgJpZBgBIAEoCSK5AQoWR2V0QXBwbGljYXRpb25SZXNwb25zZRIl", - "CgthcHBsaWNhdGlvbhgBIAEoCzIQLmFwaS5BcHBsaWNhdGlvbhIuCgpjcmVh", - "dGVkX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1", - "cGRhdGVkX2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIY", - "ChBtZWFzdXJlbWVudF9rZXlzGAQgAygJIkEKGFVwZGF0ZUFwcGxpY2F0aW9u", - "UmVxdWVzdBIlCgthcHBsaWNhdGlvbhgBIAEoCzIQLmFwaS5BcHBsaWNhdGlv", - "biImChhEZWxldGVBcHBsaWNhdGlvblJlcXVlc3QSCgoCaWQYASABKAkiWwoX", - "TGlzdEFwcGxpY2F0aW9uc1JlcXVlc3QSDQoFbGltaXQYASABKA0SDgoGb2Zm", - "c2V0GAIgASgNEg4KBnNlYXJjaBgDIAEoCRIRCgl0ZW5hbnRfaWQYBCABKAki", - "WQoYTGlzdEFwcGxpY2F0aW9uc1Jlc3BvbnNlEhMKC3RvdGFsX2NvdW50GAEg", - "ASgNEigKBnJlc3VsdBgCIAMoCzIYLmFwaS5BcHBsaWNhdGlvbkxpc3RJdGVt", - "IjEKF0xpc3RJbnRlZ3JhdGlvbnNSZXF1ZXN0EhYKDmFwcGxpY2F0aW9uX2lk", - "GAEgASgJIjkKE0ludGVncmF0aW9uTGlzdEl0ZW0SIgoEa2luZBgBIAEoDjIU", - "LmFwaS5JbnRlZ3JhdGlvbktpbmQiWQoYTGlzdEludGVncmF0aW9uc1Jlc3Bv", - "bnNlEhMKC3RvdGFsX2NvdW50GAEgASgNEigKBnJlc3VsdBgCIAMoCzIYLmFw", - "aS5JbnRlZ3JhdGlvbkxpc3RJdGVtIsoBCg9IdHRwSW50ZWdyYXRpb24SFgoO", - "YXBwbGljYXRpb25faWQYASABKAkSMgoHaGVhZGVycxgCIAMoCzIhLmFwaS5I", - "dHRwSW50ZWdyYXRpb24uSGVhZGVyc0VudHJ5Eh8KCGVuY29kaW5nGAMgASgO", - "Mg0uYXBpLkVuY29kaW5nEhoKEmV2ZW50X2VuZHBvaW50X3VybBgEIAEoCRou", - "CgxIZWFkZXJzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4", - "ASJJChxDcmVhdGVIdHRwSW50ZWdyYXRpb25SZXF1ZXN0EikKC2ludGVncmF0", - "aW9uGAEgASgLMhQuYXBpLkh0dHBJbnRlZ3JhdGlvbiIzChlHZXRIdHRwSW50", - "ZWdyYXRpb25SZXF1ZXN0EhYKDmFwcGxpY2F0aW9uX2lkGAEgASgJIkcKGkdl", - "dEh0dHBJbnRlZ3JhdGlvblJlc3BvbnNlEikKC2ludGVncmF0aW9uGAEgASgL", - "MhQuYXBpLkh0dHBJbnRlZ3JhdGlvbiJJChxVcGRhdGVIdHRwSW50ZWdyYXRp", - "b25SZXF1ZXN0EikKC2ludGVncmF0aW9uGAEgASgLMhQuYXBpLkh0dHBJbnRl", - "Z3JhdGlvbiI2ChxEZWxldGVIdHRwSW50ZWdyYXRpb25SZXF1ZXN0EhYKDmFw", - "cGxpY2F0aW9uX2lkGAEgASgJIpUCChNJbmZsdXhEYkludGVncmF0aW9uEhYK", - "DmFwcGxpY2F0aW9uX2lkGAEgASgJEhAKCGVuZHBvaW50GAIgASgJEgoKAmRi", - "GAMgASgJEhAKCHVzZXJuYW1lGAQgASgJEhAKCHBhc3N3b3JkGAUgASgJEh0K", - "FXJldGVudGlvbl9wb2xpY3lfbmFtZRgGIAEoCRIpCglwcmVjaXNpb24YByAB", - "KA4yFi5hcGkuSW5mbHV4RGJQcmVjaXNpb24SJQoHdmVyc2lvbhgIIAEoDjIU", - "LmFwaS5JbmZsdXhEYlZlcnNpb24SDQoFdG9rZW4YCSABKAkSFAoMb3JnYW5p", - "emF0aW9uGAogASgJEg4KBmJ1Y2tldBgLIAEoCSJRCiBDcmVhdGVJbmZsdXhE", - "YkludGVncmF0aW9uUmVxdWVzdBItCgtpbnRlZ3JhdGlvbhgBIAEoCzIYLmFw", - "aS5JbmZsdXhEYkludGVncmF0aW9uIjcKHUdldEluZmx1eERiSW50ZWdyYXRp", - "b25SZXF1ZXN0EhYKDmFwcGxpY2F0aW9uX2lkGAEgASgJIk8KHkdldEluZmx1", - "eERiSW50ZWdyYXRpb25SZXNwb25zZRItCgtpbnRlZ3JhdGlvbhgBIAEoCzIY", - "LmFwaS5JbmZsdXhEYkludGVncmF0aW9uIlEKIFVwZGF0ZUluZmx1eERiSW50", - "ZWdyYXRpb25SZXF1ZXN0Ei0KC2ludGVncmF0aW9uGAEgASgLMhguYXBpLklu", - "Zmx1eERiSW50ZWdyYXRpb24iOgogRGVsZXRlSW5mbHV4RGJJbnRlZ3JhdGlv", - "blJlcXVlc3QSFgoOYXBwbGljYXRpb25faWQYASABKAkiQAoWVGhpbmdzQm9h", - "cmRJbnRlZ3JhdGlvbhIWCg5hcHBsaWNhdGlvbl9pZBgBIAEoCRIOCgZzZXJ2", - "ZXIYAiABKAkiVwojQ3JlYXRlVGhpbmdzQm9hcmRJbnRlZ3JhdGlvblJlcXVl", - "c3QSMAoLaW50ZWdyYXRpb24YASABKAsyGy5hcGkuVGhpbmdzQm9hcmRJbnRl", - "Z3JhdGlvbiI6CiBHZXRUaGluZ3NCb2FyZEludGVncmF0aW9uUmVxdWVzdBIW", - "Cg5hcHBsaWNhdGlvbl9pZBgBIAEoCSJVCiFHZXRUaGluZ3NCb2FyZEludGVn", - "cmF0aW9uUmVzcG9uc2USMAoLaW50ZWdyYXRpb24YASABKAsyGy5hcGkuVGhp", - "bmdzQm9hcmRJbnRlZ3JhdGlvbiJXCiNVcGRhdGVUaGluZ3NCb2FyZEludGVn", - "cmF0aW9uUmVxdWVzdBIwCgtpbnRlZ3JhdGlvbhgBIAEoCzIbLmFwaS5UaGlu", - "Z3NCb2FyZEludGVncmF0aW9uIj0KI0RlbGV0ZVRoaW5nc0JvYXJkSW50ZWdy", - "YXRpb25SZXF1ZXN0EhYKDmFwcGxpY2F0aW9uX2lkGAEgASgJIkAKFE15RGV2", - "aWNlc0ludGVncmF0aW9uEhYKDmFwcGxpY2F0aW9uX2lkGAEgASgJEhAKCGVu", - "ZHBvaW50GAIgASgJIlMKIUNyZWF0ZU15RGV2aWNlc0ludGVncmF0aW9uUmVx", - "dWVzdBIuCgtpbnRlZ3JhdGlvbhgBIAEoCzIZLmFwaS5NeURldmljZXNJbnRl", - "Z3JhdGlvbiI4Ch5HZXRNeURldmljZXNJbnRlZ3JhdGlvblJlcXVlc3QSFgoO", - "YXBwbGljYXRpb25faWQYASABKAkiUQofR2V0TXlEZXZpY2VzSW50ZWdyYXRp", - "b25SZXNwb25zZRIuCgtpbnRlZ3JhdGlvbhgBIAEoCzIZLmFwaS5NeURldmlj", - "ZXNJbnRlZ3JhdGlvbiJTCiFVcGRhdGVNeURldmljZXNJbnRlZ3JhdGlvblJl", - "cXVlc3QSLgoLaW50ZWdyYXRpb24YASABKAsyGS5hcGkuTXlEZXZpY2VzSW50", - "ZWdyYXRpb24iOwohRGVsZXRlTXlEZXZpY2VzSW50ZWdyYXRpb25SZXF1ZXN0", - "EhYKDmFwcGxpY2F0aW9uX2lkGAEgASgJInoKFExvcmFDbG91ZEludGVncmF0", - "aW9uEhYKDmFwcGxpY2F0aW9uX2lkGAEgASgJEkoKGm1vZGVtX2dlb2xvY2F0", - "aW9uX3NlcnZpY2VzGAIgASgLMiYuYXBpLkxvcmFDbG91ZE1vZGVtR2VvbG9j", - "YXRpb25TZXJ2aWNlcyLVAwohTG9yYUNsb3VkTW9kZW1HZW9sb2NhdGlvblNl", - "cnZpY2VzEg0KBXRva2VuGAEgASgJEhUKDW1vZGVtX2VuYWJsZWQYAiABKAgS", - "FwoPZm9yd2FyZF9mX3BvcnRzGBAgAygNEhgKEGduc3NfdXNlX3J4X3RpbWUY", - "BSABKAgSIQoZZ25zc191c2VfZ2F0ZXdheV9sb2NhdGlvbhgRIAEoCBIRCglw", - "YXJzZV90bHYYBiABKAgSHgoWZ2VvbG9jYXRpb25fYnVmZmVyX3R0bBgHIAEo", - "DRIjChtnZW9sb2NhdGlvbl9taW5fYnVmZmVyX3NpemUYCCABKA0SGAoQZ2Vv", - "bG9jYXRpb25fdGRvYRgJIAEoCBIYChBnZW9sb2NhdGlvbl9yc3NpGAogASgI", - "EhgKEGdlb2xvY2F0aW9uX2duc3MYCyABKAgSJgoeZ2VvbG9jYXRpb25fZ25z", - "c19wYXlsb2FkX2ZpZWxkGAwgASgJEiQKHGdlb2xvY2F0aW9uX2duc3NfdXNl", - "X3J4X3RpbWUYDSABKAgSGAoQZ2VvbG9jYXRpb25fd2lmaRgOIAEoCBImCh5n", - "ZW9sb2NhdGlvbl93aWZpX3BheWxvYWRfZmllbGQYDyABKAkiUwohQ3JlYXRl", - "TG9yYUNsb3VkSW50ZWdyYXRpb25SZXF1ZXN0Ei4KC2ludGVncmF0aW9uGAEg", - "ASgLMhkuYXBpLkxvcmFDbG91ZEludGVncmF0aW9uIjgKHkdldExvcmFDbG91", - "ZEludGVncmF0aW9uUmVxdWVzdBIWCg5hcHBsaWNhdGlvbl9pZBgBIAEoCSJR", - "Ch9HZXRMb3JhQ2xvdWRJbnRlZ3JhdGlvblJlc3BvbnNlEi4KC2ludGVncmF0", - "aW9uGAEgASgLMhkuYXBpLkxvcmFDbG91ZEludGVncmF0aW9uIlMKIVVwZGF0", - "ZUxvcmFDbG91ZEludGVncmF0aW9uUmVxdWVzdBIuCgtpbnRlZ3JhdGlvbhgB", - "IAEoCzIZLmFwaS5Mb3JhQ2xvdWRJbnRlZ3JhdGlvbiI7CiFEZWxldGVMb3Jh", - "Q2xvdWRJbnRlZ3JhdGlvblJlcXVlc3QSFgoOYXBwbGljYXRpb25faWQYASAB", - "KAkikQEKFEdjcFB1YlN1YkludGVncmF0aW9uEhYKDmFwcGxpY2F0aW9uX2lk", - "GAEgASgJEh8KCGVuY29kaW5nGAIgASgOMg0uYXBpLkVuY29kaW5nEhgKEGNy", - "ZWRlbnRpYWxzX2ZpbGUYAyABKAkSEgoKcHJvamVjdF9pZBgEIAEoCRISCgp0", - "b3BpY19uYW1lGAUgASgJIlMKIUNyZWF0ZUdjcFB1YlN1YkludGVncmF0aW9u", - "UmVxdWVzdBIuCgtpbnRlZ3JhdGlvbhgBIAEoCzIZLmFwaS5HY3BQdWJTdWJJ", - "bnRlZ3JhdGlvbiI4Ch5HZXRHY3BQdWJTdWJJbnRlZ3JhdGlvblJlcXVlc3QS", - "FgoOYXBwbGljYXRpb25faWQYASABKAkiUQofR2V0R2NwUHViU3ViSW50ZWdy", - "YXRpb25SZXNwb25zZRIuCgtpbnRlZ3JhdGlvbhgBIAEoCzIZLmFwaS5HY3BQ", - "dWJTdWJJbnRlZ3JhdGlvbiJTCiFVcGRhdGVHY3BQdWJTdWJJbnRlZ3JhdGlv", - "blJlcXVlc3QSLgoLaW50ZWdyYXRpb24YASABKAsyGS5hcGkuR2NwUHViU3Vi", - "SW50ZWdyYXRpb24iOwohRGVsZXRlR2NwUHViU3ViSW50ZWdyYXRpb25SZXF1", - "ZXN0EhYKDmFwcGxpY2F0aW9uX2lkGAEgASgJIqEBChFBd3NTbnNJbnRlZ3Jh", - "dGlvbhIWCg5hcHBsaWNhdGlvbl9pZBgBIAEoCRIfCghlbmNvZGluZxgCIAEo", - "DjINLmFwaS5FbmNvZGluZxIOCgZyZWdpb24YAyABKAkSFQoNYWNjZXNzX2tl", - "eV9pZBgEIAEoCRIZChFzZWNyZXRfYWNjZXNzX2tleRgFIAEoCRIRCgl0b3Bp", - "Y19hcm4YBiABKAkiTQoeQ3JlYXRlQXdzU25zSW50ZWdyYXRpb25SZXF1ZXN0", - "EisKC2ludGVncmF0aW9uGAEgASgLMhYuYXBpLkF3c1Nuc0ludGVncmF0aW9u", - "IjUKG0dldEF3c1Nuc0ludGVncmF0aW9uUmVxdWVzdBIWCg5hcHBsaWNhdGlv", - "bl9pZBgBIAEoCSJLChxHZXRBd3NTbnNJbnRlZ3JhdGlvblJlc3BvbnNlEisK", - "C2ludGVncmF0aW9uGAEgASgLMhYuYXBpLkF3c1Nuc0ludGVncmF0aW9uIk0K", - "HlVwZGF0ZUF3c1Nuc0ludGVncmF0aW9uUmVxdWVzdBIrCgtpbnRlZ3JhdGlv", - "bhgBIAEoCzIWLmFwaS5Bd3NTbnNJbnRlZ3JhdGlvbiI4Ch5EZWxldGVBd3NT", - "bnNJbnRlZ3JhdGlvblJlcXVlc3QSFgoOYXBwbGljYXRpb25faWQYASABKAki", - "hgEKGkF6dXJlU2VydmljZUJ1c0ludGVncmF0aW9uEhYKDmFwcGxpY2F0aW9u", - "X2lkGAEgASgJEh8KCGVuY29kaW5nGAIgASgOMg0uYXBpLkVuY29kaW5nEhkK", - "EWNvbm5lY3Rpb25fc3RyaW5nGAMgASgJEhQKDHB1Ymxpc2hfbmFtZRgEIAEo", - "CSJfCidDcmVhdGVBenVyZVNlcnZpY2VCdXNJbnRlZ3JhdGlvblJlcXVlc3QS", - "NAoLaW50ZWdyYXRpb24YASABKAsyHy5hcGkuQXp1cmVTZXJ2aWNlQnVzSW50", - "ZWdyYXRpb24iPgokR2V0QXp1cmVTZXJ2aWNlQnVzSW50ZWdyYXRpb25SZXF1", - "ZXN0EhYKDmFwcGxpY2F0aW9uX2lkGAEgASgJIl0KJUdldEF6dXJlU2Vydmlj", - "ZUJ1c0ludGVncmF0aW9uUmVzcG9uc2USNAoLaW50ZWdyYXRpb24YASABKAsy", - "Hy5hcGkuQXp1cmVTZXJ2aWNlQnVzSW50ZWdyYXRpb24iXwonVXBkYXRlQXp1", - "cmVTZXJ2aWNlQnVzSW50ZWdyYXRpb25SZXF1ZXN0EjQKC2ludGVncmF0aW9u", - "GAEgASgLMh8uYXBpLkF6dXJlU2VydmljZUJ1c0ludGVncmF0aW9uIkEKJ0Rl", - "bGV0ZUF6dXJlU2VydmljZUJ1c0ludGVncmF0aW9uUmVxdWVzdBIWCg5hcHBs", - "aWNhdGlvbl9pZBgBIAEoCSJPChZQaWxvdFRoaW5nc0ludGVncmF0aW9uEhYK", - "DmFwcGxpY2F0aW9uX2lkGAEgASgJEg4KBnNlcnZlchgCIAEoCRINCgV0b2tl", - "bhgDIAEoCSJXCiNDcmVhdGVQaWxvdFRoaW5nc0ludGVncmF0aW9uUmVxdWVz", - "dBIwCgtpbnRlZ3JhdGlvbhgBIAEoCzIbLmFwaS5QaWxvdFRoaW5nc0ludGVn", - "cmF0aW9uIjoKIEdldFBpbG90VGhpbmdzSW50ZWdyYXRpb25SZXF1ZXN0EhYK", - "DmFwcGxpY2F0aW9uX2lkGAEgASgJIlUKIUdldFBpbG90VGhpbmdzSW50ZWdy", - "YXRpb25SZXNwb25zZRIwCgtpbnRlZ3JhdGlvbhgBIAEoCzIbLmFwaS5QaWxv", - "dFRoaW5nc0ludGVncmF0aW9uIlcKI1VwZGF0ZVBpbG90VGhpbmdzSW50ZWdy", - "YXRpb25SZXF1ZXN0EjAKC2ludGVncmF0aW9uGAEgASgLMhsuYXBpLlBpbG90", - "VGhpbmdzSW50ZWdyYXRpb24iPQojRGVsZXRlUGlsb3RUaGluZ3NJbnRlZ3Jh", - "dGlvblJlcXVlc3QSFgoOYXBwbGljYXRpb25faWQYASABKAkifAoQSWZ0dHRJ", - "bnRlZ3JhdGlvbhIWCg5hcHBsaWNhdGlvbl9pZBgBIAEoCRILCgNrZXkYAiAB", - "KAkSFQoNdXBsaW5rX3ZhbHVlcxgDIAMoCRIWCg5hcmJpdHJhcnlfanNvbhgE", - "IAEoCBIUCgxldmVudF9wcmVmaXgYBSABKAkiSwodQ3JlYXRlSWZ0dHRJbnRl", - "Z3JhdGlvblJlcXVlc3QSKgoLaW50ZWdyYXRpb24YASABKAsyFS5hcGkuSWZ0", - "dHRJbnRlZ3JhdGlvbiI0ChpHZXRJZnR0dEludGVncmF0aW9uUmVxdWVzdBIW", - "Cg5hcHBsaWNhdGlvbl9pZBgBIAEoCSJJChtHZXRJZnR0dEludGVncmF0aW9u", - "UmVzcG9uc2USKgoLaW50ZWdyYXRpb24YASABKAsyFS5hcGkuSWZ0dHRJbnRl", - "Z3JhdGlvbiJLCh1VcGRhdGVJZnR0dEludGVncmF0aW9uUmVxdWVzdBIqCgtp", - "bnRlZ3JhdGlvbhgBIAEoCzIVLmFwaS5JZnR0dEludGVncmF0aW9uIjcKHURl", - "bGV0ZUlmdHR0SW50ZWdyYXRpb25SZXF1ZXN0EhYKDmFwcGxpY2F0aW9uX2lk", - "GAEgASgJIkkKL0dlbmVyYXRlTXF0dEludGVncmF0aW9uQ2xpZW50Q2VydGlm", - "aWNhdGVSZXF1ZXN0EhYKDmFwcGxpY2F0aW9uX2lkGAEgASgJIpYBCjBHZW5l", - "cmF0ZU1xdHRJbnRlZ3JhdGlvbkNsaWVudENlcnRpZmljYXRlUmVzcG9uc2US", - "EAoIdGxzX2NlcnQYASABKAkSDwoHdGxzX2tleRgCIAEoCRIPCgdjYV9jZXJ0", - "GAMgASgJEi4KCmV4cGlyZXNfYXQYBCABKAsyGi5nb29nbGUucHJvdG9idWYu", - "VGltZXN0YW1wKiIKCEVuY29kaW5nEggKBEpTT04QABIMCghQUk9UT0JVRhAB", - "Kr8BCg9JbnRlZ3JhdGlvbktpbmQSCAoESFRUUBAAEg0KCUlORkxVWF9EQhAB", - "EhAKDFRISU5HU19CT0FSRBACEg4KCk1ZX0RFVklDRVMQAxIOCgpMT1JBX0NM", - "T1VEEAQSDwoLR0NQX1BVQl9TVUIQBRILCgdBV1NfU05TEAYSFQoRQVpVUkVf", - "U0VSVklDRV9CVVMQBxIQCgxQSUxPVF9USElOR1MQCBIPCgtNUVRUX0dMT0JB", - "TBAJEgkKBUlGVFRUEAoqPwoRSW5mbHV4RGJQcmVjaXNpb24SBgoCTlMQABIF", - "CgFVEAESBgoCTVMQAhIFCgFTEAMSBQoBTRAEEgUKAUgQBSoxCg9JbmZsdXhE", - "YlZlcnNpb24SDgoKSU5GTFVYREJfMRAAEg4KCklORkxVWERCXzIQATK4PAoS", - "QXBwbGljYXRpb25TZXJ2aWNlEmUKBkNyZWF0ZRIdLmFwaS5DcmVhdGVBcHBs", - "aWNhdGlvblJlcXVlc3QaHi5hcGkuQ3JlYXRlQXBwbGljYXRpb25SZXNwb25z", - "ZSIcgtPkkwIWIhEvYXBpL2FwcGxpY2F0aW9uczoBKhJeCgNHZXQSGi5hcGku", - "R2V0QXBwbGljYXRpb25SZXF1ZXN0GhsuYXBpLkdldEFwcGxpY2F0aW9uUmVz", - "cG9uc2UiHoLT5JMCGBIWL2FwaS9hcHBsaWNhdGlvbnMve2lkfRJuCgZVcGRh", - "dGUSHS5hcGkuVXBkYXRlQXBwbGljYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnBy", - "b3RvYnVmLkVtcHR5Ii2C0+STAicaIi9hcGkvYXBwbGljYXRpb25zL3thcHBs", - "aWNhdGlvbi5pZH06ASoSXwoGRGVsZXRlEh0uYXBpLkRlbGV0ZUFwcGxpY2F0", - "aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIegtPkkwIYKhYv", - "YXBpL2FwcGxpY2F0aW9ucy97aWR9El4KBExpc3QSHC5hcGkuTGlzdEFwcGxp", - "Y2F0aW9uc1JlcXVlc3QaHS5hcGkuTGlzdEFwcGxpY2F0aW9uc1Jlc3BvbnNl", - "IhmC0+STAhMSES9hcGkvYXBwbGljYXRpb25zEogBChBMaXN0SW50ZWdyYXRp", - "b25zEhwuYXBpLkxpc3RJbnRlZ3JhdGlvbnNSZXF1ZXN0Gh0uYXBpLkxpc3RJ", - "bnRlZ3JhdGlvbnNSZXNwb25zZSI3gtPkkwIxEi8vYXBpL2FwcGxpY2F0aW9u", - "cy97YXBwbGljYXRpb25faWR9L2ludGVncmF0aW9ucxKfAQoVQ3JlYXRlSHR0", - "cEludGVncmF0aW9uEiEuYXBpLkNyZWF0ZUh0dHBJbnRlZ3JhdGlvblJlcXVl", - "c3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiS4LT5JMCRSJAL2FwaS9hcHBs", - "aWNhdGlvbnMve2ludGVncmF0aW9uLmFwcGxpY2F0aW9uX2lkfS9pbnRlZ3Jh", - "dGlvbnMvaHR0cDoBKhKTAQoSR2V0SHR0cEludGVncmF0aW9uEh4uYXBpLkdl", - "dEh0dHBJbnRlZ3JhdGlvblJlcXVlc3QaHy5hcGkuR2V0SHR0cEludGVncmF0", - "aW9uUmVzcG9uc2UiPILT5JMCNhI0L2FwaS9hcHBsaWNhdGlvbnMve2FwcGxp", - "Y2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvaHR0cBKfAQoVVXBkYXRlSHR0cElu", - "dGVncmF0aW9uEiEuYXBpLlVwZGF0ZUh0dHBJbnRlZ3JhdGlvblJlcXVlc3Qa", - "Fi5nb29nbGUucHJvdG9idWYuRW1wdHkiS4LT5JMCRRpAL2FwaS9hcHBsaWNh", - "dGlvbnMve2ludGVncmF0aW9uLmFwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlv", - "bnMvaHR0cDoBKhKQAQoVRGVsZXRlSHR0cEludGVncmF0aW9uEiEuYXBpLkRl", - "bGV0ZUh0dHBJbnRlZ3JhdGlvblJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYu", - "RW1wdHkiPILT5JMCNio0L2FwaS9hcHBsaWNhdGlvbnMve2FwcGxpY2F0aW9u", - "X2lkfS9pbnRlZ3JhdGlvbnMvaHR0cBKrAQoZQ3JlYXRlSW5mbHV4RGJJbnRl", - "Z3JhdGlvbhIlLmFwaS5DcmVhdGVJbmZsdXhEYkludGVncmF0aW9uUmVxdWVz", - "dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSJPgtPkkwJJIkQvYXBpL2FwcGxp", - "Y2F0aW9ucy97aW50ZWdyYXRpb24uYXBwbGljYXRpb25faWR9L2ludGVncmF0", - "aW9ucy9pbmZsdXhkYjoBKhKjAQoWR2V0SW5mbHV4RGJJbnRlZ3JhdGlvbhIi", - "LmFwaS5HZXRJbmZsdXhEYkludGVncmF0aW9uUmVxdWVzdBojLmFwaS5HZXRJ", - "bmZsdXhEYkludGVncmF0aW9uUmVzcG9uc2UiQILT5JMCOhI4L2FwaS9hcHBs", - "aWNhdGlvbnMve2FwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvaW5mbHV4", - "ZGISqwEKGVVwZGF0ZUluZmx1eERiSW50ZWdyYXRpb24SJS5hcGkuVXBkYXRl", - "SW5mbHV4RGJJbnRlZ3JhdGlvblJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYu", - "RW1wdHkiT4LT5JMCSRpEL2FwaS9hcHBsaWNhdGlvbnMve2ludGVncmF0aW9u", - "LmFwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvaW5mbHV4ZGI6ASoSnAEK", - "GURlbGV0ZUluZmx1eERiSW50ZWdyYXRpb24SJS5hcGkuRGVsZXRlSW5mbHV4", - "RGJJbnRlZ3JhdGlvblJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHki", - "QILT5JMCOio4L2FwaS9hcHBsaWNhdGlvbnMve2FwcGxpY2F0aW9uX2lkfS9p", - "bnRlZ3JhdGlvbnMvaW5mbHV4ZGIStAEKHENyZWF0ZVRoaW5nc0JvYXJkSW50", - "ZWdyYXRpb24SKC5hcGkuQ3JlYXRlVGhpbmdzQm9hcmRJbnRlZ3JhdGlvblJl", - "cXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiUoLT5JMCTCJHL2FwaS9h", - "cHBsaWNhdGlvbnMve2ludGVncmF0aW9uLmFwcGxpY2F0aW9uX2lkfS9pbnRl", - "Z3JhdGlvbnMvdGhpbmdzYm9hcmQ6ASoSrwEKGUdldFRoaW5nc0JvYXJkSW50", - "ZWdyYXRpb24SJS5hcGkuR2V0VGhpbmdzQm9hcmRJbnRlZ3JhdGlvblJlcXVl", - "c3QaJi5hcGkuR2V0VGhpbmdzQm9hcmRJbnRlZ3JhdGlvblJlc3BvbnNlIkOC", - "0+STAj0SOy9hcGkvYXBwbGljYXRpb25zL3thcHBsaWNhdGlvbl9pZH0vaW50", - "ZWdyYXRpb25zL3RoaW5nc2JvYXJkErQBChxVcGRhdGVUaGluZ3NCb2FyZElu", - "dGVncmF0aW9uEiguYXBpLlVwZGF0ZVRoaW5nc0JvYXJkSW50ZWdyYXRpb25S", - "ZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IlKC0+STAkwaRy9hcGkv", - "YXBwbGljYXRpb25zL3tpbnRlZ3JhdGlvbi5hcHBsaWNhdGlvbl9pZH0vaW50", - "ZWdyYXRpb25zL3RoaW5nc2JvYXJkOgEqEqUBChxEZWxldGVUaGluZ3NCb2Fy", - "ZEludGVncmF0aW9uEiguYXBpLkRlbGV0ZVRoaW5nc0JvYXJkSW50ZWdyYXRp", - "b25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IkOC0+STAj0qOy9h", - "cGkvYXBwbGljYXRpb25zL3thcHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRpb25z", - "L3RoaW5nc2JvYXJkEq4BChpDcmVhdGVNeURldmljZXNJbnRlZ3JhdGlvbhIm", - "LmFwaS5DcmVhdGVNeURldmljZXNJbnRlZ3JhdGlvblJlcXVlc3QaFi5nb29n", - "bGUucHJvdG9idWYuRW1wdHkiUILT5JMCSiJFL2FwaS9hcHBsaWNhdGlvbnMv", - "e2ludGVncmF0aW9uLmFwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvbXlk", - "ZXZpY2VzOgEqEqcBChdHZXRNeURldmljZXNJbnRlZ3JhdGlvbhIjLmFwaS5H", - "ZXRNeURldmljZXNJbnRlZ3JhdGlvblJlcXVlc3QaJC5hcGkuR2V0TXlEZXZp", - "Y2VzSW50ZWdyYXRpb25SZXNwb25zZSJBgtPkkwI7EjkvYXBpL2FwcGxpY2F0", - "aW9ucy97YXBwbGljYXRpb25faWR9L2ludGVncmF0aW9ucy9teWRldmljZXMS", - "rgEKGlVwZGF0ZU15RGV2aWNlc0ludGVncmF0aW9uEiYuYXBpLlVwZGF0ZU15", - "RGV2aWNlc0ludGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5F", - "bXB0eSJQgtPkkwJKGkUvYXBpL2FwcGxpY2F0aW9ucy97aW50ZWdyYXRpb24u", - "YXBwbGljYXRpb25faWR9L2ludGVncmF0aW9ucy9teWRldmljZXM6ASoSnwEK", - "GkRlbGV0ZU15RGV2aWNlc0ludGVncmF0aW9uEiYuYXBpLkRlbGV0ZU15RGV2", - "aWNlc0ludGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0", - "eSJBgtPkkwI7KjkvYXBpL2FwcGxpY2F0aW9ucy97YXBwbGljYXRpb25faWR9", - "L2ludGVncmF0aW9ucy9teWRldmljZXMSrgEKGkNyZWF0ZUxvcmFDbG91ZElu", - "dGVncmF0aW9uEiYuYXBpLkNyZWF0ZUxvcmFDbG91ZEludGVncmF0aW9uUmVx", - "dWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSJQgtPkkwJKIkUvYXBpL2Fw", - "cGxpY2F0aW9ucy97aW50ZWdyYXRpb24uYXBwbGljYXRpb25faWR9L2ludGVn", - "cmF0aW9ucy9sb3JhY2xvdWQ6ASoSpwEKF0dldExvcmFDbG91ZEludGVncmF0", - "aW9uEiMuYXBpLkdldExvcmFDbG91ZEludGVncmF0aW9uUmVxdWVzdBokLmFw", - "aS5HZXRMb3JhQ2xvdWRJbnRlZ3JhdGlvblJlc3BvbnNlIkGC0+STAjsSOS9h", - "cGkvYXBwbGljYXRpb25zL3thcHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRpb25z", - "L2xvcmFjbG91ZBKuAQoaVXBkYXRlTG9yYUNsb3VkSW50ZWdyYXRpb24SJi5h", - "cGkuVXBkYXRlTG9yYUNsb3VkSW50ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xl", - "LnByb3RvYnVmLkVtcHR5IlCC0+STAkoaRS9hcGkvYXBwbGljYXRpb25zL3tp", - "bnRlZ3JhdGlvbi5hcHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL2xvcmFj", - "bG91ZDoBKhKfAQoaRGVsZXRlTG9yYUNsb3VkSW50ZWdyYXRpb24SJi5hcGku", - "RGVsZXRlTG9yYUNsb3VkSW50ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnBy", - "b3RvYnVmLkVtcHR5IkGC0+STAjsqOS9hcGkvYXBwbGljYXRpb25zL3thcHBs", - "aWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL2xvcmFjbG91ZBKwAQoaQ3JlYXRl", - "R2NwUHViU3ViSW50ZWdyYXRpb24SJi5hcGkuQ3JlYXRlR2NwUHViU3ViSW50", - "ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IlKC0+ST", - "AkwiRy9hcGkvYXBwbGljYXRpb25zL3tpbnRlZ3JhdGlvbi5hcHBsaWNhdGlv", - "bl9pZH0vaW50ZWdyYXRpb25zL2djcC1wdWItc3ViOgEqEqkBChdHZXRHY3BQ", - "dWJTdWJJbnRlZ3JhdGlvbhIjLmFwaS5HZXRHY3BQdWJTdWJJbnRlZ3JhdGlv", - "blJlcXVlc3QaJC5hcGkuR2V0R2NwUHViU3ViSW50ZWdyYXRpb25SZXNwb25z", - "ZSJDgtPkkwI9EjsvYXBpL2FwcGxpY2F0aW9ucy97YXBwbGljYXRpb25faWR9", - "L2ludGVncmF0aW9ucy9nY3AtcHViLXN1YhKwAQoaVXBkYXRlR2NwUHViU3Vi", - "SW50ZWdyYXRpb24SJi5hcGkuVXBkYXRlR2NwUHViU3ViSW50ZWdyYXRpb25S", - "ZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IlKC0+STAkwaRy9hcGkv", - "YXBwbGljYXRpb25zL3tpbnRlZ3JhdGlvbi5hcHBsaWNhdGlvbl9pZH0vaW50", - "ZWdyYXRpb25zL2djcC1wdWItc3ViOgEqEqEBChpEZWxldGVHY3BQdWJTdWJJ", - "bnRlZ3JhdGlvbhImLmFwaS5EZWxldGVHY3BQdWJTdWJJbnRlZ3JhdGlvblJl", - "cXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiQ4LT5JMCPSo7L2FwaS9h", - "cHBsaWNhdGlvbnMve2FwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvZ2Nw", - "LXB1Yi1zdWISpgEKF0NyZWF0ZUF3c1Nuc0ludGVncmF0aW9uEiMuYXBpLkNy", - "ZWF0ZUF3c1Nuc0ludGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1", - "Zi5FbXB0eSJOgtPkkwJIIkMvYXBpL2FwcGxpY2F0aW9ucy97aW50ZWdyYXRp", - "b24uYXBwbGljYXRpb25faWR9L2ludGVncmF0aW9ucy9hd3Mtc25zOgEqEpwB", - "ChRHZXRBd3NTbnNJbnRlZ3JhdGlvbhIgLmFwaS5HZXRBd3NTbnNJbnRlZ3Jh", - "dGlvblJlcXVlc3QaIS5hcGkuR2V0QXdzU25zSW50ZWdyYXRpb25SZXNwb25z", - "ZSI/gtPkkwI5EjcvYXBpL2FwcGxpY2F0aW9ucy97YXBwbGljYXRpb25faWR9", - "L2ludGVncmF0aW9ucy9hd3Mtc25zEqYBChdVcGRhdGVBd3NTbnNJbnRlZ3Jh", - "dGlvbhIjLmFwaS5VcGRhdGVBd3NTbnNJbnRlZ3JhdGlvblJlcXVlc3QaFi5n", - "b29nbGUucHJvdG9idWYuRW1wdHkiToLT5JMCSBpDL2FwaS9hcHBsaWNhdGlv", - "bnMve2ludGVncmF0aW9uLmFwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMv", - "YXdzLXNuczoBKhKXAQoXRGVsZXRlQXdzU25zSW50ZWdyYXRpb24SIy5hcGku", - "RGVsZXRlQXdzU25zSW50ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3Rv", - "YnVmLkVtcHR5Ij+C0+STAjkqNy9hcGkvYXBwbGljYXRpb25zL3thcHBsaWNh", - "dGlvbl9pZH0vaW50ZWdyYXRpb25zL2F3cy1zbnMSwgEKIENyZWF0ZUF6dXJl", - "U2VydmljZUJ1c0ludGVncmF0aW9uEiwuYXBpLkNyZWF0ZUF6dXJlU2Vydmlj", - "ZUJ1c0ludGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0", - "eSJYgtPkkwJSIk0vYXBpL2FwcGxpY2F0aW9ucy97aW50ZWdyYXRpb24uYXBw", - "bGljYXRpb25faWR9L2ludGVncmF0aW9ucy9henVyZS1zZXJ2aWNlLWJ1czoB", - "KhLBAQodR2V0QXp1cmVTZXJ2aWNlQnVzSW50ZWdyYXRpb24SKS5hcGkuR2V0", - "QXp1cmVTZXJ2aWNlQnVzSW50ZWdyYXRpb25SZXF1ZXN0GiouYXBpLkdldEF6", - "dXJlU2VydmljZUJ1c0ludGVncmF0aW9uUmVzcG9uc2UiSYLT5JMCQxJBL2Fw", - "aS9hcHBsaWNhdGlvbnMve2FwcGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMv", - "YXp1cmUtc2VydmljZS1idXMSwgEKIFVwZGF0ZUF6dXJlU2VydmljZUJ1c0lu", - "dGVncmF0aW9uEiwuYXBpLlVwZGF0ZUF6dXJlU2VydmljZUJ1c0ludGVncmF0", - "aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSJYgtPkkwJSGk0v", - "YXBpL2FwcGxpY2F0aW9ucy97aW50ZWdyYXRpb24uYXBwbGljYXRpb25faWR9", - "L2ludGVncmF0aW9ucy9henVyZS1zZXJ2aWNlLWJ1czoBKhKzAQogRGVsZXRl", - "QXp1cmVTZXJ2aWNlQnVzSW50ZWdyYXRpb24SLC5hcGkuRGVsZXRlQXp1cmVT", - "ZXJ2aWNlQnVzSW50ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVm", - "LkVtcHR5IkmC0+STAkMqQS9hcGkvYXBwbGljYXRpb25zL3thcHBsaWNhdGlv", - "bl9pZH0vaW50ZWdyYXRpb25zL2F6dXJlLXNlcnZpY2UtYnVzErUBChxDcmVh", - "dGVQaWxvdFRoaW5nc0ludGVncmF0aW9uEiguYXBpLkNyZWF0ZVBpbG90VGhp", - "bmdzSW50ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5", - "IlOC0+STAk0iSC9hcGkvYXBwbGljYXRpb25zL3tpbnRlZ3JhdGlvbi5hcHBs", - "aWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL3BpbG90LXRoaW5nczoBKhKwAQoZ", - "R2V0UGlsb3RUaGluZ3NJbnRlZ3JhdGlvbhIlLmFwaS5HZXRQaWxvdFRoaW5n", - "c0ludGVncmF0aW9uUmVxdWVzdBomLmFwaS5HZXRQaWxvdFRoaW5nc0ludGVn", - "cmF0aW9uUmVzcG9uc2UiRILT5JMCPhI8L2FwaS9hcHBsaWNhdGlvbnMve2Fw", - "cGxpY2F0aW9uX2lkfS9pbnRlZ3JhdGlvbnMvcGlsb3QtdGhpbmdzErUBChxV", - "cGRhdGVQaWxvdFRoaW5nc0ludGVncmF0aW9uEiguYXBpLlVwZGF0ZVBpbG90", - "VGhpbmdzSW50ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVt", - "cHR5IlOC0+STAk0aSC9hcGkvYXBwbGljYXRpb25zL3tpbnRlZ3JhdGlvbi5h", - "cHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL3BpbG90LXRoaW5nczoBKhKm", - "AQocRGVsZXRlUGlsb3RUaGluZ3NJbnRlZ3JhdGlvbhIoLmFwaS5EZWxldGVQ", - "aWxvdFRoaW5nc0ludGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1", - "Zi5FbXB0eSJEgtPkkwI+KjwvYXBpL2FwcGxpY2F0aW9ucy97YXBwbGljYXRp", - "b25faWR9L2ludGVncmF0aW9ucy9waWxvdC10aGluZ3MSogEKFkNyZWF0ZUlm", - "dHR0SW50ZWdyYXRpb24SIi5hcGkuQ3JlYXRlSWZ0dHRJbnRlZ3JhdGlvblJl", - "cXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiTILT5JMCRiJBL2FwaS9h", - "cHBsaWNhdGlvbnMve2ludGVncmF0aW9uLmFwcGxpY2F0aW9uX2lkfS9pbnRl", - "Z3JhdGlvbnMvaWZ0dHQ6ASoSlwEKE0dldElmdHR0SW50ZWdyYXRpb24SHy5h", - "cGkuR2V0SWZ0dHRJbnRlZ3JhdGlvblJlcXVlc3QaIC5hcGkuR2V0SWZ0dHRJ", - "bnRlZ3JhdGlvblJlc3BvbnNlIj2C0+STAjcSNS9hcGkvYXBwbGljYXRpb25z", - "L3thcHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL2lmdHR0EqIBChZVcGRh", - "dGVJZnR0dEludGVncmF0aW9uEiIuYXBpLlVwZGF0ZUlmdHR0SW50ZWdyYXRp", - "b25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IkyC0+STAkYaQS9h", - "cGkvYXBwbGljYXRpb25zL3tpbnRlZ3JhdGlvbi5hcHBsaWNhdGlvbl9pZH0v", - "aW50ZWdyYXRpb25zL2lmdHR0OgEqEpMBChZEZWxldGVJZnR0dEludGVncmF0", - "aW9uEiIuYXBpLkRlbGV0ZUlmdHR0SW50ZWdyYXRpb25SZXF1ZXN0GhYuZ29v", - "Z2xlLnByb3RvYnVmLkVtcHR5Ij2C0+STAjcqNS9hcGkvYXBwbGljYXRpb25z", - "L3thcHBsaWNhdGlvbl9pZH0vaW50ZWdyYXRpb25zL2lmdHR0EuEBCihHZW5l", - "cmF0ZU1xdHRJbnRlZ3JhdGlvbkNsaWVudENlcnRpZmljYXRlEjQuYXBpLkdl", - "bmVyYXRlTXF0dEludGVncmF0aW9uQ2xpZW50Q2VydGlmaWNhdGVSZXF1ZXN0", - "GjUuYXBpLkdlbmVyYXRlTXF0dEludGVncmF0aW9uQ2xpZW50Q2VydGlmaWNh", - "dGVSZXNwb25zZSJIgtPkkwJCIkAvYXBpL2FwcGxpY2F0aW9ucy97YXBwbGlj", - "YXRpb25faWR9L2ludGVncmF0aW9ucy9tcXR0L2NlcnRpZmljYXRlQmgKEWlv", - "LmNoaXJwc3RhY2suYXBpQhBBcHBsaWNhdGlvblByb3RvUAFaLmdpdGh1Yi5j", - "b20vY2hpcnBzdGFjay9jaGlycHN0YWNrL2FwaS9nby92NC9hcGmqAg5DaGly", - "cHN0YWNrLkFwaWIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.Api.Encoding), typeof(global::Chirpstack.Api.IntegrationKind), typeof(global::Chirpstack.Api.InfluxDbPrecision), typeof(global::Chirpstack.Api.InfluxDbVersion), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.Application), global::Chirpstack.Api.Application.Parser, new[]{ "Id", "Name", "Description", "TenantId", "Tags" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ApplicationListItem), global::Chirpstack.Api.ApplicationListItem.Parser, new[]{ "Id", "CreatedAt", "UpdatedAt", "Name", "Description" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateApplicationRequest), global::Chirpstack.Api.CreateApplicationRequest.Parser, new[]{ "Application" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateApplicationResponse), global::Chirpstack.Api.CreateApplicationResponse.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetApplicationRequest), global::Chirpstack.Api.GetApplicationRequest.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetApplicationResponse), global::Chirpstack.Api.GetApplicationResponse.Parser, new[]{ "Application", "CreatedAt", "UpdatedAt", "MeasurementKeys" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateApplicationRequest), global::Chirpstack.Api.UpdateApplicationRequest.Parser, new[]{ "Application" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteApplicationRequest), global::Chirpstack.Api.DeleteApplicationRequest.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListApplicationsRequest), global::Chirpstack.Api.ListApplicationsRequest.Parser, new[]{ "Limit", "Offset", "Search", "TenantId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListApplicationsResponse), global::Chirpstack.Api.ListApplicationsResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListIntegrationsRequest), global::Chirpstack.Api.ListIntegrationsRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.IntegrationListItem), global::Chirpstack.Api.IntegrationListItem.Parser, new[]{ "Kind" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListIntegrationsResponse), global::Chirpstack.Api.ListIntegrationsResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.HttpIntegration), global::Chirpstack.Api.HttpIntegration.Parser, new[]{ "ApplicationId", "Headers", "Encoding", "EventEndpointUrl" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateHttpIntegrationRequest), global::Chirpstack.Api.CreateHttpIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetHttpIntegrationRequest), global::Chirpstack.Api.GetHttpIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetHttpIntegrationResponse), global::Chirpstack.Api.GetHttpIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateHttpIntegrationRequest), global::Chirpstack.Api.UpdateHttpIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteHttpIntegrationRequest), global::Chirpstack.Api.DeleteHttpIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.InfluxDbIntegration), global::Chirpstack.Api.InfluxDbIntegration.Parser, new[]{ "ApplicationId", "Endpoint", "Db", "Username", "Password", "RetentionPolicyName", "Precision", "Version", "Token", "Organization", "Bucket" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateInfluxDbIntegrationRequest), global::Chirpstack.Api.CreateInfluxDbIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetInfluxDbIntegrationRequest), global::Chirpstack.Api.GetInfluxDbIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetInfluxDbIntegrationResponse), global::Chirpstack.Api.GetInfluxDbIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateInfluxDbIntegrationRequest), global::Chirpstack.Api.UpdateInfluxDbIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteInfluxDbIntegrationRequest), global::Chirpstack.Api.DeleteInfluxDbIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ThingsBoardIntegration), global::Chirpstack.Api.ThingsBoardIntegration.Parser, new[]{ "ApplicationId", "Server" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateThingsBoardIntegrationRequest), global::Chirpstack.Api.CreateThingsBoardIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetThingsBoardIntegrationRequest), global::Chirpstack.Api.GetThingsBoardIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetThingsBoardIntegrationResponse), global::Chirpstack.Api.GetThingsBoardIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateThingsBoardIntegrationRequest), global::Chirpstack.Api.UpdateThingsBoardIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteThingsBoardIntegrationRequest), global::Chirpstack.Api.DeleteThingsBoardIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.MyDevicesIntegration), global::Chirpstack.Api.MyDevicesIntegration.Parser, new[]{ "ApplicationId", "Endpoint" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateMyDevicesIntegrationRequest), global::Chirpstack.Api.CreateMyDevicesIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetMyDevicesIntegrationRequest), global::Chirpstack.Api.GetMyDevicesIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetMyDevicesIntegrationResponse), global::Chirpstack.Api.GetMyDevicesIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateMyDevicesIntegrationRequest), global::Chirpstack.Api.UpdateMyDevicesIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteMyDevicesIntegrationRequest), global::Chirpstack.Api.DeleteMyDevicesIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.LoraCloudIntegration), global::Chirpstack.Api.LoraCloudIntegration.Parser, new[]{ "ApplicationId", "ModemGeolocationServices" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.LoraCloudModemGeolocationServices), global::Chirpstack.Api.LoraCloudModemGeolocationServices.Parser, new[]{ "Token", "ModemEnabled", "ForwardFPorts", "GnssUseRxTime", "GnssUseGatewayLocation", "ParseTlv", "GeolocationBufferTtl", "GeolocationMinBufferSize", "GeolocationTdoa", "GeolocationRssi", "GeolocationGnss", "GeolocationGnssPayloadField", "GeolocationGnssUseRxTime", "GeolocationWifi", "GeolocationWifiPayloadField" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateLoraCloudIntegrationRequest), global::Chirpstack.Api.CreateLoraCloudIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetLoraCloudIntegrationRequest), global::Chirpstack.Api.GetLoraCloudIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetLoraCloudIntegrationResponse), global::Chirpstack.Api.GetLoraCloudIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateLoraCloudIntegrationRequest), global::Chirpstack.Api.UpdateLoraCloudIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteLoraCloudIntegrationRequest), global::Chirpstack.Api.DeleteLoraCloudIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GcpPubSubIntegration), global::Chirpstack.Api.GcpPubSubIntegration.Parser, new[]{ "ApplicationId", "Encoding", "CredentialsFile", "ProjectId", "TopicName" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateGcpPubSubIntegrationRequest), global::Chirpstack.Api.CreateGcpPubSubIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetGcpPubSubIntegrationRequest), global::Chirpstack.Api.GetGcpPubSubIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetGcpPubSubIntegrationResponse), global::Chirpstack.Api.GetGcpPubSubIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateGcpPubSubIntegrationRequest), global::Chirpstack.Api.UpdateGcpPubSubIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteGcpPubSubIntegrationRequest), global::Chirpstack.Api.DeleteGcpPubSubIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.AwsSnsIntegration), global::Chirpstack.Api.AwsSnsIntegration.Parser, new[]{ "ApplicationId", "Encoding", "Region", "AccessKeyId", "SecretAccessKey", "TopicArn" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateAwsSnsIntegrationRequest), global::Chirpstack.Api.CreateAwsSnsIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetAwsSnsIntegrationRequest), global::Chirpstack.Api.GetAwsSnsIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetAwsSnsIntegrationResponse), global::Chirpstack.Api.GetAwsSnsIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateAwsSnsIntegrationRequest), global::Chirpstack.Api.UpdateAwsSnsIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteAwsSnsIntegrationRequest), global::Chirpstack.Api.DeleteAwsSnsIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.AzureServiceBusIntegration), global::Chirpstack.Api.AzureServiceBusIntegration.Parser, new[]{ "ApplicationId", "Encoding", "ConnectionString", "PublishName" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateAzureServiceBusIntegrationRequest), global::Chirpstack.Api.CreateAzureServiceBusIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetAzureServiceBusIntegrationRequest), global::Chirpstack.Api.GetAzureServiceBusIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetAzureServiceBusIntegrationResponse), global::Chirpstack.Api.GetAzureServiceBusIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateAzureServiceBusIntegrationRequest), global::Chirpstack.Api.UpdateAzureServiceBusIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteAzureServiceBusIntegrationRequest), global::Chirpstack.Api.DeleteAzureServiceBusIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.PilotThingsIntegration), global::Chirpstack.Api.PilotThingsIntegration.Parser, new[]{ "ApplicationId", "Server", "Token" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreatePilotThingsIntegrationRequest), global::Chirpstack.Api.CreatePilotThingsIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetPilotThingsIntegrationRequest), global::Chirpstack.Api.GetPilotThingsIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetPilotThingsIntegrationResponse), global::Chirpstack.Api.GetPilotThingsIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdatePilotThingsIntegrationRequest), global::Chirpstack.Api.UpdatePilotThingsIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeletePilotThingsIntegrationRequest), global::Chirpstack.Api.DeletePilotThingsIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.IftttIntegration), global::Chirpstack.Api.IftttIntegration.Parser, new[]{ "ApplicationId", "Key", "UplinkValues", "ArbitraryJson", "EventPrefix" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateIftttIntegrationRequest), global::Chirpstack.Api.CreateIftttIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetIftttIntegrationRequest), global::Chirpstack.Api.GetIftttIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetIftttIntegrationResponse), global::Chirpstack.Api.GetIftttIntegrationResponse.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateIftttIntegrationRequest), global::Chirpstack.Api.UpdateIftttIntegrationRequest.Parser, new[]{ "Integration" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteIftttIntegrationRequest), global::Chirpstack.Api.DeleteIftttIntegrationRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateRequest), global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateRequest.Parser, new[]{ "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateResponse), global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateResponse.Parser, new[]{ "TlsCert", "TlsKey", "CaCert", "ExpiresAt" }, null, null, null, null) - })); - } - #endregion - - } - #region Enums - public enum Encoding { - [pbr::OriginalName("JSON")] Json = 0, - [pbr::OriginalName("PROTOBUF")] Protobuf = 1, - } - - public enum IntegrationKind { - [pbr::OriginalName("HTTP")] Http = 0, - [pbr::OriginalName("INFLUX_DB")] InfluxDb = 1, - [pbr::OriginalName("THINGS_BOARD")] ThingsBoard = 2, - [pbr::OriginalName("MY_DEVICES")] MyDevices = 3, - [pbr::OriginalName("LORA_CLOUD")] LoraCloud = 4, - [pbr::OriginalName("GCP_PUB_SUB")] GcpPubSub = 5, - [pbr::OriginalName("AWS_SNS")] AwsSns = 6, - [pbr::OriginalName("AZURE_SERVICE_BUS")] AzureServiceBus = 7, - [pbr::OriginalName("PILOT_THINGS")] PilotThings = 8, - [pbr::OriginalName("MQTT_GLOBAL")] MqttGlobal = 9, - [pbr::OriginalName("IFTTT")] Ifttt = 10, - } - - public enum InfluxDbPrecision { - [pbr::OriginalName("NS")] Ns = 0, - [pbr::OriginalName("U")] U = 1, - [pbr::OriginalName("MS")] Ms = 2, - [pbr::OriginalName("S")] S = 3, - [pbr::OriginalName("M")] M = 4, - [pbr::OriginalName("H")] H = 5, - } - - public enum InfluxDbVersion { - [pbr::OriginalName("INFLUXDB_1")] Influxdb1 = 0, - [pbr::OriginalName("INFLUXDB_2")] Influxdb2 = 1, - } - - #endregion - - #region Messages - public sealed partial class Application : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Application()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Application() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Application(Application other) : this() { - id_ = other.id_; - name_ = other.name_; - description_ = other.description_; - tenantId_ = other.tenantId_; - tags_ = other.tags_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Application Clone() { - return new Application(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Application ID (UUID). - /// Note: on create this will be automatically generated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - /// - /// Application name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 3; - private string description_ = ""; - /// - /// Application description. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 4; - private string tenantId_ = ""; - /// - /// Tenant ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// 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(); - /// - /// Tags (user defined). - /// These tags can be used to add additional information to the application. - /// These tags are exposed in all the integration events of devices under - /// this application. - /// - [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 Application); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Application other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (Description != other.Description) return false; - if (TenantId != other.TenantId) return false; - 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 (Id.Length != 0) hash ^= Id.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - 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 (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description); - } - if (TenantId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(TenantId); - } - 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 (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description); - } - if (TenantId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(TenantId); - } - 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 (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - 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(Application other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - tags_.Add(other.tags_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Description = input.ReadString(); - break; - } - case 34: { - TenantId = input.ReadString(); - break; - } - case 42: { - tags_.AddEntriesFrom(input, _map_tags_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Description = input.ReadString(); - break; - } - case 34: { - TenantId = input.ReadString(); - break; - } - case 42: { - tags_.AddEntriesFrom(ref input, _map_tags_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class ApplicationListItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApplicationListItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ApplicationListItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ApplicationListItem(ApplicationListItem other) : this() { - id_ = other.id_; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - name_ = other.name_; - description_ = other.description_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ApplicationListItem Clone() { - return new ApplicationListItem(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 4; - private string name_ = ""; - /// - /// Application name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 5; - private string description_ = ""; - /// - /// Application description. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ApplicationListItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ApplicationListItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - if (Name != other.Name) return false; - if (Description != other.Description) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Description); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Description); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ApplicationListItem other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 42: { - Description = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 42: { - Description = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateApplicationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateApplicationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateApplicationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateApplicationRequest(CreateApplicationRequest other) : this() { - application_ = other.application_ != null ? other.application_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateApplicationRequest Clone() { - return new CreateApplicationRequest(this); - } - - /// Field number for the "application" field. - public const int ApplicationFieldNumber = 1; - private global::Chirpstack.Api.Application application_; - /// - /// Application object to create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.Application Application { - get { return application_; } - set { - application_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateApplicationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateApplicationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Application, other.Application)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (application_ != null) hash ^= Application.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (application_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Application); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (application_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Application); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (application_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Application); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateApplicationRequest other) { - if (other == null) { - return; - } - if (other.application_ != null) { - if (application_ == null) { - Application = new global::Chirpstack.Api.Application(); - } - Application.MergeFrom(other.Application); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (application_ == null) { - Application = new global::Chirpstack.Api.Application(); - } - input.ReadMessage(Application); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (application_ == null) { - Application = new global::Chirpstack.Api.Application(); - } - input.ReadMessage(Application); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateApplicationResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateApplicationResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateApplicationResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateApplicationResponse(CreateApplicationResponse other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateApplicationResponse Clone() { - return new CreateApplicationResponse(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateApplicationResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateApplicationResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateApplicationResponse other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetApplicationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetApplicationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetApplicationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetApplicationRequest(GetApplicationRequest other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetApplicationRequest Clone() { - return new GetApplicationRequest(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetApplicationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetApplicationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetApplicationRequest other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetApplicationResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetApplicationResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetApplicationResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetApplicationResponse(GetApplicationResponse other) : this() { - application_ = other.application_ != null ? other.application_.Clone() : null; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - measurementKeys_ = other.measurementKeys_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetApplicationResponse Clone() { - return new GetApplicationResponse(this); - } - - /// Field number for the "application" field. - public const int ApplicationFieldNumber = 1; - private global::Chirpstack.Api.Application application_; - /// - /// Application object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.Application Application { - get { return application_; } - set { - application_ = value; - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - /// Field number for the "measurement_keys" field. - public const int MeasurementKeysFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_measurementKeys_codec - = pb::FieldCodec.ForString(34); - private readonly pbc::RepeatedField measurementKeys_ = new pbc::RepeatedField(); - /// - /// Measurement keys. - /// This contains the measurement keys from all the device-profiles that - /// are used by the devices under this application. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField MeasurementKeys { - get { return measurementKeys_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetApplicationResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetApplicationResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Application, other.Application)) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - if(!measurementKeys_.Equals(other.measurementKeys_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (application_ != null) hash ^= Application.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - hash ^= measurementKeys_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (application_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Application); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - measurementKeys_.WriteTo(output, _repeated_measurementKeys_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (application_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Application); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - measurementKeys_.WriteTo(ref output, _repeated_measurementKeys_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (application_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Application); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - size += measurementKeys_.CalculateSize(_repeated_measurementKeys_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetApplicationResponse other) { - if (other == null) { - return; - } - if (other.application_ != null) { - if (application_ == null) { - Application = new global::Chirpstack.Api.Application(); - } - Application.MergeFrom(other.Application); - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - measurementKeys_.Add(other.measurementKeys_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (application_ == null) { - Application = new global::Chirpstack.Api.Application(); - } - input.ReadMessage(Application); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - measurementKeys_.AddEntriesFrom(input, _repeated_measurementKeys_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (application_ == null) { - Application = new global::Chirpstack.Api.Application(); - } - input.ReadMessage(Application); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - measurementKeys_.AddEntriesFrom(ref input, _repeated_measurementKeys_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateApplicationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateApplicationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateApplicationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateApplicationRequest(UpdateApplicationRequest other) : this() { - application_ = other.application_ != null ? other.application_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateApplicationRequest Clone() { - return new UpdateApplicationRequest(this); - } - - /// Field number for the "application" field. - public const int ApplicationFieldNumber = 1; - private global::Chirpstack.Api.Application application_; - /// - /// Application object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.Application Application { - get { return application_; } - set { - application_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateApplicationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateApplicationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Application, other.Application)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (application_ != null) hash ^= Application.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (application_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Application); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (application_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Application); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (application_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Application); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateApplicationRequest other) { - if (other == null) { - return; - } - if (other.application_ != null) { - if (application_ == null) { - Application = new global::Chirpstack.Api.Application(); - } - Application.MergeFrom(other.Application); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (application_ == null) { - Application = new global::Chirpstack.Api.Application(); - } - input.ReadMessage(Application); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (application_ == null) { - Application = new global::Chirpstack.Api.Application(); - } - input.ReadMessage(Application); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteApplicationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteApplicationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteApplicationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteApplicationRequest(DeleteApplicationRequest other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteApplicationRequest Clone() { - return new DeleteApplicationRequest(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteApplicationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteApplicationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteApplicationRequest other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListApplicationsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListApplicationsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListApplicationsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListApplicationsRequest(ListApplicationsRequest other) : this() { - limit_ = other.limit_; - offset_ = other.offset_; - search_ = other.search_; - tenantId_ = other.tenantId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListApplicationsRequest Clone() { - return new ListApplicationsRequest(this); - } - - /// Field number for the "limit" field. - public const int LimitFieldNumber = 1; - private uint limit_; - /// - /// Max number of applications to return in the result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Limit { - get { return limit_; } - set { - limit_ = value; - } - } - - /// Field number for the "offset" field. - public const int OffsetFieldNumber = 2; - private uint offset_; - /// - /// Offset in the result-set (for pagination). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Offset { - get { return offset_; } - set { - offset_ = value; - } - } - - /// Field number for the "search" field. - public const int SearchFieldNumber = 3; - private string search_ = ""; - /// - /// If set, the given string will be used to search on name (optional). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Search { - get { return search_; } - set { - search_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 4; - private string tenantId_ = ""; - /// - /// Tenant ID to list the applications for. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListApplicationsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListApplicationsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Limit != other.Limit) return false; - if (Offset != other.Offset) return false; - if (Search != other.Search) return false; - if (TenantId != other.TenantId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Limit != 0) hash ^= Limit.GetHashCode(); - if (Offset != 0) hash ^= Offset.GetHashCode(); - if (Search.Length != 0) hash ^= Search.GetHashCode(); - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (Search.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Search); - } - if (TenantId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(TenantId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (Search.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Search); - } - if (TenantId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(TenantId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Limit != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); - } - if (Offset != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); - } - if (Search.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); - } - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListApplicationsRequest other) { - if (other == null) { - return; - } - if (other.Limit != 0) { - Limit = other.Limit; - } - if (other.Offset != 0) { - Offset = other.Offset; - } - if (other.Search.Length != 0) { - Search = other.Search; - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - case 26: { - Search = input.ReadString(); - break; - } - case 34: { - TenantId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - case 26: { - Search = input.ReadString(); - break; - } - case 34: { - TenantId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListApplicationsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListApplicationsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListApplicationsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListApplicationsResponse(ListApplicationsResponse other) : this() { - totalCount_ = other.totalCount_; - result_ = other.result_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListApplicationsResponse Clone() { - return new ListApplicationsResponse(this); - } - - /// Field number for the "total_count" field. - public const int TotalCountFieldNumber = 1; - private uint totalCount_; - /// - /// Total number of applications. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TotalCount { - get { return totalCount_; } - set { - totalCount_ = value; - } - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_result_codec - = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.ApplicationListItem.Parser); - private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); - /// - /// Result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Result { - get { return result_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListApplicationsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListApplicationsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TotalCount != other.TotalCount) return false; - if(!result_.Equals(other.result_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TotalCount != 0) hash ^= TotalCount.GetHashCode(); - hash ^= result_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(ref output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TotalCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); - } - size += result_.CalculateSize(_repeated_result_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListApplicationsResponse other) { - if (other == null) { - return; - } - if (other.TotalCount != 0) { - TotalCount = other.TotalCount; - } - result_.Add(other.result_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(input, _repeated_result_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(ref input, _repeated_result_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListIntegrationsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListIntegrationsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListIntegrationsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListIntegrationsRequest(ListIntegrationsRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListIntegrationsRequest Clone() { - return new ListIntegrationsRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListIntegrationsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListIntegrationsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListIntegrationsRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class IntegrationListItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IntegrationListItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IntegrationListItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IntegrationListItem(IntegrationListItem other) : this() { - kind_ = other.kind_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IntegrationListItem Clone() { - return new IntegrationListItem(this); - } - - /// Field number for the "kind" field. - public const int KindFieldNumber = 1; - private global::Chirpstack.Api.IntegrationKind kind_ = global::Chirpstack.Api.IntegrationKind.Http; - /// - /// Integration kind. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.IntegrationKind Kind { - get { return kind_; } - set { - kind_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as IntegrationListItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(IntegrationListItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Kind != other.Kind) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Kind != global::Chirpstack.Api.IntegrationKind.Http) hash ^= Kind.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Kind != global::Chirpstack.Api.IntegrationKind.Http) { - output.WriteRawTag(8); - output.WriteEnum((int) Kind); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Kind != global::Chirpstack.Api.IntegrationKind.Http) { - output.WriteRawTag(8); - output.WriteEnum((int) Kind); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Kind != global::Chirpstack.Api.IntegrationKind.Http) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(IntegrationListItem other) { - if (other == null) { - return; - } - if (other.Kind != global::Chirpstack.Api.IntegrationKind.Http) { - Kind = other.Kind; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Kind = (global::Chirpstack.Api.IntegrationKind) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Kind = (global::Chirpstack.Api.IntegrationKind) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListIntegrationsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListIntegrationsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListIntegrationsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListIntegrationsResponse(ListIntegrationsResponse other) : this() { - totalCount_ = other.totalCount_; - result_ = other.result_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListIntegrationsResponse Clone() { - return new ListIntegrationsResponse(this); - } - - /// Field number for the "total_count" field. - public const int TotalCountFieldNumber = 1; - private uint totalCount_; - /// - /// Total number of integrations available within the result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TotalCount { - get { return totalCount_; } - set { - totalCount_ = value; - } - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_result_codec - = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.IntegrationListItem.Parser); - private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); - /// - /// Integrations within result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Result { - get { return result_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListIntegrationsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListIntegrationsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TotalCount != other.TotalCount) return false; - if(!result_.Equals(other.result_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TotalCount != 0) hash ^= TotalCount.GetHashCode(); - hash ^= result_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(ref output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TotalCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); - } - size += result_.CalculateSize(_repeated_result_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListIntegrationsResponse other) { - if (other == null) { - return; - } - if (other.TotalCount != 0) { - TotalCount = other.TotalCount; - } - result_.Add(other.result_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(input, _repeated_result_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(ref input, _repeated_result_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class HttpIntegration : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HttpIntegration()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[13]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HttpIntegration() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HttpIntegration(HttpIntegration other) : this() { - applicationId_ = other.applicationId_; - headers_ = other.headers_.Clone(); - encoding_ = other.encoding_; - eventEndpointUrl_ = other.eventEndpointUrl_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HttpIntegration Clone() { - return new HttpIntegration(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "headers" field. - public const int HeadersFieldNumber = 2; - private static readonly pbc::MapField.Codec _map_headers_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 18); - private readonly pbc::MapField headers_ = new pbc::MapField(); - /// - /// HTTP headers to set when making requests. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Headers { - get { return headers_; } - } - - /// Field number for the "encoding" field. - public const int EncodingFieldNumber = 3; - private global::Chirpstack.Api.Encoding encoding_ = global::Chirpstack.Api.Encoding.Json; - /// - /// Payload encoding. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.Encoding Encoding { - get { return encoding_; } - set { - encoding_ = value; - } - } - - /// Field number for the "event_endpoint_url" field. - public const int EventEndpointUrlFieldNumber = 4; - private string eventEndpointUrl_ = ""; - /// - /// Event endpoint URL. - /// The HTTP integration will POST all events to this enpoint. The request - /// will contain a query parameters "event" containing the type of the - /// event. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EventEndpointUrl { - get { return eventEndpointUrl_; } - set { - eventEndpointUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HttpIntegration); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HttpIntegration other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - if (!Headers.Equals(other.Headers)) return false; - if (Encoding != other.Encoding) return false; - if (EventEndpointUrl != other.EventEndpointUrl) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - hash ^= Headers.GetHashCode(); - if (Encoding != global::Chirpstack.Api.Encoding.Json) hash ^= Encoding.GetHashCode(); - if (EventEndpointUrl.Length != 0) hash ^= EventEndpointUrl.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - headers_.WriteTo(output, _map_headers_codec); - if (Encoding != global::Chirpstack.Api.Encoding.Json) { - output.WriteRawTag(24); - output.WriteEnum((int) Encoding); - } - if (EventEndpointUrl.Length != 0) { - output.WriteRawTag(34); - output.WriteString(EventEndpointUrl); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - headers_.WriteTo(ref output, _map_headers_codec); - if (Encoding != global::Chirpstack.Api.Encoding.Json) { - output.WriteRawTag(24); - output.WriteEnum((int) Encoding); - } - if (EventEndpointUrl.Length != 0) { - output.WriteRawTag(34); - output.WriteString(EventEndpointUrl); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - size += headers_.CalculateSize(_map_headers_codec); - if (Encoding != global::Chirpstack.Api.Encoding.Json) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Encoding); - } - if (EventEndpointUrl.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EventEndpointUrl); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HttpIntegration other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - headers_.Add(other.headers_); - if (other.Encoding != global::Chirpstack.Api.Encoding.Json) { - Encoding = other.Encoding; - } - if (other.EventEndpointUrl.Length != 0) { - EventEndpointUrl = other.EventEndpointUrl; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 18: { - headers_.AddEntriesFrom(input, _map_headers_codec); - break; - } - case 24: { - Encoding = (global::Chirpstack.Api.Encoding) input.ReadEnum(); - break; - } - case 34: { - EventEndpointUrl = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 18: { - headers_.AddEntriesFrom(ref input, _map_headers_codec); - break; - } - case 24: { - Encoding = (global::Chirpstack.Api.Encoding) input.ReadEnum(); - break; - } - case 34: { - EventEndpointUrl = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateHttpIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateHttpIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[14]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateHttpIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateHttpIntegrationRequest(CreateHttpIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateHttpIntegrationRequest Clone() { - return new CreateHttpIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.HttpIntegration integration_; - /// - /// Integration object to create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.HttpIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateHttpIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateHttpIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateHttpIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.HttpIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.HttpIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.HttpIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetHttpIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetHttpIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[15]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetHttpIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetHttpIntegrationRequest(GetHttpIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetHttpIntegrationRequest Clone() { - return new GetHttpIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetHttpIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetHttpIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetHttpIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetHttpIntegrationResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetHttpIntegrationResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[16]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetHttpIntegrationResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetHttpIntegrationResponse(GetHttpIntegrationResponse other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetHttpIntegrationResponse Clone() { - return new GetHttpIntegrationResponse(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.HttpIntegration integration_; - /// - /// Integration object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.HttpIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetHttpIntegrationResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetHttpIntegrationResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetHttpIntegrationResponse other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.HttpIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.HttpIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.HttpIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateHttpIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateHttpIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[17]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateHttpIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateHttpIntegrationRequest(UpdateHttpIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateHttpIntegrationRequest Clone() { - return new UpdateHttpIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.HttpIntegration integration_; - /// - /// Integration object to update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.HttpIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateHttpIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateHttpIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateHttpIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.HttpIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.HttpIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.HttpIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteHttpIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteHttpIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[18]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteHttpIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteHttpIntegrationRequest(DeleteHttpIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteHttpIntegrationRequest Clone() { - return new DeleteHttpIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteHttpIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteHttpIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteHttpIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class InfluxDbIntegration : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InfluxDbIntegration()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[19]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InfluxDbIntegration() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InfluxDbIntegration(InfluxDbIntegration other) : this() { - applicationId_ = other.applicationId_; - endpoint_ = other.endpoint_; - db_ = other.db_; - username_ = other.username_; - password_ = other.password_; - retentionPolicyName_ = other.retentionPolicyName_; - precision_ = other.precision_; - version_ = other.version_; - token_ = other.token_; - organization_ = other.organization_; - bucket_ = other.bucket_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InfluxDbIntegration Clone() { - return new InfluxDbIntegration(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "endpoint" field. - public const int EndpointFieldNumber = 2; - private string endpoint_ = ""; - /// - /// InfluxDb API write endpoint (e.g. http://localhost:8086/write). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Endpoint { - get { return endpoint_; } - set { - endpoint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "db" field. - public const int DbFieldNumber = 3; - private string db_ = ""; - /// - /// InfluxDb database name. (InfluxDb v1) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Db { - get { return db_; } - set { - db_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "username" field. - public const int UsernameFieldNumber = 4; - private string username_ = ""; - /// - /// InfluxDb username. (InfluxDb v1) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Username { - get { return username_; } - set { - username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "password" field. - public const int PasswordFieldNumber = 5; - private string password_ = ""; - /// - /// InfluxDb password. (InfluxDb v1) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Password { - get { return password_; } - set { - password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "retention_policy_name" field. - public const int RetentionPolicyNameFieldNumber = 6; - private string retentionPolicyName_ = ""; - /// - /// InfluxDb retention policy name. (InfluxDb v1) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RetentionPolicyName { - get { return retentionPolicyName_; } - set { - retentionPolicyName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "precision" field. - public const int PrecisionFieldNumber = 7; - private global::Chirpstack.Api.InfluxDbPrecision precision_ = global::Chirpstack.Api.InfluxDbPrecision.Ns; - /// - /// InfluxDb timestamp precision (InfluxDb v1). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.InfluxDbPrecision Precision { - get { return precision_; } - set { - precision_ = value; - } - } - - /// Field number for the "version" field. - public const int VersionFieldNumber = 8; - private global::Chirpstack.Api.InfluxDbVersion version_ = global::Chirpstack.Api.InfluxDbVersion.Influxdb1; - /// - /// InfluxDb version. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.InfluxDbVersion Version { - get { return version_; } - set { - version_ = value; - } - } - - /// Field number for the "token" field. - public const int TokenFieldNumber = 9; - private string token_ = ""; - /// - /// Token. (InfluxDb v2) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Token { - get { return token_; } - set { - token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "organization" field. - public const int OrganizationFieldNumber = 10; - private string organization_ = ""; - /// - /// Organization. (InfluxDb v2) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Organization { - get { return organization_; } - set { - organization_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "bucket" field. - public const int BucketFieldNumber = 11; - private string bucket_ = ""; - /// - /// Bucket. (InfluxDb v2) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Bucket { - get { return bucket_; } - set { - bucket_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as InfluxDbIntegration); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InfluxDbIntegration other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - if (Endpoint != other.Endpoint) return false; - if (Db != other.Db) return false; - if (Username != other.Username) return false; - if (Password != other.Password) return false; - if (RetentionPolicyName != other.RetentionPolicyName) return false; - if (Precision != other.Precision) return false; - if (Version != other.Version) return false; - if (Token != other.Token) return false; - if (Organization != other.Organization) return false; - if (Bucket != other.Bucket) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (Endpoint.Length != 0) hash ^= Endpoint.GetHashCode(); - if (Db.Length != 0) hash ^= Db.GetHashCode(); - if (Username.Length != 0) hash ^= Username.GetHashCode(); - if (Password.Length != 0) hash ^= Password.GetHashCode(); - if (RetentionPolicyName.Length != 0) hash ^= RetentionPolicyName.GetHashCode(); - if (Precision != global::Chirpstack.Api.InfluxDbPrecision.Ns) hash ^= Precision.GetHashCode(); - if (Version != global::Chirpstack.Api.InfluxDbVersion.Influxdb1) hash ^= Version.GetHashCode(); - if (Token.Length != 0) hash ^= Token.GetHashCode(); - if (Organization.Length != 0) hash ^= Organization.GetHashCode(); - if (Bucket.Length != 0) hash ^= Bucket.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (Endpoint.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Endpoint); - } - if (Db.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Db); - } - if (Username.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Username); - } - if (Password.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Password); - } - if (RetentionPolicyName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(RetentionPolicyName); - } - if (Precision != global::Chirpstack.Api.InfluxDbPrecision.Ns) { - output.WriteRawTag(56); - output.WriteEnum((int) Precision); - } - if (Version != global::Chirpstack.Api.InfluxDbVersion.Influxdb1) { - output.WriteRawTag(64); - output.WriteEnum((int) Version); - } - if (Token.Length != 0) { - output.WriteRawTag(74); - output.WriteString(Token); - } - if (Organization.Length != 0) { - output.WriteRawTag(82); - output.WriteString(Organization); - } - if (Bucket.Length != 0) { - output.WriteRawTag(90); - output.WriteString(Bucket); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (Endpoint.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Endpoint); - } - if (Db.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Db); - } - if (Username.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Username); - } - if (Password.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Password); - } - if (RetentionPolicyName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(RetentionPolicyName); - } - if (Precision != global::Chirpstack.Api.InfluxDbPrecision.Ns) { - output.WriteRawTag(56); - output.WriteEnum((int) Precision); - } - if (Version != global::Chirpstack.Api.InfluxDbVersion.Influxdb1) { - output.WriteRawTag(64); - output.WriteEnum((int) Version); - } - if (Token.Length != 0) { - output.WriteRawTag(74); - output.WriteString(Token); - } - if (Organization.Length != 0) { - output.WriteRawTag(82); - output.WriteString(Organization); - } - if (Bucket.Length != 0) { - output.WriteRawTag(90); - output.WriteString(Bucket); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (Endpoint.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Endpoint); - } - if (Db.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Db); - } - if (Username.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); - } - if (Password.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); - } - if (RetentionPolicyName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RetentionPolicyName); - } - if (Precision != global::Chirpstack.Api.InfluxDbPrecision.Ns) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Precision); - } - if (Version != global::Chirpstack.Api.InfluxDbVersion.Influxdb1) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Version); - } - if (Token.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); - } - if (Organization.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Organization); - } - if (Bucket.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Bucket); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InfluxDbIntegration other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - if (other.Endpoint.Length != 0) { - Endpoint = other.Endpoint; - } - if (other.Db.Length != 0) { - Db = other.Db; - } - if (other.Username.Length != 0) { - Username = other.Username; - } - if (other.Password.Length != 0) { - Password = other.Password; - } - if (other.RetentionPolicyName.Length != 0) { - RetentionPolicyName = other.RetentionPolicyName; - } - if (other.Precision != global::Chirpstack.Api.InfluxDbPrecision.Ns) { - Precision = other.Precision; - } - if (other.Version != global::Chirpstack.Api.InfluxDbVersion.Influxdb1) { - Version = other.Version; - } - if (other.Token.Length != 0) { - Token = other.Token; - } - if (other.Organization.Length != 0) { - Organization = other.Organization; - } - if (other.Bucket.Length != 0) { - Bucket = other.Bucket; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 18: { - Endpoint = input.ReadString(); - break; - } - case 26: { - Db = input.ReadString(); - break; - } - case 34: { - Username = input.ReadString(); - break; - } - case 42: { - Password = input.ReadString(); - break; - } - case 50: { - RetentionPolicyName = input.ReadString(); - break; - } - case 56: { - Precision = (global::Chirpstack.Api.InfluxDbPrecision) input.ReadEnum(); - break; - } - case 64: { - Version = (global::Chirpstack.Api.InfluxDbVersion) input.ReadEnum(); - break; - } - case 74: { - Token = input.ReadString(); - break; - } - case 82: { - Organization = input.ReadString(); - break; - } - case 90: { - Bucket = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 18: { - Endpoint = input.ReadString(); - break; - } - case 26: { - Db = input.ReadString(); - break; - } - case 34: { - Username = input.ReadString(); - break; - } - case 42: { - Password = input.ReadString(); - break; - } - case 50: { - RetentionPolicyName = input.ReadString(); - break; - } - case 56: { - Precision = (global::Chirpstack.Api.InfluxDbPrecision) input.ReadEnum(); - break; - } - case 64: { - Version = (global::Chirpstack.Api.InfluxDbVersion) input.ReadEnum(); - break; - } - case 74: { - Token = input.ReadString(); - break; - } - case 82: { - Organization = input.ReadString(); - break; - } - case 90: { - Bucket = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateInfluxDbIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateInfluxDbIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[20]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateInfluxDbIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateInfluxDbIntegrationRequest(CreateInfluxDbIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateInfluxDbIntegrationRequest Clone() { - return new CreateInfluxDbIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.InfluxDbIntegration integration_; - /// - /// Integration object to create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.InfluxDbIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateInfluxDbIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateInfluxDbIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateInfluxDbIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.InfluxDbIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.InfluxDbIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.InfluxDbIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetInfluxDbIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetInfluxDbIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[21]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetInfluxDbIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetInfluxDbIntegrationRequest(GetInfluxDbIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetInfluxDbIntegrationRequest Clone() { - return new GetInfluxDbIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetInfluxDbIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetInfluxDbIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetInfluxDbIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetInfluxDbIntegrationResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetInfluxDbIntegrationResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[22]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetInfluxDbIntegrationResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetInfluxDbIntegrationResponse(GetInfluxDbIntegrationResponse other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetInfluxDbIntegrationResponse Clone() { - return new GetInfluxDbIntegrationResponse(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.InfluxDbIntegration integration_; - /// - /// Integration object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.InfluxDbIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetInfluxDbIntegrationResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetInfluxDbIntegrationResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetInfluxDbIntegrationResponse other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.InfluxDbIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.InfluxDbIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.InfluxDbIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateInfluxDbIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateInfluxDbIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[23]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateInfluxDbIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateInfluxDbIntegrationRequest(UpdateInfluxDbIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateInfluxDbIntegrationRequest Clone() { - return new UpdateInfluxDbIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.InfluxDbIntegration integration_; - /// - /// Integration object to update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.InfluxDbIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateInfluxDbIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateInfluxDbIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateInfluxDbIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.InfluxDbIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.InfluxDbIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.InfluxDbIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteInfluxDbIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteInfluxDbIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[24]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteInfluxDbIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteInfluxDbIntegrationRequest(DeleteInfluxDbIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteInfluxDbIntegrationRequest Clone() { - return new DeleteInfluxDbIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteInfluxDbIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteInfluxDbIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteInfluxDbIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ThingsBoardIntegration : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ThingsBoardIntegration()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[25]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ThingsBoardIntegration() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ThingsBoardIntegration(ThingsBoardIntegration other) : this() { - applicationId_ = other.applicationId_; - server_ = other.server_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ThingsBoardIntegration Clone() { - return new ThingsBoardIntegration(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "server" field. - public const int ServerFieldNumber = 2; - private string server_ = ""; - /// - /// ThingsBoard server endpoint, e.g. https://example.com - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Server { - get { return server_; } - set { - server_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ThingsBoardIntegration); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ThingsBoardIntegration other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - if (Server != other.Server) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (Server.Length != 0) hash ^= Server.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (Server.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Server); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (Server.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Server); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (Server.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Server); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ThingsBoardIntegration other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - if (other.Server.Length != 0) { - Server = other.Server; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 18: { - Server = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 18: { - Server = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateThingsBoardIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateThingsBoardIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[26]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateThingsBoardIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateThingsBoardIntegrationRequest(CreateThingsBoardIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateThingsBoardIntegrationRequest Clone() { - return new CreateThingsBoardIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.ThingsBoardIntegration integration_; - /// - /// Integration object to create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.ThingsBoardIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateThingsBoardIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateThingsBoardIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateThingsBoardIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.ThingsBoardIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.ThingsBoardIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.ThingsBoardIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetThingsBoardIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetThingsBoardIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[27]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetThingsBoardIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetThingsBoardIntegrationRequest(GetThingsBoardIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetThingsBoardIntegrationRequest Clone() { - return new GetThingsBoardIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetThingsBoardIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetThingsBoardIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetThingsBoardIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetThingsBoardIntegrationResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetThingsBoardIntegrationResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[28]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetThingsBoardIntegrationResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetThingsBoardIntegrationResponse(GetThingsBoardIntegrationResponse other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetThingsBoardIntegrationResponse Clone() { - return new GetThingsBoardIntegrationResponse(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.ThingsBoardIntegration integration_; - /// - /// Integration object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.ThingsBoardIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetThingsBoardIntegrationResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetThingsBoardIntegrationResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetThingsBoardIntegrationResponse other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.ThingsBoardIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.ThingsBoardIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.ThingsBoardIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateThingsBoardIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateThingsBoardIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[29]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateThingsBoardIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateThingsBoardIntegrationRequest(UpdateThingsBoardIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateThingsBoardIntegrationRequest Clone() { - return new UpdateThingsBoardIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.ThingsBoardIntegration integration_; - /// - /// Integration object to update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.ThingsBoardIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateThingsBoardIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateThingsBoardIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateThingsBoardIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.ThingsBoardIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.ThingsBoardIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.ThingsBoardIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteThingsBoardIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteThingsBoardIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[30]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteThingsBoardIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteThingsBoardIntegrationRequest(DeleteThingsBoardIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteThingsBoardIntegrationRequest Clone() { - return new DeleteThingsBoardIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteThingsBoardIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteThingsBoardIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteThingsBoardIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class MyDevicesIntegration : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MyDevicesIntegration()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[31]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MyDevicesIntegration() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MyDevicesIntegration(MyDevicesIntegration other) : this() { - applicationId_ = other.applicationId_; - endpoint_ = other.endpoint_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MyDevicesIntegration Clone() { - return new MyDevicesIntegration(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "endpoint" field. - public const int EndpointFieldNumber = 2; - private string endpoint_ = ""; - /// - /// myDevices API endpoint. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Endpoint { - get { return endpoint_; } - set { - endpoint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MyDevicesIntegration); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MyDevicesIntegration other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - if (Endpoint != other.Endpoint) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (Endpoint.Length != 0) hash ^= Endpoint.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (Endpoint.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Endpoint); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (Endpoint.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Endpoint); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (Endpoint.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Endpoint); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MyDevicesIntegration other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - if (other.Endpoint.Length != 0) { - Endpoint = other.Endpoint; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 18: { - Endpoint = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 18: { - Endpoint = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateMyDevicesIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateMyDevicesIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[32]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateMyDevicesIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateMyDevicesIntegrationRequest(CreateMyDevicesIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateMyDevicesIntegrationRequest Clone() { - return new CreateMyDevicesIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.MyDevicesIntegration integration_; - /// - /// Integration object to create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.MyDevicesIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateMyDevicesIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateMyDevicesIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateMyDevicesIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.MyDevicesIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.MyDevicesIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.MyDevicesIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetMyDevicesIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMyDevicesIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[33]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetMyDevicesIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetMyDevicesIntegrationRequest(GetMyDevicesIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetMyDevicesIntegrationRequest Clone() { - return new GetMyDevicesIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetMyDevicesIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetMyDevicesIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetMyDevicesIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetMyDevicesIntegrationResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMyDevicesIntegrationResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[34]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetMyDevicesIntegrationResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetMyDevicesIntegrationResponse(GetMyDevicesIntegrationResponse other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetMyDevicesIntegrationResponse Clone() { - return new GetMyDevicesIntegrationResponse(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.MyDevicesIntegration integration_; - /// - /// Integration object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.MyDevicesIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetMyDevicesIntegrationResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetMyDevicesIntegrationResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetMyDevicesIntegrationResponse other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.MyDevicesIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.MyDevicesIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.MyDevicesIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateMyDevicesIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateMyDevicesIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[35]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateMyDevicesIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateMyDevicesIntegrationRequest(UpdateMyDevicesIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateMyDevicesIntegrationRequest Clone() { - return new UpdateMyDevicesIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.MyDevicesIntegration integration_; - /// - /// Integration object to update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.MyDevicesIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateMyDevicesIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateMyDevicesIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateMyDevicesIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.MyDevicesIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.MyDevicesIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.MyDevicesIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteMyDevicesIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteMyDevicesIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[36]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteMyDevicesIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteMyDevicesIntegrationRequest(DeleteMyDevicesIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteMyDevicesIntegrationRequest Clone() { - return new DeleteMyDevicesIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteMyDevicesIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteMyDevicesIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteMyDevicesIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class LoraCloudIntegration : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoraCloudIntegration()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[37]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoraCloudIntegration() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoraCloudIntegration(LoraCloudIntegration other) : this() { - applicationId_ = other.applicationId_; - modemGeolocationServices_ = other.modemGeolocationServices_ != null ? other.modemGeolocationServices_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoraCloudIntegration Clone() { - return new LoraCloudIntegration(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "modem_geolocation_services" field. - public const int ModemGeolocationServicesFieldNumber = 2; - private global::Chirpstack.Api.LoraCloudModemGeolocationServices modemGeolocationServices_; - /// - /// Modem & Geolocation Services configuration. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.LoraCloudModemGeolocationServices ModemGeolocationServices { - get { return modemGeolocationServices_; } - set { - modemGeolocationServices_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LoraCloudIntegration); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LoraCloudIntegration other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - if (!object.Equals(ModemGeolocationServices, other.ModemGeolocationServices)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (modemGeolocationServices_ != null) hash ^= ModemGeolocationServices.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (modemGeolocationServices_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ModemGeolocationServices); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (modemGeolocationServices_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ModemGeolocationServices); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (modemGeolocationServices_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ModemGeolocationServices); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LoraCloudIntegration other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - if (other.modemGeolocationServices_ != null) { - if (modemGeolocationServices_ == null) { - ModemGeolocationServices = new global::Chirpstack.Api.LoraCloudModemGeolocationServices(); - } - ModemGeolocationServices.MergeFrom(other.ModemGeolocationServices); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 18: { - if (modemGeolocationServices_ == null) { - ModemGeolocationServices = new global::Chirpstack.Api.LoraCloudModemGeolocationServices(); - } - input.ReadMessage(ModemGeolocationServices); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 18: { - if (modemGeolocationServices_ == null) { - ModemGeolocationServices = new global::Chirpstack.Api.LoraCloudModemGeolocationServices(); - } - input.ReadMessage(ModemGeolocationServices); - break; - } - } - } - } - #endif - - } - - public sealed partial class LoraCloudModemGeolocationServices : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoraCloudModemGeolocationServices()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[38]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoraCloudModemGeolocationServices() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoraCloudModemGeolocationServices(LoraCloudModemGeolocationServices other) : this() { - token_ = other.token_; - modemEnabled_ = other.modemEnabled_; - forwardFPorts_ = other.forwardFPorts_.Clone(); - gnssUseRxTime_ = other.gnssUseRxTime_; - gnssUseGatewayLocation_ = other.gnssUseGatewayLocation_; - parseTlv_ = other.parseTlv_; - geolocationBufferTtl_ = other.geolocationBufferTtl_; - geolocationMinBufferSize_ = other.geolocationMinBufferSize_; - geolocationTdoa_ = other.geolocationTdoa_; - geolocationRssi_ = other.geolocationRssi_; - geolocationGnss_ = other.geolocationGnss_; - geolocationGnssPayloadField_ = other.geolocationGnssPayloadField_; - geolocationGnssUseRxTime_ = other.geolocationGnssUseRxTime_; - geolocationWifi_ = other.geolocationWifi_; - geolocationWifiPayloadField_ = other.geolocationWifiPayloadField_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoraCloudModemGeolocationServices Clone() { - return new LoraCloudModemGeolocationServices(this); - } - - /// Field number for the "token" field. - public const int TokenFieldNumber = 1; - private string token_ = ""; - /// - /// API token. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Token { - get { return token_; } - set { - token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "modem_enabled" field. - public const int ModemEnabledFieldNumber = 2; - private bool modemEnabled_; - /// - /// Device implements Modem / Modem-E stack. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ModemEnabled { - get { return modemEnabled_; } - set { - modemEnabled_ = value; - } - } - - /// Field number for the "forward_f_ports" field. - public const int ForwardFPortsFieldNumber = 16; - private static readonly pb::FieldCodec _repeated_forwardFPorts_codec - = pb::FieldCodec.ForUInt32(130); - private readonly pbc::RepeatedField forwardFPorts_ = new pbc::RepeatedField(); - /// - /// Forward FPorts. - /// Forward uplink messages matching the given FPorts to the MGS. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ForwardFPorts { - get { return forwardFPorts_; } - } - - /// Field number for the "gnss_use_rx_time" field. - public const int GnssUseRxTimeFieldNumber = 5; - private bool gnssUseRxTime_; - /// - /// Use rx time for GNSS resolving. - /// In case this is set to true, the MGS resolver will use the RX time of the - /// network instead of the timestamp included in the LR1110 payload. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool GnssUseRxTime { - get { return gnssUseRxTime_; } - set { - gnssUseRxTime_ = value; - } - } - - /// Field number for the "gnss_use_gateway_location" field. - public const int GnssUseGatewayLocationFieldNumber = 17; - private bool gnssUseGatewayLocation_; - /// - /// Use gateway location for GNSS resolving. - /// In the case this is set to true, ChirpStack will provide the location of - /// one of the gateways to the MGS resolver to aid the resolving process. - /// Disable this in case the gateway location is not accurate / incorrectly - /// configured as an incorrect location will cause the resolver to return an - /// error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool GnssUseGatewayLocation { - get { return gnssUseGatewayLocation_; } - set { - gnssUseGatewayLocation_ = value; - } - } - - /// Field number for the "parse_tlv" field. - public const int ParseTlvFieldNumber = 6; - private bool parseTlv_; - /// - /// Parse TLV records. - /// If enabled, stream records (expected in TLV format) are scanned for GNSS - /// data (0x06 or 0x07). If found, ChirpStack will make an additional - /// geolocation call to the MGS API for resolving the location of the detected - /// payload. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ParseTlv { - get { return parseTlv_; } - set { - parseTlv_ = value; - } - } - - /// Field number for the "geolocation_buffer_ttl" field. - public const int GeolocationBufferTtlFieldNumber = 7; - private uint geolocationBufferTtl_; - /// - /// Geolocation buffer TTL (in seconds). - /// If > 0, uplink RX meta-data will be stored in a buffer so that - /// the meta-data of multiple uplinks can be used for geolocation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint GeolocationBufferTtl { - get { return geolocationBufferTtl_; } - set { - geolocationBufferTtl_ = value; - } - } - - /// Field number for the "geolocation_min_buffer_size" field. - public const int GeolocationMinBufferSizeFieldNumber = 8; - private uint geolocationMinBufferSize_; - /// - /// Geolocation minimum buffer size. - /// If > 0, geolocation will only be performed when the buffer has - /// at least the given size. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint GeolocationMinBufferSize { - get { return geolocationMinBufferSize_; } - set { - geolocationMinBufferSize_ = value; - } - } - - /// Field number for the "geolocation_tdoa" field. - public const int GeolocationTdoaFieldNumber = 9; - private bool geolocationTdoa_; - /// - /// TDOA based geolocation is enabled. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool GeolocationTdoa { - get { return geolocationTdoa_; } - set { - geolocationTdoa_ = value; - } - } - - /// Field number for the "geolocation_rssi" field. - public const int GeolocationRssiFieldNumber = 10; - private bool geolocationRssi_; - /// - /// RSSI based geolocation is enabled. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool GeolocationRssi { - get { return geolocationRssi_; } - set { - geolocationRssi_ = value; - } - } - - /// Field number for the "geolocation_gnss" field. - public const int GeolocationGnssFieldNumber = 11; - private bool geolocationGnss_; - /// - /// GNSS based geolocation is enabled (LR1110). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool GeolocationGnss { - get { return geolocationGnss_; } - set { - geolocationGnss_ = value; - } - } - - /// Field number for the "geolocation_gnss_payload_field" field. - public const int GeolocationGnssPayloadFieldFieldNumber = 12; - private string geolocationGnssPayloadField_ = ""; - /// - /// GNSS payload field. - /// This holds the name of the field in the decoded payload object which - /// contains the GNSS payload bytes (as HEX string). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GeolocationGnssPayloadField { - get { return geolocationGnssPayloadField_; } - set { - geolocationGnssPayloadField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "geolocation_gnss_use_rx_time" field. - public const int GeolocationGnssUseRxTimeFieldNumber = 13; - private bool geolocationGnssUseRxTime_; - /// - /// GNSS use RX time. - /// In case this is set to true, the resolver will use the RX time of the - /// network instead of the timestamp included in the LR1110 payload. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool GeolocationGnssUseRxTime { - get { return geolocationGnssUseRxTime_; } - set { - geolocationGnssUseRxTime_ = value; - } - } - - /// Field number for the "geolocation_wifi" field. - public const int GeolocationWifiFieldNumber = 14; - private bool geolocationWifi_; - /// - /// Wifi based geolocation is enabled. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool GeolocationWifi { - get { return geolocationWifi_; } - set { - geolocationWifi_ = value; - } - } - - /// Field number for the "geolocation_wifi_payload_field" field. - public const int GeolocationWifiPayloadFieldFieldNumber = 15; - private string geolocationWifiPayloadField_ = ""; - /// - /// Wifi payload field. - /// This holds the name of the field in the decoded payload object which - /// contains an array of objects with the following fields: - /// * macAddress - e.g. 01:23:45:67:89:ab - /// * signalStrength - e.g. -51 (optional) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GeolocationWifiPayloadField { - get { return geolocationWifiPayloadField_; } - set { - geolocationWifiPayloadField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LoraCloudModemGeolocationServices); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LoraCloudModemGeolocationServices other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Token != other.Token) return false; - if (ModemEnabled != other.ModemEnabled) return false; - if(!forwardFPorts_.Equals(other.forwardFPorts_)) return false; - if (GnssUseRxTime != other.GnssUseRxTime) return false; - if (GnssUseGatewayLocation != other.GnssUseGatewayLocation) return false; - if (ParseTlv != other.ParseTlv) return false; - if (GeolocationBufferTtl != other.GeolocationBufferTtl) return false; - if (GeolocationMinBufferSize != other.GeolocationMinBufferSize) return false; - if (GeolocationTdoa != other.GeolocationTdoa) return false; - if (GeolocationRssi != other.GeolocationRssi) return false; - if (GeolocationGnss != other.GeolocationGnss) return false; - if (GeolocationGnssPayloadField != other.GeolocationGnssPayloadField) return false; - if (GeolocationGnssUseRxTime != other.GeolocationGnssUseRxTime) return false; - if (GeolocationWifi != other.GeolocationWifi) return false; - if (GeolocationWifiPayloadField != other.GeolocationWifiPayloadField) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Token.Length != 0) hash ^= Token.GetHashCode(); - if (ModemEnabled != false) hash ^= ModemEnabled.GetHashCode(); - hash ^= forwardFPorts_.GetHashCode(); - if (GnssUseRxTime != false) hash ^= GnssUseRxTime.GetHashCode(); - if (GnssUseGatewayLocation != false) hash ^= GnssUseGatewayLocation.GetHashCode(); - if (ParseTlv != false) hash ^= ParseTlv.GetHashCode(); - if (GeolocationBufferTtl != 0) hash ^= GeolocationBufferTtl.GetHashCode(); - if (GeolocationMinBufferSize != 0) hash ^= GeolocationMinBufferSize.GetHashCode(); - if (GeolocationTdoa != false) hash ^= GeolocationTdoa.GetHashCode(); - if (GeolocationRssi != false) hash ^= GeolocationRssi.GetHashCode(); - if (GeolocationGnss != false) hash ^= GeolocationGnss.GetHashCode(); - if (GeolocationGnssPayloadField.Length != 0) hash ^= GeolocationGnssPayloadField.GetHashCode(); - if (GeolocationGnssUseRxTime != false) hash ^= GeolocationGnssUseRxTime.GetHashCode(); - if (GeolocationWifi != false) hash ^= GeolocationWifi.GetHashCode(); - if (GeolocationWifiPayloadField.Length != 0) hash ^= GeolocationWifiPayloadField.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Token.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Token); - } - if (ModemEnabled != false) { - output.WriteRawTag(16); - output.WriteBool(ModemEnabled); - } - if (GnssUseRxTime != false) { - output.WriteRawTag(40); - output.WriteBool(GnssUseRxTime); - } - if (ParseTlv != false) { - output.WriteRawTag(48); - output.WriteBool(ParseTlv); - } - if (GeolocationBufferTtl != 0) { - output.WriteRawTag(56); - output.WriteUInt32(GeolocationBufferTtl); - } - if (GeolocationMinBufferSize != 0) { - output.WriteRawTag(64); - output.WriteUInt32(GeolocationMinBufferSize); - } - if (GeolocationTdoa != false) { - output.WriteRawTag(72); - output.WriteBool(GeolocationTdoa); - } - if (GeolocationRssi != false) { - output.WriteRawTag(80); - output.WriteBool(GeolocationRssi); - } - if (GeolocationGnss != false) { - output.WriteRawTag(88); - output.WriteBool(GeolocationGnss); - } - if (GeolocationGnssPayloadField.Length != 0) { - output.WriteRawTag(98); - output.WriteString(GeolocationGnssPayloadField); - } - if (GeolocationGnssUseRxTime != false) { - output.WriteRawTag(104); - output.WriteBool(GeolocationGnssUseRxTime); - } - if (GeolocationWifi != false) { - output.WriteRawTag(112); - output.WriteBool(GeolocationWifi); - } - if (GeolocationWifiPayloadField.Length != 0) { - output.WriteRawTag(122); - output.WriteString(GeolocationWifiPayloadField); - } - forwardFPorts_.WriteTo(output, _repeated_forwardFPorts_codec); - if (GnssUseGatewayLocation != false) { - output.WriteRawTag(136, 1); - output.WriteBool(GnssUseGatewayLocation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Token.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Token); - } - if (ModemEnabled != false) { - output.WriteRawTag(16); - output.WriteBool(ModemEnabled); - } - if (GnssUseRxTime != false) { - output.WriteRawTag(40); - output.WriteBool(GnssUseRxTime); - } - if (ParseTlv != false) { - output.WriteRawTag(48); - output.WriteBool(ParseTlv); - } - if (GeolocationBufferTtl != 0) { - output.WriteRawTag(56); - output.WriteUInt32(GeolocationBufferTtl); - } - if (GeolocationMinBufferSize != 0) { - output.WriteRawTag(64); - output.WriteUInt32(GeolocationMinBufferSize); - } - if (GeolocationTdoa != false) { - output.WriteRawTag(72); - output.WriteBool(GeolocationTdoa); - } - if (GeolocationRssi != false) { - output.WriteRawTag(80); - output.WriteBool(GeolocationRssi); - } - if (GeolocationGnss != false) { - output.WriteRawTag(88); - output.WriteBool(GeolocationGnss); - } - if (GeolocationGnssPayloadField.Length != 0) { - output.WriteRawTag(98); - output.WriteString(GeolocationGnssPayloadField); - } - if (GeolocationGnssUseRxTime != false) { - output.WriteRawTag(104); - output.WriteBool(GeolocationGnssUseRxTime); - } - if (GeolocationWifi != false) { - output.WriteRawTag(112); - output.WriteBool(GeolocationWifi); - } - if (GeolocationWifiPayloadField.Length != 0) { - output.WriteRawTag(122); - output.WriteString(GeolocationWifiPayloadField); - } - forwardFPorts_.WriteTo(ref output, _repeated_forwardFPorts_codec); - if (GnssUseGatewayLocation != false) { - output.WriteRawTag(136, 1); - output.WriteBool(GnssUseGatewayLocation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Token.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); - } - if (ModemEnabled != false) { - size += 1 + 1; - } - size += forwardFPorts_.CalculateSize(_repeated_forwardFPorts_codec); - if (GnssUseRxTime != false) { - size += 1 + 1; - } - if (GnssUseGatewayLocation != false) { - size += 2 + 1; - } - if (ParseTlv != false) { - size += 1 + 1; - } - if (GeolocationBufferTtl != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GeolocationBufferTtl); - } - if (GeolocationMinBufferSize != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GeolocationMinBufferSize); - } - if (GeolocationTdoa != false) { - size += 1 + 1; - } - if (GeolocationRssi != false) { - size += 1 + 1; - } - if (GeolocationGnss != false) { - size += 1 + 1; - } - if (GeolocationGnssPayloadField.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GeolocationGnssPayloadField); - } - if (GeolocationGnssUseRxTime != false) { - size += 1 + 1; - } - if (GeolocationWifi != false) { - size += 1 + 1; - } - if (GeolocationWifiPayloadField.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GeolocationWifiPayloadField); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LoraCloudModemGeolocationServices other) { - if (other == null) { - return; - } - if (other.Token.Length != 0) { - Token = other.Token; - } - if (other.ModemEnabled != false) { - ModemEnabled = other.ModemEnabled; - } - forwardFPorts_.Add(other.forwardFPorts_); - if (other.GnssUseRxTime != false) { - GnssUseRxTime = other.GnssUseRxTime; - } - if (other.GnssUseGatewayLocation != false) { - GnssUseGatewayLocation = other.GnssUseGatewayLocation; - } - if (other.ParseTlv != false) { - ParseTlv = other.ParseTlv; - } - if (other.GeolocationBufferTtl != 0) { - GeolocationBufferTtl = other.GeolocationBufferTtl; - } - if (other.GeolocationMinBufferSize != 0) { - GeolocationMinBufferSize = other.GeolocationMinBufferSize; - } - if (other.GeolocationTdoa != false) { - GeolocationTdoa = other.GeolocationTdoa; - } - if (other.GeolocationRssi != false) { - GeolocationRssi = other.GeolocationRssi; - } - if (other.GeolocationGnss != false) { - GeolocationGnss = other.GeolocationGnss; - } - if (other.GeolocationGnssPayloadField.Length != 0) { - GeolocationGnssPayloadField = other.GeolocationGnssPayloadField; - } - if (other.GeolocationGnssUseRxTime != false) { - GeolocationGnssUseRxTime = other.GeolocationGnssUseRxTime; - } - if (other.GeolocationWifi != false) { - GeolocationWifi = other.GeolocationWifi; - } - if (other.GeolocationWifiPayloadField.Length != 0) { - GeolocationWifiPayloadField = other.GeolocationWifiPayloadField; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Token = input.ReadString(); - break; - } - case 16: { - ModemEnabled = input.ReadBool(); - break; - } - case 40: { - GnssUseRxTime = input.ReadBool(); - break; - } - case 48: { - ParseTlv = input.ReadBool(); - break; - } - case 56: { - GeolocationBufferTtl = input.ReadUInt32(); - break; - } - case 64: { - GeolocationMinBufferSize = input.ReadUInt32(); - break; - } - case 72: { - GeolocationTdoa = input.ReadBool(); - break; - } - case 80: { - GeolocationRssi = input.ReadBool(); - break; - } - case 88: { - GeolocationGnss = input.ReadBool(); - break; - } - case 98: { - GeolocationGnssPayloadField = input.ReadString(); - break; - } - case 104: { - GeolocationGnssUseRxTime = input.ReadBool(); - break; - } - case 112: { - GeolocationWifi = input.ReadBool(); - break; - } - case 122: { - GeolocationWifiPayloadField = input.ReadString(); - break; - } - case 130: - case 128: { - forwardFPorts_.AddEntriesFrom(input, _repeated_forwardFPorts_codec); - break; - } - case 136: { - GnssUseGatewayLocation = 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: { - Token = input.ReadString(); - break; - } - case 16: { - ModemEnabled = input.ReadBool(); - break; - } - case 40: { - GnssUseRxTime = input.ReadBool(); - break; - } - case 48: { - ParseTlv = input.ReadBool(); - break; - } - case 56: { - GeolocationBufferTtl = input.ReadUInt32(); - break; - } - case 64: { - GeolocationMinBufferSize = input.ReadUInt32(); - break; - } - case 72: { - GeolocationTdoa = input.ReadBool(); - break; - } - case 80: { - GeolocationRssi = input.ReadBool(); - break; - } - case 88: { - GeolocationGnss = input.ReadBool(); - break; - } - case 98: { - GeolocationGnssPayloadField = input.ReadString(); - break; - } - case 104: { - GeolocationGnssUseRxTime = input.ReadBool(); - break; - } - case 112: { - GeolocationWifi = input.ReadBool(); - break; - } - case 122: { - GeolocationWifiPayloadField = input.ReadString(); - break; - } - case 130: - case 128: { - forwardFPorts_.AddEntriesFrom(ref input, _repeated_forwardFPorts_codec); - break; - } - case 136: { - GnssUseGatewayLocation = 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.Api.ApplicationReflection.Descriptor.MessageTypes[39]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateLoraCloudIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateLoraCloudIntegrationRequest(CreateLoraCloudIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateLoraCloudIntegrationRequest Clone() { - return new CreateLoraCloudIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.LoraCloudIntegration integration_; - /// - /// Integration object to create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.LoraCloudIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateLoraCloudIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateLoraCloudIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateLoraCloudIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.LoraCloudIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.LoraCloudIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.LoraCloudIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetLoraCloudIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLoraCloudIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[40]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetLoraCloudIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetLoraCloudIntegrationRequest(GetLoraCloudIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetLoraCloudIntegrationRequest Clone() { - return new GetLoraCloudIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetLoraCloudIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetLoraCloudIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetLoraCloudIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetLoraCloudIntegrationResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLoraCloudIntegrationResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[41]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetLoraCloudIntegrationResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetLoraCloudIntegrationResponse(GetLoraCloudIntegrationResponse other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetLoraCloudIntegrationResponse Clone() { - return new GetLoraCloudIntegrationResponse(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.LoraCloudIntegration integration_; - /// - /// Integration object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.LoraCloudIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetLoraCloudIntegrationResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetLoraCloudIntegrationResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetLoraCloudIntegrationResponse other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.LoraCloudIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.LoraCloudIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.LoraCloudIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateLoraCloudIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateLoraCloudIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[42]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateLoraCloudIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateLoraCloudIntegrationRequest(UpdateLoraCloudIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateLoraCloudIntegrationRequest Clone() { - return new UpdateLoraCloudIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.LoraCloudIntegration integration_; - /// - /// Integration object to update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.LoraCloudIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateLoraCloudIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateLoraCloudIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateLoraCloudIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.LoraCloudIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.LoraCloudIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.LoraCloudIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteLoraCloudIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteLoraCloudIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[43]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteLoraCloudIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteLoraCloudIntegrationRequest(DeleteLoraCloudIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteLoraCloudIntegrationRequest Clone() { - return new DeleteLoraCloudIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteLoraCloudIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteLoraCloudIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteLoraCloudIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GcpPubSubIntegration : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GcpPubSubIntegration()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[44]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GcpPubSubIntegration() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GcpPubSubIntegration(GcpPubSubIntegration other) : this() { - applicationId_ = other.applicationId_; - encoding_ = other.encoding_; - credentialsFile_ = other.credentialsFile_; - projectId_ = other.projectId_; - topicName_ = other.topicName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GcpPubSubIntegration Clone() { - return new GcpPubSubIntegration(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "encoding" field. - public const int EncodingFieldNumber = 2; - private global::Chirpstack.Api.Encoding encoding_ = global::Chirpstack.Api.Encoding.Json; - /// - /// Encoding. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.Encoding Encoding { - get { return encoding_; } - set { - encoding_ = value; - } - } - - /// Field number for the "credentials_file" field. - public const int CredentialsFileFieldNumber = 3; - private string credentialsFile_ = ""; - /// - /// Credentials file. - /// This IAM service-account credentials file (JSON) must have the following - /// Pub/Sub roles: - /// * Pub/Sub Publisher - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CredentialsFile { - get { return credentialsFile_; } - set { - credentialsFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "project_id" field. - public const int ProjectIdFieldNumber = 4; - private string projectId_ = ""; - /// - /// Project ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProjectId { - get { return projectId_; } - set { - projectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "topic_name" field. - public const int TopicNameFieldNumber = 5; - private string topicName_ = ""; - /// - /// Topic name. - /// This is the name of the Pub/Sub topic. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TopicName { - get { return topicName_; } - set { - topicName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GcpPubSubIntegration); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GcpPubSubIntegration other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - if (Encoding != other.Encoding) return false; - if (CredentialsFile != other.CredentialsFile) return false; - if (ProjectId != other.ProjectId) return false; - if (TopicName != other.TopicName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (Encoding != global::Chirpstack.Api.Encoding.Json) hash ^= Encoding.GetHashCode(); - if (CredentialsFile.Length != 0) hash ^= CredentialsFile.GetHashCode(); - if (ProjectId.Length != 0) hash ^= ProjectId.GetHashCode(); - if (TopicName.Length != 0) hash ^= TopicName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (Encoding != global::Chirpstack.Api.Encoding.Json) { - output.WriteRawTag(16); - output.WriteEnum((int) Encoding); - } - if (CredentialsFile.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CredentialsFile); - } - if (ProjectId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ProjectId); - } - if (TopicName.Length != 0) { - output.WriteRawTag(42); - output.WriteString(TopicName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (Encoding != global::Chirpstack.Api.Encoding.Json) { - output.WriteRawTag(16); - output.WriteEnum((int) Encoding); - } - if (CredentialsFile.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CredentialsFile); - } - if (ProjectId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ProjectId); - } - if (TopicName.Length != 0) { - output.WriteRawTag(42); - output.WriteString(TopicName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (Encoding != global::Chirpstack.Api.Encoding.Json) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Encoding); - } - if (CredentialsFile.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CredentialsFile); - } - if (ProjectId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ProjectId); - } - if (TopicName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TopicName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GcpPubSubIntegration other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - if (other.Encoding != global::Chirpstack.Api.Encoding.Json) { - Encoding = other.Encoding; - } - if (other.CredentialsFile.Length != 0) { - CredentialsFile = other.CredentialsFile; - } - if (other.ProjectId.Length != 0) { - ProjectId = other.ProjectId; - } - if (other.TopicName.Length != 0) { - TopicName = other.TopicName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 16: { - Encoding = (global::Chirpstack.Api.Encoding) input.ReadEnum(); - break; - } - case 26: { - CredentialsFile = input.ReadString(); - break; - } - case 34: { - ProjectId = input.ReadString(); - break; - } - case 42: { - TopicName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 16: { - Encoding = (global::Chirpstack.Api.Encoding) input.ReadEnum(); - break; - } - case 26: { - CredentialsFile = input.ReadString(); - break; - } - case 34: { - ProjectId = input.ReadString(); - break; - } - case 42: { - TopicName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateGcpPubSubIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateGcpPubSubIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[45]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateGcpPubSubIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateGcpPubSubIntegrationRequest(CreateGcpPubSubIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateGcpPubSubIntegrationRequest Clone() { - return new CreateGcpPubSubIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.GcpPubSubIntegration integration_; - /// - /// Integration object to create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.GcpPubSubIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateGcpPubSubIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateGcpPubSubIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateGcpPubSubIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.GcpPubSubIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.GcpPubSubIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.GcpPubSubIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetGcpPubSubIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGcpPubSubIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[46]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGcpPubSubIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGcpPubSubIntegrationRequest(GetGcpPubSubIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGcpPubSubIntegrationRequest Clone() { - return new GetGcpPubSubIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetGcpPubSubIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetGcpPubSubIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetGcpPubSubIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetGcpPubSubIntegrationResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGcpPubSubIntegrationResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[47]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGcpPubSubIntegrationResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGcpPubSubIntegrationResponse(GetGcpPubSubIntegrationResponse other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGcpPubSubIntegrationResponse Clone() { - return new GetGcpPubSubIntegrationResponse(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.GcpPubSubIntegration integration_; - /// - /// Integration object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.GcpPubSubIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetGcpPubSubIntegrationResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetGcpPubSubIntegrationResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetGcpPubSubIntegrationResponse other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.GcpPubSubIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.GcpPubSubIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.GcpPubSubIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateGcpPubSubIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateGcpPubSubIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[48]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateGcpPubSubIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateGcpPubSubIntegrationRequest(UpdateGcpPubSubIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateGcpPubSubIntegrationRequest Clone() { - return new UpdateGcpPubSubIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.GcpPubSubIntegration integration_; - /// - /// Integration object to update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.GcpPubSubIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateGcpPubSubIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateGcpPubSubIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateGcpPubSubIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.GcpPubSubIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.GcpPubSubIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.GcpPubSubIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteGcpPubSubIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteGcpPubSubIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[49]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteGcpPubSubIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteGcpPubSubIntegrationRequest(DeleteGcpPubSubIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteGcpPubSubIntegrationRequest Clone() { - return new DeleteGcpPubSubIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteGcpPubSubIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteGcpPubSubIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteGcpPubSubIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class AwsSnsIntegration : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AwsSnsIntegration()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[50]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AwsSnsIntegration() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AwsSnsIntegration(AwsSnsIntegration other) : this() { - applicationId_ = other.applicationId_; - encoding_ = other.encoding_; - region_ = other.region_; - accessKeyId_ = other.accessKeyId_; - secretAccessKey_ = other.secretAccessKey_; - topicArn_ = other.topicArn_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AwsSnsIntegration Clone() { - return new AwsSnsIntegration(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "encoding" field. - public const int EncodingFieldNumber = 2; - private global::Chirpstack.Api.Encoding encoding_ = global::Chirpstack.Api.Encoding.Json; - /// - /// Encoding. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.Encoding Encoding { - get { return encoding_; } - set { - encoding_ = value; - } - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 3; - private string region_ = ""; - /// - /// AWS region. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Region { - get { return region_; } - set { - region_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "access_key_id" field. - public const int AccessKeyIdFieldNumber = 4; - private string accessKeyId_ = ""; - /// - /// AWS Access Key ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AccessKeyId { - get { return accessKeyId_; } - set { - accessKeyId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "secret_access_key" field. - public const int SecretAccessKeyFieldNumber = 5; - private string secretAccessKey_ = ""; - /// - /// AWS Secret Access Key. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SecretAccessKey { - get { return secretAccessKey_; } - set { - secretAccessKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "topic_arn" field. - public const int TopicArnFieldNumber = 6; - private string topicArn_ = ""; - /// - /// Topic ARN. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TopicArn { - get { return topicArn_; } - set { - topicArn_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AwsSnsIntegration); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AwsSnsIntegration other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - if (Encoding != other.Encoding) return false; - if (Region != other.Region) return false; - if (AccessKeyId != other.AccessKeyId) return false; - if (SecretAccessKey != other.SecretAccessKey) return false; - if (TopicArn != other.TopicArn) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (Encoding != global::Chirpstack.Api.Encoding.Json) hash ^= Encoding.GetHashCode(); - if (Region.Length != 0) hash ^= Region.GetHashCode(); - if (AccessKeyId.Length != 0) hash ^= AccessKeyId.GetHashCode(); - if (SecretAccessKey.Length != 0) hash ^= SecretAccessKey.GetHashCode(); - if (TopicArn.Length != 0) hash ^= TopicArn.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (Encoding != global::Chirpstack.Api.Encoding.Json) { - output.WriteRawTag(16); - output.WriteEnum((int) Encoding); - } - if (Region.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Region); - } - if (AccessKeyId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(AccessKeyId); - } - if (SecretAccessKey.Length != 0) { - output.WriteRawTag(42); - output.WriteString(SecretAccessKey); - } - if (TopicArn.Length != 0) { - output.WriteRawTag(50); - output.WriteString(TopicArn); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (Encoding != global::Chirpstack.Api.Encoding.Json) { - output.WriteRawTag(16); - output.WriteEnum((int) Encoding); - } - if (Region.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Region); - } - if (AccessKeyId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(AccessKeyId); - } - if (SecretAccessKey.Length != 0) { - output.WriteRawTag(42); - output.WriteString(SecretAccessKey); - } - if (TopicArn.Length != 0) { - output.WriteRawTag(50); - output.WriteString(TopicArn); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (Encoding != global::Chirpstack.Api.Encoding.Json) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Encoding); - } - if (Region.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Region); - } - if (AccessKeyId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AccessKeyId); - } - if (SecretAccessKey.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SecretAccessKey); - } - if (TopicArn.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TopicArn); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AwsSnsIntegration other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - if (other.Encoding != global::Chirpstack.Api.Encoding.Json) { - Encoding = other.Encoding; - } - if (other.Region.Length != 0) { - Region = other.Region; - } - if (other.AccessKeyId.Length != 0) { - AccessKeyId = other.AccessKeyId; - } - if (other.SecretAccessKey.Length != 0) { - SecretAccessKey = other.SecretAccessKey; - } - if (other.TopicArn.Length != 0) { - TopicArn = other.TopicArn; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 16: { - Encoding = (global::Chirpstack.Api.Encoding) input.ReadEnum(); - break; - } - case 26: { - Region = input.ReadString(); - break; - } - case 34: { - AccessKeyId = input.ReadString(); - break; - } - case 42: { - SecretAccessKey = input.ReadString(); - break; - } - case 50: { - TopicArn = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 16: { - Encoding = (global::Chirpstack.Api.Encoding) input.ReadEnum(); - break; - } - case 26: { - Region = input.ReadString(); - break; - } - case 34: { - AccessKeyId = input.ReadString(); - break; - } - case 42: { - SecretAccessKey = input.ReadString(); - break; - } - case 50: { - TopicArn = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateAwsSnsIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateAwsSnsIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[51]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateAwsSnsIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateAwsSnsIntegrationRequest(CreateAwsSnsIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateAwsSnsIntegrationRequest Clone() { - return new CreateAwsSnsIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.AwsSnsIntegration integration_; - /// - /// Integration object to create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.AwsSnsIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateAwsSnsIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateAwsSnsIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateAwsSnsIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.AwsSnsIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.AwsSnsIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.AwsSnsIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetAwsSnsIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAwsSnsIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[52]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAwsSnsIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAwsSnsIntegrationRequest(GetAwsSnsIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAwsSnsIntegrationRequest Clone() { - return new GetAwsSnsIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetAwsSnsIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetAwsSnsIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetAwsSnsIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetAwsSnsIntegrationResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAwsSnsIntegrationResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[53]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAwsSnsIntegrationResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAwsSnsIntegrationResponse(GetAwsSnsIntegrationResponse other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAwsSnsIntegrationResponse Clone() { - return new GetAwsSnsIntegrationResponse(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.AwsSnsIntegration integration_; - /// - /// Integration object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.AwsSnsIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetAwsSnsIntegrationResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetAwsSnsIntegrationResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetAwsSnsIntegrationResponse other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.AwsSnsIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.AwsSnsIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.AwsSnsIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateAwsSnsIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateAwsSnsIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[54]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateAwsSnsIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateAwsSnsIntegrationRequest(UpdateAwsSnsIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateAwsSnsIntegrationRequest Clone() { - return new UpdateAwsSnsIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.AwsSnsIntegration integration_; - /// - /// Integration object to update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.AwsSnsIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateAwsSnsIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateAwsSnsIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateAwsSnsIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.AwsSnsIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.AwsSnsIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.AwsSnsIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteAwsSnsIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteAwsSnsIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[55]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteAwsSnsIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteAwsSnsIntegrationRequest(DeleteAwsSnsIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteAwsSnsIntegrationRequest Clone() { - return new DeleteAwsSnsIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteAwsSnsIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteAwsSnsIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteAwsSnsIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class AzureServiceBusIntegration : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AzureServiceBusIntegration()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[56]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AzureServiceBusIntegration() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AzureServiceBusIntegration(AzureServiceBusIntegration other) : this() { - applicationId_ = other.applicationId_; - encoding_ = other.encoding_; - connectionString_ = other.connectionString_; - publishName_ = other.publishName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AzureServiceBusIntegration Clone() { - return new AzureServiceBusIntegration(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "encoding" field. - public const int EncodingFieldNumber = 2; - private global::Chirpstack.Api.Encoding encoding_ = global::Chirpstack.Api.Encoding.Json; - /// - /// Encoding. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.Encoding Encoding { - get { return encoding_; } - set { - encoding_ = value; - } - } - - /// Field number for the "connection_string" field. - public const int ConnectionStringFieldNumber = 3; - private string connectionString_ = ""; - /// - /// Connection string. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ConnectionString { - get { return connectionString_; } - set { - connectionString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "publish_name" field. - public const int PublishNameFieldNumber = 4; - private string publishName_ = ""; - /// - /// Publish name. - /// This is the name of the topic or queue. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PublishName { - get { return publishName_; } - set { - publishName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AzureServiceBusIntegration); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AzureServiceBusIntegration other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - if (Encoding != other.Encoding) return false; - if (ConnectionString != other.ConnectionString) return false; - if (PublishName != other.PublishName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (Encoding != global::Chirpstack.Api.Encoding.Json) hash ^= Encoding.GetHashCode(); - if (ConnectionString.Length != 0) hash ^= ConnectionString.GetHashCode(); - if (PublishName.Length != 0) hash ^= PublishName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (Encoding != global::Chirpstack.Api.Encoding.Json) { - output.WriteRawTag(16); - output.WriteEnum((int) Encoding); - } - if (ConnectionString.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ConnectionString); - } - if (PublishName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(PublishName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (Encoding != global::Chirpstack.Api.Encoding.Json) { - output.WriteRawTag(16); - output.WriteEnum((int) Encoding); - } - if (ConnectionString.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ConnectionString); - } - if (PublishName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(PublishName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (Encoding != global::Chirpstack.Api.Encoding.Json) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Encoding); - } - if (ConnectionString.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ConnectionString); - } - if (PublishName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PublishName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AzureServiceBusIntegration other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - if (other.Encoding != global::Chirpstack.Api.Encoding.Json) { - Encoding = other.Encoding; - } - if (other.ConnectionString.Length != 0) { - ConnectionString = other.ConnectionString; - } - if (other.PublishName.Length != 0) { - PublishName = other.PublishName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 16: { - Encoding = (global::Chirpstack.Api.Encoding) input.ReadEnum(); - break; - } - case 26: { - ConnectionString = input.ReadString(); - break; - } - case 34: { - PublishName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 16: { - Encoding = (global::Chirpstack.Api.Encoding) input.ReadEnum(); - break; - } - case 26: { - ConnectionString = input.ReadString(); - break; - } - case 34: { - PublishName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateAzureServiceBusIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateAzureServiceBusIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[57]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateAzureServiceBusIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateAzureServiceBusIntegrationRequest(CreateAzureServiceBusIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateAzureServiceBusIntegrationRequest Clone() { - return new CreateAzureServiceBusIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.AzureServiceBusIntegration integration_; - /// - /// Integration object to create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.AzureServiceBusIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateAzureServiceBusIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateAzureServiceBusIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateAzureServiceBusIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.AzureServiceBusIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.AzureServiceBusIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.AzureServiceBusIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetAzureServiceBusIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAzureServiceBusIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[58]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAzureServiceBusIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAzureServiceBusIntegrationRequest(GetAzureServiceBusIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAzureServiceBusIntegrationRequest Clone() { - return new GetAzureServiceBusIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetAzureServiceBusIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetAzureServiceBusIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetAzureServiceBusIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetAzureServiceBusIntegrationResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAzureServiceBusIntegrationResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[59]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAzureServiceBusIntegrationResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAzureServiceBusIntegrationResponse(GetAzureServiceBusIntegrationResponse other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAzureServiceBusIntegrationResponse Clone() { - return new GetAzureServiceBusIntegrationResponse(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.AzureServiceBusIntegration integration_; - /// - /// Integration object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.AzureServiceBusIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetAzureServiceBusIntegrationResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetAzureServiceBusIntegrationResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetAzureServiceBusIntegrationResponse other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.AzureServiceBusIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.AzureServiceBusIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.AzureServiceBusIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateAzureServiceBusIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateAzureServiceBusIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[60]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateAzureServiceBusIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateAzureServiceBusIntegrationRequest(UpdateAzureServiceBusIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateAzureServiceBusIntegrationRequest Clone() { - return new UpdateAzureServiceBusIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.AzureServiceBusIntegration integration_; - /// - /// Integration object to create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.AzureServiceBusIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateAzureServiceBusIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateAzureServiceBusIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateAzureServiceBusIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.AzureServiceBusIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.AzureServiceBusIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.AzureServiceBusIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteAzureServiceBusIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteAzureServiceBusIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[61]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteAzureServiceBusIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteAzureServiceBusIntegrationRequest(DeleteAzureServiceBusIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteAzureServiceBusIntegrationRequest Clone() { - return new DeleteAzureServiceBusIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteAzureServiceBusIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteAzureServiceBusIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteAzureServiceBusIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class PilotThingsIntegration : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PilotThingsIntegration()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[62]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PilotThingsIntegration() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PilotThingsIntegration(PilotThingsIntegration other) : this() { - applicationId_ = other.applicationId_; - server_ = other.server_; - token_ = other.token_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PilotThingsIntegration Clone() { - return new PilotThingsIntegration(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "server" field. - public const int ServerFieldNumber = 2; - private string server_ = ""; - /// - /// Server URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Server { - get { return server_; } - set { - server_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "token" field. - public const int TokenFieldNumber = 3; - private string token_ = ""; - /// - /// Authentication token. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Token { - get { return token_; } - set { - token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PilotThingsIntegration); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PilotThingsIntegration other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - if (Server != other.Server) return false; - if (Token != other.Token) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (Server.Length != 0) hash ^= Server.GetHashCode(); - if (Token.Length != 0) hash ^= Token.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (Server.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Server); - } - if (Token.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Token); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (Server.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Server); - } - if (Token.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Token); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (Server.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Server); - } - if (Token.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PilotThingsIntegration other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - if (other.Server.Length != 0) { - Server = other.Server; - } - if (other.Token.Length != 0) { - Token = other.Token; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 18: { - Server = input.ReadString(); - break; - } - case 26: { - Token = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 18: { - Server = input.ReadString(); - break; - } - case 26: { - Token = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreatePilotThingsIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreatePilotThingsIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[63]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreatePilotThingsIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreatePilotThingsIntegrationRequest(CreatePilotThingsIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreatePilotThingsIntegrationRequest Clone() { - return new CreatePilotThingsIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.PilotThingsIntegration integration_; - /// - /// Integration object to create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.PilotThingsIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreatePilotThingsIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreatePilotThingsIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreatePilotThingsIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.PilotThingsIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.PilotThingsIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.PilotThingsIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetPilotThingsIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPilotThingsIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[64]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetPilotThingsIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetPilotThingsIntegrationRequest(GetPilotThingsIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetPilotThingsIntegrationRequest Clone() { - return new GetPilotThingsIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetPilotThingsIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetPilotThingsIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetPilotThingsIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetPilotThingsIntegrationResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPilotThingsIntegrationResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[65]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetPilotThingsIntegrationResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetPilotThingsIntegrationResponse(GetPilotThingsIntegrationResponse other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetPilotThingsIntegrationResponse Clone() { - return new GetPilotThingsIntegrationResponse(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.PilotThingsIntegration integration_; - /// - /// Integration object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.PilotThingsIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetPilotThingsIntegrationResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetPilotThingsIntegrationResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetPilotThingsIntegrationResponse other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.PilotThingsIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.PilotThingsIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.PilotThingsIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdatePilotThingsIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdatePilotThingsIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[66]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdatePilotThingsIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdatePilotThingsIntegrationRequest(UpdatePilotThingsIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdatePilotThingsIntegrationRequest Clone() { - return new UpdatePilotThingsIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.PilotThingsIntegration integration_; - /// - /// Integration object to update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.PilotThingsIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdatePilotThingsIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdatePilotThingsIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdatePilotThingsIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.PilotThingsIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.PilotThingsIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.PilotThingsIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeletePilotThingsIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeletePilotThingsIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[67]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeletePilotThingsIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeletePilotThingsIntegrationRequest(DeletePilotThingsIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeletePilotThingsIntegrationRequest Clone() { - return new DeletePilotThingsIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeletePilotThingsIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeletePilotThingsIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeletePilotThingsIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class IftttIntegration : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IftttIntegration()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[68]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IftttIntegration() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IftttIntegration(IftttIntegration other) : this() { - applicationId_ = other.applicationId_; - key_ = other.key_; - uplinkValues_ = other.uplinkValues_.Clone(); - arbitraryJson_ = other.arbitraryJson_; - eventPrefix_ = other.eventPrefix_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IftttIntegration Clone() { - return new IftttIntegration(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "key" field. - public const int KeyFieldNumber = 2; - private string key_ = ""; - /// - /// Key. - /// This key can be obtained from the IFTTT Webhooks documentation page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Key { - get { return key_; } - set { - key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "uplink_values" field. - public const int UplinkValuesFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_uplinkValues_codec - = pb::FieldCodec.ForString(26); - private readonly pbc::RepeatedField uplinkValues_ = new pbc::RepeatedField(); - /// - /// Values. - /// Up to 2 values can be forwarded to IFTTT. These values must map to the - /// decoded payload keys. For example: - /// { - /// "batteryLevel": 75.3, - /// "buttons": [{"pressed": false}, {"pressed": true}] - /// } - /// You would specify the following fields: - /// uplink_values = ["batteryLevel", "buttons_0_pressed"] - /// - /// Notes: The first value is always used for the DevEUI. - /// Ignored if arbitrary_json is set to true. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UplinkValues { - get { return uplinkValues_; } - } - - /// Field number for the "arbitrary_json" field. - public const int ArbitraryJsonFieldNumber = 4; - private bool arbitraryJson_; - /// - /// Arbitrary JSON. - /// If set to true, ChirpStack events will be sent as-is as arbitrary JSON - /// payload. If set to false (default), the 3 JSON values format will be used. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ArbitraryJson { - get { return arbitraryJson_; } - set { - arbitraryJson_ = value; - } - } - - /// Field number for the "event_prefix" field. - public const int EventPrefixFieldNumber = 5; - private string eventPrefix_ = ""; - /// - /// Event prefix. - /// If set, the event name will be PREFIX_EVENT. For example if event_prefix - /// is set to weatherstation, and uplink event will be sent as - /// weatherstation_up to the IFTTT webhook. - /// Note: Only characters in the A-Z, a-z and 0-9 range are allowed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EventPrefix { - get { return eventPrefix_; } - set { - eventPrefix_ = 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 IftttIntegration); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(IftttIntegration other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - if (Key != other.Key) return false; - if(!uplinkValues_.Equals(other.uplinkValues_)) return false; - if (ArbitraryJson != other.ArbitraryJson) return false; - if (EventPrefix != other.EventPrefix) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (Key.Length != 0) hash ^= Key.GetHashCode(); - hash ^= uplinkValues_.GetHashCode(); - if (ArbitraryJson != false) hash ^= ArbitraryJson.GetHashCode(); - if (EventPrefix.Length != 0) hash ^= EventPrefix.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (Key.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Key); - } - uplinkValues_.WriteTo(output, _repeated_uplinkValues_codec); - if (ArbitraryJson != false) { - output.WriteRawTag(32); - output.WriteBool(ArbitraryJson); - } - if (EventPrefix.Length != 0) { - output.WriteRawTag(42); - output.WriteString(EventPrefix); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (Key.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Key); - } - uplinkValues_.WriteTo(ref output, _repeated_uplinkValues_codec); - if (ArbitraryJson != false) { - output.WriteRawTag(32); - output.WriteBool(ArbitraryJson); - } - if (EventPrefix.Length != 0) { - output.WriteRawTag(42); - output.WriteString(EventPrefix); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (Key.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); - } - size += uplinkValues_.CalculateSize(_repeated_uplinkValues_codec); - if (ArbitraryJson != false) { - size += 1 + 1; - } - if (EventPrefix.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EventPrefix); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(IftttIntegration other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - if (other.Key.Length != 0) { - Key = other.Key; - } - uplinkValues_.Add(other.uplinkValues_); - if (other.ArbitraryJson != false) { - ArbitraryJson = other.ArbitraryJson; - } - if (other.EventPrefix.Length != 0) { - EventPrefix = other.EventPrefix; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 18: { - Key = input.ReadString(); - break; - } - case 26: { - uplinkValues_.AddEntriesFrom(input, _repeated_uplinkValues_codec); - break; - } - case 32: { - ArbitraryJson = input.ReadBool(); - break; - } - case 42: { - EventPrefix = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - case 18: { - Key = input.ReadString(); - break; - } - case 26: { - uplinkValues_.AddEntriesFrom(ref input, _repeated_uplinkValues_codec); - break; - } - case 32: { - ArbitraryJson = input.ReadBool(); - break; - } - case 42: { - EventPrefix = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateIftttIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateIftttIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[69]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateIftttIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateIftttIntegrationRequest(CreateIftttIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateIftttIntegrationRequest Clone() { - return new CreateIftttIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.IftttIntegration integration_; - /// - /// Integration object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.IftttIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateIftttIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateIftttIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateIftttIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.IftttIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.IftttIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.IftttIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetIftttIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetIftttIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[70]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetIftttIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetIftttIntegrationRequest(GetIftttIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetIftttIntegrationRequest Clone() { - return new GetIftttIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetIftttIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetIftttIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetIftttIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetIftttIntegrationResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetIftttIntegrationResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[71]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetIftttIntegrationResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetIftttIntegrationResponse(GetIftttIntegrationResponse other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetIftttIntegrationResponse Clone() { - return new GetIftttIntegrationResponse(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.IftttIntegration integration_; - /// - /// Integration object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.IftttIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetIftttIntegrationResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetIftttIntegrationResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetIftttIntegrationResponse other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.IftttIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.IftttIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.IftttIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateIftttIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateIftttIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[72]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateIftttIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateIftttIntegrationRequest(UpdateIftttIntegrationRequest other) : this() { - integration_ = other.integration_ != null ? other.integration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateIftttIntegrationRequest Clone() { - return new UpdateIftttIntegrationRequest(this); - } - - /// Field number for the "integration" field. - public const int IntegrationFieldNumber = 1; - private global::Chirpstack.Api.IftttIntegration integration_; - /// - /// Integration object to update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.IftttIntegration Integration { - get { return integration_; } - set { - integration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateIftttIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateIftttIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Integration, other.Integration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (integration_ != null) hash ^= Integration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (integration_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Integration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (integration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Integration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateIftttIntegrationRequest other) { - if (other == null) { - return; - } - if (other.integration_ != null) { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.IftttIntegration(); - } - Integration.MergeFrom(other.Integration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.IftttIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (integration_ == null) { - Integration = new global::Chirpstack.Api.IftttIntegration(); - } - input.ReadMessage(Integration); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteIftttIntegrationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteIftttIntegrationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[73]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteIftttIntegrationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteIftttIntegrationRequest(DeleteIftttIntegrationRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteIftttIntegrationRequest Clone() { - return new DeleteIftttIntegrationRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteIftttIntegrationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteIftttIntegrationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteIftttIntegrationRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GenerateMqttIntegrationClientCertificateRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateMqttIntegrationClientCertificateRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[74]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateMqttIntegrationClientCertificateRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateMqttIntegrationClientCertificateRequest(GenerateMqttIntegrationClientCertificateRequest other) : this() { - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateMqttIntegrationClientCertificateRequest Clone() { - return new GenerateMqttIntegrationClientCertificateRequest(this); - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 1; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateMqttIntegrationClientCertificateRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateMqttIntegrationClientCertificateRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ApplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateMqttIntegrationClientCertificateRequest other) { - if (other == null) { - return; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GenerateMqttIntegrationClientCertificateResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateMqttIntegrationClientCertificateResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.MessageTypes[75]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateMqttIntegrationClientCertificateResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateMqttIntegrationClientCertificateResponse(GenerateMqttIntegrationClientCertificateResponse other) : this() { - tlsCert_ = other.tlsCert_; - tlsKey_ = other.tlsKey_; - caCert_ = other.caCert_; - expiresAt_ = other.expiresAt_ != null ? other.expiresAt_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateMqttIntegrationClientCertificateResponse Clone() { - return new GenerateMqttIntegrationClientCertificateResponse(this); - } - - /// Field number for the "tls_cert" field. - public const int TlsCertFieldNumber = 1; - private string tlsCert_ = ""; - /// - /// TLS certificate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TlsCert { - get { return tlsCert_; } - set { - tlsCert_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tls_key" field. - public const int TlsKeyFieldNumber = 2; - private string tlsKey_ = ""; - /// - /// TLS key. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TlsKey { - get { return tlsKey_; } - set { - tlsKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ca_cert" field. - public const int CaCertFieldNumber = 3; - private string caCert_ = ""; - /// - /// CA certificate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CaCert { - get { return caCert_; } - set { - caCert_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "expires_at" field. - public const int ExpiresAtFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.Timestamp expiresAt_; - /// - /// Expires at defines the expiration date of the certificate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp ExpiresAt { - get { return expiresAt_; } - set { - expiresAt_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateMqttIntegrationClientCertificateResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateMqttIntegrationClientCertificateResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TlsCert != other.TlsCert) return false; - if (TlsKey != other.TlsKey) return false; - if (CaCert != other.CaCert) return false; - if (!object.Equals(ExpiresAt, other.ExpiresAt)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TlsCert.Length != 0) hash ^= TlsCert.GetHashCode(); - if (TlsKey.Length != 0) hash ^= TlsKey.GetHashCode(); - if (CaCert.Length != 0) hash ^= CaCert.GetHashCode(); - if (expiresAt_ != null) hash ^= ExpiresAt.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TlsCert.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TlsCert); - } - if (TlsKey.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TlsKey); - } - if (CaCert.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CaCert); - } - if (expiresAt_ != null) { - output.WriteRawTag(34); - output.WriteMessage(ExpiresAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TlsCert.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TlsCert); - } - if (TlsKey.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TlsKey); - } - if (CaCert.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CaCert); - } - if (expiresAt_ != null) { - output.WriteRawTag(34); - output.WriteMessage(ExpiresAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TlsCert.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TlsCert); - } - if (TlsKey.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TlsKey); - } - if (CaCert.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CaCert); - } - if (expiresAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpiresAt); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateMqttIntegrationClientCertificateResponse other) { - if (other == null) { - return; - } - if (other.TlsCert.Length != 0) { - TlsCert = other.TlsCert; - } - if (other.TlsKey.Length != 0) { - TlsKey = other.TlsKey; - } - if (other.CaCert.Length != 0) { - CaCert = other.CaCert; - } - if (other.expiresAt_ != null) { - if (expiresAt_ == null) { - ExpiresAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - ExpiresAt.MergeFrom(other.ExpiresAt); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - TlsCert = input.ReadString(); - break; - } - case 18: { - TlsKey = input.ReadString(); - break; - } - case 26: { - CaCert = input.ReadString(); - break; - } - case 34: { - if (expiresAt_ == null) { - ExpiresAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(ExpiresAt); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - TlsCert = input.ReadString(); - break; - } - case 18: { - TlsKey = input.ReadString(); - break; - } - case 26: { - CaCert = input.ReadString(); - break; - } - case 34: { - if (expiresAt_ == null) { - ExpiresAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(ExpiresAt); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/ApplicationGrpc.cs b/api/csharp/Chirpstack/api/ApplicationGrpc.cs deleted file mode 100644 index c8369f27..00000000 --- a/api/csharp/Chirpstack/api/ApplicationGrpc.cs +++ /dev/null @@ -1,3535 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/application.proto -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Chirpstack.Api { - /// - /// ApplicationService is the service providing API methods for managing - /// applications. - /// - public static partial class ApplicationService - { - static readonly string __ServiceName = "api.ApplicationService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateApplicationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateApplicationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateApplicationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateApplicationResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetApplicationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetApplicationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetApplicationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetApplicationResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateApplicationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateApplicationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteApplicationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteApplicationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListApplicationsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListApplicationsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListApplicationsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListApplicationsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListIntegrationsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListIntegrationsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListIntegrationsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListIntegrationsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateHttpIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateHttpIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetHttpIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetHttpIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetHttpIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetHttpIntegrationResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateHttpIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateHttpIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteHttpIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteHttpIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateInfluxDbIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateInfluxDbIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetInfluxDbIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetInfluxDbIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetInfluxDbIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetInfluxDbIntegrationResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateInfluxDbIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateInfluxDbIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteInfluxDbIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteInfluxDbIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateThingsBoardIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateThingsBoardIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetThingsBoardIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetThingsBoardIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetThingsBoardIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetThingsBoardIntegrationResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateThingsBoardIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateThingsBoardIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteThingsBoardIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteThingsBoardIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateMyDevicesIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateMyDevicesIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetMyDevicesIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetMyDevicesIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetMyDevicesIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetMyDevicesIntegrationResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateMyDevicesIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateMyDevicesIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteMyDevicesIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteMyDevicesIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateLoraCloudIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateLoraCloudIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetLoraCloudIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetLoraCloudIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetLoraCloudIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetLoraCloudIntegrationResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateLoraCloudIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateLoraCloudIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteLoraCloudIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteLoraCloudIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateGcpPubSubIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateGcpPubSubIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetGcpPubSubIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetGcpPubSubIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetGcpPubSubIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetGcpPubSubIntegrationResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateGcpPubSubIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateGcpPubSubIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteGcpPubSubIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteGcpPubSubIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateAwsSnsIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateAwsSnsIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetAwsSnsIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetAwsSnsIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetAwsSnsIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetAwsSnsIntegrationResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateAwsSnsIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateAwsSnsIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteAwsSnsIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteAwsSnsIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateAzureServiceBusIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateAzureServiceBusIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetAzureServiceBusIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetAzureServiceBusIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetAzureServiceBusIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetAzureServiceBusIntegrationResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateAzureServiceBusIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateAzureServiceBusIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteAzureServiceBusIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteAzureServiceBusIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreatePilotThingsIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreatePilotThingsIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetPilotThingsIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetPilotThingsIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetPilotThingsIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetPilotThingsIntegrationResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdatePilotThingsIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdatePilotThingsIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeletePilotThingsIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeletePilotThingsIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateIftttIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateIftttIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetIftttIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetIftttIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetIftttIntegrationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetIftttIntegrationResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateIftttIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateIftttIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteIftttIntegrationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteIftttIntegrationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GenerateMqttIntegrationClientCertificateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GenerateMqttIntegrationClientCertificateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Create = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Create", - __Marshaller_api_CreateApplicationRequest, - __Marshaller_api_CreateApplicationResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Get = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Get", - __Marshaller_api_GetApplicationRequest, - __Marshaller_api_GetApplicationResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Update = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Update", - __Marshaller_api_UpdateApplicationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Delete = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Delete", - __Marshaller_api_DeleteApplicationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_List = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "List", - __Marshaller_api_ListApplicationsRequest, - __Marshaller_api_ListApplicationsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ListIntegrations = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ListIntegrations", - __Marshaller_api_ListIntegrationsRequest, - __Marshaller_api_ListIntegrationsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_CreateHttpIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "CreateHttpIntegration", - __Marshaller_api_CreateHttpIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetHttpIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetHttpIntegration", - __Marshaller_api_GetHttpIntegrationRequest, - __Marshaller_api_GetHttpIntegrationResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdateHttpIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdateHttpIntegration", - __Marshaller_api_UpdateHttpIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_DeleteHttpIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "DeleteHttpIntegration", - __Marshaller_api_DeleteHttpIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_CreateInfluxDbIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "CreateInfluxDbIntegration", - __Marshaller_api_CreateInfluxDbIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetInfluxDbIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetInfluxDbIntegration", - __Marshaller_api_GetInfluxDbIntegrationRequest, - __Marshaller_api_GetInfluxDbIntegrationResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdateInfluxDbIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdateInfluxDbIntegration", - __Marshaller_api_UpdateInfluxDbIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_DeleteInfluxDbIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "DeleteInfluxDbIntegration", - __Marshaller_api_DeleteInfluxDbIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_CreateThingsBoardIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "CreateThingsBoardIntegration", - __Marshaller_api_CreateThingsBoardIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetThingsBoardIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetThingsBoardIntegration", - __Marshaller_api_GetThingsBoardIntegrationRequest, - __Marshaller_api_GetThingsBoardIntegrationResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdateThingsBoardIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdateThingsBoardIntegration", - __Marshaller_api_UpdateThingsBoardIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_DeleteThingsBoardIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "DeleteThingsBoardIntegration", - __Marshaller_api_DeleteThingsBoardIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_CreateMyDevicesIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "CreateMyDevicesIntegration", - __Marshaller_api_CreateMyDevicesIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetMyDevicesIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetMyDevicesIntegration", - __Marshaller_api_GetMyDevicesIntegrationRequest, - __Marshaller_api_GetMyDevicesIntegrationResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdateMyDevicesIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdateMyDevicesIntegration", - __Marshaller_api_UpdateMyDevicesIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_DeleteMyDevicesIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "DeleteMyDevicesIntegration", - __Marshaller_api_DeleteMyDevicesIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_CreateLoraCloudIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "CreateLoraCloudIntegration", - __Marshaller_api_CreateLoraCloudIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetLoraCloudIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetLoraCloudIntegration", - __Marshaller_api_GetLoraCloudIntegrationRequest, - __Marshaller_api_GetLoraCloudIntegrationResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdateLoraCloudIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdateLoraCloudIntegration", - __Marshaller_api_UpdateLoraCloudIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_DeleteLoraCloudIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "DeleteLoraCloudIntegration", - __Marshaller_api_DeleteLoraCloudIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_CreateGcpPubSubIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "CreateGcpPubSubIntegration", - __Marshaller_api_CreateGcpPubSubIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetGcpPubSubIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetGcpPubSubIntegration", - __Marshaller_api_GetGcpPubSubIntegrationRequest, - __Marshaller_api_GetGcpPubSubIntegrationResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdateGcpPubSubIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdateGcpPubSubIntegration", - __Marshaller_api_UpdateGcpPubSubIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_DeleteGcpPubSubIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "DeleteGcpPubSubIntegration", - __Marshaller_api_DeleteGcpPubSubIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_CreateAwsSnsIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "CreateAwsSnsIntegration", - __Marshaller_api_CreateAwsSnsIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetAwsSnsIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetAwsSnsIntegration", - __Marshaller_api_GetAwsSnsIntegrationRequest, - __Marshaller_api_GetAwsSnsIntegrationResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdateAwsSnsIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdateAwsSnsIntegration", - __Marshaller_api_UpdateAwsSnsIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_DeleteAwsSnsIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "DeleteAwsSnsIntegration", - __Marshaller_api_DeleteAwsSnsIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_CreateAzureServiceBusIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "CreateAzureServiceBusIntegration", - __Marshaller_api_CreateAzureServiceBusIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetAzureServiceBusIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetAzureServiceBusIntegration", - __Marshaller_api_GetAzureServiceBusIntegrationRequest, - __Marshaller_api_GetAzureServiceBusIntegrationResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdateAzureServiceBusIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdateAzureServiceBusIntegration", - __Marshaller_api_UpdateAzureServiceBusIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_DeleteAzureServiceBusIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "DeleteAzureServiceBusIntegration", - __Marshaller_api_DeleteAzureServiceBusIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_CreatePilotThingsIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "CreatePilotThingsIntegration", - __Marshaller_api_CreatePilotThingsIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetPilotThingsIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetPilotThingsIntegration", - __Marshaller_api_GetPilotThingsIntegrationRequest, - __Marshaller_api_GetPilotThingsIntegrationResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdatePilotThingsIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdatePilotThingsIntegration", - __Marshaller_api_UpdatePilotThingsIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_DeletePilotThingsIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "DeletePilotThingsIntegration", - __Marshaller_api_DeletePilotThingsIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_CreateIftttIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "CreateIftttIntegration", - __Marshaller_api_CreateIftttIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetIftttIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetIftttIntegration", - __Marshaller_api_GetIftttIntegrationRequest, - __Marshaller_api_GetIftttIntegrationResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdateIftttIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdateIftttIntegration", - __Marshaller_api_UpdateIftttIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_DeleteIftttIntegration = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "DeleteIftttIntegration", - __Marshaller_api_DeleteIftttIntegrationRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GenerateMqttIntegrationClientCertificate = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GenerateMqttIntegrationClientCertificate", - __Marshaller_api_GenerateMqttIntegrationClientCertificateRequest, - __Marshaller_api_GenerateMqttIntegrationClientCertificateResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Chirpstack.Api.ApplicationReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of ApplicationService - [grpc::BindServiceMethod(typeof(ApplicationService), "BindService")] - public abstract partial class ApplicationServiceBase - { - /// - /// Create creates the given application. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Create(global::Chirpstack.Api.CreateApplicationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get the application for the given ID. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Get(global::Chirpstack.Api.GetApplicationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update updates the given application. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Update(global::Chirpstack.Api.UpdateApplicationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete the application for the given ID. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Delete(global::Chirpstack.Api.DeleteApplicationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get the list of applications. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task List(global::Chirpstack.Api.ListApplicationsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// List all configured integrations. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ListIntegrations(global::Chirpstack.Api.ListIntegrationsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Create HTTP integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task CreateHttpIntegration(global::Chirpstack.Api.CreateHttpIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get the configured HTTP integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetHttpIntegration(global::Chirpstack.Api.GetHttpIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update the HTTP integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UpdateHttpIntegration(global::Chirpstack.Api.UpdateHttpIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete the HTTP integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task DeleteHttpIntegration(global::Chirpstack.Api.DeleteHttpIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Create InfluxDb integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task CreateInfluxDbIntegration(global::Chirpstack.Api.CreateInfluxDbIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get InfluxDb integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetInfluxDbIntegration(global::Chirpstack.Api.GetInfluxDbIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update InfluxDb integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UpdateInfluxDbIntegration(global::Chirpstack.Api.UpdateInfluxDbIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete InfluxDb integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task DeleteInfluxDbIntegration(global::Chirpstack.Api.DeleteInfluxDbIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Create ThingsBoard integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task CreateThingsBoardIntegration(global::Chirpstack.Api.CreateThingsBoardIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get ThingsBoard integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetThingsBoardIntegration(global::Chirpstack.Api.GetThingsBoardIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update ThingsBoard integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UpdateThingsBoardIntegration(global::Chirpstack.Api.UpdateThingsBoardIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete ThingsBoard integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task DeleteThingsBoardIntegration(global::Chirpstack.Api.DeleteThingsBoardIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Create myDevices integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task CreateMyDevicesIntegration(global::Chirpstack.Api.CreateMyDevicesIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get myDevices integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetMyDevicesIntegration(global::Chirpstack.Api.GetMyDevicesIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update myDevices integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UpdateMyDevicesIntegration(global::Chirpstack.Api.UpdateMyDevicesIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete myDevices integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task DeleteMyDevicesIntegration(global::Chirpstack.Api.DeleteMyDevicesIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Create LoRaCloud integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task CreateLoraCloudIntegration(global::Chirpstack.Api.CreateLoraCloudIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get LoRaCloud integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetLoraCloudIntegration(global::Chirpstack.Api.GetLoraCloudIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update LoRaCloud integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UpdateLoraCloudIntegration(global::Chirpstack.Api.UpdateLoraCloudIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete LoRaCloud integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task DeleteLoraCloudIntegration(global::Chirpstack.Api.DeleteLoraCloudIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Create GCP Pub/Sub integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task CreateGcpPubSubIntegration(global::Chirpstack.Api.CreateGcpPubSubIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get GCP Pub/Sub integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetGcpPubSubIntegration(global::Chirpstack.Api.GetGcpPubSubIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update GCP Pub/Sub integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UpdateGcpPubSubIntegration(global::Chirpstack.Api.UpdateGcpPubSubIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete GCP Pub/Sub integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task DeleteGcpPubSubIntegration(global::Chirpstack.Api.DeleteGcpPubSubIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Create AWS SNS integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task CreateAwsSnsIntegration(global::Chirpstack.Api.CreateAwsSnsIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get AWS SNS integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetAwsSnsIntegration(global::Chirpstack.Api.GetAwsSnsIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update AWS SNS integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UpdateAwsSnsIntegration(global::Chirpstack.Api.UpdateAwsSnsIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete AWS SNS integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task DeleteAwsSnsIntegration(global::Chirpstack.Api.DeleteAwsSnsIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Create Azure Service-Bus integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task CreateAzureServiceBusIntegration(global::Chirpstack.Api.CreateAzureServiceBusIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get Azure Service-Bus integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetAzureServiceBusIntegration(global::Chirpstack.Api.GetAzureServiceBusIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update Azure Service-Bus integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UpdateAzureServiceBusIntegration(global::Chirpstack.Api.UpdateAzureServiceBusIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete Azure Service-Bus integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task DeleteAzureServiceBusIntegration(global::Chirpstack.Api.DeleteAzureServiceBusIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Create Pilot Things integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task CreatePilotThingsIntegration(global::Chirpstack.Api.CreatePilotThingsIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get Pilot Things integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetPilotThingsIntegration(global::Chirpstack.Api.GetPilotThingsIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update Pilot Things integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UpdatePilotThingsIntegration(global::Chirpstack.Api.UpdatePilotThingsIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete Pilot Things integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task DeletePilotThingsIntegration(global::Chirpstack.Api.DeletePilotThingsIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Create IFTTT integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task CreateIftttIntegration(global::Chirpstack.Api.CreateIftttIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get IFTTT integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetIftttIntegration(global::Chirpstack.Api.GetIftttIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update IFTTT integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UpdateIftttIntegration(global::Chirpstack.Api.UpdateIftttIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete IFTTT integration. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task DeleteIftttIntegration(global::Chirpstack.Api.DeleteIftttIntegrationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Generates application ID specific client-certificate. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GenerateMqttIntegrationClientCertificate(global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for ApplicationService - public partial class ApplicationServiceClient : grpc::ClientBase - { - /// Creates a new client for ApplicationService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ApplicationServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for ApplicationService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ApplicationServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ApplicationServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ApplicationServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Create creates the given application. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.CreateApplicationResponse Create(global::Chirpstack.Api.CreateApplicationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Create(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create creates the given application. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.CreateApplicationResponse Create(global::Chirpstack.Api.CreateApplicationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); - } - /// - /// Create creates the given application. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateApplicationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create creates the given application. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateApplicationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); - } - /// - /// Get the application for the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetApplicationResponse Get(global::Chirpstack.Api.GetApplicationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Get(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the application for the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetApplicationResponse Get(global::Chirpstack.Api.GetApplicationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); - } - /// - /// Get the application for the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetApplicationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the application for the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetApplicationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); - } - /// - /// Update updates the given application. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateApplicationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Update(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update updates the given application. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateApplicationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); - } - /// - /// Update updates the given application. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateApplicationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update updates the given application. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateApplicationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); - } - /// - /// Delete the application for the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteApplicationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Delete(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the application for the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteApplicationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); - } - /// - /// Delete the application for the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteApplicationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the application for the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteApplicationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); - } - /// - /// Get the list of applications. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListApplicationsResponse List(global::Chirpstack.Api.ListApplicationsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return List(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the list of applications. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListApplicationsResponse List(global::Chirpstack.Api.ListApplicationsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); - } - /// - /// Get the list of applications. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListApplicationsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the list of applications. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListApplicationsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); - } - /// - /// List all configured integrations. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListIntegrationsResponse ListIntegrations(global::Chirpstack.Api.ListIntegrationsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListIntegrations(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// List all configured integrations. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListIntegrationsResponse ListIntegrations(global::Chirpstack.Api.ListIntegrationsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ListIntegrations, null, options, request); - } - /// - /// List all configured integrations. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListIntegrationsAsync(global::Chirpstack.Api.ListIntegrationsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListIntegrationsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// List all configured integrations. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListIntegrationsAsync(global::Chirpstack.Api.ListIntegrationsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ListIntegrations, null, options, request); - } - /// - /// Create HTTP integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateHttpIntegration(global::Chirpstack.Api.CreateHttpIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateHttpIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create HTTP integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateHttpIntegration(global::Chirpstack.Api.CreateHttpIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CreateHttpIntegration, null, options, request); - } - /// - /// Create HTTP integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateHttpIntegrationAsync(global::Chirpstack.Api.CreateHttpIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateHttpIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create HTTP integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateHttpIntegrationAsync(global::Chirpstack.Api.CreateHttpIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CreateHttpIntegration, null, options, request); - } - /// - /// Get the configured HTTP integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetHttpIntegrationResponse GetHttpIntegration(global::Chirpstack.Api.GetHttpIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetHttpIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the configured HTTP integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetHttpIntegrationResponse GetHttpIntegration(global::Chirpstack.Api.GetHttpIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetHttpIntegration, null, options, request); - } - /// - /// Get the configured HTTP integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetHttpIntegrationAsync(global::Chirpstack.Api.GetHttpIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetHttpIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the configured HTTP integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetHttpIntegrationAsync(global::Chirpstack.Api.GetHttpIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetHttpIntegration, null, options, request); - } - /// - /// Update the HTTP integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateHttpIntegration(global::Chirpstack.Api.UpdateHttpIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateHttpIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the HTTP integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateHttpIntegration(global::Chirpstack.Api.UpdateHttpIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdateHttpIntegration, null, options, request); - } - /// - /// Update the HTTP integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateHttpIntegrationAsync(global::Chirpstack.Api.UpdateHttpIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateHttpIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the HTTP integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateHttpIntegrationAsync(global::Chirpstack.Api.UpdateHttpIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdateHttpIntegration, null, options, request); - } - /// - /// Delete the HTTP integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteHttpIntegration(global::Chirpstack.Api.DeleteHttpIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteHttpIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the HTTP integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteHttpIntegration(global::Chirpstack.Api.DeleteHttpIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_DeleteHttpIntegration, null, options, request); - } - /// - /// Delete the HTTP integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteHttpIntegrationAsync(global::Chirpstack.Api.DeleteHttpIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteHttpIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the HTTP integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteHttpIntegrationAsync(global::Chirpstack.Api.DeleteHttpIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_DeleteHttpIntegration, null, options, request); - } - /// - /// Create InfluxDb integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateInfluxDbIntegration(global::Chirpstack.Api.CreateInfluxDbIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateInfluxDbIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create InfluxDb integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateInfluxDbIntegration(global::Chirpstack.Api.CreateInfluxDbIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CreateInfluxDbIntegration, null, options, request); - } - /// - /// Create InfluxDb integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateInfluxDbIntegrationAsync(global::Chirpstack.Api.CreateInfluxDbIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateInfluxDbIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create InfluxDb integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateInfluxDbIntegrationAsync(global::Chirpstack.Api.CreateInfluxDbIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CreateInfluxDbIntegration, null, options, request); - } - /// - /// Get InfluxDb integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetInfluxDbIntegrationResponse GetInfluxDbIntegration(global::Chirpstack.Api.GetInfluxDbIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetInfluxDbIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get InfluxDb integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetInfluxDbIntegrationResponse GetInfluxDbIntegration(global::Chirpstack.Api.GetInfluxDbIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetInfluxDbIntegration, null, options, request); - } - /// - /// Get InfluxDb integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetInfluxDbIntegrationAsync(global::Chirpstack.Api.GetInfluxDbIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetInfluxDbIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get InfluxDb integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetInfluxDbIntegrationAsync(global::Chirpstack.Api.GetInfluxDbIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetInfluxDbIntegration, null, options, request); - } - /// - /// Update InfluxDb integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateInfluxDbIntegration(global::Chirpstack.Api.UpdateInfluxDbIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateInfluxDbIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update InfluxDb integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateInfluxDbIntegration(global::Chirpstack.Api.UpdateInfluxDbIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdateInfluxDbIntegration, null, options, request); - } - /// - /// Update InfluxDb integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateInfluxDbIntegrationAsync(global::Chirpstack.Api.UpdateInfluxDbIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateInfluxDbIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update InfluxDb integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateInfluxDbIntegrationAsync(global::Chirpstack.Api.UpdateInfluxDbIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdateInfluxDbIntegration, null, options, request); - } - /// - /// Delete InfluxDb integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteInfluxDbIntegration(global::Chirpstack.Api.DeleteInfluxDbIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteInfluxDbIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete InfluxDb integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteInfluxDbIntegration(global::Chirpstack.Api.DeleteInfluxDbIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_DeleteInfluxDbIntegration, null, options, request); - } - /// - /// Delete InfluxDb integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteInfluxDbIntegrationAsync(global::Chirpstack.Api.DeleteInfluxDbIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteInfluxDbIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete InfluxDb integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteInfluxDbIntegrationAsync(global::Chirpstack.Api.DeleteInfluxDbIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_DeleteInfluxDbIntegration, null, options, request); - } - /// - /// Create ThingsBoard integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateThingsBoardIntegration(global::Chirpstack.Api.CreateThingsBoardIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateThingsBoardIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create ThingsBoard integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateThingsBoardIntegration(global::Chirpstack.Api.CreateThingsBoardIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CreateThingsBoardIntegration, null, options, request); - } - /// - /// Create ThingsBoard integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateThingsBoardIntegrationAsync(global::Chirpstack.Api.CreateThingsBoardIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateThingsBoardIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create ThingsBoard integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateThingsBoardIntegrationAsync(global::Chirpstack.Api.CreateThingsBoardIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CreateThingsBoardIntegration, null, options, request); - } - /// - /// Get ThingsBoard integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetThingsBoardIntegrationResponse GetThingsBoardIntegration(global::Chirpstack.Api.GetThingsBoardIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetThingsBoardIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get ThingsBoard integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetThingsBoardIntegrationResponse GetThingsBoardIntegration(global::Chirpstack.Api.GetThingsBoardIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetThingsBoardIntegration, null, options, request); - } - /// - /// Get ThingsBoard integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetThingsBoardIntegrationAsync(global::Chirpstack.Api.GetThingsBoardIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetThingsBoardIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get ThingsBoard integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetThingsBoardIntegrationAsync(global::Chirpstack.Api.GetThingsBoardIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetThingsBoardIntegration, null, options, request); - } - /// - /// Update ThingsBoard integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateThingsBoardIntegration(global::Chirpstack.Api.UpdateThingsBoardIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateThingsBoardIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update ThingsBoard integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateThingsBoardIntegration(global::Chirpstack.Api.UpdateThingsBoardIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdateThingsBoardIntegration, null, options, request); - } - /// - /// Update ThingsBoard integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateThingsBoardIntegrationAsync(global::Chirpstack.Api.UpdateThingsBoardIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateThingsBoardIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update ThingsBoard integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateThingsBoardIntegrationAsync(global::Chirpstack.Api.UpdateThingsBoardIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdateThingsBoardIntegration, null, options, request); - } - /// - /// Delete ThingsBoard integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteThingsBoardIntegration(global::Chirpstack.Api.DeleteThingsBoardIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteThingsBoardIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete ThingsBoard integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteThingsBoardIntegration(global::Chirpstack.Api.DeleteThingsBoardIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_DeleteThingsBoardIntegration, null, options, request); - } - /// - /// Delete ThingsBoard integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteThingsBoardIntegrationAsync(global::Chirpstack.Api.DeleteThingsBoardIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteThingsBoardIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete ThingsBoard integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteThingsBoardIntegrationAsync(global::Chirpstack.Api.DeleteThingsBoardIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_DeleteThingsBoardIntegration, null, options, request); - } - /// - /// Create myDevices integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateMyDevicesIntegration(global::Chirpstack.Api.CreateMyDevicesIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateMyDevicesIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create myDevices integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateMyDevicesIntegration(global::Chirpstack.Api.CreateMyDevicesIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CreateMyDevicesIntegration, null, options, request); - } - /// - /// Create myDevices integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateMyDevicesIntegrationAsync(global::Chirpstack.Api.CreateMyDevicesIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateMyDevicesIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create myDevices integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateMyDevicesIntegrationAsync(global::Chirpstack.Api.CreateMyDevicesIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CreateMyDevicesIntegration, null, options, request); - } - /// - /// Get myDevices integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetMyDevicesIntegrationResponse GetMyDevicesIntegration(global::Chirpstack.Api.GetMyDevicesIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetMyDevicesIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get myDevices integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetMyDevicesIntegrationResponse GetMyDevicesIntegration(global::Chirpstack.Api.GetMyDevicesIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetMyDevicesIntegration, null, options, request); - } - /// - /// Get myDevices integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetMyDevicesIntegrationAsync(global::Chirpstack.Api.GetMyDevicesIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetMyDevicesIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get myDevices integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetMyDevicesIntegrationAsync(global::Chirpstack.Api.GetMyDevicesIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetMyDevicesIntegration, null, options, request); - } - /// - /// Update myDevices integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateMyDevicesIntegration(global::Chirpstack.Api.UpdateMyDevicesIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateMyDevicesIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update myDevices integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateMyDevicesIntegration(global::Chirpstack.Api.UpdateMyDevicesIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdateMyDevicesIntegration, null, options, request); - } - /// - /// Update myDevices integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateMyDevicesIntegrationAsync(global::Chirpstack.Api.UpdateMyDevicesIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateMyDevicesIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update myDevices integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateMyDevicesIntegrationAsync(global::Chirpstack.Api.UpdateMyDevicesIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdateMyDevicesIntegration, null, options, request); - } - /// - /// Delete myDevices integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteMyDevicesIntegration(global::Chirpstack.Api.DeleteMyDevicesIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteMyDevicesIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete myDevices integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteMyDevicesIntegration(global::Chirpstack.Api.DeleteMyDevicesIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_DeleteMyDevicesIntegration, null, options, request); - } - /// - /// Delete myDevices integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteMyDevicesIntegrationAsync(global::Chirpstack.Api.DeleteMyDevicesIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteMyDevicesIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete myDevices integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteMyDevicesIntegrationAsync(global::Chirpstack.Api.DeleteMyDevicesIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_DeleteMyDevicesIntegration, null, options, request); - } - /// - /// Create LoRaCloud integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateLoraCloudIntegration(global::Chirpstack.Api.CreateLoraCloudIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateLoraCloudIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create LoRaCloud integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateLoraCloudIntegration(global::Chirpstack.Api.CreateLoraCloudIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CreateLoraCloudIntegration, null, options, request); - } - /// - /// Create LoRaCloud integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateLoraCloudIntegrationAsync(global::Chirpstack.Api.CreateLoraCloudIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateLoraCloudIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create LoRaCloud integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateLoraCloudIntegrationAsync(global::Chirpstack.Api.CreateLoraCloudIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CreateLoraCloudIntegration, null, options, request); - } - /// - /// Get LoRaCloud integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetLoraCloudIntegrationResponse GetLoraCloudIntegration(global::Chirpstack.Api.GetLoraCloudIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetLoraCloudIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get LoRaCloud integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetLoraCloudIntegrationResponse GetLoraCloudIntegration(global::Chirpstack.Api.GetLoraCloudIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetLoraCloudIntegration, null, options, request); - } - /// - /// Get LoRaCloud integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetLoraCloudIntegrationAsync(global::Chirpstack.Api.GetLoraCloudIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetLoraCloudIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get LoRaCloud integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetLoraCloudIntegrationAsync(global::Chirpstack.Api.GetLoraCloudIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetLoraCloudIntegration, null, options, request); - } - /// - /// Update LoRaCloud integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateLoraCloudIntegration(global::Chirpstack.Api.UpdateLoraCloudIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateLoraCloudIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update LoRaCloud integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateLoraCloudIntegration(global::Chirpstack.Api.UpdateLoraCloudIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdateLoraCloudIntegration, null, options, request); - } - /// - /// Update LoRaCloud integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateLoraCloudIntegrationAsync(global::Chirpstack.Api.UpdateLoraCloudIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateLoraCloudIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update LoRaCloud integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateLoraCloudIntegrationAsync(global::Chirpstack.Api.UpdateLoraCloudIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdateLoraCloudIntegration, null, options, request); - } - /// - /// Delete LoRaCloud integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteLoraCloudIntegration(global::Chirpstack.Api.DeleteLoraCloudIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteLoraCloudIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete LoRaCloud integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteLoraCloudIntegration(global::Chirpstack.Api.DeleteLoraCloudIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_DeleteLoraCloudIntegration, null, options, request); - } - /// - /// Delete LoRaCloud integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteLoraCloudIntegrationAsync(global::Chirpstack.Api.DeleteLoraCloudIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteLoraCloudIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete LoRaCloud integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteLoraCloudIntegrationAsync(global::Chirpstack.Api.DeleteLoraCloudIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_DeleteLoraCloudIntegration, null, options, request); - } - /// - /// Create GCP Pub/Sub integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateGcpPubSubIntegration(global::Chirpstack.Api.CreateGcpPubSubIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateGcpPubSubIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create GCP Pub/Sub integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateGcpPubSubIntegration(global::Chirpstack.Api.CreateGcpPubSubIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CreateGcpPubSubIntegration, null, options, request); - } - /// - /// Create GCP Pub/Sub integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateGcpPubSubIntegrationAsync(global::Chirpstack.Api.CreateGcpPubSubIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateGcpPubSubIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create GCP Pub/Sub integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateGcpPubSubIntegrationAsync(global::Chirpstack.Api.CreateGcpPubSubIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CreateGcpPubSubIntegration, null, options, request); - } - /// - /// Get GCP Pub/Sub integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetGcpPubSubIntegrationResponse GetGcpPubSubIntegration(global::Chirpstack.Api.GetGcpPubSubIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetGcpPubSubIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get GCP Pub/Sub integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetGcpPubSubIntegrationResponse GetGcpPubSubIntegration(global::Chirpstack.Api.GetGcpPubSubIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetGcpPubSubIntegration, null, options, request); - } - /// - /// Get GCP Pub/Sub integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetGcpPubSubIntegrationAsync(global::Chirpstack.Api.GetGcpPubSubIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetGcpPubSubIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get GCP Pub/Sub integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetGcpPubSubIntegrationAsync(global::Chirpstack.Api.GetGcpPubSubIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetGcpPubSubIntegration, null, options, request); - } - /// - /// Update GCP Pub/Sub integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateGcpPubSubIntegration(global::Chirpstack.Api.UpdateGcpPubSubIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateGcpPubSubIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update GCP Pub/Sub integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateGcpPubSubIntegration(global::Chirpstack.Api.UpdateGcpPubSubIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdateGcpPubSubIntegration, null, options, request); - } - /// - /// Update GCP Pub/Sub integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateGcpPubSubIntegrationAsync(global::Chirpstack.Api.UpdateGcpPubSubIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateGcpPubSubIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update GCP Pub/Sub integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateGcpPubSubIntegrationAsync(global::Chirpstack.Api.UpdateGcpPubSubIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdateGcpPubSubIntegration, null, options, request); - } - /// - /// Delete GCP Pub/Sub integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteGcpPubSubIntegration(global::Chirpstack.Api.DeleteGcpPubSubIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteGcpPubSubIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete GCP Pub/Sub integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteGcpPubSubIntegration(global::Chirpstack.Api.DeleteGcpPubSubIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_DeleteGcpPubSubIntegration, null, options, request); - } - /// - /// Delete GCP Pub/Sub integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteGcpPubSubIntegrationAsync(global::Chirpstack.Api.DeleteGcpPubSubIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteGcpPubSubIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete GCP Pub/Sub integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteGcpPubSubIntegrationAsync(global::Chirpstack.Api.DeleteGcpPubSubIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_DeleteGcpPubSubIntegration, null, options, request); - } - /// - /// Create AWS SNS integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateAwsSnsIntegration(global::Chirpstack.Api.CreateAwsSnsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateAwsSnsIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create AWS SNS integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateAwsSnsIntegration(global::Chirpstack.Api.CreateAwsSnsIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CreateAwsSnsIntegration, null, options, request); - } - /// - /// Create AWS SNS integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAwsSnsIntegrationAsync(global::Chirpstack.Api.CreateAwsSnsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateAwsSnsIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create AWS SNS integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAwsSnsIntegrationAsync(global::Chirpstack.Api.CreateAwsSnsIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CreateAwsSnsIntegration, null, options, request); - } - /// - /// Get AWS SNS integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetAwsSnsIntegrationResponse GetAwsSnsIntegration(global::Chirpstack.Api.GetAwsSnsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetAwsSnsIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get AWS SNS integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetAwsSnsIntegrationResponse GetAwsSnsIntegration(global::Chirpstack.Api.GetAwsSnsIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetAwsSnsIntegration, null, options, request); - } - /// - /// Get AWS SNS integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAwsSnsIntegrationAsync(global::Chirpstack.Api.GetAwsSnsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetAwsSnsIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get AWS SNS integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAwsSnsIntegrationAsync(global::Chirpstack.Api.GetAwsSnsIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetAwsSnsIntegration, null, options, request); - } - /// - /// Update AWS SNS integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateAwsSnsIntegration(global::Chirpstack.Api.UpdateAwsSnsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateAwsSnsIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update AWS SNS integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateAwsSnsIntegration(global::Chirpstack.Api.UpdateAwsSnsIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdateAwsSnsIntegration, null, options, request); - } - /// - /// Update AWS SNS integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAwsSnsIntegrationAsync(global::Chirpstack.Api.UpdateAwsSnsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateAwsSnsIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update AWS SNS integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAwsSnsIntegrationAsync(global::Chirpstack.Api.UpdateAwsSnsIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdateAwsSnsIntegration, null, options, request); - } - /// - /// Delete AWS SNS integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteAwsSnsIntegration(global::Chirpstack.Api.DeleteAwsSnsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteAwsSnsIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete AWS SNS integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteAwsSnsIntegration(global::Chirpstack.Api.DeleteAwsSnsIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_DeleteAwsSnsIntegration, null, options, request); - } - /// - /// Delete AWS SNS integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAwsSnsIntegrationAsync(global::Chirpstack.Api.DeleteAwsSnsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteAwsSnsIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete AWS SNS integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAwsSnsIntegrationAsync(global::Chirpstack.Api.DeleteAwsSnsIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_DeleteAwsSnsIntegration, null, options, request); - } - /// - /// Create Azure Service-Bus integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateAzureServiceBusIntegration(global::Chirpstack.Api.CreateAzureServiceBusIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateAzureServiceBusIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create Azure Service-Bus integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateAzureServiceBusIntegration(global::Chirpstack.Api.CreateAzureServiceBusIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CreateAzureServiceBusIntegration, null, options, request); - } - /// - /// Create Azure Service-Bus integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAzureServiceBusIntegrationAsync(global::Chirpstack.Api.CreateAzureServiceBusIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateAzureServiceBusIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create Azure Service-Bus integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAzureServiceBusIntegrationAsync(global::Chirpstack.Api.CreateAzureServiceBusIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CreateAzureServiceBusIntegration, null, options, request); - } - /// - /// Get Azure Service-Bus integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetAzureServiceBusIntegrationResponse GetAzureServiceBusIntegration(global::Chirpstack.Api.GetAzureServiceBusIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetAzureServiceBusIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get Azure Service-Bus integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetAzureServiceBusIntegrationResponse GetAzureServiceBusIntegration(global::Chirpstack.Api.GetAzureServiceBusIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetAzureServiceBusIntegration, null, options, request); - } - /// - /// Get Azure Service-Bus integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAzureServiceBusIntegrationAsync(global::Chirpstack.Api.GetAzureServiceBusIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetAzureServiceBusIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get Azure Service-Bus integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAzureServiceBusIntegrationAsync(global::Chirpstack.Api.GetAzureServiceBusIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetAzureServiceBusIntegration, null, options, request); - } - /// - /// Update Azure Service-Bus integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateAzureServiceBusIntegration(global::Chirpstack.Api.UpdateAzureServiceBusIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateAzureServiceBusIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update Azure Service-Bus integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateAzureServiceBusIntegration(global::Chirpstack.Api.UpdateAzureServiceBusIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdateAzureServiceBusIntegration, null, options, request); - } - /// - /// Update Azure Service-Bus integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAzureServiceBusIntegrationAsync(global::Chirpstack.Api.UpdateAzureServiceBusIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateAzureServiceBusIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update Azure Service-Bus integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAzureServiceBusIntegrationAsync(global::Chirpstack.Api.UpdateAzureServiceBusIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdateAzureServiceBusIntegration, null, options, request); - } - /// - /// Delete Azure Service-Bus integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteAzureServiceBusIntegration(global::Chirpstack.Api.DeleteAzureServiceBusIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteAzureServiceBusIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete Azure Service-Bus integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteAzureServiceBusIntegration(global::Chirpstack.Api.DeleteAzureServiceBusIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_DeleteAzureServiceBusIntegration, null, options, request); - } - /// - /// Delete Azure Service-Bus integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAzureServiceBusIntegrationAsync(global::Chirpstack.Api.DeleteAzureServiceBusIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteAzureServiceBusIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete Azure Service-Bus integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAzureServiceBusIntegrationAsync(global::Chirpstack.Api.DeleteAzureServiceBusIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_DeleteAzureServiceBusIntegration, null, options, request); - } - /// - /// Create Pilot Things integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreatePilotThingsIntegration(global::Chirpstack.Api.CreatePilotThingsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreatePilotThingsIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create Pilot Things integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreatePilotThingsIntegration(global::Chirpstack.Api.CreatePilotThingsIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CreatePilotThingsIntegration, null, options, request); - } - /// - /// Create Pilot Things integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreatePilotThingsIntegrationAsync(global::Chirpstack.Api.CreatePilotThingsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreatePilotThingsIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create Pilot Things integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreatePilotThingsIntegrationAsync(global::Chirpstack.Api.CreatePilotThingsIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CreatePilotThingsIntegration, null, options, request); - } - /// - /// Get Pilot Things integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetPilotThingsIntegrationResponse GetPilotThingsIntegration(global::Chirpstack.Api.GetPilotThingsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetPilotThingsIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get Pilot Things integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetPilotThingsIntegrationResponse GetPilotThingsIntegration(global::Chirpstack.Api.GetPilotThingsIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetPilotThingsIntegration, null, options, request); - } - /// - /// Get Pilot Things integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetPilotThingsIntegrationAsync(global::Chirpstack.Api.GetPilotThingsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetPilotThingsIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get Pilot Things integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetPilotThingsIntegrationAsync(global::Chirpstack.Api.GetPilotThingsIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetPilotThingsIntegration, null, options, request); - } - /// - /// Update Pilot Things integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdatePilotThingsIntegration(global::Chirpstack.Api.UpdatePilotThingsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdatePilotThingsIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update Pilot Things integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdatePilotThingsIntegration(global::Chirpstack.Api.UpdatePilotThingsIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdatePilotThingsIntegration, null, options, request); - } - /// - /// Update Pilot Things integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdatePilotThingsIntegrationAsync(global::Chirpstack.Api.UpdatePilotThingsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdatePilotThingsIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update Pilot Things integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdatePilotThingsIntegrationAsync(global::Chirpstack.Api.UpdatePilotThingsIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdatePilotThingsIntegration, null, options, request); - } - /// - /// Delete Pilot Things integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeletePilotThingsIntegration(global::Chirpstack.Api.DeletePilotThingsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeletePilotThingsIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete Pilot Things integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeletePilotThingsIntegration(global::Chirpstack.Api.DeletePilotThingsIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_DeletePilotThingsIntegration, null, options, request); - } - /// - /// Delete Pilot Things integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeletePilotThingsIntegrationAsync(global::Chirpstack.Api.DeletePilotThingsIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeletePilotThingsIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete Pilot Things integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeletePilotThingsIntegrationAsync(global::Chirpstack.Api.DeletePilotThingsIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_DeletePilotThingsIntegration, null, options, request); - } - /// - /// Create IFTTT integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateIftttIntegration(global::Chirpstack.Api.CreateIftttIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateIftttIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create IFTTT integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateIftttIntegration(global::Chirpstack.Api.CreateIftttIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CreateIftttIntegration, null, options, request); - } - /// - /// Create IFTTT integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateIftttIntegrationAsync(global::Chirpstack.Api.CreateIftttIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateIftttIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create IFTTT integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateIftttIntegrationAsync(global::Chirpstack.Api.CreateIftttIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CreateIftttIntegration, null, options, request); - } - /// - /// Get IFTTT integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetIftttIntegrationResponse GetIftttIntegration(global::Chirpstack.Api.GetIftttIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetIftttIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get IFTTT integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetIftttIntegrationResponse GetIftttIntegration(global::Chirpstack.Api.GetIftttIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetIftttIntegration, null, options, request); - } - /// - /// Get IFTTT integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetIftttIntegrationAsync(global::Chirpstack.Api.GetIftttIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetIftttIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get IFTTT integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetIftttIntegrationAsync(global::Chirpstack.Api.GetIftttIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetIftttIntegration, null, options, request); - } - /// - /// Update IFTTT integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateIftttIntegration(global::Chirpstack.Api.UpdateIftttIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateIftttIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update IFTTT integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateIftttIntegration(global::Chirpstack.Api.UpdateIftttIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdateIftttIntegration, null, options, request); - } - /// - /// Update IFTTT integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateIftttIntegrationAsync(global::Chirpstack.Api.UpdateIftttIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateIftttIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update IFTTT integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateIftttIntegrationAsync(global::Chirpstack.Api.UpdateIftttIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdateIftttIntegration, null, options, request); - } - /// - /// Delete IFTTT integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteIftttIntegration(global::Chirpstack.Api.DeleteIftttIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteIftttIntegration(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete IFTTT integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteIftttIntegration(global::Chirpstack.Api.DeleteIftttIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_DeleteIftttIntegration, null, options, request); - } - /// - /// Delete IFTTT integration. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteIftttIntegrationAsync(global::Chirpstack.Api.DeleteIftttIntegrationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteIftttIntegrationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete IFTTT integration. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteIftttIntegrationAsync(global::Chirpstack.Api.DeleteIftttIntegrationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_DeleteIftttIntegration, null, options, request); - } - /// - /// Generates application ID specific client-certificate. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateResponse GenerateMqttIntegrationClientCertificate(global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateMqttIntegrationClientCertificate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Generates application ID specific client-certificate. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateResponse GenerateMqttIntegrationClientCertificate(global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GenerateMqttIntegrationClientCertificate, null, options, request); - } - /// - /// Generates application ID specific client-certificate. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateMqttIntegrationClientCertificateAsync(global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateMqttIntegrationClientCertificateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Generates application ID specific client-certificate. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateMqttIntegrationClientCertificateAsync(global::Chirpstack.Api.GenerateMqttIntegrationClientCertificateRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GenerateMqttIntegrationClientCertificate, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override ApplicationServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new ApplicationServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(ApplicationServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_Create, serviceImpl.Create) - .AddMethod(__Method_Get, serviceImpl.Get) - .AddMethod(__Method_Update, serviceImpl.Update) - .AddMethod(__Method_Delete, serviceImpl.Delete) - .AddMethod(__Method_List, serviceImpl.List) - .AddMethod(__Method_ListIntegrations, serviceImpl.ListIntegrations) - .AddMethod(__Method_CreateHttpIntegration, serviceImpl.CreateHttpIntegration) - .AddMethod(__Method_GetHttpIntegration, serviceImpl.GetHttpIntegration) - .AddMethod(__Method_UpdateHttpIntegration, serviceImpl.UpdateHttpIntegration) - .AddMethod(__Method_DeleteHttpIntegration, serviceImpl.DeleteHttpIntegration) - .AddMethod(__Method_CreateInfluxDbIntegration, serviceImpl.CreateInfluxDbIntegration) - .AddMethod(__Method_GetInfluxDbIntegration, serviceImpl.GetInfluxDbIntegration) - .AddMethod(__Method_UpdateInfluxDbIntegration, serviceImpl.UpdateInfluxDbIntegration) - .AddMethod(__Method_DeleteInfluxDbIntegration, serviceImpl.DeleteInfluxDbIntegration) - .AddMethod(__Method_CreateThingsBoardIntegration, serviceImpl.CreateThingsBoardIntegration) - .AddMethod(__Method_GetThingsBoardIntegration, serviceImpl.GetThingsBoardIntegration) - .AddMethod(__Method_UpdateThingsBoardIntegration, serviceImpl.UpdateThingsBoardIntegration) - .AddMethod(__Method_DeleteThingsBoardIntegration, serviceImpl.DeleteThingsBoardIntegration) - .AddMethod(__Method_CreateMyDevicesIntegration, serviceImpl.CreateMyDevicesIntegration) - .AddMethod(__Method_GetMyDevicesIntegration, serviceImpl.GetMyDevicesIntegration) - .AddMethod(__Method_UpdateMyDevicesIntegration, serviceImpl.UpdateMyDevicesIntegration) - .AddMethod(__Method_DeleteMyDevicesIntegration, serviceImpl.DeleteMyDevicesIntegration) - .AddMethod(__Method_CreateLoraCloudIntegration, serviceImpl.CreateLoraCloudIntegration) - .AddMethod(__Method_GetLoraCloudIntegration, serviceImpl.GetLoraCloudIntegration) - .AddMethod(__Method_UpdateLoraCloudIntegration, serviceImpl.UpdateLoraCloudIntegration) - .AddMethod(__Method_DeleteLoraCloudIntegration, serviceImpl.DeleteLoraCloudIntegration) - .AddMethod(__Method_CreateGcpPubSubIntegration, serviceImpl.CreateGcpPubSubIntegration) - .AddMethod(__Method_GetGcpPubSubIntegration, serviceImpl.GetGcpPubSubIntegration) - .AddMethod(__Method_UpdateGcpPubSubIntegration, serviceImpl.UpdateGcpPubSubIntegration) - .AddMethod(__Method_DeleteGcpPubSubIntegration, serviceImpl.DeleteGcpPubSubIntegration) - .AddMethod(__Method_CreateAwsSnsIntegration, serviceImpl.CreateAwsSnsIntegration) - .AddMethod(__Method_GetAwsSnsIntegration, serviceImpl.GetAwsSnsIntegration) - .AddMethod(__Method_UpdateAwsSnsIntegration, serviceImpl.UpdateAwsSnsIntegration) - .AddMethod(__Method_DeleteAwsSnsIntegration, serviceImpl.DeleteAwsSnsIntegration) - .AddMethod(__Method_CreateAzureServiceBusIntegration, serviceImpl.CreateAzureServiceBusIntegration) - .AddMethod(__Method_GetAzureServiceBusIntegration, serviceImpl.GetAzureServiceBusIntegration) - .AddMethod(__Method_UpdateAzureServiceBusIntegration, serviceImpl.UpdateAzureServiceBusIntegration) - .AddMethod(__Method_DeleteAzureServiceBusIntegration, serviceImpl.DeleteAzureServiceBusIntegration) - .AddMethod(__Method_CreatePilotThingsIntegration, serviceImpl.CreatePilotThingsIntegration) - .AddMethod(__Method_GetPilotThingsIntegration, serviceImpl.GetPilotThingsIntegration) - .AddMethod(__Method_UpdatePilotThingsIntegration, serviceImpl.UpdatePilotThingsIntegration) - .AddMethod(__Method_DeletePilotThingsIntegration, serviceImpl.DeletePilotThingsIntegration) - .AddMethod(__Method_CreateIftttIntegration, serviceImpl.CreateIftttIntegration) - .AddMethod(__Method_GetIftttIntegration, serviceImpl.GetIftttIntegration) - .AddMethod(__Method_UpdateIftttIntegration, serviceImpl.UpdateIftttIntegration) - .AddMethod(__Method_DeleteIftttIntegration, serviceImpl.DeleteIftttIntegration) - .AddMethod(__Method_GenerateMqttIntegrationClientCertificate, serviceImpl.GenerateMqttIntegrationClientCertificate).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, ApplicationServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Create)); - serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Get)); - serviceBinder.AddMethod(__Method_Update, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Update)); - serviceBinder.AddMethod(__Method_Delete, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Delete)); - serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); - serviceBinder.AddMethod(__Method_ListIntegrations, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListIntegrations)); - serviceBinder.AddMethod(__Method_CreateHttpIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateHttpIntegration)); - serviceBinder.AddMethod(__Method_GetHttpIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetHttpIntegration)); - serviceBinder.AddMethod(__Method_UpdateHttpIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateHttpIntegration)); - serviceBinder.AddMethod(__Method_DeleteHttpIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteHttpIntegration)); - serviceBinder.AddMethod(__Method_CreateInfluxDbIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateInfluxDbIntegration)); - serviceBinder.AddMethod(__Method_GetInfluxDbIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetInfluxDbIntegration)); - serviceBinder.AddMethod(__Method_UpdateInfluxDbIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateInfluxDbIntegration)); - serviceBinder.AddMethod(__Method_DeleteInfluxDbIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteInfluxDbIntegration)); - serviceBinder.AddMethod(__Method_CreateThingsBoardIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateThingsBoardIntegration)); - serviceBinder.AddMethod(__Method_GetThingsBoardIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetThingsBoardIntegration)); - serviceBinder.AddMethod(__Method_UpdateThingsBoardIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateThingsBoardIntegration)); - serviceBinder.AddMethod(__Method_DeleteThingsBoardIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteThingsBoardIntegration)); - serviceBinder.AddMethod(__Method_CreateMyDevicesIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateMyDevicesIntegration)); - serviceBinder.AddMethod(__Method_GetMyDevicesIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetMyDevicesIntegration)); - serviceBinder.AddMethod(__Method_UpdateMyDevicesIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateMyDevicesIntegration)); - serviceBinder.AddMethod(__Method_DeleteMyDevicesIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteMyDevicesIntegration)); - serviceBinder.AddMethod(__Method_CreateLoraCloudIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateLoraCloudIntegration)); - serviceBinder.AddMethod(__Method_GetLoraCloudIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetLoraCloudIntegration)); - serviceBinder.AddMethod(__Method_UpdateLoraCloudIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateLoraCloudIntegration)); - serviceBinder.AddMethod(__Method_DeleteLoraCloudIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteLoraCloudIntegration)); - serviceBinder.AddMethod(__Method_CreateGcpPubSubIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateGcpPubSubIntegration)); - serviceBinder.AddMethod(__Method_GetGcpPubSubIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetGcpPubSubIntegration)); - serviceBinder.AddMethod(__Method_UpdateGcpPubSubIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateGcpPubSubIntegration)); - serviceBinder.AddMethod(__Method_DeleteGcpPubSubIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteGcpPubSubIntegration)); - serviceBinder.AddMethod(__Method_CreateAwsSnsIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateAwsSnsIntegration)); - serviceBinder.AddMethod(__Method_GetAwsSnsIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetAwsSnsIntegration)); - serviceBinder.AddMethod(__Method_UpdateAwsSnsIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateAwsSnsIntegration)); - serviceBinder.AddMethod(__Method_DeleteAwsSnsIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteAwsSnsIntegration)); - serviceBinder.AddMethod(__Method_CreateAzureServiceBusIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateAzureServiceBusIntegration)); - serviceBinder.AddMethod(__Method_GetAzureServiceBusIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetAzureServiceBusIntegration)); - serviceBinder.AddMethod(__Method_UpdateAzureServiceBusIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateAzureServiceBusIntegration)); - serviceBinder.AddMethod(__Method_DeleteAzureServiceBusIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteAzureServiceBusIntegration)); - serviceBinder.AddMethod(__Method_CreatePilotThingsIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreatePilotThingsIntegration)); - serviceBinder.AddMethod(__Method_GetPilotThingsIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetPilotThingsIntegration)); - serviceBinder.AddMethod(__Method_UpdatePilotThingsIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdatePilotThingsIntegration)); - serviceBinder.AddMethod(__Method_DeletePilotThingsIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeletePilotThingsIntegration)); - serviceBinder.AddMethod(__Method_CreateIftttIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateIftttIntegration)); - serviceBinder.AddMethod(__Method_GetIftttIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetIftttIntegration)); - serviceBinder.AddMethod(__Method_UpdateIftttIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateIftttIntegration)); - serviceBinder.AddMethod(__Method_DeleteIftttIntegration, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteIftttIntegration)); - serviceBinder.AddMethod(__Method_GenerateMqttIntegrationClientCertificate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GenerateMqttIntegrationClientCertificate)); - } - - } -} -#endregion diff --git a/api/csharp/Chirpstack/api/Device.cs b/api/csharp/Chirpstack/api/Device.cs deleted file mode 100644 index 4c80f0bc..00000000 --- a/api/csharp/Chirpstack/api/Device.cs +++ /dev/null @@ -1,10159 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/device.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Chirpstack.Api { - - /// Holder for reflection information generated from api/device.proto - public static partial class DeviceReflection { - - #region Descriptor - /// File descriptor for api/device.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DeviceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ChBhcGkvZGV2aWNlLnByb3RvEgNhcGkaE2NvbW1vbi9jb21tb24ucHJvdG8a", - "HGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aH2dvb2dsZS9wcm90b2J1", - "Zi90aW1lc3RhbXAucHJvdG8aHGdvb2dsZS9wcm90b2J1Zi9zdHJ1Y3QucHJv", - "dG8aG2dvb2dsZS9wcm90b2J1Zi9lbXB0eS5wcm90byLiAgoGRGV2aWNlEg8K", - "B2Rldl9ldWkYASABKAkSDAoEbmFtZRgCIAEoCRITCgtkZXNjcmlwdGlvbhgD", - "IAEoCRIWCg5hcHBsaWNhdGlvbl9pZBgEIAEoCRIZChFkZXZpY2VfcHJvZmls", - "ZV9pZBgFIAEoCRIXCg9za2lwX2ZjbnRfY2hlY2sYBiABKAgSEwoLaXNfZGlz", - "YWJsZWQYByABKAgSLQoJdmFyaWFibGVzGAggAygLMhouYXBpLkRldmljZS5W", - "YXJpYWJsZXNFbnRyeRIjCgR0YWdzGAkgAygLMhUuYXBpLkRldmljZS5UYWdz", - "RW50cnkSEAoIam9pbl9ldWkYCiABKAkaMAoOVmFyaWFibGVzRW50cnkSCwoD", - "a2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ARorCglUYWdzRW50cnkSCwoD", - "a2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJUCgxEZXZpY2VTdGF0dXMS", - "DgoGbWFyZ2luGAEgASgFEh0KFWV4dGVybmFsX3Bvd2VyX3NvdXJjZRgCIAEo", - "CBIVCg1iYXR0ZXJ5X2xldmVsGAMgASgCIrgCCg5EZXZpY2VMaXN0SXRlbRIP", - "CgdkZXZfZXVpGAEgASgJEi4KCmNyZWF0ZWRfYXQYAiABKAsyGi5nb29nbGUu", - "cHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYAyABKAsyGi5nb29n", - "bGUucHJvdG9idWYuVGltZXN0YW1wEjAKDGxhc3Rfc2Vlbl9hdBgEIAEoCzIa", - "Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASDAoEbmFtZRgFIAEoCRITCgtk", - "ZXNjcmlwdGlvbhgGIAEoCRIZChFkZXZpY2VfcHJvZmlsZV9pZBgHIAEoCRIb", - "ChNkZXZpY2VfcHJvZmlsZV9uYW1lGAggASgJEigKDWRldmljZV9zdGF0dXMY", - "CSABKAsyES5hcGkuRGV2aWNlU3RhdHVzIj8KCkRldmljZUtleXMSDwoHZGV2", - "X2V1aRgBIAEoCRIPCgdud2tfa2V5GAIgASgJEg8KB2FwcF9rZXkYAyABKAki", - "MgoTQ3JlYXRlRGV2aWNlUmVxdWVzdBIbCgZkZXZpY2UYASABKAsyCy5hcGku", - "RGV2aWNlIiMKEEdldERldmljZVJlcXVlc3QSDwoHZGV2X2V1aRgBIAEoCSKY", - "AgoRR2V0RGV2aWNlUmVzcG9uc2USGwoGZGV2aWNlGAEgASgLMgsuYXBpLkRl", - "dmljZRIuCgpjcmVhdGVkX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRp", - "bWVzdGFtcBIuCgp1cGRhdGVkX2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVm", - "LlRpbWVzdGFtcBIwCgxsYXN0X3NlZW5fYXQYBCABKAsyGi5nb29nbGUucHJv", - "dG9idWYuVGltZXN0YW1wEigKDWRldmljZV9zdGF0dXMYBSABKAsyES5hcGku", - "RGV2aWNlU3RhdHVzEioKDWNsYXNzX2VuYWJsZWQYBiABKA4yEy5jb21tb24u", - "RGV2aWNlQ2xhc3MiMgoTVXBkYXRlRGV2aWNlUmVxdWVzdBIbCgZkZXZpY2UY", - "ASABKAsyCy5hcGkuRGV2aWNlIiYKE0RlbGV0ZURldmljZVJlcXVlc3QSDwoH", - "ZGV2X2V1aRgBIAEoCSJ3ChJMaXN0RGV2aWNlc1JlcXVlc3QSDQoFbGltaXQY", - "ASABKA0SDgoGb2Zmc2V0GAIgASgNEg4KBnNlYXJjaBgDIAEoCRIWCg5hcHBs", - "aWNhdGlvbl9pZBgEIAEoCRIaChJtdWx0aWNhc3RfZ3JvdXBfaWQYBSABKAki", - "TwoTTGlzdERldmljZXNSZXNwb25zZRITCgt0b3RhbF9jb3VudBgBIAEoDRIj", - "CgZyZXN1bHQYAiADKAsyEy5hcGkuRGV2aWNlTGlzdEl0ZW0iPwoXQ3JlYXRl", - "RGV2aWNlS2V5c1JlcXVlc3QSJAoLZGV2aWNlX2tleXMYASABKAsyDy5hcGku", - "RGV2aWNlS2V5cyInChRHZXREZXZpY2VLZXlzUmVxdWVzdBIPCgdkZXZfZXVp", - "GAEgASgJIp0BChVHZXREZXZpY2VLZXlzUmVzcG9uc2USJAoLZGV2aWNlX2tl", - "eXMYASABKAsyDy5hcGkuRGV2aWNlS2V5cxIuCgpjcmVhdGVkX2F0GAIgASgL", - "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAMg", - "ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCI/ChdVcGRhdGVEZXZp", - "Y2VLZXlzUmVxdWVzdBIkCgtkZXZpY2Vfa2V5cxgBIAEoCzIPLmFwaS5EZXZp", - "Y2VLZXlzIioKF0RlbGV0ZURldmljZUtleXNSZXF1ZXN0Eg8KB2Rldl9ldWkY", - "ASABKAkizwEKEERldmljZUFjdGl2YXRpb24SDwoHZGV2X2V1aRgBIAEoCRIQ", - "CghkZXZfYWRkchgCIAEoCRIRCglhcHBfc19rZXkYAyABKAkSFQoNbndrX3Nf", - "ZW5jX2tleRgEIAEoCRIXCg9zX253a19zX2ludF9rZXkYCCABKAkSFwoPZl9u", - "d2tfc19pbnRfa2V5GAkgASgJEhAKCGZfY250X3VwGAUgASgNEhQKDG5fZl9j", - "bnRfZG93bhgGIAEoDRIUCgxhX2ZfY250X2Rvd24YCiABKA0iSQoVQWN0aXZh", - "dGVEZXZpY2VSZXF1ZXN0EjAKEWRldmljZV9hY3RpdmF0aW9uGAEgASgLMhUu", - "YXBpLkRldmljZUFjdGl2YXRpb24iKgoXRGVhY3RpdmF0ZURldmljZVJlcXVl", - "c3QSDwoHZGV2X2V1aRgBIAEoCSItChpHZXREZXZpY2VBY3RpdmF0aW9uUmVx", - "dWVzdBIPCgdkZXZfZXVpGAEgASgJIocBChtHZXREZXZpY2VBY3RpdmF0aW9u", - "UmVzcG9uc2USMAoRZGV2aWNlX2FjdGl2YXRpb24YASABKAsyFS5hcGkuRGV2", - "aWNlQWN0aXZhdGlvbhI2ChNqb2luX3NlcnZlcl9jb250ZXh0GAIgASgLMhku", - "Y29tbW9uLkpvaW5TZXJ2ZXJDb250ZXh0IioKF0dldFJhbmRvbURldkFkZHJS", - "ZXF1ZXN0Eg8KB2Rldl9ldWkYASABKAkiLAoYR2V0UmFuZG9tRGV2QWRkclJl", - "c3BvbnNlEhAKCGRldl9hZGRyGAEgASgJIqgBChdHZXREZXZpY2VNZXRyaWNz", - "UmVxdWVzdBIPCgdkZXZfZXVpGAEgASgJEikKBXN0YXJ0GAIgASgLMhouZ29v", - "Z2xlLnByb3RvYnVmLlRpbWVzdGFtcBInCgNlbmQYAyABKAsyGi5nb29nbGUu", - "cHJvdG9idWYuVGltZXN0YW1wEigKC2FnZ3JlZ2F0aW9uGAQgASgOMhMuY29t", - "bW9uLkFnZ3JlZ2F0aW9uIpMCChhHZXREZXZpY2VNZXRyaWNzUmVzcG9uc2US", - "OwoHbWV0cmljcxgBIAMoCzIqLmFwaS5HZXREZXZpY2VNZXRyaWNzUmVzcG9u", - "c2UuTWV0cmljc0VudHJ5EjkKBnN0YXRlcxgCIAMoCzIpLmFwaS5HZXREZXZp", - "Y2VNZXRyaWNzUmVzcG9uc2UuU3RhdGVzRW50cnkaPgoMTWV0cmljc0VudHJ5", - "EgsKA2tleRgBIAEoCRIdCgV2YWx1ZRgCIAEoCzIOLmNvbW1vbi5NZXRyaWM6", - "AjgBGj8KC1N0YXRlc0VudHJ5EgsKA2tleRgBIAEoCRIfCgV2YWx1ZRgCIAEo", - "CzIQLmFwaS5EZXZpY2VTdGF0ZToCOAEiKgoLRGV2aWNlU3RhdGUSDAoEbmFt", - "ZRgCIAEoCRINCgV2YWx1ZRgDIAEoCSKsAQobR2V0RGV2aWNlTGlua01ldHJp", - "Y3NSZXF1ZXN0Eg8KB2Rldl9ldWkYASABKAkSKQoFc3RhcnQYAiABKAsyGi5n", - "b29nbGUucHJvdG9idWYuVGltZXN0YW1wEicKA2VuZBgDIAEoCzIaLmdvb2ds", - "ZS5wcm90b2J1Zi5UaW1lc3RhbXASKAoLYWdncmVnYXRpb24YBCABKA4yEy5j", - "b21tb24uQWdncmVnYXRpb24i+wEKHEdldERldmljZUxpbmtNZXRyaWNzUmVz", - "cG9uc2USIgoKcnhfcGFja2V0cxgBIAEoCzIOLmNvbW1vbi5NZXRyaWMSHwoH", - "Z3dfcnNzaRgCIAEoCzIOLmNvbW1vbi5NZXRyaWMSHgoGZ3dfc25yGAMgASgL", - "Mg4uY29tbW9uLk1ldHJpYxIrChNyeF9wYWNrZXRzX3Blcl9mcmVxGAQgASgL", - "Mg4uY29tbW9uLk1ldHJpYxIpChFyeF9wYWNrZXRzX3Blcl9kchgFIAEoCzIO", - "LmNvbW1vbi5NZXRyaWMSHgoGZXJyb3JzGAYgASgLMg4uY29tbW9uLk1ldHJp", - "YyLGAQoPRGV2aWNlUXVldWVJdGVtEgoKAmlkGAEgASgJEg8KB2Rldl9ldWkY", - "AiABKAkSEQoJY29uZmlybWVkGAMgASgIEg4KBmZfcG9ydBgEIAEoDRIMCgRk", - "YXRhGAUgASgMEicKBm9iamVjdBgGIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5T", - "dHJ1Y3QSEgoKaXNfcGVuZGluZxgHIAEoCBISCgpmX2NudF9kb3duGAggASgN", - "EhQKDGlzX2VuY3J5cHRlZBgJIAEoCCJJCh1FbnF1ZXVlRGV2aWNlUXVldWVJ", - "dGVtUmVxdWVzdBIoCgpxdWV1ZV9pdGVtGAEgASgLMhQuYXBpLkRldmljZVF1", - "ZXVlSXRlbSIsCh5FbnF1ZXVlRGV2aWNlUXVldWVJdGVtUmVzcG9uc2USCgoC", - "aWQYASABKAkiKgoXRmx1c2hEZXZpY2VRdWV1ZVJlcXVlc3QSDwoHZGV2X2V1", - "aRgBIAEoCSJBChpHZXREZXZpY2VRdWV1ZUl0ZW1zUmVxdWVzdBIPCgdkZXZf", - "ZXVpGAEgASgJEhIKCmNvdW50X29ubHkYAiABKAgiWAobR2V0RGV2aWNlUXVl", - "dWVJdGVtc1Jlc3BvbnNlEhMKC3RvdGFsX2NvdW50GAEgASgNEiQKBnJlc3Vs", - "dBgCIAMoCzIULmFwaS5EZXZpY2VRdWV1ZUl0ZW0iKAoVRmx1c2hEZXZOb25j", - "ZXNSZXF1ZXN0Eg8KB2Rldl9ldWkYASABKAkiLwocR2V0RGV2aWNlTmV4dEZD", - "bnREb3duUmVxdWVzdBIPCgdkZXZfZXVpGAEgASgJIjMKHUdldERldmljZU5l", - "eHRGQ250RG93blJlc3BvbnNlEhIKCmZfY250X2Rvd24YASABKA0y4hEKDURl", - "dmljZVNlcnZpY2USUwoGQ3JlYXRlEhguYXBpLkNyZWF0ZURldmljZVJlcXVl", - "c3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiF4LT5JMCESIML2FwaS9kZXZp", - "Y2VzOgEqElQKA0dldBIVLmFwaS5HZXREZXZpY2VSZXF1ZXN0GhYuYXBpLkdl", - "dERldmljZVJlc3BvbnNlIh6C0+STAhgSFi9hcGkvZGV2aWNlcy97ZGV2X2V1", - "aX0SZAoGVXBkYXRlEhguYXBpLlVwZGF0ZURldmljZVJlcXVlc3QaFi5nb29n", - "bGUucHJvdG9idWYuRW1wdHkiKILT5JMCIhodL2FwaS9kZXZpY2VzL3tkZXZp", - "Y2UuZGV2X2V1aX06ASoSWgoGRGVsZXRlEhguYXBpLkRlbGV0ZURldmljZVJl", - "cXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiHoLT5JMCGCoWL2FwaS9k", - "ZXZpY2VzL3tkZXZfZXVpfRJPCgRMaXN0EhcuYXBpLkxpc3REZXZpY2VzUmVx", - "dWVzdBoYLmFwaS5MaXN0RGV2aWNlc1Jlc3BvbnNlIhSC0+STAg4SDC9hcGkv", - "ZGV2aWNlcxJ2CgpDcmVhdGVLZXlzEhwuYXBpLkNyZWF0ZURldmljZUtleXNS", - "ZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IjKC0+STAiwiJy9hcGkv", - "ZGV2aWNlcy97ZGV2aWNlX2tleXMuZGV2X2V1aX0va2V5czoBKhJlCgdHZXRL", - "ZXlzEhkuYXBpLkdldERldmljZUtleXNSZXF1ZXN0GhouYXBpLkdldERldmlj", - "ZUtleXNSZXNwb25zZSIjgtPkkwIdEhsvYXBpL2RldmljZXMve2Rldl9ldWl9", - "L2tleXMSdgoKVXBkYXRlS2V5cxIcLmFwaS5VcGRhdGVEZXZpY2VLZXlzUmVx", - "dWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIygtPkkwIsGicvYXBpL2Rl", - "dmljZXMve2RldmljZV9rZXlzLmRldl9ldWl9L2tleXM6ASoSZwoKRGVsZXRl", - "S2V5cxIcLmFwaS5EZWxldGVEZXZpY2VLZXlzUmVxdWVzdBoWLmdvb2dsZS5w", - "cm90b2J1Zi5FbXB0eSIjgtPkkwIdKhsvYXBpL2RldmljZXMve2Rldl9ldWl9", - "L2tleXMSbwoORmx1c2hEZXZOb25jZXMSGi5hcGkuRmx1c2hEZXZOb25jZXNS", - "ZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IimC0+STAiMqIS9hcGkv", - "ZGV2aWNlcy97ZGV2X2V1aX0vZGV2LW5vbmNlcxJ8CghBY3RpdmF0ZRIaLmFw", - "aS5BY3RpdmF0ZURldmljZVJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1w", - "dHkiPILT5JMCNiIxL2FwaS9kZXZpY2VzL3tkZXZpY2VfYWN0aXZhdGlvbi5k", - "ZXZfZXVpfS9hY3RpdmF0ZToBKhJtCgpEZWFjdGl2YXRlEhwuYXBpLkRlYWN0", - "aXZhdGVEZXZpY2VSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IimC", - "0+STAiMqIS9hcGkvZGV2aWNlcy97ZGV2X2V1aX0vYWN0aXZhdGlvbhJ9Cg1H", - "ZXRBY3RpdmF0aW9uEh8uYXBpLkdldERldmljZUFjdGl2YXRpb25SZXF1ZXN0", - "GiAuYXBpLkdldERldmljZUFjdGl2YXRpb25SZXNwb25zZSIpgtPkkwIjEiEv", - "YXBpL2RldmljZXMve2Rldl9ldWl9L2FjdGl2YXRpb24SgwEKEEdldFJhbmRv", - "bURldkFkZHISHC5hcGkuR2V0UmFuZG9tRGV2QWRkclJlcXVlc3QaHS5hcGku", - "R2V0UmFuZG9tRGV2QWRkclJlc3BvbnNlIjKC0+STAiwiKi9hcGkvZGV2aWNl", - "cy97ZGV2X2V1aX0vZ2V0LXJhbmRvbS1kZXYtYWRkchJxCgpHZXRNZXRyaWNz", - "EhwuYXBpLkdldERldmljZU1ldHJpY3NSZXF1ZXN0Gh0uYXBpLkdldERldmlj", - "ZU1ldHJpY3NSZXNwb25zZSImgtPkkwIgEh4vYXBpL2RldmljZXMve2Rldl9l", - "dWl9L21ldHJpY3MSggEKDkdldExpbmtNZXRyaWNzEiAuYXBpLkdldERldmlj", - "ZUxpbmtNZXRyaWNzUmVxdWVzdBohLmFwaS5HZXREZXZpY2VMaW5rTWV0cmlj", - "c1Jlc3BvbnNlIiuC0+STAiUSIy9hcGkvZGV2aWNlcy97ZGV2X2V1aX0vbGlu", - "ay1tZXRyaWNzEoYBCgdFbnF1ZXVlEiIuYXBpLkVucXVldWVEZXZpY2VRdWV1", - "ZUl0ZW1SZXF1ZXN0GiMuYXBpLkVucXVldWVEZXZpY2VRdWV1ZUl0ZW1SZXNw", - "b25zZSIygtPkkwIsIicvYXBpL2RldmljZXMve3F1ZXVlX2l0ZW0uZGV2X2V1", - "aX0vcXVldWU6ASoSaAoKRmx1c2hRdWV1ZRIcLmFwaS5GbHVzaERldmljZVF1", - "ZXVlUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIkgtPkkwIeKhwv", - "YXBpL2RldmljZXMve2Rldl9ldWl9L3F1ZXVlEnMKCEdldFF1ZXVlEh8uYXBp", - "LkdldERldmljZVF1ZXVlSXRlbXNSZXF1ZXN0GiAuYXBpLkdldERldmljZVF1", - "ZXVlSXRlbXNSZXNwb25zZSIkgtPkkwIeEhwvYXBpL2RldmljZXMve2Rldl9l", - "dWl9L3F1ZXVlEo8BCg9HZXROZXh0RkNudERvd24SIS5hcGkuR2V0RGV2aWNl", - "TmV4dEZDbnREb3duUmVxdWVzdBoiLmFwaS5HZXREZXZpY2VOZXh0RkNudERv", - "d25SZXNwb25zZSI1gtPkkwIvIiovYXBpL2RldmljZXMve2Rldl9ldWl9L2dl", - "dC1uZXh0LWYtY250LWRvd246ASpCYwoRaW8uY2hpcnBzdGFjay5hcGlCC0Rl", - "dmljZVByb3RvUAFaLmdpdGh1Yi5jb20vY2hpcnBzdGFjay9jaGlycHN0YWNr", - "L2FwaS9nby92NC9hcGmqAg5DaGlycHN0YWNrLkFwaWIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Chirpstack.Common.CommonReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.Device), global::Chirpstack.Api.Device.Parser, new[]{ "DevEui", "Name", "Description", "ApplicationId", "DeviceProfileId", "SkipFcntCheck", "IsDisabled", "Variables", "Tags", "JoinEui" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceStatus), global::Chirpstack.Api.DeviceStatus.Parser, new[]{ "Margin", "ExternalPowerSource", "BatteryLevel" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceListItem), global::Chirpstack.Api.DeviceListItem.Parser, new[]{ "DevEui", "CreatedAt", "UpdatedAt", "LastSeenAt", "Name", "Description", "DeviceProfileId", "DeviceProfileName", "DeviceStatus" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceKeys), global::Chirpstack.Api.DeviceKeys.Parser, new[]{ "DevEui", "NwkKey", "AppKey" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateDeviceRequest), global::Chirpstack.Api.CreateDeviceRequest.Parser, new[]{ "Device" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceRequest), global::Chirpstack.Api.GetDeviceRequest.Parser, new[]{ "DevEui" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceResponse), global::Chirpstack.Api.GetDeviceResponse.Parser, new[]{ "Device", "CreatedAt", "UpdatedAt", "LastSeenAt", "DeviceStatus", "ClassEnabled" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateDeviceRequest), global::Chirpstack.Api.UpdateDeviceRequest.Parser, new[]{ "Device" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteDeviceRequest), global::Chirpstack.Api.DeleteDeviceRequest.Parser, new[]{ "DevEui" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListDevicesRequest), global::Chirpstack.Api.ListDevicesRequest.Parser, new[]{ "Limit", "Offset", "Search", "ApplicationId", "MulticastGroupId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListDevicesResponse), global::Chirpstack.Api.ListDevicesResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateDeviceKeysRequest), global::Chirpstack.Api.CreateDeviceKeysRequest.Parser, new[]{ "DeviceKeys" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceKeysRequest), global::Chirpstack.Api.GetDeviceKeysRequest.Parser, new[]{ "DevEui" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceKeysResponse), global::Chirpstack.Api.GetDeviceKeysResponse.Parser, new[]{ "DeviceKeys", "CreatedAt", "UpdatedAt" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateDeviceKeysRequest), global::Chirpstack.Api.UpdateDeviceKeysRequest.Parser, new[]{ "DeviceKeys" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteDeviceKeysRequest), global::Chirpstack.Api.DeleteDeviceKeysRequest.Parser, new[]{ "DevEui" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceActivation), global::Chirpstack.Api.DeviceActivation.Parser, new[]{ "DevEui", "DevAddr", "AppSKey", "NwkSEncKey", "SNwkSIntKey", "FNwkSIntKey", "FCntUp", "NFCntDown", "AFCntDown" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ActivateDeviceRequest), global::Chirpstack.Api.ActivateDeviceRequest.Parser, new[]{ "DeviceActivation" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeactivateDeviceRequest), global::Chirpstack.Api.DeactivateDeviceRequest.Parser, new[]{ "DevEui" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceActivationRequest), global::Chirpstack.Api.GetDeviceActivationRequest.Parser, new[]{ "DevEui" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceActivationResponse), global::Chirpstack.Api.GetDeviceActivationResponse.Parser, new[]{ "DeviceActivation", "JoinServerContext" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetRandomDevAddrRequest), global::Chirpstack.Api.GetRandomDevAddrRequest.Parser, new[]{ "DevEui" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetRandomDevAddrResponse), global::Chirpstack.Api.GetRandomDevAddrResponse.Parser, new[]{ "DevAddr" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceMetricsRequest), global::Chirpstack.Api.GetDeviceMetricsRequest.Parser, new[]{ "DevEui", "Start", "End", "Aggregation" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceMetricsResponse), global::Chirpstack.Api.GetDeviceMetricsResponse.Parser, new[]{ "Metrics", "States" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceState), global::Chirpstack.Api.DeviceState.Parser, new[]{ "Name", "Value" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceLinkMetricsRequest), global::Chirpstack.Api.GetDeviceLinkMetricsRequest.Parser, new[]{ "DevEui", "Start", "End", "Aggregation" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceLinkMetricsResponse), global::Chirpstack.Api.GetDeviceLinkMetricsResponse.Parser, new[]{ "RxPackets", "GwRssi", "GwSnr", "RxPacketsPerFreq", "RxPacketsPerDr", "Errors" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceQueueItem), global::Chirpstack.Api.DeviceQueueItem.Parser, new[]{ "Id", "DevEui", "Confirmed", "FPort", "Data", "Object", "IsPending", "FCntDown", "IsEncrypted" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.EnqueueDeviceQueueItemRequest), global::Chirpstack.Api.EnqueueDeviceQueueItemRequest.Parser, new[]{ "QueueItem" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.EnqueueDeviceQueueItemResponse), global::Chirpstack.Api.EnqueueDeviceQueueItemResponse.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.FlushDeviceQueueRequest), global::Chirpstack.Api.FlushDeviceQueueRequest.Parser, new[]{ "DevEui" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceQueueItemsRequest), global::Chirpstack.Api.GetDeviceQueueItemsRequest.Parser, new[]{ "DevEui", "CountOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceQueueItemsResponse), global::Chirpstack.Api.GetDeviceQueueItemsResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.FlushDevNoncesRequest), global::Chirpstack.Api.FlushDevNoncesRequest.Parser, new[]{ "DevEui" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceNextFCntDownRequest), global::Chirpstack.Api.GetDeviceNextFCntDownRequest.Parser, new[]{ "DevEui" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceNextFCntDownResponse), global::Chirpstack.Api.GetDeviceNextFCntDownResponse.Parser, new[]{ "FCntDown" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - public sealed partial class Device : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Device()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Device() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Device(Device other) : this() { - devEui_ = other.devEui_; - name_ = other.name_; - description_ = other.description_; - applicationId_ = other.applicationId_; - deviceProfileId_ = other.deviceProfileId_; - skipFcntCheck_ = other.skipFcntCheck_; - isDisabled_ = other.isDisabled_; - variables_ = other.variables_.Clone(); - tags_ = other.tags_.Clone(); - joinEui_ = other.joinEui_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Device Clone() { - return new Device(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - /// - /// Name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 3; - private string description_ = ""; - /// - /// Description. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 4; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_profile_id" field. - public const int DeviceProfileIdFieldNumber = 5; - private string deviceProfileId_ = ""; - /// - /// Device-profile ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeviceProfileId { - get { return deviceProfileId_; } - set { - deviceProfileId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "skip_fcnt_check" field. - public const int SkipFcntCheckFieldNumber = 6; - private bool skipFcntCheck_; - /// - /// Skip frame-counter checks (this is insecure, but could be helpful for - /// debugging). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool SkipFcntCheck { - get { return skipFcntCheck_; } - set { - skipFcntCheck_ = value; - } - } - - /// Field number for the "is_disabled" field. - public const int IsDisabledFieldNumber = 7; - private bool isDisabled_; - /// - /// Device is disabled. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsDisabled { - get { return isDisabled_; } - set { - isDisabled_ = value; - } - } - - /// Field number for the "variables" field. - public const int VariablesFieldNumber = 8; - private static readonly pbc::MapField.Codec _map_variables_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 66); - private readonly pbc::MapField variables_ = new pbc::MapField(); - /// - /// Variables (user defined). - /// These variables can be used together with integrations to store tokens / - /// secrets that must be configured per device. These variables are not - /// exposed in the event payloads. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Variables { - get { return variables_; } - } - - /// Field number for the "tags" field. - public const int TagsFieldNumber = 9; - private static readonly pbc::MapField.Codec _map_tags_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 74); - private readonly pbc::MapField tags_ = new pbc::MapField(); - /// - /// Tags (user defined). - /// These tags can be used to add additional information to the device. - /// These tags are exposed in all the integration events. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Tags { - get { return tags_; } - } - - /// Field number for the "join_eui" field. - public const int JoinEuiFieldNumber = 10; - private string joinEui_ = ""; - /// - /// JoinEUI (optional, EUI64). - /// This field will be automatically set / updated on OTAA. However, in some - /// cases it must be pre-configured. For example to allow OTAA using a Relay. - /// In this case the Relay needs to know the JoinEUI + DevEUI combinations - /// of the devices for which it needs to forward uplinks. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string JoinEui { - get { return joinEui_; } - set { - joinEui_ = 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 Device); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Device other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - if (Name != other.Name) return false; - if (Description != other.Description) return false; - if (ApplicationId != other.ApplicationId) return false; - if (DeviceProfileId != other.DeviceProfileId) return false; - if (SkipFcntCheck != other.SkipFcntCheck) return false; - if (IsDisabled != other.IsDisabled) return false; - if (!Variables.Equals(other.Variables)) return false; - if (!Tags.Equals(other.Tags)) return false; - if (JoinEui != other.JoinEui) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (DeviceProfileId.Length != 0) hash ^= DeviceProfileId.GetHashCode(); - if (SkipFcntCheck != false) hash ^= SkipFcntCheck.GetHashCode(); - if (IsDisabled != false) hash ^= IsDisabled.GetHashCode(); - hash ^= Variables.GetHashCode(); - hash ^= Tags.GetHashCode(); - if (JoinEui.Length != 0) hash ^= JoinEui.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description); - } - if (ApplicationId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ApplicationId); - } - if (DeviceProfileId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(DeviceProfileId); - } - if (SkipFcntCheck != false) { - output.WriteRawTag(48); - output.WriteBool(SkipFcntCheck); - } - if (IsDisabled != false) { - output.WriteRawTag(56); - output.WriteBool(IsDisabled); - } - variables_.WriteTo(output, _map_variables_codec); - tags_.WriteTo(output, _map_tags_codec); - if (JoinEui.Length != 0) { - output.WriteRawTag(82); - output.WriteString(JoinEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description); - } - if (ApplicationId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ApplicationId); - } - if (DeviceProfileId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(DeviceProfileId); - } - if (SkipFcntCheck != false) { - output.WriteRawTag(48); - output.WriteBool(SkipFcntCheck); - } - if (IsDisabled != false) { - output.WriteRawTag(56); - output.WriteBool(IsDisabled); - } - variables_.WriteTo(ref output, _map_variables_codec); - tags_.WriteTo(ref output, _map_tags_codec); - if (JoinEui.Length != 0) { - output.WriteRawTag(82); - output.WriteString(JoinEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (DeviceProfileId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceProfileId); - } - if (SkipFcntCheck != false) { - size += 1 + 1; - } - if (IsDisabled != false) { - size += 1 + 1; - } - size += variables_.CalculateSize(_map_variables_codec); - size += tags_.CalculateSize(_map_tags_codec); - if (JoinEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(JoinEui); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Device other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - if (other.DeviceProfileId.Length != 0) { - DeviceProfileId = other.DeviceProfileId; - } - if (other.SkipFcntCheck != false) { - SkipFcntCheck = other.SkipFcntCheck; - } - if (other.IsDisabled != false) { - IsDisabled = other.IsDisabled; - } - variables_.Add(other.variables_); - tags_.Add(other.tags_); - if (other.JoinEui.Length != 0) { - JoinEui = other.JoinEui; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Description = input.ReadString(); - break; - } - case 34: { - ApplicationId = input.ReadString(); - break; - } - case 42: { - DeviceProfileId = input.ReadString(); - break; - } - case 48: { - SkipFcntCheck = input.ReadBool(); - break; - } - case 56: { - IsDisabled = input.ReadBool(); - break; - } - case 66: { - variables_.AddEntriesFrom(input, _map_variables_codec); - break; - } - case 74: { - tags_.AddEntriesFrom(input, _map_tags_codec); - break; - } - case 82: { - JoinEui = 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: { - Name = input.ReadString(); - break; - } - case 26: { - Description = input.ReadString(); - break; - } - case 34: { - ApplicationId = input.ReadString(); - break; - } - case 42: { - DeviceProfileId = input.ReadString(); - break; - } - case 48: { - SkipFcntCheck = input.ReadBool(); - break; - } - case 56: { - IsDisabled = input.ReadBool(); - break; - } - case 66: { - variables_.AddEntriesFrom(ref input, _map_variables_codec); - break; - } - case 74: { - tags_.AddEntriesFrom(ref input, _map_tags_codec); - break; - } - case 82: { - JoinEui = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeviceStatus : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceStatus()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceStatus() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceStatus(DeviceStatus other) : this() { - margin_ = other.margin_; - externalPowerSource_ = other.externalPowerSource_; - batteryLevel_ = other.batteryLevel_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceStatus Clone() { - return new DeviceStatus(this); - } - - /// Field number for the "margin" field. - public const int MarginFieldNumber = 1; - private int margin_; - /// - /// The device margin status - /// -32..32: The demodulation SNR ration in dB - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Margin { - get { return margin_; } - set { - margin_ = value; - } - } - - /// Field number for the "external_power_source" field. - public const int ExternalPowerSourceFieldNumber = 2; - private bool externalPowerSource_; - /// - /// Device is connected to an external power source. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ExternalPowerSource { - get { return externalPowerSource_; } - set { - externalPowerSource_ = value; - } - } - - /// Field number for the "battery_level" field. - public const int BatteryLevelFieldNumber = 3; - private float batteryLevel_; - /// - /// Device battery level as a percentage. - /// -1 when the battery level is not available. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float BatteryLevel { - get { return batteryLevel_; } - set { - batteryLevel_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeviceStatus); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeviceStatus other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Margin != other.Margin) return false; - if (ExternalPowerSource != other.ExternalPowerSource) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(BatteryLevel, other.BatteryLevel)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Margin != 0) hash ^= Margin.GetHashCode(); - if (ExternalPowerSource != false) hash ^= ExternalPowerSource.GetHashCode(); - if (BatteryLevel != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(BatteryLevel); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Margin != 0) { - output.WriteRawTag(8); - output.WriteInt32(Margin); - } - if (ExternalPowerSource != false) { - output.WriteRawTag(16); - output.WriteBool(ExternalPowerSource); - } - if (BatteryLevel != 0F) { - output.WriteRawTag(29); - output.WriteFloat(BatteryLevel); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Margin != 0) { - output.WriteRawTag(8); - output.WriteInt32(Margin); - } - if (ExternalPowerSource != false) { - output.WriteRawTag(16); - output.WriteBool(ExternalPowerSource); - } - if (BatteryLevel != 0F) { - output.WriteRawTag(29); - output.WriteFloat(BatteryLevel); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Margin != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Margin); - } - if (ExternalPowerSource != false) { - size += 1 + 1; - } - if (BatteryLevel != 0F) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeviceStatus other) { - if (other == null) { - return; - } - if (other.Margin != 0) { - Margin = other.Margin; - } - if (other.ExternalPowerSource != false) { - ExternalPowerSource = other.ExternalPowerSource; - } - if (other.BatteryLevel != 0F) { - BatteryLevel = other.BatteryLevel; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Margin = input.ReadInt32(); - break; - } - case 16: { - ExternalPowerSource = input.ReadBool(); - break; - } - case 29: { - BatteryLevel = input.ReadFloat(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Margin = input.ReadInt32(); - break; - } - case 16: { - ExternalPowerSource = input.ReadBool(); - break; - } - case 29: { - BatteryLevel = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeviceListItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceListItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceListItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceListItem(DeviceListItem other) : this() { - devEui_ = other.devEui_; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - lastSeenAt_ = other.lastSeenAt_ != null ? other.lastSeenAt_.Clone() : null; - name_ = other.name_; - description_ = other.description_; - deviceProfileId_ = other.deviceProfileId_; - deviceProfileName_ = other.deviceProfileName_; - deviceStatus_ = other.deviceStatus_ != null ? other.deviceStatus_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceListItem Clone() { - return new DeviceListItem(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - /// Field number for the "last_seen_at" field. - public const int LastSeenAtFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.Timestamp lastSeenAt_; - /// - /// Last seen at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp LastSeenAt { - get { return lastSeenAt_; } - set { - lastSeenAt_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 5; - private string name_ = ""; - /// - /// Name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 6; - private string description_ = ""; - /// - /// Description. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_profile_id" field. - public const int DeviceProfileIdFieldNumber = 7; - private string deviceProfileId_ = ""; - /// - /// Device-profile ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeviceProfileId { - get { return deviceProfileId_; } - set { - deviceProfileId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_profile_name" field. - public const int DeviceProfileNameFieldNumber = 8; - private string deviceProfileName_ = ""; - /// - /// Device-profile name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeviceProfileName { - get { return deviceProfileName_; } - set { - deviceProfileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_status" field. - public const int DeviceStatusFieldNumber = 9; - private global::Chirpstack.Api.DeviceStatus deviceStatus_; - /// - /// Device status. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.DeviceStatus DeviceStatus { - get { return deviceStatus_; } - set { - deviceStatus_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeviceListItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeviceListItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - if (!object.Equals(LastSeenAt, other.LastSeenAt)) return false; - if (Name != other.Name) return false; - if (Description != other.Description) return false; - if (DeviceProfileId != other.DeviceProfileId) return false; - if (DeviceProfileName != other.DeviceProfileName) return false; - if (!object.Equals(DeviceStatus, other.DeviceStatus)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (lastSeenAt_ != null) hash ^= LastSeenAt.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (DeviceProfileId.Length != 0) hash ^= DeviceProfileId.GetHashCode(); - if (DeviceProfileName.Length != 0) hash ^= DeviceProfileName.GetHashCode(); - if (deviceStatus_ != null) hash ^= DeviceStatus.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (lastSeenAt_ != null) { - output.WriteRawTag(34); - output.WriteMessage(LastSeenAt); - } - if (Name.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Description); - } - if (DeviceProfileId.Length != 0) { - output.WriteRawTag(58); - output.WriteString(DeviceProfileId); - } - if (DeviceProfileName.Length != 0) { - output.WriteRawTag(66); - output.WriteString(DeviceProfileName); - } - if (deviceStatus_ != null) { - output.WriteRawTag(74); - output.WriteMessage(DeviceStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (lastSeenAt_ != null) { - output.WriteRawTag(34); - output.WriteMessage(LastSeenAt); - } - if (Name.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Description); - } - if (DeviceProfileId.Length != 0) { - output.WriteRawTag(58); - output.WriteString(DeviceProfileId); - } - if (DeviceProfileName.Length != 0) { - output.WriteRawTag(66); - output.WriteString(DeviceProfileName); - } - if (deviceStatus_ != null) { - output.WriteRawTag(74); - output.WriteMessage(DeviceStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (lastSeenAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastSeenAt); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (DeviceProfileId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceProfileId); - } - if (DeviceProfileName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceProfileName); - } - if (deviceStatus_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceStatus); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeviceListItem other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - if (other.lastSeenAt_ != null) { - if (lastSeenAt_ == null) { - LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - LastSeenAt.MergeFrom(other.LastSeenAt); - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - if (other.DeviceProfileId.Length != 0) { - DeviceProfileId = other.DeviceProfileId; - } - if (other.DeviceProfileName.Length != 0) { - DeviceProfileName = other.DeviceProfileName; - } - if (other.deviceStatus_ != null) { - if (deviceStatus_ == null) { - DeviceStatus = new global::Chirpstack.Api.DeviceStatus(); - } - DeviceStatus.MergeFrom(other.DeviceStatus); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - if (lastSeenAt_ == null) { - LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(LastSeenAt); - break; - } - case 42: { - Name = input.ReadString(); - break; - } - case 50: { - Description = input.ReadString(); - break; - } - case 58: { - DeviceProfileId = input.ReadString(); - break; - } - case 66: { - DeviceProfileName = input.ReadString(); - break; - } - case 74: { - if (deviceStatus_ == null) { - DeviceStatus = new global::Chirpstack.Api.DeviceStatus(); - } - input.ReadMessage(DeviceStatus); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - if (lastSeenAt_ == null) { - LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(LastSeenAt); - break; - } - case 42: { - Name = input.ReadString(); - break; - } - case 50: { - Description = input.ReadString(); - break; - } - case 58: { - DeviceProfileId = input.ReadString(); - break; - } - case 66: { - DeviceProfileName = input.ReadString(); - break; - } - case 74: { - if (deviceStatus_ == null) { - DeviceStatus = new global::Chirpstack.Api.DeviceStatus(); - } - input.ReadMessage(DeviceStatus); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeviceKeys : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceKeys()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceKeys() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceKeys(DeviceKeys other) : this() { - devEui_ = other.devEui_; - nwkKey_ = other.nwkKey_; - appKey_ = other.appKey_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceKeys Clone() { - return new DeviceKeys(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "nwk_key" field. - public const int NwkKeyFieldNumber = 2; - private string nwkKey_ = ""; - /// - /// Network root key (128 bit). - /// Note: For LoRaWAN 1.0.x, use this field for the LoRaWAN 1.0.x 'AppKey`! - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NwkKey { - get { return nwkKey_; } - set { - nwkKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "app_key" field. - public const int AppKeyFieldNumber = 3; - private string appKey_ = ""; - /// - /// Application root key (128 bit). - /// Note: This field only needs to be set for LoRaWAN 1.1.x devices! - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AppKey { - get { return appKey_; } - set { - appKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeviceKeys); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeviceKeys other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - if (NwkKey != other.NwkKey) return false; - if (AppKey != other.AppKey) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (NwkKey.Length != 0) hash ^= NwkKey.GetHashCode(); - if (AppKey.Length != 0) hash ^= AppKey.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (NwkKey.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NwkKey); - } - if (AppKey.Length != 0) { - output.WriteRawTag(26); - output.WriteString(AppKey); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (NwkKey.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NwkKey); - } - if (AppKey.Length != 0) { - output.WriteRawTag(26); - output.WriteString(AppKey); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (NwkKey.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NwkKey); - } - if (AppKey.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AppKey); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeviceKeys other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - if (other.NwkKey.Length != 0) { - NwkKey = other.NwkKey; - } - if (other.AppKey.Length != 0) { - AppKey = other.AppKey; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 18: { - NwkKey = input.ReadString(); - break; - } - case 26: { - AppKey = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 18: { - NwkKey = input.ReadString(); - break; - } - case 26: { - AppKey = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateDeviceRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateDeviceRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateDeviceRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateDeviceRequest(CreateDeviceRequest other) : this() { - device_ = other.device_ != null ? other.device_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateDeviceRequest Clone() { - return new CreateDeviceRequest(this); - } - - /// Field number for the "device" field. - public const int DeviceFieldNumber = 1; - private global::Chirpstack.Api.Device device_; - /// - /// Device object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.Device Device { - get { return device_; } - set { - device_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateDeviceRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateDeviceRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Device, other.Device)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (device_ != null) hash ^= Device.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (device_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Device); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (device_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Device); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (device_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Device); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateDeviceRequest other) { - if (other == null) { - return; - } - if (other.device_ != null) { - if (device_ == null) { - Device = new global::Chirpstack.Api.Device(); - } - Device.MergeFrom(other.Device); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (device_ == null) { - Device = new global::Chirpstack.Api.Device(); - } - input.ReadMessage(Device); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (device_ == null) { - Device = new global::Chirpstack.Api.Device(); - } - input.ReadMessage(Device); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDeviceRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceRequest(GetDeviceRequest other) : this() { - devEui_ = other.devEui_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceRequest Clone() { - return new GetDeviceRequest(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDeviceRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeviceRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeviceRequest other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDeviceResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceResponse(GetDeviceResponse other) : this() { - device_ = other.device_ != null ? other.device_.Clone() : null; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - lastSeenAt_ = other.lastSeenAt_ != null ? other.lastSeenAt_.Clone() : null; - deviceStatus_ = other.deviceStatus_ != null ? other.deviceStatus_.Clone() : null; - classEnabled_ = other.classEnabled_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceResponse Clone() { - return new GetDeviceResponse(this); - } - - /// Field number for the "device" field. - public const int DeviceFieldNumber = 1; - private global::Chirpstack.Api.Device device_; - /// - /// Device object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.Device Device { - get { return device_; } - set { - device_ = value; - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - /// Field number for the "last_seen_at" field. - public const int LastSeenAtFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.Timestamp lastSeenAt_; - /// - /// Last seen at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp LastSeenAt { - get { return lastSeenAt_; } - set { - lastSeenAt_ = value; - } - } - - /// Field number for the "device_status" field. - public const int DeviceStatusFieldNumber = 5; - private global::Chirpstack.Api.DeviceStatus deviceStatus_; - /// - /// Device status. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.DeviceStatus DeviceStatus { - get { return deviceStatus_; } - set { - deviceStatus_ = value; - } - } - - /// Field number for the "class_enabled" field. - public const int ClassEnabledFieldNumber = 6; - private global::Chirpstack.Common.DeviceClass classEnabled_ = global::Chirpstack.Common.DeviceClass.ClassA; - /// - /// Enabled device class. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.DeviceClass ClassEnabled { - get { return classEnabled_; } - set { - classEnabled_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDeviceResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeviceResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Device, other.Device)) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - if (!object.Equals(LastSeenAt, other.LastSeenAt)) return false; - if (!object.Equals(DeviceStatus, other.DeviceStatus)) return false; - if (ClassEnabled != other.ClassEnabled) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (device_ != null) hash ^= Device.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (lastSeenAt_ != null) hash ^= LastSeenAt.GetHashCode(); - if (deviceStatus_ != null) hash ^= DeviceStatus.GetHashCode(); - if (ClassEnabled != global::Chirpstack.Common.DeviceClass.ClassA) hash ^= ClassEnabled.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (device_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Device); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (lastSeenAt_ != null) { - output.WriteRawTag(34); - output.WriteMessage(LastSeenAt); - } - if (deviceStatus_ != null) { - output.WriteRawTag(42); - output.WriteMessage(DeviceStatus); - } - if (ClassEnabled != global::Chirpstack.Common.DeviceClass.ClassA) { - output.WriteRawTag(48); - output.WriteEnum((int) ClassEnabled); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (device_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Device); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (lastSeenAt_ != null) { - output.WriteRawTag(34); - output.WriteMessage(LastSeenAt); - } - if (deviceStatus_ != null) { - output.WriteRawTag(42); - output.WriteMessage(DeviceStatus); - } - if (ClassEnabled != global::Chirpstack.Common.DeviceClass.ClassA) { - output.WriteRawTag(48); - output.WriteEnum((int) ClassEnabled); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (device_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Device); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (lastSeenAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastSeenAt); - } - if (deviceStatus_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceStatus); - } - if (ClassEnabled != global::Chirpstack.Common.DeviceClass.ClassA) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ClassEnabled); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeviceResponse other) { - if (other == null) { - return; - } - if (other.device_ != null) { - if (device_ == null) { - Device = new global::Chirpstack.Api.Device(); - } - Device.MergeFrom(other.Device); - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - if (other.lastSeenAt_ != null) { - if (lastSeenAt_ == null) { - LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - LastSeenAt.MergeFrom(other.LastSeenAt); - } - if (other.deviceStatus_ != null) { - if (deviceStatus_ == null) { - DeviceStatus = new global::Chirpstack.Api.DeviceStatus(); - } - DeviceStatus.MergeFrom(other.DeviceStatus); - } - if (other.ClassEnabled != global::Chirpstack.Common.DeviceClass.ClassA) { - ClassEnabled = other.ClassEnabled; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (device_ == null) { - Device = new global::Chirpstack.Api.Device(); - } - input.ReadMessage(Device); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - if (lastSeenAt_ == null) { - LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(LastSeenAt); - break; - } - case 42: { - if (deviceStatus_ == null) { - DeviceStatus = new global::Chirpstack.Api.DeviceStatus(); - } - input.ReadMessage(DeviceStatus); - break; - } - case 48: { - ClassEnabled = (global::Chirpstack.Common.DeviceClass) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (device_ == null) { - Device = new global::Chirpstack.Api.Device(); - } - input.ReadMessage(Device); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - if (lastSeenAt_ == null) { - LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(LastSeenAt); - break; - } - case 42: { - if (deviceStatus_ == null) { - DeviceStatus = new global::Chirpstack.Api.DeviceStatus(); - } - input.ReadMessage(DeviceStatus); - break; - } - case 48: { - ClassEnabled = (global::Chirpstack.Common.DeviceClass) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateDeviceRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateDeviceRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateDeviceRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateDeviceRequest(UpdateDeviceRequest other) : this() { - device_ = other.device_ != null ? other.device_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateDeviceRequest Clone() { - return new UpdateDeviceRequest(this); - } - - /// Field number for the "device" field. - public const int DeviceFieldNumber = 1; - private global::Chirpstack.Api.Device device_; - /// - /// Device object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.Device Device { - get { return device_; } - set { - device_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateDeviceRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateDeviceRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Device, other.Device)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (device_ != null) hash ^= Device.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (device_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Device); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (device_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Device); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (device_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Device); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateDeviceRequest other) { - if (other == null) { - return; - } - if (other.device_ != null) { - if (device_ == null) { - Device = new global::Chirpstack.Api.Device(); - } - Device.MergeFrom(other.Device); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (device_ == null) { - Device = new global::Chirpstack.Api.Device(); - } - input.ReadMessage(Device); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (device_ == null) { - Device = new global::Chirpstack.Api.Device(); - } - input.ReadMessage(Device); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteDeviceRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteDeviceRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteDeviceRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteDeviceRequest(DeleteDeviceRequest other) : this() { - devEui_ = other.devEui_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteDeviceRequest Clone() { - return new DeleteDeviceRequest(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteDeviceRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteDeviceRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteDeviceRequest other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListDevicesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDevicesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDevicesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDevicesRequest(ListDevicesRequest other) : this() { - limit_ = other.limit_; - offset_ = other.offset_; - search_ = other.search_; - applicationId_ = other.applicationId_; - multicastGroupId_ = other.multicastGroupId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDevicesRequest Clone() { - return new ListDevicesRequest(this); - } - - /// Field number for the "limit" field. - public const int LimitFieldNumber = 1; - private uint limit_; - /// - /// Max number of devices to return in the result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Limit { - get { return limit_; } - set { - limit_ = value; - } - } - - /// Field number for the "offset" field. - public const int OffsetFieldNumber = 2; - private uint offset_; - /// - /// Offset in the result-set (for pagination). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Offset { - get { return offset_; } - set { - offset_ = value; - } - } - - /// Field number for the "search" field. - public const int SearchFieldNumber = 3; - private string search_ = ""; - /// - /// If set, the given string will be used to search on name (optional). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Search { - get { return search_; } - set { - search_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 4; - private string applicationId_ = ""; - /// - /// Application ID (UUID) to filter devices on. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "multicast_group_id" field. - public const int MulticastGroupIdFieldNumber = 5; - private string multicastGroupId_ = ""; - /// - /// Multicst-group ID (UUID) to filter devices on. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MulticastGroupId { - get { return multicastGroupId_; } - set { - multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListDevicesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListDevicesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Limit != other.Limit) return false; - if (Offset != other.Offset) return false; - if (Search != other.Search) return false; - if (ApplicationId != other.ApplicationId) return false; - if (MulticastGroupId != other.MulticastGroupId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Limit != 0) hash ^= Limit.GetHashCode(); - if (Offset != 0) hash ^= Offset.GetHashCode(); - if (Search.Length != 0) hash ^= Search.GetHashCode(); - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (Search.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Search); - } - if (ApplicationId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ApplicationId); - } - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(MulticastGroupId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (Search.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Search); - } - if (ApplicationId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ApplicationId); - } - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(MulticastGroupId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Limit != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); - } - if (Offset != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); - } - if (Search.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); - } - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (MulticastGroupId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListDevicesRequest other) { - if (other == null) { - return; - } - if (other.Limit != 0) { - Limit = other.Limit; - } - if (other.Offset != 0) { - Offset = other.Offset; - } - if (other.Search.Length != 0) { - Search = other.Search; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - if (other.MulticastGroupId.Length != 0) { - MulticastGroupId = other.MulticastGroupId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - case 26: { - Search = input.ReadString(); - break; - } - case 34: { - ApplicationId = input.ReadString(); - break; - } - case 42: { - MulticastGroupId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - case 26: { - Search = input.ReadString(); - break; - } - case 34: { - ApplicationId = input.ReadString(); - break; - } - case 42: { - MulticastGroupId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListDevicesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDevicesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDevicesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDevicesResponse(ListDevicesResponse other) : this() { - totalCount_ = other.totalCount_; - result_ = other.result_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDevicesResponse Clone() { - return new ListDevicesResponse(this); - } - - /// Field number for the "total_count" field. - public const int TotalCountFieldNumber = 1; - private uint totalCount_; - /// - /// Total number of devices. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TotalCount { - get { return totalCount_; } - set { - totalCount_ = value; - } - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_result_codec - = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.DeviceListItem.Parser); - private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); - /// - /// Result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Result { - get { return result_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListDevicesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListDevicesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TotalCount != other.TotalCount) return false; - if(!result_.Equals(other.result_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TotalCount != 0) hash ^= TotalCount.GetHashCode(); - hash ^= result_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(ref output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TotalCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); - } - size += result_.CalculateSize(_repeated_result_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListDevicesResponse other) { - if (other == null) { - return; - } - if (other.TotalCount != 0) { - TotalCount = other.TotalCount; - } - result_.Add(other.result_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(input, _repeated_result_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(ref input, _repeated_result_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateDeviceKeysRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateDeviceKeysRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateDeviceKeysRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateDeviceKeysRequest(CreateDeviceKeysRequest other) : this() { - deviceKeys_ = other.deviceKeys_ != null ? other.deviceKeys_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateDeviceKeysRequest Clone() { - return new CreateDeviceKeysRequest(this); - } - - /// Field number for the "device_keys" field. - public const int DeviceKeysFieldNumber = 1; - private global::Chirpstack.Api.DeviceKeys deviceKeys_; - /// - /// Device-keys object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.DeviceKeys DeviceKeys { - get { return deviceKeys_; } - set { - deviceKeys_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateDeviceKeysRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateDeviceKeysRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(DeviceKeys, other.DeviceKeys)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (deviceKeys_ != null) hash ^= DeviceKeys.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (deviceKeys_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceKeys); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (deviceKeys_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceKeys); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (deviceKeys_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceKeys); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateDeviceKeysRequest other) { - if (other == null) { - return; - } - if (other.deviceKeys_ != null) { - if (deviceKeys_ == null) { - DeviceKeys = new global::Chirpstack.Api.DeviceKeys(); - } - DeviceKeys.MergeFrom(other.DeviceKeys); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (deviceKeys_ == null) { - DeviceKeys = new global::Chirpstack.Api.DeviceKeys(); - } - input.ReadMessage(DeviceKeys); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (deviceKeys_ == null) { - DeviceKeys = new global::Chirpstack.Api.DeviceKeys(); - } - input.ReadMessage(DeviceKeys); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDeviceKeysRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceKeysRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceKeysRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceKeysRequest(GetDeviceKeysRequest other) : this() { - devEui_ = other.devEui_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceKeysRequest Clone() { - return new GetDeviceKeysRequest(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDeviceKeysRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeviceKeysRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeviceKeysRequest other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDeviceKeysResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceKeysResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[13]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceKeysResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceKeysResponse(GetDeviceKeysResponse other) : this() { - deviceKeys_ = other.deviceKeys_ != null ? other.deviceKeys_.Clone() : null; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceKeysResponse Clone() { - return new GetDeviceKeysResponse(this); - } - - /// Field number for the "device_keys" field. - public const int DeviceKeysFieldNumber = 1; - private global::Chirpstack.Api.DeviceKeys deviceKeys_; - /// - /// Device-keys object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.DeviceKeys DeviceKeys { - get { return deviceKeys_; } - set { - deviceKeys_ = value; - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDeviceKeysResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeviceKeysResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(DeviceKeys, other.DeviceKeys)) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (deviceKeys_ != null) hash ^= DeviceKeys.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (deviceKeys_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceKeys); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (deviceKeys_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceKeys); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (deviceKeys_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceKeys); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeviceKeysResponse other) { - if (other == null) { - return; - } - if (other.deviceKeys_ != null) { - if (deviceKeys_ == null) { - DeviceKeys = new global::Chirpstack.Api.DeviceKeys(); - } - DeviceKeys.MergeFrom(other.DeviceKeys); - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (deviceKeys_ == null) { - DeviceKeys = new global::Chirpstack.Api.DeviceKeys(); - } - input.ReadMessage(DeviceKeys); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (deviceKeys_ == null) { - DeviceKeys = new global::Chirpstack.Api.DeviceKeys(); - } - input.ReadMessage(DeviceKeys); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateDeviceKeysRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateDeviceKeysRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[14]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateDeviceKeysRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateDeviceKeysRequest(UpdateDeviceKeysRequest other) : this() { - deviceKeys_ = other.deviceKeys_ != null ? other.deviceKeys_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateDeviceKeysRequest Clone() { - return new UpdateDeviceKeysRequest(this); - } - - /// Field number for the "device_keys" field. - public const int DeviceKeysFieldNumber = 1; - private global::Chirpstack.Api.DeviceKeys deviceKeys_; - /// - /// Device-keys object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.DeviceKeys DeviceKeys { - get { return deviceKeys_; } - set { - deviceKeys_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateDeviceKeysRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateDeviceKeysRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(DeviceKeys, other.DeviceKeys)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (deviceKeys_ != null) hash ^= DeviceKeys.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (deviceKeys_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceKeys); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (deviceKeys_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceKeys); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (deviceKeys_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceKeys); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateDeviceKeysRequest other) { - if (other == null) { - return; - } - if (other.deviceKeys_ != null) { - if (deviceKeys_ == null) { - DeviceKeys = new global::Chirpstack.Api.DeviceKeys(); - } - DeviceKeys.MergeFrom(other.DeviceKeys); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (deviceKeys_ == null) { - DeviceKeys = new global::Chirpstack.Api.DeviceKeys(); - } - input.ReadMessage(DeviceKeys); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (deviceKeys_ == null) { - DeviceKeys = new global::Chirpstack.Api.DeviceKeys(); - } - input.ReadMessage(DeviceKeys); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteDeviceKeysRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteDeviceKeysRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[15]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteDeviceKeysRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteDeviceKeysRequest(DeleteDeviceKeysRequest other) : this() { - devEui_ = other.devEui_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteDeviceKeysRequest Clone() { - return new DeleteDeviceKeysRequest(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteDeviceKeysRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteDeviceKeysRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteDeviceKeysRequest other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeviceActivation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceActivation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[16]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceActivation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceActivation(DeviceActivation other) : this() { - devEui_ = other.devEui_; - devAddr_ = other.devAddr_; - appSKey_ = other.appSKey_; - nwkSEncKey_ = other.nwkSEncKey_; - sNwkSIntKey_ = other.sNwkSIntKey_; - fNwkSIntKey_ = other.fNwkSIntKey_; - fCntUp_ = other.fCntUp_; - nFCntDown_ = other.nFCntDown_; - aFCntDown_ = other.aFCntDown_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceActivation Clone() { - return new DeviceActivation(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// Device EUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "dev_addr" field. - public const int DevAddrFieldNumber = 2; - private string devAddr_ = ""; - /// - /// Device address (HEX encoded). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevAddr { - get { return devAddr_; } - set { - devAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "app_s_key" field. - public const int AppSKeyFieldNumber = 3; - private string appSKey_ = ""; - /// - /// Application session key (HEX encoded). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AppSKey { - get { return appSKey_; } - set { - appSKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "nwk_s_enc_key" field. - public const int NwkSEncKeyFieldNumber = 4; - private string nwkSEncKey_ = ""; - /// - /// Network session encryption key (HEX encoded). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NwkSEncKey { - get { return nwkSEncKey_; } - set { - nwkSEncKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "s_nwk_s_int_key" field. - public const int SNwkSIntKeyFieldNumber = 8; - private string sNwkSIntKey_ = ""; - /// - /// Serving network session integrity key (HEX encoded). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SNwkSIntKey { - get { return sNwkSIntKey_; } - set { - sNwkSIntKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "f_nwk_s_int_key" field. - public const int FNwkSIntKeyFieldNumber = 9; - private string fNwkSIntKey_ = ""; - /// - /// Forwarding network session integrity key (HEX encoded). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FNwkSIntKey { - get { return fNwkSIntKey_; } - set { - fNwkSIntKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "f_cnt_up" field. - public const int FCntUpFieldNumber = 5; - private uint fCntUp_; - /// - /// Uplink frame-counter. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint FCntUp { - get { return fCntUp_; } - set { - fCntUp_ = value; - } - } - - /// Field number for the "n_f_cnt_down" field. - public const int NFCntDownFieldNumber = 6; - private uint nFCntDown_; - /// - /// Downlink network frame-counter. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint NFCntDown { - get { return nFCntDown_; } - set { - nFCntDown_ = value; - } - } - - /// Field number for the "a_f_cnt_down" field. - public const int AFCntDownFieldNumber = 10; - private uint aFCntDown_; - /// - /// Downlink application frame-counter. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint AFCntDown { - get { return aFCntDown_; } - set { - aFCntDown_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeviceActivation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeviceActivation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - if (DevAddr != other.DevAddr) return false; - if (AppSKey != other.AppSKey) return false; - if (NwkSEncKey != other.NwkSEncKey) return false; - if (SNwkSIntKey != other.SNwkSIntKey) return false; - if (FNwkSIntKey != other.FNwkSIntKey) return false; - if (FCntUp != other.FCntUp) return false; - if (NFCntDown != other.NFCntDown) return false; - if (AFCntDown != other.AFCntDown) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (DevAddr.Length != 0) hash ^= DevAddr.GetHashCode(); - if (AppSKey.Length != 0) hash ^= AppSKey.GetHashCode(); - if (NwkSEncKey.Length != 0) hash ^= NwkSEncKey.GetHashCode(); - if (SNwkSIntKey.Length != 0) hash ^= SNwkSIntKey.GetHashCode(); - if (FNwkSIntKey.Length != 0) hash ^= FNwkSIntKey.GetHashCode(); - if (FCntUp != 0) hash ^= FCntUp.GetHashCode(); - if (NFCntDown != 0) hash ^= NFCntDown.GetHashCode(); - if (AFCntDown != 0) hash ^= AFCntDown.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (DevAddr.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DevAddr); - } - if (AppSKey.Length != 0) { - output.WriteRawTag(26); - output.WriteString(AppSKey); - } - if (NwkSEncKey.Length != 0) { - output.WriteRawTag(34); - output.WriteString(NwkSEncKey); - } - if (FCntUp != 0) { - output.WriteRawTag(40); - output.WriteUInt32(FCntUp); - } - if (NFCntDown != 0) { - output.WriteRawTag(48); - output.WriteUInt32(NFCntDown); - } - if (SNwkSIntKey.Length != 0) { - output.WriteRawTag(66); - output.WriteString(SNwkSIntKey); - } - if (FNwkSIntKey.Length != 0) { - output.WriteRawTag(74); - output.WriteString(FNwkSIntKey); - } - if (AFCntDown != 0) { - output.WriteRawTag(80); - output.WriteUInt32(AFCntDown); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (DevAddr.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DevAddr); - } - if (AppSKey.Length != 0) { - output.WriteRawTag(26); - output.WriteString(AppSKey); - } - if (NwkSEncKey.Length != 0) { - output.WriteRawTag(34); - output.WriteString(NwkSEncKey); - } - if (FCntUp != 0) { - output.WriteRawTag(40); - output.WriteUInt32(FCntUp); - } - if (NFCntDown != 0) { - output.WriteRawTag(48); - output.WriteUInt32(NFCntDown); - } - if (SNwkSIntKey.Length != 0) { - output.WriteRawTag(66); - output.WriteString(SNwkSIntKey); - } - if (FNwkSIntKey.Length != 0) { - output.WriteRawTag(74); - output.WriteString(FNwkSIntKey); - } - if (AFCntDown != 0) { - output.WriteRawTag(80); - output.WriteUInt32(AFCntDown); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (DevAddr.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevAddr); - } - if (AppSKey.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AppSKey); - } - if (NwkSEncKey.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NwkSEncKey); - } - if (SNwkSIntKey.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SNwkSIntKey); - } - if (FNwkSIntKey.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FNwkSIntKey); - } - if (FCntUp != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCntUp); - } - if (NFCntDown != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NFCntDown); - } - if (AFCntDown != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AFCntDown); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeviceActivation other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - if (other.DevAddr.Length != 0) { - DevAddr = other.DevAddr; - } - if (other.AppSKey.Length != 0) { - AppSKey = other.AppSKey; - } - if (other.NwkSEncKey.Length != 0) { - NwkSEncKey = other.NwkSEncKey; - } - if (other.SNwkSIntKey.Length != 0) { - SNwkSIntKey = other.SNwkSIntKey; - } - if (other.FNwkSIntKey.Length != 0) { - FNwkSIntKey = other.FNwkSIntKey; - } - if (other.FCntUp != 0) { - FCntUp = other.FCntUp; - } - if (other.NFCntDown != 0) { - NFCntDown = other.NFCntDown; - } - if (other.AFCntDown != 0) { - AFCntDown = other.AFCntDown; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 18: { - DevAddr = input.ReadString(); - break; - } - case 26: { - AppSKey = input.ReadString(); - break; - } - case 34: { - NwkSEncKey = input.ReadString(); - break; - } - case 40: { - FCntUp = input.ReadUInt32(); - break; - } - case 48: { - NFCntDown = input.ReadUInt32(); - break; - } - case 66: { - SNwkSIntKey = input.ReadString(); - break; - } - case 74: { - FNwkSIntKey = input.ReadString(); - break; - } - case 80: { - AFCntDown = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 18: { - DevAddr = input.ReadString(); - break; - } - case 26: { - AppSKey = input.ReadString(); - break; - } - case 34: { - NwkSEncKey = input.ReadString(); - break; - } - case 40: { - FCntUp = input.ReadUInt32(); - break; - } - case 48: { - NFCntDown = input.ReadUInt32(); - break; - } - case 66: { - SNwkSIntKey = input.ReadString(); - break; - } - case 74: { - FNwkSIntKey = input.ReadString(); - break; - } - case 80: { - AFCntDown = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ActivateDeviceRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivateDeviceRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[17]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ActivateDeviceRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ActivateDeviceRequest(ActivateDeviceRequest other) : this() { - deviceActivation_ = other.deviceActivation_ != null ? other.deviceActivation_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ActivateDeviceRequest Clone() { - return new ActivateDeviceRequest(this); - } - - /// Field number for the "device_activation" field. - public const int DeviceActivationFieldNumber = 1; - private global::Chirpstack.Api.DeviceActivation deviceActivation_; - /// - /// Device activation object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.DeviceActivation DeviceActivation { - get { return deviceActivation_; } - set { - deviceActivation_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ActivateDeviceRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ActivateDeviceRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(DeviceActivation, other.DeviceActivation)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (deviceActivation_ != null) hash ^= DeviceActivation.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (deviceActivation_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceActivation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (deviceActivation_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceActivation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (deviceActivation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceActivation); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ActivateDeviceRequest other) { - if (other == null) { - return; - } - if (other.deviceActivation_ != null) { - if (deviceActivation_ == null) { - DeviceActivation = new global::Chirpstack.Api.DeviceActivation(); - } - DeviceActivation.MergeFrom(other.DeviceActivation); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (deviceActivation_ == null) { - DeviceActivation = new global::Chirpstack.Api.DeviceActivation(); - } - input.ReadMessage(DeviceActivation); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (deviceActivation_ == null) { - DeviceActivation = new global::Chirpstack.Api.DeviceActivation(); - } - input.ReadMessage(DeviceActivation); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeactivateDeviceRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeactivateDeviceRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[18]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeactivateDeviceRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeactivateDeviceRequest(DeactivateDeviceRequest other) : this() { - devEui_ = other.devEui_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeactivateDeviceRequest Clone() { - return new DeactivateDeviceRequest(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeactivateDeviceRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeactivateDeviceRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeactivateDeviceRequest other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDeviceActivationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceActivationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[19]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceActivationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceActivationRequest(GetDeviceActivationRequest other) : this() { - devEui_ = other.devEui_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceActivationRequest Clone() { - return new GetDeviceActivationRequest(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDeviceActivationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeviceActivationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeviceActivationRequest other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDeviceActivationResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceActivationResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[20]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceActivationResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceActivationResponse(GetDeviceActivationResponse other) : this() { - deviceActivation_ = other.deviceActivation_ != null ? other.deviceActivation_.Clone() : null; - joinServerContext_ = other.joinServerContext_ != null ? other.joinServerContext_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceActivationResponse Clone() { - return new GetDeviceActivationResponse(this); - } - - /// Field number for the "device_activation" field. - public const int DeviceActivationFieldNumber = 1; - private global::Chirpstack.Api.DeviceActivation deviceActivation_; - /// - /// Device activation object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.DeviceActivation DeviceActivation { - get { return deviceActivation_; } - set { - deviceActivation_ = value; - } - } - - /// Field number for the "join_server_context" field. - public const int JoinServerContextFieldNumber = 2; - private global::Chirpstack.Common.JoinServerContext joinServerContext_; - /// - /// Join-Server context. - /// A non-empty value indicatest that ChirpStack does not have access to - /// the AppSKey and that the encryption / decryption of the payloads is - /// the responsibility of the end-application. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.JoinServerContext JoinServerContext { - get { return joinServerContext_; } - set { - joinServerContext_ = 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; - if (!object.Equals(JoinServerContext, other.JoinServerContext)) return false; - 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 (joinServerContext_ != null) hash ^= JoinServerContext.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [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 (joinServerContext_ != null) { - output.WriteRawTag(18); - output.WriteMessage(JoinServerContext); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_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 (joinServerContext_ != null) { - output.WriteRawTag(18); - output.WriteMessage(JoinServerContext); - } - if (_unknownFields != 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 (joinServerContext_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(JoinServerContext); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeviceActivationResponse other) { - if (other == null) { - return; - } - if (other.deviceActivation_ != null) { - if (deviceActivation_ == null) { - DeviceActivation = new global::Chirpstack.Api.DeviceActivation(); - } - DeviceActivation.MergeFrom(other.DeviceActivation); - } - if (other.joinServerContext_ != null) { - if (joinServerContext_ == null) { - JoinServerContext = new global::Chirpstack.Common.JoinServerContext(); - } - JoinServerContext.MergeFrom(other.JoinServerContext); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (deviceActivation_ == null) { - DeviceActivation = new global::Chirpstack.Api.DeviceActivation(); - } - input.ReadMessage(DeviceActivation); - break; - } - case 18: { - if (joinServerContext_ == null) { - JoinServerContext = new global::Chirpstack.Common.JoinServerContext(); - } - input.ReadMessage(JoinServerContext); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (deviceActivation_ == null) { - DeviceActivation = new global::Chirpstack.Api.DeviceActivation(); - } - input.ReadMessage(DeviceActivation); - break; - } - case 18: { - if (joinServerContext_ == null) { - JoinServerContext = new global::Chirpstack.Common.JoinServerContext(); - } - input.ReadMessage(JoinServerContext); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetRandomDevAddrRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRandomDevAddrRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[21]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetRandomDevAddrRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetRandomDevAddrRequest(GetRandomDevAddrRequest other) : this() { - devEui_ = other.devEui_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetRandomDevAddrRequest Clone() { - return new GetRandomDevAddrRequest(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetRandomDevAddrRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetRandomDevAddrRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetRandomDevAddrRequest other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetRandomDevAddrResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRandomDevAddrResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[22]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetRandomDevAddrResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetRandomDevAddrResponse(GetRandomDevAddrResponse other) : this() { - devAddr_ = other.devAddr_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetRandomDevAddrResponse Clone() { - return new GetRandomDevAddrResponse(this); - } - - /// Field number for the "dev_addr" field. - public const int DevAddrFieldNumber = 1; - private string devAddr_ = ""; - /// - /// DevAddr. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevAddr { - get { return devAddr_; } - set { - devAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetRandomDevAddrResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetRandomDevAddrResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevAddr != other.DevAddr) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevAddr.Length != 0) hash ^= DevAddr.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevAddr.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevAddr); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevAddr.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevAddr); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevAddr.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevAddr); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetRandomDevAddrResponse other) { - if (other == null) { - return; - } - if (other.DevAddr.Length != 0) { - DevAddr = other.DevAddr; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevAddr = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevAddr = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDeviceMetricsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceMetricsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[23]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceMetricsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceMetricsRequest(GetDeviceMetricsRequest other) : this() { - devEui_ = other.devEui_; - start_ = other.start_ != null ? other.start_.Clone() : null; - end_ = other.end_ != null ? other.end_.Clone() : null; - aggregation_ = other.aggregation_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceMetricsRequest Clone() { - return new GetDeviceMetricsRequest(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "start" field. - public const int StartFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp start_; - /// - /// Interval start timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Start { - get { return start_; } - set { - start_ = value; - } - } - - /// Field number for the "end" field. - public const int EndFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp end_; - /// - /// Interval end timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp End { - get { return end_; } - set { - end_ = value; - } - } - - /// Field number for the "aggregation" field. - public const int AggregationFieldNumber = 4; - private global::Chirpstack.Common.Aggregation aggregation_ = global::Chirpstack.Common.Aggregation.Hour; - /// - /// Aggregation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Aggregation Aggregation { - get { return aggregation_; } - set { - aggregation_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDeviceMetricsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeviceMetricsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - if (!object.Equals(Start, other.Start)) return false; - if (!object.Equals(End, other.End)) return false; - if (Aggregation != other.Aggregation) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (start_ != null) hash ^= Start.GetHashCode(); - if (end_ != null) hash ^= End.GetHashCode(); - if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) hash ^= Aggregation.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (start_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Start); - } - if (end_ != null) { - output.WriteRawTag(26); - output.WriteMessage(End); - } - if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) { - output.WriteRawTag(32); - output.WriteEnum((int) Aggregation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (start_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Start); - } - if (end_ != null) { - output.WriteRawTag(26); - output.WriteMessage(End); - } - if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) { - output.WriteRawTag(32); - output.WriteEnum((int) Aggregation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (start_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Start); - } - if (end_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(End); - } - if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Aggregation); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeviceMetricsRequest other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - if (other.start_ != null) { - if (start_ == null) { - Start = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Start.MergeFrom(other.Start); - } - if (other.end_ != null) { - if (end_ == null) { - End = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - End.MergeFrom(other.End); - } - if (other.Aggregation != global::Chirpstack.Common.Aggregation.Hour) { - Aggregation = other.Aggregation; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 18: { - if (start_ == null) { - Start = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Start); - break; - } - case 26: { - if (end_ == null) { - End = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(End); - break; - } - case 32: { - Aggregation = (global::Chirpstack.Common.Aggregation) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 18: { - if (start_ == null) { - Start = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Start); - break; - } - case 26: { - if (end_ == null) { - End = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(End); - break; - } - case 32: { - Aggregation = (global::Chirpstack.Common.Aggregation) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDeviceMetricsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceMetricsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[24]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceMetricsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceMetricsResponse(GetDeviceMetricsResponse other) : this() { - metrics_ = other.metrics_.Clone(); - states_ = other.states_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceMetricsResponse Clone() { - return new GetDeviceMetricsResponse(this); - } - - /// Field number for the "metrics" field. - public const int MetricsFieldNumber = 1; - private static readonly pbc::MapField.Codec _map_metrics_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Chirpstack.Common.Metric.Parser), 10); - private readonly pbc::MapField metrics_ = new pbc::MapField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Metrics { - get { return metrics_; } - } - - /// Field number for the "states" field. - public const int StatesFieldNumber = 2; - private static readonly pbc::MapField.Codec _map_states_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.DeviceState.Parser), 18); - private readonly pbc::MapField states_ = new pbc::MapField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField States { - get { return states_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDeviceMetricsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeviceMetricsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!Metrics.Equals(other.Metrics)) return false; - if (!States.Equals(other.States)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= Metrics.GetHashCode(); - hash ^= States.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - metrics_.WriteTo(output, _map_metrics_codec); - states_.WriteTo(output, _map_states_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - metrics_.WriteTo(ref output, _map_metrics_codec); - states_.WriteTo(ref output, _map_states_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += metrics_.CalculateSize(_map_metrics_codec); - size += states_.CalculateSize(_map_states_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeviceMetricsResponse other) { - if (other == null) { - return; - } - metrics_.Add(other.metrics_); - states_.Add(other.states_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - metrics_.AddEntriesFrom(input, _map_metrics_codec); - break; - } - case 18: { - states_.AddEntriesFrom(input, _map_states_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - metrics_.AddEntriesFrom(ref input, _map_metrics_codec); - break; - } - case 18: { - states_.AddEntriesFrom(ref input, _map_states_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeviceState : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceState()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[25]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceState() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceState(DeviceState other) : this() { - name_ = other.name_; - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceState Clone() { - return new DeviceState(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - /// - /// Name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 3; - private string value_ = ""; - /// - /// Value. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeviceState); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeviceState other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (Value != other.Value) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Value.Length != 0) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Value.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Value.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Value.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeviceState other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Value.Length != 0) { - Value = other.Value; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Value = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Value = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDeviceLinkMetricsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceLinkMetricsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[26]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceLinkMetricsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceLinkMetricsRequest(GetDeviceLinkMetricsRequest other) : this() { - devEui_ = other.devEui_; - start_ = other.start_ != null ? other.start_.Clone() : null; - end_ = other.end_ != null ? other.end_.Clone() : null; - aggregation_ = other.aggregation_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceLinkMetricsRequest Clone() { - return new GetDeviceLinkMetricsRequest(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "start" field. - public const int StartFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp start_; - /// - /// Interval start timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Start { - get { return start_; } - set { - start_ = value; - } - } - - /// Field number for the "end" field. - public const int EndFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp end_; - /// - /// Interval end timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp End { - get { return end_; } - set { - end_ = value; - } - } - - /// Field number for the "aggregation" field. - public const int AggregationFieldNumber = 4; - private global::Chirpstack.Common.Aggregation aggregation_ = global::Chirpstack.Common.Aggregation.Hour; - /// - /// Aggregation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Aggregation Aggregation { - get { return aggregation_; } - set { - aggregation_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDeviceLinkMetricsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeviceLinkMetricsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - if (!object.Equals(Start, other.Start)) return false; - if (!object.Equals(End, other.End)) return false; - if (Aggregation != other.Aggregation) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (start_ != null) hash ^= Start.GetHashCode(); - if (end_ != null) hash ^= End.GetHashCode(); - if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) hash ^= Aggregation.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (start_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Start); - } - if (end_ != null) { - output.WriteRawTag(26); - output.WriteMessage(End); - } - if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) { - output.WriteRawTag(32); - output.WriteEnum((int) Aggregation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (start_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Start); - } - if (end_ != null) { - output.WriteRawTag(26); - output.WriteMessage(End); - } - if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) { - output.WriteRawTag(32); - output.WriteEnum((int) Aggregation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (start_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Start); - } - if (end_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(End); - } - if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Aggregation); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeviceLinkMetricsRequest other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - if (other.start_ != null) { - if (start_ == null) { - Start = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Start.MergeFrom(other.Start); - } - if (other.end_ != null) { - if (end_ == null) { - End = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - End.MergeFrom(other.End); - } - if (other.Aggregation != global::Chirpstack.Common.Aggregation.Hour) { - Aggregation = other.Aggregation; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 18: { - if (start_ == null) { - Start = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Start); - break; - } - case 26: { - if (end_ == null) { - End = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(End); - break; - } - case 32: { - Aggregation = (global::Chirpstack.Common.Aggregation) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 18: { - if (start_ == null) { - Start = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Start); - break; - } - case 26: { - if (end_ == null) { - End = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(End); - break; - } - case 32: { - Aggregation = (global::Chirpstack.Common.Aggregation) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDeviceLinkMetricsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceLinkMetricsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[27]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceLinkMetricsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceLinkMetricsResponse(GetDeviceLinkMetricsResponse other) : this() { - rxPackets_ = other.rxPackets_ != null ? other.rxPackets_.Clone() : null; - gwRssi_ = other.gwRssi_ != null ? other.gwRssi_.Clone() : null; - gwSnr_ = other.gwSnr_ != null ? other.gwSnr_.Clone() : null; - rxPacketsPerFreq_ = other.rxPacketsPerFreq_ != null ? other.rxPacketsPerFreq_.Clone() : null; - rxPacketsPerDr_ = other.rxPacketsPerDr_ != null ? other.rxPacketsPerDr_.Clone() : null; - errors_ = other.errors_ != null ? other.errors_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceLinkMetricsResponse Clone() { - return new GetDeviceLinkMetricsResponse(this); - } - - /// Field number for the "rx_packets" field. - public const int RxPacketsFieldNumber = 1; - private global::Chirpstack.Common.Metric rxPackets_; - /// - /// Packets received from the device. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Metric RxPackets { - get { return rxPackets_; } - set { - rxPackets_ = value; - } - } - - /// Field number for the "gw_rssi" field. - public const int GwRssiFieldNumber = 2; - private global::Chirpstack.Common.Metric gwRssi_; - /// - /// RSSI (as reported by the gateway(s)). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Metric GwRssi { - get { return gwRssi_; } - set { - gwRssi_ = value; - } - } - - /// Field number for the "gw_snr" field. - public const int GwSnrFieldNumber = 3; - private global::Chirpstack.Common.Metric gwSnr_; - /// - /// SNR (as reported by the gateway(s)). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Metric GwSnr { - get { return gwSnr_; } - set { - gwSnr_ = value; - } - } - - /// Field number for the "rx_packets_per_freq" field. - public const int RxPacketsPerFreqFieldNumber = 4; - private global::Chirpstack.Common.Metric rxPacketsPerFreq_; - /// - /// Packets received by frequency. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Metric RxPacketsPerFreq { - get { return rxPacketsPerFreq_; } - set { - rxPacketsPerFreq_ = value; - } - } - - /// Field number for the "rx_packets_per_dr" field. - public const int RxPacketsPerDrFieldNumber = 5; - private global::Chirpstack.Common.Metric rxPacketsPerDr_; - /// - /// Packets received by DR. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Metric RxPacketsPerDr { - get { return rxPacketsPerDr_; } - set { - rxPacketsPerDr_ = value; - } - } - - /// Field number for the "errors" field. - public const int ErrorsFieldNumber = 6; - private global::Chirpstack.Common.Metric errors_; - /// - /// Errors. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Metric Errors { - get { return errors_; } - set { - errors_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDeviceLinkMetricsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeviceLinkMetricsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(RxPackets, other.RxPackets)) return false; - if (!object.Equals(GwRssi, other.GwRssi)) return false; - if (!object.Equals(GwSnr, other.GwSnr)) return false; - if (!object.Equals(RxPacketsPerFreq, other.RxPacketsPerFreq)) return false; - if (!object.Equals(RxPacketsPerDr, other.RxPacketsPerDr)) return false; - if (!object.Equals(Errors, other.Errors)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (rxPackets_ != null) hash ^= RxPackets.GetHashCode(); - if (gwRssi_ != null) hash ^= GwRssi.GetHashCode(); - if (gwSnr_ != null) hash ^= GwSnr.GetHashCode(); - if (rxPacketsPerFreq_ != null) hash ^= RxPacketsPerFreq.GetHashCode(); - if (rxPacketsPerDr_ != null) hash ^= RxPacketsPerDr.GetHashCode(); - if (errors_ != null) hash ^= Errors.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (rxPackets_ != null) { - output.WriteRawTag(10); - output.WriteMessage(RxPackets); - } - if (gwRssi_ != null) { - output.WriteRawTag(18); - output.WriteMessage(GwRssi); - } - if (gwSnr_ != null) { - output.WriteRawTag(26); - output.WriteMessage(GwSnr); - } - if (rxPacketsPerFreq_ != null) { - output.WriteRawTag(34); - output.WriteMessage(RxPacketsPerFreq); - } - if (rxPacketsPerDr_ != null) { - output.WriteRawTag(42); - output.WriteMessage(RxPacketsPerDr); - } - if (errors_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Errors); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (rxPackets_ != null) { - output.WriteRawTag(10); - output.WriteMessage(RxPackets); - } - if (gwRssi_ != null) { - output.WriteRawTag(18); - output.WriteMessage(GwRssi); - } - if (gwSnr_ != null) { - output.WriteRawTag(26); - output.WriteMessage(GwSnr); - } - if (rxPacketsPerFreq_ != null) { - output.WriteRawTag(34); - output.WriteMessage(RxPacketsPerFreq); - } - if (rxPacketsPerDr_ != null) { - output.WriteRawTag(42); - output.WriteMessage(RxPacketsPerDr); - } - if (errors_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Errors); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (rxPackets_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RxPackets); - } - if (gwRssi_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GwRssi); - } - if (gwSnr_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GwSnr); - } - if (rxPacketsPerFreq_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RxPacketsPerFreq); - } - if (rxPacketsPerDr_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RxPacketsPerDr); - } - if (errors_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Errors); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeviceLinkMetricsResponse other) { - if (other == null) { - return; - } - if (other.rxPackets_ != null) { - if (rxPackets_ == null) { - RxPackets = new global::Chirpstack.Common.Metric(); - } - RxPackets.MergeFrom(other.RxPackets); - } - if (other.gwRssi_ != null) { - if (gwRssi_ == null) { - GwRssi = new global::Chirpstack.Common.Metric(); - } - GwRssi.MergeFrom(other.GwRssi); - } - if (other.gwSnr_ != null) { - if (gwSnr_ == null) { - GwSnr = new global::Chirpstack.Common.Metric(); - } - GwSnr.MergeFrom(other.GwSnr); - } - if (other.rxPacketsPerFreq_ != null) { - if (rxPacketsPerFreq_ == null) { - RxPacketsPerFreq = new global::Chirpstack.Common.Metric(); - } - RxPacketsPerFreq.MergeFrom(other.RxPacketsPerFreq); - } - if (other.rxPacketsPerDr_ != null) { - if (rxPacketsPerDr_ == null) { - RxPacketsPerDr = new global::Chirpstack.Common.Metric(); - } - RxPacketsPerDr.MergeFrom(other.RxPacketsPerDr); - } - if (other.errors_ != null) { - if (errors_ == null) { - Errors = new global::Chirpstack.Common.Metric(); - } - Errors.MergeFrom(other.Errors); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (rxPackets_ == null) { - RxPackets = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(RxPackets); - break; - } - case 18: { - if (gwRssi_ == null) { - GwRssi = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(GwRssi); - break; - } - case 26: { - if (gwSnr_ == null) { - GwSnr = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(GwSnr); - break; - } - case 34: { - if (rxPacketsPerFreq_ == null) { - RxPacketsPerFreq = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(RxPacketsPerFreq); - break; - } - case 42: { - if (rxPacketsPerDr_ == null) { - RxPacketsPerDr = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(RxPacketsPerDr); - break; - } - case 50: { - if (errors_ == null) { - Errors = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(Errors); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (rxPackets_ == null) { - RxPackets = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(RxPackets); - break; - } - case 18: { - if (gwRssi_ == null) { - GwRssi = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(GwRssi); - break; - } - case 26: { - if (gwSnr_ == null) { - GwSnr = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(GwSnr); - break; - } - case 34: { - if (rxPacketsPerFreq_ == null) { - RxPacketsPerFreq = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(RxPacketsPerFreq); - break; - } - case 42: { - if (rxPacketsPerDr_ == null) { - RxPacketsPerDr = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(RxPacketsPerDr); - break; - } - case 50: { - if (errors_ == null) { - Errors = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(Errors); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeviceQueueItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceQueueItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[28]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceQueueItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceQueueItem(DeviceQueueItem other) : this() { - id_ = other.id_; - devEui_ = other.devEui_; - confirmed_ = other.confirmed_; - fPort_ = other.fPort_; - data_ = other.data_; - object_ = other.object_ != null ? other.object_.Clone() : null; - isPending_ = other.isPending_; - fCntDown_ = other.fCntDown_; - isEncrypted_ = other.isEncrypted_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceQueueItem Clone() { - return new DeviceQueueItem(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// ID (UUID). - /// This is automatically generated on enqueue. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 2; - private string devEui_ = ""; - /// - /// Device EUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "confirmed" field. - public const int ConfirmedFieldNumber = 3; - private bool confirmed_; - /// - /// Confirmed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Confirmed { - get { return confirmed_; } - set { - confirmed_ = value; - } - } - - /// Field number for the "f_port" field. - public const int FPortFieldNumber = 4; - private uint fPort_; - /// - /// FPort (must be > 0). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint FPort { - get { return fPort_; } - set { - fPort_ = value; - } - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 5; - private pb::ByteString data_ = pb::ByteString.Empty; - /// - /// Data. - /// Or use the json_object field when a codec has been configured. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Data { - get { return data_; } - set { - data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "object" field. - public const int ObjectFieldNumber = 6; - private global::Google.Protobuf.WellKnownTypes.Struct object_; - /// - /// Only use this when a codec has been configured that can encode this - /// object to bytes. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Struct Object { - get { return object_; } - set { - object_ = value; - } - } - - /// Field number for the "is_pending" field. - public const int IsPendingFieldNumber = 7; - private bool isPending_; - /// - /// Is pending. - /// This is set by ChirpStack to true when the downlink is pending (e.g. it - /// has been sent, but a confirmation is still pending). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsPending { - get { return isPending_; } - set { - isPending_ = value; - } - } - - /// Field number for the "f_cnt_down" field. - public const int FCntDownFieldNumber = 8; - private uint fCntDown_; - /// - /// Downlink frame-counter. - /// Do not set this for plain-text data payloads. It will be automatically set - /// by ChirpStack when the payload has been sent as downlink. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint FCntDown { - get { return fCntDown_; } - set { - fCntDown_ = value; - } - } - - /// Field number for the "is_encrypted" field. - public const int IsEncryptedFieldNumber = 9; - private bool isEncrypted_; - /// - /// Is encrypted. - /// This must be set to true if the end-application has already encrypted - /// the data payload. In this case, the f_cnt_down field must be set to - /// the corresponding frame-counter which has been used during the encryption. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsEncrypted { - get { return isEncrypted_; } - set { - isEncrypted_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeviceQueueItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeviceQueueItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (DevEui != other.DevEui) return false; - if (Confirmed != other.Confirmed) return false; - if (FPort != other.FPort) return false; - if (Data != other.Data) return false; - if (!object.Equals(Object, other.Object)) return false; - if (IsPending != other.IsPending) return false; - if (FCntDown != other.FCntDown) return false; - if (IsEncrypted != other.IsEncrypted) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (Confirmed != false) hash ^= Confirmed.GetHashCode(); - if (FPort != 0) hash ^= FPort.GetHashCode(); - if (Data.Length != 0) hash ^= Data.GetHashCode(); - if (object_ != null) hash ^= Object.GetHashCode(); - if (IsPending != false) hash ^= IsPending.GetHashCode(); - if (FCntDown != 0) hash ^= FCntDown.GetHashCode(); - if (IsEncrypted != false) hash ^= IsEncrypted.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (DevEui.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DevEui); - } - if (Confirmed != false) { - output.WriteRawTag(24); - output.WriteBool(Confirmed); - } - if (FPort != 0) { - output.WriteRawTag(32); - output.WriteUInt32(FPort); - } - if (Data.Length != 0) { - output.WriteRawTag(42); - output.WriteBytes(Data); - } - if (object_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Object); - } - if (IsPending != false) { - output.WriteRawTag(56); - output.WriteBool(IsPending); - } - if (FCntDown != 0) { - output.WriteRawTag(64); - output.WriteUInt32(FCntDown); - } - if (IsEncrypted != false) { - output.WriteRawTag(72); - output.WriteBool(IsEncrypted); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (DevEui.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DevEui); - } - if (Confirmed != false) { - output.WriteRawTag(24); - output.WriteBool(Confirmed); - } - if (FPort != 0) { - output.WriteRawTag(32); - output.WriteUInt32(FPort); - } - if (Data.Length != 0) { - output.WriteRawTag(42); - output.WriteBytes(Data); - } - if (object_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Object); - } - if (IsPending != false) { - output.WriteRawTag(56); - output.WriteBool(IsPending); - } - if (FCntDown != 0) { - output.WriteRawTag(64); - output.WriteUInt32(FCntDown); - } - if (IsEncrypted != false) { - output.WriteRawTag(72); - output.WriteBool(IsEncrypted); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (Confirmed != false) { - size += 1 + 1; - } - if (FPort != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FPort); - } - if (Data.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); - } - if (object_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Object); - } - if (IsPending != false) { - size += 1 + 1; - } - if (FCntDown != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCntDown); - } - if (IsEncrypted != 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(DeviceQueueItem other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - if (other.Confirmed != false) { - Confirmed = other.Confirmed; - } - if (other.FPort != 0) { - FPort = other.FPort; - } - if (other.Data.Length != 0) { - Data = other.Data; - } - if (other.object_ != null) { - if (object_ == null) { - Object = new global::Google.Protobuf.WellKnownTypes.Struct(); - } - Object.MergeFrom(other.Object); - } - if (other.IsPending != false) { - IsPending = other.IsPending; - } - if (other.FCntDown != 0) { - FCntDown = other.FCntDown; - } - if (other.IsEncrypted != false) { - IsEncrypted = other.IsEncrypted; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - DevEui = input.ReadString(); - break; - } - case 24: { - Confirmed = input.ReadBool(); - break; - } - case 32: { - FPort = input.ReadUInt32(); - break; - } - case 42: { - Data = input.ReadBytes(); - break; - } - case 50: { - if (object_ == null) { - Object = new global::Google.Protobuf.WellKnownTypes.Struct(); - } - input.ReadMessage(Object); - break; - } - case 56: { - IsPending = input.ReadBool(); - break; - } - case 64: { - FCntDown = input.ReadUInt32(); - break; - } - case 72: { - IsEncrypted = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - DevEui = input.ReadString(); - break; - } - case 24: { - Confirmed = input.ReadBool(); - break; - } - case 32: { - FPort = input.ReadUInt32(); - break; - } - case 42: { - Data = input.ReadBytes(); - break; - } - case 50: { - if (object_ == null) { - Object = new global::Google.Protobuf.WellKnownTypes.Struct(); - } - input.ReadMessage(Object); - break; - } - case 56: { - IsPending = input.ReadBool(); - break; - } - case 64: { - FCntDown = input.ReadUInt32(); - break; - } - case 72: { - IsEncrypted = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - public sealed partial class EnqueueDeviceQueueItemRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnqueueDeviceQueueItemRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[29]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnqueueDeviceQueueItemRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnqueueDeviceQueueItemRequest(EnqueueDeviceQueueItemRequest other) : this() { - queueItem_ = other.queueItem_ != null ? other.queueItem_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnqueueDeviceQueueItemRequest Clone() { - return new EnqueueDeviceQueueItemRequest(this); - } - - /// Field number for the "queue_item" field. - public const int QueueItemFieldNumber = 1; - private global::Chirpstack.Api.DeviceQueueItem queueItem_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.DeviceQueueItem QueueItem { - get { return queueItem_; } - set { - queueItem_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as EnqueueDeviceQueueItemRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(EnqueueDeviceQueueItemRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(QueueItem, other.QueueItem)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (queueItem_ != null) hash ^= QueueItem.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (queueItem_ != null) { - output.WriteRawTag(10); - output.WriteMessage(QueueItem); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (queueItem_ != null) { - output.WriteRawTag(10); - output.WriteMessage(QueueItem); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (queueItem_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueueItem); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(EnqueueDeviceQueueItemRequest other) { - if (other == null) { - return; - } - if (other.queueItem_ != null) { - if (queueItem_ == null) { - QueueItem = new global::Chirpstack.Api.DeviceQueueItem(); - } - QueueItem.MergeFrom(other.QueueItem); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (queueItem_ == null) { - QueueItem = new global::Chirpstack.Api.DeviceQueueItem(); - } - input.ReadMessage(QueueItem); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (queueItem_ == null) { - QueueItem = new global::Chirpstack.Api.DeviceQueueItem(); - } - input.ReadMessage(QueueItem); - break; - } - } - } - } - #endif - - } - - public sealed partial class EnqueueDeviceQueueItemResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnqueueDeviceQueueItemResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[30]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnqueueDeviceQueueItemResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnqueueDeviceQueueItemResponse(EnqueueDeviceQueueItemResponse other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnqueueDeviceQueueItemResponse Clone() { - return new EnqueueDeviceQueueItemResponse(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as EnqueueDeviceQueueItemResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(EnqueueDeviceQueueItemResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(EnqueueDeviceQueueItemResponse other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class FlushDeviceQueueRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushDeviceQueueRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[31]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FlushDeviceQueueRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FlushDeviceQueueRequest(FlushDeviceQueueRequest other) : this() { - devEui_ = other.devEui_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FlushDeviceQueueRequest Clone() { - return new FlushDeviceQueueRequest(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// Device EUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FlushDeviceQueueRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FlushDeviceQueueRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FlushDeviceQueueRequest other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDeviceQueueItemsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceQueueItemsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[32]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceQueueItemsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceQueueItemsRequest(GetDeviceQueueItemsRequest other) : this() { - devEui_ = other.devEui_; - countOnly_ = other.countOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceQueueItemsRequest Clone() { - return new GetDeviceQueueItemsRequest(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// Device EUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "count_only" field. - public const int CountOnlyFieldNumber = 2; - private bool countOnly_; - /// - /// Return only the count, not the result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CountOnly { - get { return countOnly_; } - set { - countOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDeviceQueueItemsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeviceQueueItemsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - if (CountOnly != other.CountOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (CountOnly != false) hash ^= CountOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (CountOnly != false) { - output.WriteRawTag(16); - output.WriteBool(CountOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (CountOnly != false) { - output.WriteRawTag(16); - output.WriteBool(CountOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (CountOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeviceQueueItemsRequest other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - if (other.CountOnly != false) { - CountOnly = other.CountOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 16: { - CountOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 16: { - CountOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDeviceQueueItemsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceQueueItemsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[33]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceQueueItemsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceQueueItemsResponse(GetDeviceQueueItemsResponse other) : this() { - totalCount_ = other.totalCount_; - result_ = other.result_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceQueueItemsResponse Clone() { - return new GetDeviceQueueItemsResponse(this); - } - - /// Field number for the "total_count" field. - public const int TotalCountFieldNumber = 1; - private uint totalCount_; - /// - /// Total number of queue items. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TotalCount { - get { return totalCount_; } - set { - totalCount_ = value; - } - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_result_codec - = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.DeviceQueueItem.Parser); - private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); - /// - /// Result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Result { - get { return result_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDeviceQueueItemsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeviceQueueItemsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TotalCount != other.TotalCount) return false; - if(!result_.Equals(other.result_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TotalCount != 0) hash ^= TotalCount.GetHashCode(); - hash ^= result_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(ref output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TotalCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); - } - size += result_.CalculateSize(_repeated_result_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeviceQueueItemsResponse other) { - if (other == null) { - return; - } - if (other.TotalCount != 0) { - TotalCount = other.TotalCount; - } - result_.Add(other.result_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(input, _repeated_result_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(ref input, _repeated_result_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class FlushDevNoncesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushDevNoncesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[34]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FlushDevNoncesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FlushDevNoncesRequest(FlushDevNoncesRequest other) : this() { - devEui_ = other.devEui_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FlushDevNoncesRequest Clone() { - return new FlushDevNoncesRequest(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// Device EUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FlushDevNoncesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FlushDevNoncesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FlushDevNoncesRequest other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDeviceNextFCntDownRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceNextFCntDownRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[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 GetDeviceNextFCntDownRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceNextFCntDownRequest(GetDeviceNextFCntDownRequest other) : this() { - devEui_ = other.devEui_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceNextFCntDownRequest Clone() { - return new GetDeviceNextFCntDownRequest(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// Device EUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDeviceNextFCntDownRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeviceNextFCntDownRequest 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(GetDeviceNextFCntDownRequest 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 GetDeviceNextFCntDownResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceNextFCntDownResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.MessageTypes[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 GetDeviceNextFCntDownResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceNextFCntDownResponse(GetDeviceNextFCntDownResponse other) : this() { - fCntDown_ = other.fCntDown_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceNextFCntDownResponse Clone() { - return new GetDeviceNextFCntDownResponse(this); - } - - /// Field number for the "f_cnt_down" field. - public const int FCntDownFieldNumber = 1; - private uint fCntDown_; - /// - /// FCntDown. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint FCntDown { - get { return fCntDown_; } - set { - fCntDown_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDeviceNextFCntDownResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeviceNextFCntDownResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (FCntDown != other.FCntDown) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (FCntDown != 0) hash ^= FCntDown.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (FCntDown != 0) { - output.WriteRawTag(8); - output.WriteUInt32(FCntDown); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (FCntDown != 0) { - output.WriteRawTag(8); - output.WriteUInt32(FCntDown); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (FCntDown != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCntDown); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeviceNextFCntDownResponse other) { - if (other == null) { - return; - } - if (other.FCntDown != 0) { - FCntDown = other.FCntDown; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - FCntDown = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - FCntDown = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/DeviceGrpc.cs b/api/csharp/Chirpstack/api/DeviceGrpc.cs deleted file mode 100644 index 6530d065..00000000 --- a/api/csharp/Chirpstack/api/DeviceGrpc.cs +++ /dev/null @@ -1,1620 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/device.proto -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Chirpstack.Api { - /// - /// DeviceService is the service providing API methods for managing devices. - /// - public static partial class DeviceService - { - static readonly string __ServiceName = "api.DeviceService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateDeviceRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDeviceResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateDeviceRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteDeviceRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListDevicesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListDevicesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListDevicesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListDevicesResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateDeviceKeysRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateDeviceKeysRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDeviceKeysRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceKeysRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDeviceKeysResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceKeysResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateDeviceKeysRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateDeviceKeysRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteDeviceKeysRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteDeviceKeysRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_FlushDevNoncesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.FlushDevNoncesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ActivateDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ActivateDeviceRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeactivateDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeactivateDeviceRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDeviceActivationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceActivationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDeviceActivationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceActivationResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetRandomDevAddrRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetRandomDevAddrRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetRandomDevAddrResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetRandomDevAddrResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDeviceMetricsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceMetricsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDeviceMetricsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceMetricsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDeviceLinkMetricsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceLinkMetricsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDeviceLinkMetricsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceLinkMetricsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_EnqueueDeviceQueueItemRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.EnqueueDeviceQueueItemRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_EnqueueDeviceQueueItemResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.EnqueueDeviceQueueItemResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_FlushDeviceQueueRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.FlushDeviceQueueRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDeviceQueueItemsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceQueueItemsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDeviceQueueItemsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceQueueItemsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDeviceNextFCntDownRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceNextFCntDownRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDeviceNextFCntDownResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceNextFCntDownResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Create = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Create", - __Marshaller_api_CreateDeviceRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Get = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Get", - __Marshaller_api_GetDeviceRequest, - __Marshaller_api_GetDeviceResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Update = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Update", - __Marshaller_api_UpdateDeviceRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Delete = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Delete", - __Marshaller_api_DeleteDeviceRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_List = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "List", - __Marshaller_api_ListDevicesRequest, - __Marshaller_api_ListDevicesResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_CreateKeys = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "CreateKeys", - __Marshaller_api_CreateDeviceKeysRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetKeys = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetKeys", - __Marshaller_api_GetDeviceKeysRequest, - __Marshaller_api_GetDeviceKeysResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdateKeys = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdateKeys", - __Marshaller_api_UpdateDeviceKeysRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_DeleteKeys = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "DeleteKeys", - __Marshaller_api_DeleteDeviceKeysRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_FlushDevNonces = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "FlushDevNonces", - __Marshaller_api_FlushDevNoncesRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Activate = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Activate", - __Marshaller_api_ActivateDeviceRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Deactivate = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Deactivate", - __Marshaller_api_DeactivateDeviceRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetActivation = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetActivation", - __Marshaller_api_GetDeviceActivationRequest, - __Marshaller_api_GetDeviceActivationResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetRandomDevAddr = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetRandomDevAddr", - __Marshaller_api_GetRandomDevAddrRequest, - __Marshaller_api_GetRandomDevAddrResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetMetrics = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetMetrics", - __Marshaller_api_GetDeviceMetricsRequest, - __Marshaller_api_GetDeviceMetricsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetLinkMetrics = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetLinkMetrics", - __Marshaller_api_GetDeviceLinkMetricsRequest, - __Marshaller_api_GetDeviceLinkMetricsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Enqueue = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Enqueue", - __Marshaller_api_EnqueueDeviceQueueItemRequest, - __Marshaller_api_EnqueueDeviceQueueItemResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_FlushQueue = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "FlushQueue", - __Marshaller_api_FlushDeviceQueueRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetQueue = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetQueue", - __Marshaller_api_GetDeviceQueueItemsRequest, - __Marshaller_api_GetDeviceQueueItemsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetNextFCntDown = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetNextFCntDown", - __Marshaller_api_GetDeviceNextFCntDownRequest, - __Marshaller_api_GetDeviceNextFCntDownResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Chirpstack.Api.DeviceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of DeviceService - [grpc::BindServiceMethod(typeof(DeviceService), "BindService")] - public abstract partial class DeviceServiceBase - { - /// - /// Create the given device. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Create(global::Chirpstack.Api.CreateDeviceRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get returns the device for the given DevEUI. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Get(global::Chirpstack.Api.GetDeviceRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update the given device. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Update(global::Chirpstack.Api.UpdateDeviceRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete the device with the given DevEUI. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Delete(global::Chirpstack.Api.DeleteDeviceRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get the list of devices. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task List(global::Chirpstack.Api.ListDevicesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Create the given device-keys. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task CreateKeys(global::Chirpstack.Api.CreateDeviceKeysRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get the device-keys for the given DevEUI. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetKeys(global::Chirpstack.Api.GetDeviceKeysRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update the given device-keys. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UpdateKeys(global::Chirpstack.Api.UpdateDeviceKeysRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete the device-keys for the given DevEUI. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task DeleteKeys(global::Chirpstack.Api.DeleteDeviceKeysRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// FlushDevNonces flushes the OTAA device nonces. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task FlushDevNonces(global::Chirpstack.Api.FlushDevNoncesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Activate (re)activates the device with the given parameters (for ABP or for - /// importing OTAA activations). - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Activate(global::Chirpstack.Api.ActivateDeviceRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Deactivate de-activates the device. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Deactivate(global::Chirpstack.Api.DeactivateDeviceRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// GetActivation returns the current activation details of the device (OTAA or - /// ABP). - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetActivation(global::Chirpstack.Api.GetDeviceActivationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into - /// account. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetRandomDevAddr(global::Chirpstack.Api.GetRandomDevAddrRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// GetMetrics returns the device metrics. - /// Note that this requires a device-profile with codec and measurements - /// configured. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetMetrics(global::Chirpstack.Api.GetDeviceMetricsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// GetLinkMetrics returns the device link metrics. - /// This includes uplinks, downlinks, RSSI, SNR, etc... - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetLinkMetrics(global::Chirpstack.Api.GetDeviceLinkMetricsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Enqueue adds the given item to the downlink queue. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Enqueue(global::Chirpstack.Api.EnqueueDeviceQueueItemRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// FlushQueue flushes the downlink device-queue. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task FlushQueue(global::Chirpstack.Api.FlushDeviceQueueRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// GetQueue returns the downlink device-queue. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetQueue(global::Chirpstack.Api.GetDeviceQueueItemsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// GetNextFCntDown returns the next FCntDown to use for enqueing encrypted - /// downlinks. The difference with the DeviceActivation f_cont_down is that - /// this method takes potential existing queue-items 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 GetNextFCntDown(global::Chirpstack.Api.GetDeviceNextFCntDownRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for DeviceService - public partial class DeviceServiceClient : grpc::ClientBase - { - /// Creates a new client for DeviceService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public DeviceServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for DeviceService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public DeviceServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected DeviceServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected DeviceServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Create the given device. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Create(global::Chirpstack.Api.CreateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Create(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create the given device. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Create(global::Chirpstack.Api.CreateDeviceRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); - } - /// - /// Create the given device. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create the given device. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateDeviceRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); - } - /// - /// Get returns the device for the given DevEUI. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDeviceResponse Get(global::Chirpstack.Api.GetDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Get(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get returns the device for the given DevEUI. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDeviceResponse Get(global::Chirpstack.Api.GetDeviceRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); - } - /// - /// Get returns the device for the given DevEUI. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get returns the device for the given DevEUI. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetDeviceRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); - } - /// - /// Update the given device. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Update(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the given device. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateDeviceRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); - } - /// - /// Update the given device. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the given device. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateDeviceRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); - } - /// - /// Delete the device with the given DevEUI. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Delete(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the device with the given DevEUI. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteDeviceRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); - } - /// - /// Delete the device with the given DevEUI. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the device with the given DevEUI. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteDeviceRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); - } - /// - /// Get the list of devices. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListDevicesResponse List(global::Chirpstack.Api.ListDevicesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return List(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the list of devices. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListDevicesResponse List(global::Chirpstack.Api.ListDevicesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); - } - /// - /// Get the list of devices. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListDevicesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the list of devices. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListDevicesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); - } - /// - /// Create the given device-keys. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateKeys(global::Chirpstack.Api.CreateDeviceKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateKeys(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create the given device-keys. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty CreateKeys(global::Chirpstack.Api.CreateDeviceKeysRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CreateKeys, null, options, request); - } - /// - /// Create the given device-keys. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateKeysAsync(global::Chirpstack.Api.CreateDeviceKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateKeysAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create the given device-keys. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateKeysAsync(global::Chirpstack.Api.CreateDeviceKeysRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CreateKeys, null, options, request); - } - /// - /// Get the device-keys for the given DevEUI. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDeviceKeysResponse GetKeys(global::Chirpstack.Api.GetDeviceKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetKeys(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the device-keys for the given DevEUI. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDeviceKeysResponse GetKeys(global::Chirpstack.Api.GetDeviceKeysRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetKeys, null, options, request); - } - /// - /// Get the device-keys for the given DevEUI. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetKeysAsync(global::Chirpstack.Api.GetDeviceKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetKeysAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the device-keys for the given DevEUI. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetKeysAsync(global::Chirpstack.Api.GetDeviceKeysRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetKeys, null, options, request); - } - /// - /// Update the given device-keys. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateKeys(global::Chirpstack.Api.UpdateDeviceKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateKeys(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the given device-keys. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateKeys(global::Chirpstack.Api.UpdateDeviceKeysRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdateKeys, null, options, request); - } - /// - /// Update the given device-keys. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateKeysAsync(global::Chirpstack.Api.UpdateDeviceKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateKeysAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the given device-keys. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateKeysAsync(global::Chirpstack.Api.UpdateDeviceKeysRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdateKeys, null, options, request); - } - /// - /// Delete the device-keys for the given DevEUI. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteKeys(global::Chirpstack.Api.DeleteDeviceKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteKeys(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the device-keys for the given DevEUI. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteKeys(global::Chirpstack.Api.DeleteDeviceKeysRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_DeleteKeys, null, options, request); - } - /// - /// Delete the device-keys for the given DevEUI. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteKeysAsync(global::Chirpstack.Api.DeleteDeviceKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteKeysAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the device-keys for the given DevEUI. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteKeysAsync(global::Chirpstack.Api.DeleteDeviceKeysRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_DeleteKeys, null, options, request); - } - /// - /// FlushDevNonces flushes the OTAA device nonces. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty FlushDevNonces(global::Chirpstack.Api.FlushDevNoncesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return FlushDevNonces(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// FlushDevNonces flushes the OTAA device nonces. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty FlushDevNonces(global::Chirpstack.Api.FlushDevNoncesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_FlushDevNonces, null, options, request); - } - /// - /// FlushDevNonces flushes the OTAA device nonces. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall FlushDevNoncesAsync(global::Chirpstack.Api.FlushDevNoncesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return FlushDevNoncesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// FlushDevNonces flushes the OTAA device nonces. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall FlushDevNoncesAsync(global::Chirpstack.Api.FlushDevNoncesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_FlushDevNonces, null, options, request); - } - /// - /// Activate (re)activates the device with the given parameters (for ABP or for - /// importing OTAA activations). - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Activate(global::Chirpstack.Api.ActivateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Activate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Activate (re)activates the device with the given parameters (for ABP or for - /// importing OTAA activations). - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Activate(global::Chirpstack.Api.ActivateDeviceRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Activate, null, options, request); - } - /// - /// Activate (re)activates the device with the given parameters (for ABP or for - /// importing OTAA activations). - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ActivateAsync(global::Chirpstack.Api.ActivateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ActivateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Activate (re)activates the device with the given parameters (for ABP or for - /// importing OTAA activations). - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ActivateAsync(global::Chirpstack.Api.ActivateDeviceRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Activate, null, options, request); - } - /// - /// Deactivate de-activates the device. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Deactivate(global::Chirpstack.Api.DeactivateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Deactivate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Deactivate de-activates the device. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Deactivate(global::Chirpstack.Api.DeactivateDeviceRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Deactivate, null, options, request); - } - /// - /// Deactivate de-activates the device. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeactivateAsync(global::Chirpstack.Api.DeactivateDeviceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeactivateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Deactivate de-activates the device. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeactivateAsync(global::Chirpstack.Api.DeactivateDeviceRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Deactivate, null, options, request); - } - /// - /// GetActivation returns the current activation details of the device (OTAA or - /// ABP). - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDeviceActivationResponse GetActivation(global::Chirpstack.Api.GetDeviceActivationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetActivation(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetActivation returns the current activation details of the device (OTAA or - /// ABP). - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDeviceActivationResponse GetActivation(global::Chirpstack.Api.GetDeviceActivationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetActivation, null, options, request); - } - /// - /// GetActivation returns the current activation details of the device (OTAA or - /// ABP). - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetActivationAsync(global::Chirpstack.Api.GetDeviceActivationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetActivationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetActivation returns the current activation details of the device (OTAA or - /// ABP). - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetActivationAsync(global::Chirpstack.Api.GetDeviceActivationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetActivation, null, options, request); - } - /// - /// GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into - /// account. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetRandomDevAddrResponse GetRandomDevAddr(global::Chirpstack.Api.GetRandomDevAddrRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetRandomDevAddr(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into - /// account. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetRandomDevAddrResponse GetRandomDevAddr(global::Chirpstack.Api.GetRandomDevAddrRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetRandomDevAddr, null, options, request); - } - /// - /// GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into - /// account. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetRandomDevAddrAsync(global::Chirpstack.Api.GetRandomDevAddrRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetRandomDevAddrAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into - /// account. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetRandomDevAddrAsync(global::Chirpstack.Api.GetRandomDevAddrRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetRandomDevAddr, null, options, request); - } - /// - /// GetMetrics returns the device metrics. - /// Note that this requires a device-profile with codec and measurements - /// configured. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDeviceMetricsResponse GetMetrics(global::Chirpstack.Api.GetDeviceMetricsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetMetrics(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetMetrics returns the device metrics. - /// Note that this requires a device-profile with codec and measurements - /// configured. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDeviceMetricsResponse GetMetrics(global::Chirpstack.Api.GetDeviceMetricsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetMetrics, null, options, request); - } - /// - /// GetMetrics returns the device metrics. - /// Note that this requires a device-profile with codec and measurements - /// configured. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetMetricsAsync(global::Chirpstack.Api.GetDeviceMetricsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetMetricsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetMetrics returns the device metrics. - /// Note that this requires a device-profile with codec and measurements - /// configured. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetMetricsAsync(global::Chirpstack.Api.GetDeviceMetricsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetMetrics, null, options, request); - } - /// - /// GetLinkMetrics returns the device link metrics. - /// This includes uplinks, downlinks, RSSI, SNR, etc... - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDeviceLinkMetricsResponse GetLinkMetrics(global::Chirpstack.Api.GetDeviceLinkMetricsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetLinkMetrics(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetLinkMetrics returns the device link metrics. - /// This includes uplinks, downlinks, RSSI, SNR, etc... - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDeviceLinkMetricsResponse GetLinkMetrics(global::Chirpstack.Api.GetDeviceLinkMetricsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetLinkMetrics, null, options, request); - } - /// - /// GetLinkMetrics returns the device link metrics. - /// This includes uplinks, downlinks, RSSI, SNR, etc... - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetLinkMetricsAsync(global::Chirpstack.Api.GetDeviceLinkMetricsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetLinkMetricsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetLinkMetrics returns the device link metrics. - /// This includes uplinks, downlinks, RSSI, SNR, etc... - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetLinkMetricsAsync(global::Chirpstack.Api.GetDeviceLinkMetricsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetLinkMetrics, null, options, request); - } - /// - /// Enqueue adds the given item to the downlink queue. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.EnqueueDeviceQueueItemResponse Enqueue(global::Chirpstack.Api.EnqueueDeviceQueueItemRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Enqueue(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Enqueue adds the given item to the downlink queue. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.EnqueueDeviceQueueItemResponse Enqueue(global::Chirpstack.Api.EnqueueDeviceQueueItemRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Enqueue, null, options, request); - } - /// - /// Enqueue adds the given item to the downlink queue. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall EnqueueAsync(global::Chirpstack.Api.EnqueueDeviceQueueItemRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return EnqueueAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Enqueue adds the given item to the downlink queue. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall EnqueueAsync(global::Chirpstack.Api.EnqueueDeviceQueueItemRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Enqueue, null, options, request); - } - /// - /// FlushQueue flushes the downlink device-queue. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty FlushQueue(global::Chirpstack.Api.FlushDeviceQueueRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return FlushQueue(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// FlushQueue flushes the downlink device-queue. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty FlushQueue(global::Chirpstack.Api.FlushDeviceQueueRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_FlushQueue, null, options, request); - } - /// - /// FlushQueue flushes the downlink device-queue. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall FlushQueueAsync(global::Chirpstack.Api.FlushDeviceQueueRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return FlushQueueAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// FlushQueue flushes the downlink device-queue. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall FlushQueueAsync(global::Chirpstack.Api.FlushDeviceQueueRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_FlushQueue, null, options, request); - } - /// - /// GetQueue returns the downlink device-queue. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDeviceQueueItemsResponse GetQueue(global::Chirpstack.Api.GetDeviceQueueItemsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetQueue(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetQueue returns the downlink device-queue. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDeviceQueueItemsResponse GetQueue(global::Chirpstack.Api.GetDeviceQueueItemsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetQueue, null, options, request); - } - /// - /// GetQueue returns the downlink device-queue. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetQueueAsync(global::Chirpstack.Api.GetDeviceQueueItemsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetQueueAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetQueue returns the downlink device-queue. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetQueueAsync(global::Chirpstack.Api.GetDeviceQueueItemsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetQueue, null, options, request); - } - /// - /// GetNextFCntDown returns the next FCntDown to use for enqueing encrypted - /// downlinks. The difference with the DeviceActivation f_cont_down is that - /// this method takes potential existing queue-items into account. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDeviceNextFCntDownResponse GetNextFCntDown(global::Chirpstack.Api.GetDeviceNextFCntDownRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetNextFCntDown(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetNextFCntDown returns the next FCntDown to use for enqueing encrypted - /// downlinks. The difference with the DeviceActivation f_cont_down is that - /// this method takes potential existing queue-items into account. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDeviceNextFCntDownResponse GetNextFCntDown(global::Chirpstack.Api.GetDeviceNextFCntDownRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetNextFCntDown, null, options, request); - } - /// - /// GetNextFCntDown returns the next FCntDown to use for enqueing encrypted - /// downlinks. The difference with the DeviceActivation f_cont_down is that - /// this method takes potential existing queue-items 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 GetNextFCntDownAsync(global::Chirpstack.Api.GetDeviceNextFCntDownRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetNextFCntDownAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetNextFCntDown returns the next FCntDown to use for enqueing encrypted - /// downlinks. The difference with the DeviceActivation f_cont_down is that - /// this method takes potential existing queue-items 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 GetNextFCntDownAsync(global::Chirpstack.Api.GetDeviceNextFCntDownRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetNextFCntDown, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override DeviceServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new DeviceServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(DeviceServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_Create, serviceImpl.Create) - .AddMethod(__Method_Get, serviceImpl.Get) - .AddMethod(__Method_Update, serviceImpl.Update) - .AddMethod(__Method_Delete, serviceImpl.Delete) - .AddMethod(__Method_List, serviceImpl.List) - .AddMethod(__Method_CreateKeys, serviceImpl.CreateKeys) - .AddMethod(__Method_GetKeys, serviceImpl.GetKeys) - .AddMethod(__Method_UpdateKeys, serviceImpl.UpdateKeys) - .AddMethod(__Method_DeleteKeys, serviceImpl.DeleteKeys) - .AddMethod(__Method_FlushDevNonces, serviceImpl.FlushDevNonces) - .AddMethod(__Method_Activate, serviceImpl.Activate) - .AddMethod(__Method_Deactivate, serviceImpl.Deactivate) - .AddMethod(__Method_GetActivation, serviceImpl.GetActivation) - .AddMethod(__Method_GetRandomDevAddr, serviceImpl.GetRandomDevAddr) - .AddMethod(__Method_GetMetrics, serviceImpl.GetMetrics) - .AddMethod(__Method_GetLinkMetrics, serviceImpl.GetLinkMetrics) - .AddMethod(__Method_Enqueue, serviceImpl.Enqueue) - .AddMethod(__Method_FlushQueue, serviceImpl.FlushQueue) - .AddMethod(__Method_GetQueue, serviceImpl.GetQueue) - .AddMethod(__Method_GetNextFCntDown, serviceImpl.GetNextFCntDown).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, DeviceServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Create)); - serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Get)); - serviceBinder.AddMethod(__Method_Update, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Update)); - serviceBinder.AddMethod(__Method_Delete, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Delete)); - serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); - serviceBinder.AddMethod(__Method_CreateKeys, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateKeys)); - serviceBinder.AddMethod(__Method_GetKeys, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetKeys)); - serviceBinder.AddMethod(__Method_UpdateKeys, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateKeys)); - serviceBinder.AddMethod(__Method_DeleteKeys, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteKeys)); - serviceBinder.AddMethod(__Method_FlushDevNonces, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.FlushDevNonces)); - serviceBinder.AddMethod(__Method_Activate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Activate)); - serviceBinder.AddMethod(__Method_Deactivate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Deactivate)); - serviceBinder.AddMethod(__Method_GetActivation, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetActivation)); - serviceBinder.AddMethod(__Method_GetRandomDevAddr, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetRandomDevAddr)); - serviceBinder.AddMethod(__Method_GetMetrics, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetMetrics)); - serviceBinder.AddMethod(__Method_GetLinkMetrics, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetLinkMetrics)); - serviceBinder.AddMethod(__Method_Enqueue, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Enqueue)); - serviceBinder.AddMethod(__Method_FlushQueue, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.FlushQueue)); - serviceBinder.AddMethod(__Method_GetQueue, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetQueue)); - serviceBinder.AddMethod(__Method_GetNextFCntDown, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetNextFCntDown)); - } - - } -} -#endregion diff --git a/api/csharp/Chirpstack/api/DeviceProfile.cs b/api/csharp/Chirpstack/api/DeviceProfile.cs deleted file mode 100644 index 4a4fee32..00000000 --- a/api/csharp/Chirpstack/api/DeviceProfile.cs +++ /dev/null @@ -1,5652 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/device_profile.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Chirpstack.Api { - - /// Holder for reflection information generated from api/device_profile.proto - public static partial class DeviceProfileReflection { - - #region Descriptor - /// File descriptor for api/device_profile.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DeviceProfileReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ChhhcGkvZGV2aWNlX3Byb2ZpbGUucHJvdG8SA2FwaRocZ29vZ2xlL2FwaS9h", - "bm5vdGF0aW9ucy5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5w", - "cm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvGhNjb21tb24vY29t", - "bW9uLnByb3RvIt8OCg1EZXZpY2VQcm9maWxlEgoKAmlkGAEgASgJEhEKCXRl", - "bmFudF9pZBgCIAEoCRIMCgRuYW1lGAMgASgJEhMKC2Rlc2NyaXB0aW9uGBog", - "ASgJEh4KBnJlZ2lvbhgEIAEoDjIOLmNvbW1vbi5SZWdpb24SJwoLbWFjX3Zl", - "cnNpb24YBSABKA4yEi5jb21tb24uTWFjVmVyc2lvbhI2ChNyZWdfcGFyYW1z", - "X3JldmlzaW9uGAYgASgOMhkuY29tbW9uLlJlZ1BhcmFtc1JldmlzaW9uEhgK", - "EGFkcl9hbGdvcml0aG1faWQYByABKAkSMAoVcGF5bG9hZF9jb2RlY19ydW50", - "aW1lGAggASgOMhEuYXBpLkNvZGVjUnVudGltZRIcChRwYXlsb2FkX2NvZGVj", - "X3NjcmlwdBgJIAEoCRIfChdmbHVzaF9xdWV1ZV9vbl9hY3RpdmF0ZRgKIAEo", - "CBIXCg91cGxpbmtfaW50ZXJ2YWwYCyABKA0SIgoaZGV2aWNlX3N0YXR1c19y", - "ZXFfaW50ZXJ2YWwYDCABKA0SFQoNc3VwcG9ydHNfb3RhYRgNIAEoCBIYChBz", - "dXBwb3J0c19jbGFzc19iGA4gASgIEhgKEHN1cHBvcnRzX2NsYXNzX2MYDyAB", - "KAgSFwoPY2xhc3NfYl90aW1lb3V0GBAgASgNEh4KFmNsYXNzX2JfcGluZ19z", - "bG90X25iX2sYESABKA0SHAoUY2xhc3NfYl9waW5nX3Nsb3RfZHIYEiABKA0S", - "HgoWY2xhc3NfYl9waW5nX3Nsb3RfZnJlcRgTIAEoDRIXCg9jbGFzc19jX3Rp", - "bWVvdXQYFCABKA0SFQoNYWJwX3J4MV9kZWxheRgVIAEoDRIZChFhYnBfcngx", - "X2RyX29mZnNldBgWIAEoDRISCgphYnBfcngyX2RyGBcgASgNEhQKDGFicF9y", - "eDJfZnJlcRgYIAEoDRIqCgR0YWdzGBkgAygLMhwuYXBpLkRldmljZVByb2Zp", - "bGUuVGFnc0VudHJ5EjoKDG1lYXN1cmVtZW50cxgbIAMoCzIkLmFwaS5EZXZp", - "Y2VQcm9maWxlLk1lYXN1cmVtZW50c0VudHJ5EiAKGGF1dG9fZGV0ZWN0X21l", - "YXN1cmVtZW50cxgcIAEoCBIYChByZWdpb25fY29uZmlnX2lkGB0gASgJEhAK", - "CGlzX3JlbGF5GB4gASgIEhMKC2lzX3JlbGF5X2VkGB8gASgIEhsKE3JlbGF5", - "X2VkX3JlbGF5X29ubHkYICABKAgSFQoNcmVsYXlfZW5hYmxlZBghIAEoCBIy", - "ChVyZWxheV9jYWRfcGVyaW9kaWNpdHkYIiABKA4yEy5hcGkuQ2FkUGVyaW9k", - "aWNpdHkSIwobcmVsYXlfZGVmYXVsdF9jaGFubmVsX2luZGV4GCMgASgNEiEK", - "GXJlbGF5X3NlY29uZF9jaGFubmVsX2ZyZXEYJCABKA0SHwoXcmVsYXlfc2Vj", - "b25kX2NoYW5uZWxfZHIYJSABKA0SPwofcmVsYXlfc2Vjb25kX2NoYW5uZWxf", - "YWNrX29mZnNldBgmIAEoDjIWLmFwaS5TZWNvbmRDaEFja09mZnNldBI6Chhy", - "ZWxheV9lZF9hY3RpdmF0aW9uX21vZGUYJyABKA4yGC5hcGkuUmVsYXlNb2Rl", - "QWN0aXZhdGlvbhIjChtyZWxheV9lZF9zbWFydF9lbmFibGVfbGV2ZWwYKCAB", - "KA0SGQoRcmVsYXlfZWRfYmFja19vZmYYKSABKA0SKQohcmVsYXlfZWRfdXBs", - "aW5rX2xpbWl0X2J1Y2tldF9zaXplGCogASgNEikKIXJlbGF5X2VkX3VwbGlu", - "a19saW1pdF9yZWxvYWRfcmF0ZRgrIAEoDRIoCiByZWxheV9qb2luX3JlcV9s", - "aW1pdF9yZWxvYWRfcmF0ZRgsIAEoDRImCh5yZWxheV9ub3RpZnlfbGltaXRf", - "cmVsb2FkX3JhdGUYLSABKA0SLQolcmVsYXlfZ2xvYmFsX3VwbGlua19saW1p", - "dF9yZWxvYWRfcmF0ZRguIAEoDRInCh9yZWxheV9vdmVyYWxsX2xpbWl0X3Jl", - "bG9hZF9yYXRlGC8gASgNEigKIHJlbGF5X2pvaW5fcmVxX2xpbWl0X2J1Y2tl", - "dF9zaXplGDAgASgNEiYKHnJlbGF5X25vdGlmeV9saW1pdF9idWNrZXRfc2l6", - "ZRgxIAEoDRItCiVyZWxheV9nbG9iYWxfdXBsaW5rX2xpbWl0X2J1Y2tldF9z", - "aXplGDIgASgNEicKH3JlbGF5X292ZXJhbGxfbGltaXRfYnVja2V0X3NpemUY", - "MyABKA0SFQoNYWxsb3dfcm9hbWluZxg0IAEoCBorCglUYWdzRW50cnkSCwoD", - "a2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ARpFChFNZWFzdXJlbWVudHNF", - "bnRyeRILCgNrZXkYASABKAkSHwoFdmFsdWUYAiABKAsyEC5hcGkuTWVhc3Vy", - "ZW1lbnQ6AjgBIj8KC01lYXN1cmVtZW50EgwKBG5hbWUYAiABKAkSIgoEa2lu", - "ZBgDIAEoDjIULmFwaS5NZWFzdXJlbWVudEtpbmQi3QIKFURldmljZVByb2Zp", - "bGVMaXN0SXRlbRIKCgJpZBgBIAEoCRIuCgpjcmVhdGVkX2F0GAIgASgLMhou", - "Z29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAMgASgL", - "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIMCgRuYW1lGAQgASgJEh4K", - "BnJlZ2lvbhgFIAEoDjIOLmNvbW1vbi5SZWdpb24SJwoLbWFjX3ZlcnNpb24Y", - "BiABKA4yEi5jb21tb24uTWFjVmVyc2lvbhI2ChNyZWdfcGFyYW1zX3Jldmlz", - "aW9uGAcgASgOMhkuY29tbW9uLlJlZ1BhcmFtc1JldmlzaW9uEhUKDXN1cHBv", - "cnRzX290YWEYCCABKAgSGAoQc3VwcG9ydHNfY2xhc3NfYhgJIAEoCBIYChBz", - "dXBwb3J0c19jbGFzc19jGAogASgIIkgKGkNyZWF0ZURldmljZVByb2ZpbGVS", - "ZXF1ZXN0EioKDmRldmljZV9wcm9maWxlGAEgASgLMhIuYXBpLkRldmljZVBy", - "b2ZpbGUiKQobQ3JlYXRlRGV2aWNlUHJvZmlsZVJlc3BvbnNlEgoKAmlkGAEg", - "ASgJIiUKF0dldERldmljZVByb2ZpbGVSZXF1ZXN0EgoKAmlkGAEgASgJIqYB", - "ChhHZXREZXZpY2VQcm9maWxlUmVzcG9uc2USKgoOZGV2aWNlX3Byb2ZpbGUY", - "ASABKAsyEi5hcGkuRGV2aWNlUHJvZmlsZRIuCgpjcmVhdGVkX2F0GAIgASgL", - "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAMg", - "ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCJIChpVcGRhdGVEZXZp", - "Y2VQcm9maWxlUmVxdWVzdBIqCg5kZXZpY2VfcHJvZmlsZRgBIAEoCzISLmFw", - "aS5EZXZpY2VQcm9maWxlIigKGkRlbGV0ZURldmljZVByb2ZpbGVSZXF1ZXN0", - "EgoKAmlkGAEgASgJIl0KGUxpc3REZXZpY2VQcm9maWxlc1JlcXVlc3QSDQoF", - "bGltaXQYASABKA0SDgoGb2Zmc2V0GAIgASgNEg4KBnNlYXJjaBgDIAEoCRIR", - "Cgl0ZW5hbnRfaWQYBCABKAkiXQoaTGlzdERldmljZVByb2ZpbGVzUmVzcG9u", - "c2USEwoLdG90YWxfY291bnQYASABKA0SKgoGcmVzdWx0GAIgAygLMhouYXBp", - "LkRldmljZVByb2ZpbGVMaXN0SXRlbSJoCiZMaXN0RGV2aWNlUHJvZmlsZUFk", - "ckFsZ29yaXRobXNSZXNwb25zZRITCgt0b3RhbF9jb3VudBgBIAEoDRIpCgZy", - "ZXN1bHQYAiADKAsyGS5hcGkuQWRyQWxnb3JpdGhtTGlzdEl0ZW0iMAoUQWRy", - "QWxnb3JpdGhtTGlzdEl0ZW0SCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCSox", - "CgxDb2RlY1J1bnRpbWUSCAoETk9ORRAAEg8KC0NBWUVOTkVfTFBQEAESBgoC", - "SlMQAipQCg9NZWFzdXJlbWVudEtpbmQSCwoHVU5LTk9XThAAEgsKB0NPVU5U", - "RVIQARIMCghBQlNPTFVURRACEgkKBUdBVUdFEAMSCgoGU1RSSU5HEAQqVQoO", - "Q2FkUGVyaW9kaWNpdHkSCQoFU0VDXzEQABIKCgZNU181MDAQARIKCgZNU18y", - "NTAQAhIKCgZNU18xMDAQAxIJCgVNU181MBAEEgkKBU1TXzIwEAUqYQoRU2Vj", - "b25kQ2hBY2tPZmZzZXQSCQoFS0haXzAQABILCgdLSFpfMjAwEAESCwoHS0ha", - "XzQwMBACEgsKB0tIWl84MDAQAxIMCghLSFpfMTYwMBAEEgwKCEtIWl8zMjAw", - "EAUqbAoTUmVsYXlNb2RlQWN0aXZhdGlvbhIWChJESVNBQkxFX1JFTEFZX01P", - "REUQABIVChFFTkFCTEVfUkVMQVlfTU9ERRABEgsKB0RZTkFNSUMQAhIZChVF", - "TkRfREVWSUNFX0NPTlRST0xMRUQQAzK4BQoURGV2aWNlUHJvZmlsZVNlcnZp", - "Y2USbAoGQ3JlYXRlEh8uYXBpLkNyZWF0ZURldmljZVByb2ZpbGVSZXF1ZXN0", - "GiAuYXBpLkNyZWF0ZURldmljZVByb2ZpbGVSZXNwb25zZSIfgtPkkwIZIhQv", - "YXBpL2RldmljZS1wcm9maWxlczoBKhJlCgNHZXQSHC5hcGkuR2V0RGV2aWNl", - "UHJvZmlsZVJlcXVlc3QaHS5hcGkuR2V0RGV2aWNlUHJvZmlsZVJlc3BvbnNl", - "IiGC0+STAhsSGS9hcGkvZGV2aWNlLXByb2ZpbGVzL3tpZH0SdgoGVXBkYXRl", - "Eh8uYXBpLlVwZGF0ZURldmljZVByb2ZpbGVSZXF1ZXN0GhYuZ29vZ2xlLnBy", - "b3RvYnVmLkVtcHR5IjOC0+STAi0aKC9hcGkvZGV2aWNlLXByb2ZpbGVzL3tk", - "ZXZpY2VfcHJvZmlsZS5pZH06ASoSZAoGRGVsZXRlEh8uYXBpLkRlbGV0ZURl", - "dmljZVByb2ZpbGVSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IiGC", - "0+STAhsqGS9hcGkvZGV2aWNlLXByb2ZpbGVzL3tpZH0SZQoETGlzdBIeLmFw", - "aS5MaXN0RGV2aWNlUHJvZmlsZXNSZXF1ZXN0Gh8uYXBpLkxpc3REZXZpY2VQ", - "cm9maWxlc1Jlc3BvbnNlIhyC0+STAhYSFC9hcGkvZGV2aWNlLXByb2ZpbGVz", - "EoUBChFMaXN0QWRyQWxnb3JpdGhtcxIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0", - "eRorLmFwaS5MaXN0RGV2aWNlUHJvZmlsZUFkckFsZ29yaXRobXNSZXNwb25z", - "ZSIrgtPkkwIlEiMvYXBpL2RldmljZS1wcm9maWxlcy9hZHItYWxnb3JpdGht", - "c0JqChFpby5jaGlycHN0YWNrLmFwaUISRGV2aWNlUHJvZmlsZVByb3RvUAFa", - "LmdpdGh1Yi5jb20vY2hpcnBzdGFjay9jaGlycHN0YWNrL2FwaS9nby92NC9h", - "cGmqAg5DaGlycHN0YWNrLkFwaWIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.Api.CodecRuntime), typeof(global::Chirpstack.Api.MeasurementKind), typeof(global::Chirpstack.Api.CadPeriodicity), typeof(global::Chirpstack.Api.SecondChAckOffset), typeof(global::Chirpstack.Api.RelayModeActivation), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceProfile), global::Chirpstack.Api.DeviceProfile.Parser, new[]{ "Id", "TenantId", "Name", "Description", "Region", "MacVersion", "RegParamsRevision", "AdrAlgorithmId", "PayloadCodecRuntime", "PayloadCodecScript", "FlushQueueOnActivate", "UplinkInterval", "DeviceStatusReqInterval", "SupportsOtaa", "SupportsClassB", "SupportsClassC", "ClassBTimeout", "ClassBPingSlotNbK", "ClassBPingSlotDr", "ClassBPingSlotFreq", "ClassCTimeout", "AbpRx1Delay", "AbpRx1DrOffset", "AbpRx2Dr", "AbpRx2Freq", "Tags", "Measurements", "AutoDetectMeasurements", "RegionConfigId", "IsRelay", "IsRelayEd", "RelayEdRelayOnly", "RelayEnabled", "RelayCadPeriodicity", "RelayDefaultChannelIndex", "RelaySecondChannelFreq", "RelaySecondChannelDr", "RelaySecondChannelAckOffset", "RelayEdActivationMode", "RelayEdSmartEnableLevel", "RelayEdBackOff", "RelayEdUplinkLimitBucketSize", "RelayEdUplinkLimitReloadRate", "RelayJoinReqLimitReloadRate", "RelayNotifyLimitReloadRate", "RelayGlobalUplinkLimitReloadRate", "RelayOverallLimitReloadRate", "RelayJoinReqLimitBucketSize", "RelayNotifyLimitBucketSize", "RelayGlobalUplinkLimitBucketSize", "RelayOverallLimitBucketSize", "AllowRoaming" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.Measurement), global::Chirpstack.Api.Measurement.Parser, new[]{ "Name", "Kind" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceProfileListItem), global::Chirpstack.Api.DeviceProfileListItem.Parser, new[]{ "Id", "CreatedAt", "UpdatedAt", "Name", "Region", "MacVersion", "RegParamsRevision", "SupportsOtaa", "SupportsClassB", "SupportsClassC" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateDeviceProfileRequest), global::Chirpstack.Api.CreateDeviceProfileRequest.Parser, new[]{ "DeviceProfile" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateDeviceProfileResponse), global::Chirpstack.Api.CreateDeviceProfileResponse.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceProfileRequest), global::Chirpstack.Api.GetDeviceProfileRequest.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceProfileResponse), global::Chirpstack.Api.GetDeviceProfileResponse.Parser, new[]{ "DeviceProfile", "CreatedAt", "UpdatedAt" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateDeviceProfileRequest), global::Chirpstack.Api.UpdateDeviceProfileRequest.Parser, new[]{ "DeviceProfile" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteDeviceProfileRequest), global::Chirpstack.Api.DeleteDeviceProfileRequest.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListDeviceProfilesRequest), global::Chirpstack.Api.ListDeviceProfilesRequest.Parser, new[]{ "Limit", "Offset", "Search", "TenantId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListDeviceProfilesResponse), global::Chirpstack.Api.ListDeviceProfilesResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListDeviceProfileAdrAlgorithmsResponse), global::Chirpstack.Api.ListDeviceProfileAdrAlgorithmsResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.AdrAlgorithmListItem), global::Chirpstack.Api.AdrAlgorithmListItem.Parser, new[]{ "Id", "Name" }, null, null, null, null) - })); - } - #endregion - - } - #region Enums - public enum CodecRuntime { - /// - /// None. - /// - [pbr::OriginalName("NONE")] None = 0, - /// - /// Cayenne LPP. - /// - [pbr::OriginalName("CAYENNE_LPP")] CayenneLpp = 1, - /// - /// JavaScript. - /// - [pbr::OriginalName("JS")] Js = 2, - } - - public enum MeasurementKind { - /// - /// Unknown (in which case it is not tracked). - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 0, - /// - /// Incrementing counters that never decrease (these are not reset on each - /// reading). - /// - [pbr::OriginalName("COUNTER")] Counter = 1, - /// - /// Counters that do get reset upon reading. - /// - [pbr::OriginalName("ABSOLUTE")] Absolute = 2, - /// - /// E.g. a temperature value. - /// - [pbr::OriginalName("GAUGE")] Gauge = 3, - /// - /// E.g. a firmware version, true / false value. - /// - [pbr::OriginalName("STRING")] String = 4, - } - - public enum CadPeriodicity { - /// - /// 1 second. - /// - [pbr::OriginalName("SEC_1")] Sec1 = 0, - /// - /// 500 milliseconds - /// - [pbr::OriginalName("MS_500")] Ms500 = 1, - /// - /// 250 milliseconds - /// - [pbr::OriginalName("MS_250")] Ms250 = 2, - /// - /// 100 milliseconds - /// - [pbr::OriginalName("MS_100")] Ms100 = 3, - /// - /// 50 milliseconds - /// - [pbr::OriginalName("MS_50")] Ms50 = 4, - /// - /// 20 milliseconds - /// - [pbr::OriginalName("MS_20")] Ms20 = 5, - } - - public enum SecondChAckOffset { - /// - /// 0 kHz. - /// - [pbr::OriginalName("KHZ_0")] Khz0 = 0, - /// - /// 200 kHz. - /// - [pbr::OriginalName("KHZ_200")] Khz200 = 1, - /// - /// 400 kHz. - /// - [pbr::OriginalName("KHZ_400")] Khz400 = 2, - /// - /// 800 kHz. - /// - [pbr::OriginalName("KHZ_800")] Khz800 = 3, - /// - /// 1600 kHz. - /// - [pbr::OriginalName("KHZ_1600")] Khz1600 = 4, - /// - /// 3200 kHz. - /// - [pbr::OriginalName("KHZ_3200")] Khz3200 = 5, - } - - public enum RelayModeActivation { - /// - /// Disable the relay mode. - /// - [pbr::OriginalName("DISABLE_RELAY_MODE")] DisableRelayMode = 0, - /// - /// Enable the relay model. - /// - [pbr::OriginalName("ENABLE_RELAY_MODE")] EnableRelayMode = 1, - /// - /// Dynamic. - /// - [pbr::OriginalName("DYNAMIC")] Dynamic = 2, - /// - /// End-device controlled. - /// - [pbr::OriginalName("END_DEVICE_CONTROLLED")] EndDeviceControlled = 3, - } - - #endregion - - #region Messages - public sealed partial class DeviceProfile : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceProfile()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceProfile() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceProfile(DeviceProfile other) : this() { - id_ = other.id_; - tenantId_ = other.tenantId_; - name_ = other.name_; - description_ = other.description_; - region_ = other.region_; - macVersion_ = other.macVersion_; - regParamsRevision_ = other.regParamsRevision_; - adrAlgorithmId_ = other.adrAlgorithmId_; - payloadCodecRuntime_ = other.payloadCodecRuntime_; - payloadCodecScript_ = other.payloadCodecScript_; - flushQueueOnActivate_ = other.flushQueueOnActivate_; - uplinkInterval_ = other.uplinkInterval_; - deviceStatusReqInterval_ = other.deviceStatusReqInterval_; - supportsOtaa_ = other.supportsOtaa_; - supportsClassB_ = other.supportsClassB_; - supportsClassC_ = other.supportsClassC_; - classBTimeout_ = other.classBTimeout_; - classBPingSlotNbK_ = other.classBPingSlotNbK_; - classBPingSlotDr_ = other.classBPingSlotDr_; - classBPingSlotFreq_ = other.classBPingSlotFreq_; - classCTimeout_ = other.classCTimeout_; - abpRx1Delay_ = other.abpRx1Delay_; - abpRx1DrOffset_ = other.abpRx1DrOffset_; - abpRx2Dr_ = other.abpRx2Dr_; - abpRx2Freq_ = other.abpRx2Freq_; - tags_ = other.tags_.Clone(); - measurements_ = other.measurements_.Clone(); - autoDetectMeasurements_ = other.autoDetectMeasurements_; - regionConfigId_ = other.regionConfigId_; - isRelay_ = other.isRelay_; - isRelayEd_ = other.isRelayEd_; - relayEdRelayOnly_ = other.relayEdRelayOnly_; - relayEnabled_ = other.relayEnabled_; - relayCadPeriodicity_ = other.relayCadPeriodicity_; - relayDefaultChannelIndex_ = other.relayDefaultChannelIndex_; - relaySecondChannelFreq_ = other.relaySecondChannelFreq_; - relaySecondChannelDr_ = other.relaySecondChannelDr_; - relaySecondChannelAckOffset_ = other.relaySecondChannelAckOffset_; - relayEdActivationMode_ = other.relayEdActivationMode_; - relayEdSmartEnableLevel_ = other.relayEdSmartEnableLevel_; - relayEdBackOff_ = other.relayEdBackOff_; - relayEdUplinkLimitBucketSize_ = other.relayEdUplinkLimitBucketSize_; - relayEdUplinkLimitReloadRate_ = other.relayEdUplinkLimitReloadRate_; - relayJoinReqLimitReloadRate_ = other.relayJoinReqLimitReloadRate_; - relayNotifyLimitReloadRate_ = other.relayNotifyLimitReloadRate_; - relayGlobalUplinkLimitReloadRate_ = other.relayGlobalUplinkLimitReloadRate_; - relayOverallLimitReloadRate_ = other.relayOverallLimitReloadRate_; - relayJoinReqLimitBucketSize_ = other.relayJoinReqLimitBucketSize_; - relayNotifyLimitBucketSize_ = other.relayNotifyLimitBucketSize_; - relayGlobalUplinkLimitBucketSize_ = other.relayGlobalUplinkLimitBucketSize_; - relayOverallLimitBucketSize_ = other.relayOverallLimitBucketSize_; - allowRoaming_ = other.allowRoaming_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceProfile Clone() { - return new DeviceProfile(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Device-profile ID (UUID). - /// Note: on create this will be automatically generated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 2; - private string tenantId_ = ""; - /// - /// Tenant ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 3; - private string name_ = ""; - /// - /// Name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 26; - private string description_ = ""; - /// - /// Description. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 4; - private global::Chirpstack.Common.Region region_ = global::Chirpstack.Common.Region.Eu868; - /// - /// Region. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Region Region { - get { return region_; } - set { - region_ = value; - } - } - - /// Field number for the "mac_version" field. - public const int MacVersionFieldNumber = 5; - private global::Chirpstack.Common.MacVersion macVersion_ = global::Chirpstack.Common.MacVersion.Lorawan100; - /// - /// LoRaWAN mac-version. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.MacVersion MacVersion { - get { return macVersion_; } - set { - macVersion_ = value; - } - } - - /// Field number for the "reg_params_revision" field. - public const int RegParamsRevisionFieldNumber = 6; - private global::Chirpstack.Common.RegParamsRevision regParamsRevision_ = global::Chirpstack.Common.RegParamsRevision.A; - /// - /// Regional parameters revision. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.RegParamsRevision RegParamsRevision { - get { return regParamsRevision_; } - set { - regParamsRevision_ = value; - } - } - - /// Field number for the "adr_algorithm_id" field. - public const int AdrAlgorithmIdFieldNumber = 7; - private string adrAlgorithmId_ = ""; - /// - /// ADR algorithm ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdrAlgorithmId { - get { return adrAlgorithmId_; } - set { - adrAlgorithmId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "payload_codec_runtime" field. - public const int PayloadCodecRuntimeFieldNumber = 8; - private global::Chirpstack.Api.CodecRuntime payloadCodecRuntime_ = global::Chirpstack.Api.CodecRuntime.None; - /// - /// Payload codec runtime. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.CodecRuntime PayloadCodecRuntime { - get { return payloadCodecRuntime_; } - set { - payloadCodecRuntime_ = value; - } - } - - /// Field number for the "payload_codec_script" field. - public const int PayloadCodecScriptFieldNumber = 9; - private string payloadCodecScript_ = ""; - /// - /// Payload codec script. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PayloadCodecScript { - get { return payloadCodecScript_; } - set { - payloadCodecScript_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "flush_queue_on_activate" field. - public const int FlushQueueOnActivateFieldNumber = 10; - private bool flushQueueOnActivate_; - /// - /// Flush queue on device activation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool FlushQueueOnActivate { - get { return flushQueueOnActivate_; } - set { - flushQueueOnActivate_ = value; - } - } - - /// Field number for the "uplink_interval" field. - public const int UplinkIntervalFieldNumber = 11; - private uint uplinkInterval_; - /// - /// Uplink interval (seconds). - /// This defines the expected uplink interval which the device uses for - /// communication. If the uplink interval has expired and no uplink has - /// been received, the device is considered inactive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint UplinkInterval { - get { return uplinkInterval_; } - set { - uplinkInterval_ = value; - } - } - - /// Field number for the "device_status_req_interval" field. - public const int DeviceStatusReqIntervalFieldNumber = 12; - private uint deviceStatusReqInterval_; - /// - /// Device-status request interval (times / day). - /// This defines the times per day that ChirpStack will request the - /// device-status from the device. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint DeviceStatusReqInterval { - get { return deviceStatusReqInterval_; } - set { - deviceStatusReqInterval_ = value; - } - } - - /// Field number for the "supports_otaa" field. - public const int SupportsOtaaFieldNumber = 13; - private bool supportsOtaa_; - /// - /// Supports OTAA. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool SupportsOtaa { - get { return supportsOtaa_; } - set { - supportsOtaa_ = value; - } - } - - /// Field number for the "supports_class_b" field. - public const int SupportsClassBFieldNumber = 14; - private bool supportsClassB_; - /// - /// Supports Class B. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool SupportsClassB { - get { return supportsClassB_; } - set { - supportsClassB_ = value; - } - } - - /// Field number for the "supports_class_c" field. - public const int SupportsClassCFieldNumber = 15; - private bool supportsClassC_; - /// - /// Supports Class-C. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool SupportsClassC { - get { return supportsClassC_; } - set { - supportsClassC_ = value; - } - } - - /// Field number for the "class_b_timeout" field. - public const int ClassBTimeoutFieldNumber = 16; - private uint classBTimeout_; - /// - /// Class-B timeout (seconds). - /// This is the maximum time ChirpStack will wait to receive an acknowledgement - /// from the device (if requested). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ClassBTimeout { - get { return classBTimeout_; } - set { - classBTimeout_ = value; - } - } - - /// Field number for the "class_b_ping_slot_nb_k" field. - public const int ClassBPingSlotNbKFieldNumber = 17; - private uint classBPingSlotNbK_; - /// - /// Class-B ping-slots per beacon period. - /// Valid options are: 0 - 7. - /// - /// The actual number of ping-slots per beacon period equals to 2^k. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ClassBPingSlotNbK { - get { return classBPingSlotNbK_; } - set { - classBPingSlotNbK_ = value; - } - } - - /// Field number for the "class_b_ping_slot_dr" field. - public const int ClassBPingSlotDrFieldNumber = 18; - private uint classBPingSlotDr_; - /// - /// Class-B ping-slot DR. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ClassBPingSlotDr { - get { return classBPingSlotDr_; } - set { - classBPingSlotDr_ = value; - } - } - - /// Field number for the "class_b_ping_slot_freq" field. - public const int ClassBPingSlotFreqFieldNumber = 19; - private uint classBPingSlotFreq_; - /// - /// Class-B ping-slot freq (Hz). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ClassBPingSlotFreq { - get { return classBPingSlotFreq_; } - set { - classBPingSlotFreq_ = value; - } - } - - /// Field number for the "class_c_timeout" field. - public const int ClassCTimeoutFieldNumber = 20; - private uint classCTimeout_; - /// - /// Class-C timeout (seconds). - /// This is the maximum time ChirpStack will wait to receive an acknowledgement - /// from the device (if requested). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ClassCTimeout { - get { return classCTimeout_; } - set { - classCTimeout_ = value; - } - } - - /// Field number for the "abp_rx1_delay" field. - public const int AbpRx1DelayFieldNumber = 21; - private uint abpRx1Delay_; - /// - /// RX1 delay (for ABP). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint AbpRx1Delay { - get { return abpRx1Delay_; } - set { - abpRx1Delay_ = value; - } - } - - /// Field number for the "abp_rx1_dr_offset" field. - public const int AbpRx1DrOffsetFieldNumber = 22; - private uint abpRx1DrOffset_; - /// - /// RX1 DR offset (for ABP). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint AbpRx1DrOffset { - get { return abpRx1DrOffset_; } - set { - abpRx1DrOffset_ = value; - } - } - - /// Field number for the "abp_rx2_dr" field. - public const int AbpRx2DrFieldNumber = 23; - private uint abpRx2Dr_; - /// - /// RX2 DR (for ABP). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint AbpRx2Dr { - get { return abpRx2Dr_; } - set { - abpRx2Dr_ = value; - } - } - - /// Field number for the "abp_rx2_freq" field. - public const int AbpRx2FreqFieldNumber = 24; - private uint abpRx2Freq_; - /// - /// RX2 frequency (for ABP, Hz). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint AbpRx2Freq { - get { return abpRx2Freq_; } - set { - abpRx2Freq_ = value; - } - } - - /// Field number for the "tags" field. - public const int TagsFieldNumber = 25; - private static readonly pbc::MapField.Codec _map_tags_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 202); - private readonly pbc::MapField tags_ = new pbc::MapField(); - /// - /// Tags (user defined). - /// These tags can be used to add additional information the the - /// device-profile. These tags are exposed in all the integration events of - /// devices using this device-profile. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Tags { - get { return tags_; } - } - - /// Field number for the "measurements" field. - public const int MeasurementsFieldNumber = 27; - private static readonly pbc::MapField.Codec _map_measurements_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.Measurement.Parser), 218); - private readonly pbc::MapField measurements_ = new pbc::MapField(); - /// - /// Measurements. - /// If defined, ChirpStack will visualize these metrics in the web-interface. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Measurements { - get { return measurements_; } - } - - /// Field number for the "auto_detect_measurements" field. - public const int AutoDetectMeasurementsFieldNumber = 28; - private bool autoDetectMeasurements_; - /// - /// Auto-detect measurements. - /// If set to true, measurements will be automatically added based on the - /// keys of the decoded payload. In cases where the decoded payload contains - /// random keys in the data, you want to set this to false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AutoDetectMeasurements { - get { return autoDetectMeasurements_; } - set { - autoDetectMeasurements_ = value; - } - } - - /// Field number for the "region_config_id" field. - public const int RegionConfigIdFieldNumber = 29; - private string regionConfigId_ = ""; - /// - /// Region configuration ID. - /// If set, devices will only use the associated region. If let blank, then - /// devices will use all regions matching the selected common-name. Note - /// that multiple region configurations can exist for the same common-name, - /// e.g. to provide an 8 channel and 16 channel configuration for the US915 - /// band. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RegionConfigId { - get { return regionConfigId_; } - set { - regionConfigId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "is_relay" field. - public const int IsRelayFieldNumber = 30; - private bool isRelay_; - /// - /// Device is a Relay device. - /// Enable this in case the device is a Relay. A Relay device implements TS011 - /// and is able to relay data from relay capable devices. - /// See for more information the TS011 specification. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsRelay { - get { return isRelay_; } - set { - isRelay_ = value; - } - } - - /// Field number for the "is_relay_ed" field. - public const int IsRelayEdFieldNumber = 31; - private bool isRelayEd_; - /// - /// Device is a Relay end-device. - /// Enable this in case the device is an end-device that can operate under a - /// Relay. Please refer to the TS011 specification for more information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsRelayEd { - get { return isRelayEd_; } - set { - isRelayEd_ = value; - } - } - - /// Field number for the "relay_ed_relay_only" field. - public const int RelayEdRelayOnlyFieldNumber = 32; - private bool relayEdRelayOnly_; - /// - /// End-device only accept data through relay. - /// Only accept data for this device through a relay. This setting is useful - /// for testing as in case of a test-setup, the end-device is usually within - /// range of the gateway. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool RelayEdRelayOnly { - get { return relayEdRelayOnly_; } - set { - relayEdRelayOnly_ = value; - } - } - - /// Field number for the "relay_enabled" field. - public const int RelayEnabledFieldNumber = 33; - private bool relayEnabled_; - /// - /// Relay must be enabled. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool RelayEnabled { - get { return relayEnabled_; } - set { - relayEnabled_ = value; - } - } - - /// Field number for the "relay_cad_periodicity" field. - public const int RelayCadPeriodicityFieldNumber = 34; - private global::Chirpstack.Api.CadPeriodicity relayCadPeriodicity_ = global::Chirpstack.Api.CadPeriodicity.Sec1; - /// - /// Relay CAD periodicity. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.CadPeriodicity RelayCadPeriodicity { - get { return relayCadPeriodicity_; } - set { - relayCadPeriodicity_ = value; - } - } - - /// Field number for the "relay_default_channel_index" field. - public const int RelayDefaultChannelIndexFieldNumber = 35; - private uint relayDefaultChannelIndex_; - /// - /// Relay default channel index. - /// Valid values are 0 and 1, please refer to the RP002 specification for - /// the meaning of these values. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RelayDefaultChannelIndex { - get { return relayDefaultChannelIndex_; } - set { - relayDefaultChannelIndex_ = value; - } - } - - /// Field number for the "relay_second_channel_freq" field. - public const int RelaySecondChannelFreqFieldNumber = 36; - private uint relaySecondChannelFreq_; - /// - /// Relay second channel frequency (Hz). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RelaySecondChannelFreq { - get { return relaySecondChannelFreq_; } - set { - relaySecondChannelFreq_ = value; - } - } - - /// Field number for the "relay_second_channel_dr" field. - public const int RelaySecondChannelDrFieldNumber = 37; - private uint relaySecondChannelDr_; - /// - /// Relay second channel DR. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RelaySecondChannelDr { - get { return relaySecondChannelDr_; } - set { - relaySecondChannelDr_ = value; - } - } - - /// Field number for the "relay_second_channel_ack_offset" field. - public const int RelaySecondChannelAckOffsetFieldNumber = 38; - private global::Chirpstack.Api.SecondChAckOffset relaySecondChannelAckOffset_ = global::Chirpstack.Api.SecondChAckOffset.Khz0; - /// - /// Relay second channel ACK offset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.SecondChAckOffset RelaySecondChannelAckOffset { - get { return relaySecondChannelAckOffset_; } - set { - relaySecondChannelAckOffset_ = value; - } - } - - /// Field number for the "relay_ed_activation_mode" field. - public const int RelayEdActivationModeFieldNumber = 39; - private global::Chirpstack.Api.RelayModeActivation relayEdActivationMode_ = global::Chirpstack.Api.RelayModeActivation.DisableRelayMode; - /// - /// Relay end-device activation mode. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.RelayModeActivation RelayEdActivationMode { - get { return relayEdActivationMode_; } - set { - relayEdActivationMode_ = value; - } - } - - /// Field number for the "relay_ed_smart_enable_level" field. - public const int RelayEdSmartEnableLevelFieldNumber = 40; - private uint relayEdSmartEnableLevel_; - /// - /// Relay end-device smart-enable level. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RelayEdSmartEnableLevel { - get { return relayEdSmartEnableLevel_; } - set { - relayEdSmartEnableLevel_ = value; - } - } - - /// Field number for the "relay_ed_back_off" field. - public const int RelayEdBackOffFieldNumber = 41; - private uint relayEdBackOff_; - /// - /// Relay end-device back-off (in case it does not receive WOR ACK frame). - /// 0 = Always send a LoRaWAN uplink - /// 1..63 = Send a LoRaWAN uplink after X WOR frames without a WOR ACK - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RelayEdBackOff { - get { return relayEdBackOff_; } - set { - relayEdBackOff_ = value; - } - } - - /// Field number for the "relay_ed_uplink_limit_bucket_size" field. - public const int RelayEdUplinkLimitBucketSizeFieldNumber = 42; - private uint relayEdUplinkLimitBucketSize_; - /// - /// Relay end-device uplink limit bucket size. - /// - /// This field indicates the multiplier to determine the bucket size - /// according to the following formula: - /// BucketSize TOKEN = _reload_rate x _bucket_size - /// - /// Valid values (0 - 3): - /// 0 = 1 - /// 1 = 2 - /// 2 = 4 - /// 3 = 12 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RelayEdUplinkLimitBucketSize { - get { return relayEdUplinkLimitBucketSize_; } - set { - relayEdUplinkLimitBucketSize_ = value; - } - } - - /// Field number for the "relay_ed_uplink_limit_reload_rate" field. - public const int RelayEdUplinkLimitReloadRateFieldNumber = 43; - private uint relayEdUplinkLimitReloadRate_; - /// - /// Relay end-device uplink limit reload rate. - /// - /// Valid values: - /// * 0 - 62 = X tokens every hour - /// * 63 = no limitation - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RelayEdUplinkLimitReloadRate { - get { return relayEdUplinkLimitReloadRate_; } - set { - relayEdUplinkLimitReloadRate_ = value; - } - } - - /// Field number for the "relay_join_req_limit_reload_rate" field. - public const int RelayJoinReqLimitReloadRateFieldNumber = 44; - private uint relayJoinReqLimitReloadRate_; - /// - /// Relay join-request limit reload rate. - /// - /// Valid values: - /// * 0 - 126 = X tokens every hour - /// * 127 = no limitation - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RelayJoinReqLimitReloadRate { - get { return relayJoinReqLimitReloadRate_; } - set { - relayJoinReqLimitReloadRate_ = value; - } - } - - /// Field number for the "relay_notify_limit_reload_rate" field. - public const int RelayNotifyLimitReloadRateFieldNumber = 45; - private uint relayNotifyLimitReloadRate_; - /// - /// Relay notify limit reload rate. - /// - /// Valid values: - /// * 0 - 126 = X tokens every hour - /// * 127 = no limitation - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RelayNotifyLimitReloadRate { - get { return relayNotifyLimitReloadRate_; } - set { - relayNotifyLimitReloadRate_ = value; - } - } - - /// Field number for the "relay_global_uplink_limit_reload_rate" field. - public const int RelayGlobalUplinkLimitReloadRateFieldNumber = 46; - private uint relayGlobalUplinkLimitReloadRate_; - /// - /// Relay global uplink limit reload rate. - /// - /// Valid values: - /// * 0 - 126 = X tokens every hour - /// * 127 = no limitation - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RelayGlobalUplinkLimitReloadRate { - get { return relayGlobalUplinkLimitReloadRate_; } - set { - relayGlobalUplinkLimitReloadRate_ = value; - } - } - - /// Field number for the "relay_overall_limit_reload_rate" field. - public const int RelayOverallLimitReloadRateFieldNumber = 47; - private uint relayOverallLimitReloadRate_; - /// - /// Relay overall limit reload rate. - /// - /// Valid values: - /// * 0 - 126 = X tokens every hour - /// * 127 = no limitation - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RelayOverallLimitReloadRate { - get { return relayOverallLimitReloadRate_; } - set { - relayOverallLimitReloadRate_ = value; - } - } - - /// Field number for the "relay_join_req_limit_bucket_size" field. - public const int RelayJoinReqLimitBucketSizeFieldNumber = 48; - private uint relayJoinReqLimitBucketSize_; - /// - /// Relay join-request limit bucket size. - /// - /// This field indicates the multiplier to determine the bucket size - /// according to the following formula: - /// BucketSize TOKEN = _reload_rate x _bucket_size - /// - /// Valid values (0 - 3): - /// 0 = 1 - /// 1 = 2 - /// 2 = 4 - /// 3 = 12 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RelayJoinReqLimitBucketSize { - get { return relayJoinReqLimitBucketSize_; } - set { - relayJoinReqLimitBucketSize_ = value; - } - } - - /// Field number for the "relay_notify_limit_bucket_size" field. - public const int RelayNotifyLimitBucketSizeFieldNumber = 49; - private uint relayNotifyLimitBucketSize_; - /// - /// Relay notify limit bucket size. - /// - /// This field indicates the multiplier to determine the bucket size - /// according to the following formula: - /// BucketSize TOKEN = _reload_rate x _bucket_size - /// - /// Valid values (0 - 3): - /// 0 = 1 - /// 1 = 2 - /// 2 = 4 - /// 3 = 12 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RelayNotifyLimitBucketSize { - get { return relayNotifyLimitBucketSize_; } - set { - relayNotifyLimitBucketSize_ = value; - } - } - - /// Field number for the "relay_global_uplink_limit_bucket_size" field. - public const int RelayGlobalUplinkLimitBucketSizeFieldNumber = 50; - private uint relayGlobalUplinkLimitBucketSize_; - /// - /// Relay globak uplink limit bucket size. - /// - /// This field indicates the multiplier to determine the bucket size - /// according to the following formula: - /// BucketSize TOKEN = _reload_rate x _bucket_size - /// - /// Valid values (0 - 3): - /// 0 = 1 - /// 1 = 2 - /// 2 = 4 - /// 3 = 12 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RelayGlobalUplinkLimitBucketSize { - get { return relayGlobalUplinkLimitBucketSize_; } - set { - relayGlobalUplinkLimitBucketSize_ = value; - } - } - - /// Field number for the "relay_overall_limit_bucket_size" field. - public const int RelayOverallLimitBucketSizeFieldNumber = 51; - private uint relayOverallLimitBucketSize_; - /// - /// Relay overall limit bucket size. - /// - /// This field indicates the multiplier to determine the bucket size - /// according to the following formula: - /// BucketSize TOKEN = _reload_rate x _bucket_size - /// - /// Valid values (0 - 3): - /// 0 = 1 - /// 1 = 2 - /// 2 = 4 - /// 3 = 12 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RelayOverallLimitBucketSize { - get { return relayOverallLimitBucketSize_; } - set { - relayOverallLimitBucketSize_ = value; - } - } - - /// Field number for the "allow_roaming" field. - public const int AllowRoamingFieldNumber = 52; - private bool allowRoaming_; - /// - /// Allow roaming. - /// - /// If set to true, it means that the device is allowed to use roaming. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AllowRoaming { - get { return allowRoaming_; } - set { - allowRoaming_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeviceProfile); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeviceProfile other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (TenantId != other.TenantId) return false; - if (Name != other.Name) return false; - if (Description != other.Description) return false; - if (Region != other.Region) return false; - if (MacVersion != other.MacVersion) return false; - if (RegParamsRevision != other.RegParamsRevision) return false; - if (AdrAlgorithmId != other.AdrAlgorithmId) return false; - if (PayloadCodecRuntime != other.PayloadCodecRuntime) return false; - if (PayloadCodecScript != other.PayloadCodecScript) return false; - if (FlushQueueOnActivate != other.FlushQueueOnActivate) return false; - if (UplinkInterval != other.UplinkInterval) return false; - if (DeviceStatusReqInterval != other.DeviceStatusReqInterval) return false; - if (SupportsOtaa != other.SupportsOtaa) return false; - if (SupportsClassB != other.SupportsClassB) return false; - if (SupportsClassC != other.SupportsClassC) return false; - if (ClassBTimeout != other.ClassBTimeout) return false; - if (ClassBPingSlotNbK != other.ClassBPingSlotNbK) return false; - if (ClassBPingSlotDr != other.ClassBPingSlotDr) return false; - if (ClassBPingSlotFreq != other.ClassBPingSlotFreq) return false; - if (ClassCTimeout != other.ClassCTimeout) return false; - if (AbpRx1Delay != other.AbpRx1Delay) return false; - if (AbpRx1DrOffset != other.AbpRx1DrOffset) return false; - if (AbpRx2Dr != other.AbpRx2Dr) return false; - if (AbpRx2Freq != other.AbpRx2Freq) return false; - if (!Tags.Equals(other.Tags)) return false; - if (!Measurements.Equals(other.Measurements)) return false; - if (AutoDetectMeasurements != other.AutoDetectMeasurements) return false; - if (RegionConfigId != other.RegionConfigId) return false; - if (IsRelay != other.IsRelay) return false; - if (IsRelayEd != other.IsRelayEd) return false; - if (RelayEdRelayOnly != other.RelayEdRelayOnly) return false; - if (RelayEnabled != other.RelayEnabled) return false; - if (RelayCadPeriodicity != other.RelayCadPeriodicity) return false; - if (RelayDefaultChannelIndex != other.RelayDefaultChannelIndex) return false; - if (RelaySecondChannelFreq != other.RelaySecondChannelFreq) return false; - if (RelaySecondChannelDr != other.RelaySecondChannelDr) return false; - if (RelaySecondChannelAckOffset != other.RelaySecondChannelAckOffset) return false; - if (RelayEdActivationMode != other.RelayEdActivationMode) return false; - if (RelayEdSmartEnableLevel != other.RelayEdSmartEnableLevel) return false; - if (RelayEdBackOff != other.RelayEdBackOff) return false; - if (RelayEdUplinkLimitBucketSize != other.RelayEdUplinkLimitBucketSize) return false; - if (RelayEdUplinkLimitReloadRate != other.RelayEdUplinkLimitReloadRate) return false; - if (RelayJoinReqLimitReloadRate != other.RelayJoinReqLimitReloadRate) return false; - if (RelayNotifyLimitReloadRate != other.RelayNotifyLimitReloadRate) return false; - if (RelayGlobalUplinkLimitReloadRate != other.RelayGlobalUplinkLimitReloadRate) return false; - if (RelayOverallLimitReloadRate != other.RelayOverallLimitReloadRate) return false; - if (RelayJoinReqLimitBucketSize != other.RelayJoinReqLimitBucketSize) return false; - if (RelayNotifyLimitBucketSize != other.RelayNotifyLimitBucketSize) return false; - if (RelayGlobalUplinkLimitBucketSize != other.RelayGlobalUplinkLimitBucketSize) return false; - if (RelayOverallLimitBucketSize != other.RelayOverallLimitBucketSize) return false; - if (AllowRoaming != other.AllowRoaming) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (Region != global::Chirpstack.Common.Region.Eu868) hash ^= Region.GetHashCode(); - if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) hash ^= MacVersion.GetHashCode(); - if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) hash ^= RegParamsRevision.GetHashCode(); - if (AdrAlgorithmId.Length != 0) hash ^= AdrAlgorithmId.GetHashCode(); - if (PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) hash ^= PayloadCodecRuntime.GetHashCode(); - if (PayloadCodecScript.Length != 0) hash ^= PayloadCodecScript.GetHashCode(); - if (FlushQueueOnActivate != false) hash ^= FlushQueueOnActivate.GetHashCode(); - if (UplinkInterval != 0) hash ^= UplinkInterval.GetHashCode(); - if (DeviceStatusReqInterval != 0) hash ^= DeviceStatusReqInterval.GetHashCode(); - if (SupportsOtaa != false) hash ^= SupportsOtaa.GetHashCode(); - if (SupportsClassB != false) hash ^= SupportsClassB.GetHashCode(); - if (SupportsClassC != false) hash ^= SupportsClassC.GetHashCode(); - if (ClassBTimeout != 0) hash ^= ClassBTimeout.GetHashCode(); - if (ClassBPingSlotNbK != 0) hash ^= ClassBPingSlotNbK.GetHashCode(); - if (ClassBPingSlotDr != 0) hash ^= ClassBPingSlotDr.GetHashCode(); - if (ClassBPingSlotFreq != 0) hash ^= ClassBPingSlotFreq.GetHashCode(); - if (ClassCTimeout != 0) hash ^= ClassCTimeout.GetHashCode(); - if (AbpRx1Delay != 0) hash ^= AbpRx1Delay.GetHashCode(); - if (AbpRx1DrOffset != 0) hash ^= AbpRx1DrOffset.GetHashCode(); - if (AbpRx2Dr != 0) hash ^= AbpRx2Dr.GetHashCode(); - if (AbpRx2Freq != 0) hash ^= AbpRx2Freq.GetHashCode(); - hash ^= Tags.GetHashCode(); - hash ^= Measurements.GetHashCode(); - if (AutoDetectMeasurements != false) hash ^= AutoDetectMeasurements.GetHashCode(); - if (RegionConfigId.Length != 0) hash ^= RegionConfigId.GetHashCode(); - if (IsRelay != false) hash ^= IsRelay.GetHashCode(); - if (IsRelayEd != false) hash ^= IsRelayEd.GetHashCode(); - if (RelayEdRelayOnly != false) hash ^= RelayEdRelayOnly.GetHashCode(); - if (RelayEnabled != false) hash ^= RelayEnabled.GetHashCode(); - if (RelayCadPeriodicity != global::Chirpstack.Api.CadPeriodicity.Sec1) hash ^= RelayCadPeriodicity.GetHashCode(); - if (RelayDefaultChannelIndex != 0) hash ^= RelayDefaultChannelIndex.GetHashCode(); - if (RelaySecondChannelFreq != 0) hash ^= RelaySecondChannelFreq.GetHashCode(); - if (RelaySecondChannelDr != 0) hash ^= RelaySecondChannelDr.GetHashCode(); - if (RelaySecondChannelAckOffset != global::Chirpstack.Api.SecondChAckOffset.Khz0) hash ^= RelaySecondChannelAckOffset.GetHashCode(); - if (RelayEdActivationMode != global::Chirpstack.Api.RelayModeActivation.DisableRelayMode) hash ^= RelayEdActivationMode.GetHashCode(); - if (RelayEdSmartEnableLevel != 0) hash ^= RelayEdSmartEnableLevel.GetHashCode(); - if (RelayEdBackOff != 0) hash ^= RelayEdBackOff.GetHashCode(); - if (RelayEdUplinkLimitBucketSize != 0) hash ^= RelayEdUplinkLimitBucketSize.GetHashCode(); - if (RelayEdUplinkLimitReloadRate != 0) hash ^= RelayEdUplinkLimitReloadRate.GetHashCode(); - if (RelayJoinReqLimitReloadRate != 0) hash ^= RelayJoinReqLimitReloadRate.GetHashCode(); - if (RelayNotifyLimitReloadRate != 0) hash ^= RelayNotifyLimitReloadRate.GetHashCode(); - if (RelayGlobalUplinkLimitReloadRate != 0) hash ^= RelayGlobalUplinkLimitReloadRate.GetHashCode(); - if (RelayOverallLimitReloadRate != 0) hash ^= RelayOverallLimitReloadRate.GetHashCode(); - if (RelayJoinReqLimitBucketSize != 0) hash ^= RelayJoinReqLimitBucketSize.GetHashCode(); - if (RelayNotifyLimitBucketSize != 0) hash ^= RelayNotifyLimitBucketSize.GetHashCode(); - if (RelayGlobalUplinkLimitBucketSize != 0) hash ^= RelayGlobalUplinkLimitBucketSize.GetHashCode(); - if (RelayOverallLimitBucketSize != 0) hash ^= RelayOverallLimitBucketSize.GetHashCode(); - if (AllowRoaming != false) hash ^= AllowRoaming.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (TenantId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TenantId); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - output.WriteRawTag(32); - output.WriteEnum((int) Region); - } - if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { - output.WriteRawTag(40); - output.WriteEnum((int) MacVersion); - } - if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { - output.WriteRawTag(48); - output.WriteEnum((int) RegParamsRevision); - } - if (AdrAlgorithmId.Length != 0) { - output.WriteRawTag(58); - output.WriteString(AdrAlgorithmId); - } - if (PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) { - output.WriteRawTag(64); - output.WriteEnum((int) PayloadCodecRuntime); - } - if (PayloadCodecScript.Length != 0) { - output.WriteRawTag(74); - output.WriteString(PayloadCodecScript); - } - if (FlushQueueOnActivate != false) { - output.WriteRawTag(80); - output.WriteBool(FlushQueueOnActivate); - } - if (UplinkInterval != 0) { - output.WriteRawTag(88); - output.WriteUInt32(UplinkInterval); - } - if (DeviceStatusReqInterval != 0) { - output.WriteRawTag(96); - output.WriteUInt32(DeviceStatusReqInterval); - } - if (SupportsOtaa != false) { - output.WriteRawTag(104); - output.WriteBool(SupportsOtaa); - } - if (SupportsClassB != false) { - output.WriteRawTag(112); - output.WriteBool(SupportsClassB); - } - if (SupportsClassC != false) { - output.WriteRawTag(120); - output.WriteBool(SupportsClassC); - } - if (ClassBTimeout != 0) { - output.WriteRawTag(128, 1); - output.WriteUInt32(ClassBTimeout); - } - if (ClassBPingSlotNbK != 0) { - output.WriteRawTag(136, 1); - output.WriteUInt32(ClassBPingSlotNbK); - } - if (ClassBPingSlotDr != 0) { - output.WriteRawTag(144, 1); - output.WriteUInt32(ClassBPingSlotDr); - } - if (ClassBPingSlotFreq != 0) { - output.WriteRawTag(152, 1); - output.WriteUInt32(ClassBPingSlotFreq); - } - if (ClassCTimeout != 0) { - output.WriteRawTag(160, 1); - output.WriteUInt32(ClassCTimeout); - } - if (AbpRx1Delay != 0) { - output.WriteRawTag(168, 1); - output.WriteUInt32(AbpRx1Delay); - } - if (AbpRx1DrOffset != 0) { - output.WriteRawTag(176, 1); - output.WriteUInt32(AbpRx1DrOffset); - } - if (AbpRx2Dr != 0) { - output.WriteRawTag(184, 1); - output.WriteUInt32(AbpRx2Dr); - } - if (AbpRx2Freq != 0) { - output.WriteRawTag(192, 1); - output.WriteUInt32(AbpRx2Freq); - } - tags_.WriteTo(output, _map_tags_codec); - if (Description.Length != 0) { - output.WriteRawTag(210, 1); - output.WriteString(Description); - } - measurements_.WriteTo(output, _map_measurements_codec); - if (AutoDetectMeasurements != false) { - output.WriteRawTag(224, 1); - output.WriteBool(AutoDetectMeasurements); - } - if (RegionConfigId.Length != 0) { - output.WriteRawTag(234, 1); - output.WriteString(RegionConfigId); - } - if (IsRelay != false) { - output.WriteRawTag(240, 1); - output.WriteBool(IsRelay); - } - if (IsRelayEd != false) { - output.WriteRawTag(248, 1); - output.WriteBool(IsRelayEd); - } - if (RelayEdRelayOnly != false) { - output.WriteRawTag(128, 2); - output.WriteBool(RelayEdRelayOnly); - } - if (RelayEnabled != false) { - output.WriteRawTag(136, 2); - output.WriteBool(RelayEnabled); - } - if (RelayCadPeriodicity != global::Chirpstack.Api.CadPeriodicity.Sec1) { - output.WriteRawTag(144, 2); - output.WriteEnum((int) RelayCadPeriodicity); - } - if (RelayDefaultChannelIndex != 0) { - output.WriteRawTag(152, 2); - output.WriteUInt32(RelayDefaultChannelIndex); - } - if (RelaySecondChannelFreq != 0) { - output.WriteRawTag(160, 2); - output.WriteUInt32(RelaySecondChannelFreq); - } - if (RelaySecondChannelDr != 0) { - output.WriteRawTag(168, 2); - output.WriteUInt32(RelaySecondChannelDr); - } - if (RelaySecondChannelAckOffset != global::Chirpstack.Api.SecondChAckOffset.Khz0) { - output.WriteRawTag(176, 2); - output.WriteEnum((int) RelaySecondChannelAckOffset); - } - if (RelayEdActivationMode != global::Chirpstack.Api.RelayModeActivation.DisableRelayMode) { - output.WriteRawTag(184, 2); - output.WriteEnum((int) RelayEdActivationMode); - } - if (RelayEdSmartEnableLevel != 0) { - output.WriteRawTag(192, 2); - output.WriteUInt32(RelayEdSmartEnableLevel); - } - if (RelayEdBackOff != 0) { - output.WriteRawTag(200, 2); - output.WriteUInt32(RelayEdBackOff); - } - if (RelayEdUplinkLimitBucketSize != 0) { - output.WriteRawTag(208, 2); - output.WriteUInt32(RelayEdUplinkLimitBucketSize); - } - if (RelayEdUplinkLimitReloadRate != 0) { - output.WriteRawTag(216, 2); - output.WriteUInt32(RelayEdUplinkLimitReloadRate); - } - if (RelayJoinReqLimitReloadRate != 0) { - output.WriteRawTag(224, 2); - output.WriteUInt32(RelayJoinReqLimitReloadRate); - } - if (RelayNotifyLimitReloadRate != 0) { - output.WriteRawTag(232, 2); - output.WriteUInt32(RelayNotifyLimitReloadRate); - } - if (RelayGlobalUplinkLimitReloadRate != 0) { - output.WriteRawTag(240, 2); - output.WriteUInt32(RelayGlobalUplinkLimitReloadRate); - } - if (RelayOverallLimitReloadRate != 0) { - output.WriteRawTag(248, 2); - output.WriteUInt32(RelayOverallLimitReloadRate); - } - if (RelayJoinReqLimitBucketSize != 0) { - output.WriteRawTag(128, 3); - output.WriteUInt32(RelayJoinReqLimitBucketSize); - } - if (RelayNotifyLimitBucketSize != 0) { - output.WriteRawTag(136, 3); - output.WriteUInt32(RelayNotifyLimitBucketSize); - } - if (RelayGlobalUplinkLimitBucketSize != 0) { - output.WriteRawTag(144, 3); - output.WriteUInt32(RelayGlobalUplinkLimitBucketSize); - } - if (RelayOverallLimitBucketSize != 0) { - output.WriteRawTag(152, 3); - output.WriteUInt32(RelayOverallLimitBucketSize); - } - if (AllowRoaming != false) { - output.WriteRawTag(160, 3); - output.WriteBool(AllowRoaming); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (TenantId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TenantId); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - output.WriteRawTag(32); - output.WriteEnum((int) Region); - } - if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { - output.WriteRawTag(40); - output.WriteEnum((int) MacVersion); - } - if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { - output.WriteRawTag(48); - output.WriteEnum((int) RegParamsRevision); - } - if (AdrAlgorithmId.Length != 0) { - output.WriteRawTag(58); - output.WriteString(AdrAlgorithmId); - } - if (PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) { - output.WriteRawTag(64); - output.WriteEnum((int) PayloadCodecRuntime); - } - if (PayloadCodecScript.Length != 0) { - output.WriteRawTag(74); - output.WriteString(PayloadCodecScript); - } - if (FlushQueueOnActivate != false) { - output.WriteRawTag(80); - output.WriteBool(FlushQueueOnActivate); - } - if (UplinkInterval != 0) { - output.WriteRawTag(88); - output.WriteUInt32(UplinkInterval); - } - if (DeviceStatusReqInterval != 0) { - output.WriteRawTag(96); - output.WriteUInt32(DeviceStatusReqInterval); - } - if (SupportsOtaa != false) { - output.WriteRawTag(104); - output.WriteBool(SupportsOtaa); - } - if (SupportsClassB != false) { - output.WriteRawTag(112); - output.WriteBool(SupportsClassB); - } - if (SupportsClassC != false) { - output.WriteRawTag(120); - output.WriteBool(SupportsClassC); - } - if (ClassBTimeout != 0) { - output.WriteRawTag(128, 1); - output.WriteUInt32(ClassBTimeout); - } - if (ClassBPingSlotNbK != 0) { - output.WriteRawTag(136, 1); - output.WriteUInt32(ClassBPingSlotNbK); - } - if (ClassBPingSlotDr != 0) { - output.WriteRawTag(144, 1); - output.WriteUInt32(ClassBPingSlotDr); - } - if (ClassBPingSlotFreq != 0) { - output.WriteRawTag(152, 1); - output.WriteUInt32(ClassBPingSlotFreq); - } - if (ClassCTimeout != 0) { - output.WriteRawTag(160, 1); - output.WriteUInt32(ClassCTimeout); - } - if (AbpRx1Delay != 0) { - output.WriteRawTag(168, 1); - output.WriteUInt32(AbpRx1Delay); - } - if (AbpRx1DrOffset != 0) { - output.WriteRawTag(176, 1); - output.WriteUInt32(AbpRx1DrOffset); - } - if (AbpRx2Dr != 0) { - output.WriteRawTag(184, 1); - output.WriteUInt32(AbpRx2Dr); - } - if (AbpRx2Freq != 0) { - output.WriteRawTag(192, 1); - output.WriteUInt32(AbpRx2Freq); - } - tags_.WriteTo(ref output, _map_tags_codec); - if (Description.Length != 0) { - output.WriteRawTag(210, 1); - output.WriteString(Description); - } - measurements_.WriteTo(ref output, _map_measurements_codec); - if (AutoDetectMeasurements != false) { - output.WriteRawTag(224, 1); - output.WriteBool(AutoDetectMeasurements); - } - if (RegionConfigId.Length != 0) { - output.WriteRawTag(234, 1); - output.WriteString(RegionConfigId); - } - if (IsRelay != false) { - output.WriteRawTag(240, 1); - output.WriteBool(IsRelay); - } - if (IsRelayEd != false) { - output.WriteRawTag(248, 1); - output.WriteBool(IsRelayEd); - } - if (RelayEdRelayOnly != false) { - output.WriteRawTag(128, 2); - output.WriteBool(RelayEdRelayOnly); - } - if (RelayEnabled != false) { - output.WriteRawTag(136, 2); - output.WriteBool(RelayEnabled); - } - if (RelayCadPeriodicity != global::Chirpstack.Api.CadPeriodicity.Sec1) { - output.WriteRawTag(144, 2); - output.WriteEnum((int) RelayCadPeriodicity); - } - if (RelayDefaultChannelIndex != 0) { - output.WriteRawTag(152, 2); - output.WriteUInt32(RelayDefaultChannelIndex); - } - if (RelaySecondChannelFreq != 0) { - output.WriteRawTag(160, 2); - output.WriteUInt32(RelaySecondChannelFreq); - } - if (RelaySecondChannelDr != 0) { - output.WriteRawTag(168, 2); - output.WriteUInt32(RelaySecondChannelDr); - } - if (RelaySecondChannelAckOffset != global::Chirpstack.Api.SecondChAckOffset.Khz0) { - output.WriteRawTag(176, 2); - output.WriteEnum((int) RelaySecondChannelAckOffset); - } - if (RelayEdActivationMode != global::Chirpstack.Api.RelayModeActivation.DisableRelayMode) { - output.WriteRawTag(184, 2); - output.WriteEnum((int) RelayEdActivationMode); - } - if (RelayEdSmartEnableLevel != 0) { - output.WriteRawTag(192, 2); - output.WriteUInt32(RelayEdSmartEnableLevel); - } - if (RelayEdBackOff != 0) { - output.WriteRawTag(200, 2); - output.WriteUInt32(RelayEdBackOff); - } - if (RelayEdUplinkLimitBucketSize != 0) { - output.WriteRawTag(208, 2); - output.WriteUInt32(RelayEdUplinkLimitBucketSize); - } - if (RelayEdUplinkLimitReloadRate != 0) { - output.WriteRawTag(216, 2); - output.WriteUInt32(RelayEdUplinkLimitReloadRate); - } - if (RelayJoinReqLimitReloadRate != 0) { - output.WriteRawTag(224, 2); - output.WriteUInt32(RelayJoinReqLimitReloadRate); - } - if (RelayNotifyLimitReloadRate != 0) { - output.WriteRawTag(232, 2); - output.WriteUInt32(RelayNotifyLimitReloadRate); - } - if (RelayGlobalUplinkLimitReloadRate != 0) { - output.WriteRawTag(240, 2); - output.WriteUInt32(RelayGlobalUplinkLimitReloadRate); - } - if (RelayOverallLimitReloadRate != 0) { - output.WriteRawTag(248, 2); - output.WriteUInt32(RelayOverallLimitReloadRate); - } - if (RelayJoinReqLimitBucketSize != 0) { - output.WriteRawTag(128, 3); - output.WriteUInt32(RelayJoinReqLimitBucketSize); - } - if (RelayNotifyLimitBucketSize != 0) { - output.WriteRawTag(136, 3); - output.WriteUInt32(RelayNotifyLimitBucketSize); - } - if (RelayGlobalUplinkLimitBucketSize != 0) { - output.WriteRawTag(144, 3); - output.WriteUInt32(RelayGlobalUplinkLimitBucketSize); - } - if (RelayOverallLimitBucketSize != 0) { - output.WriteRawTag(152, 3); - output.WriteUInt32(RelayOverallLimitBucketSize); - } - if (AllowRoaming != false) { - output.WriteRawTag(160, 3); - output.WriteBool(AllowRoaming); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Description.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Region); - } - if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MacVersion); - } - if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RegParamsRevision); - } - if (AdrAlgorithmId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdrAlgorithmId); - } - if (PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PayloadCodecRuntime); - } - if (PayloadCodecScript.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PayloadCodecScript); - } - if (FlushQueueOnActivate != false) { - size += 1 + 1; - } - if (UplinkInterval != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UplinkInterval); - } - if (DeviceStatusReqInterval != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DeviceStatusReqInterval); - } - if (SupportsOtaa != false) { - size += 1 + 1; - } - if (SupportsClassB != false) { - size += 1 + 1; - } - if (SupportsClassC != false) { - size += 1 + 1; - } - if (ClassBTimeout != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassBTimeout); - } - if (ClassBPingSlotNbK != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotNbK); - } - if (ClassBPingSlotDr != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotDr); - } - if (ClassBPingSlotFreq != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotFreq); - } - if (ClassCTimeout != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassCTimeout); - } - if (AbpRx1Delay != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(AbpRx1Delay); - } - if (AbpRx1DrOffset != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(AbpRx1DrOffset); - } - if (AbpRx2Dr != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(AbpRx2Dr); - } - if (AbpRx2Freq != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(AbpRx2Freq); - } - size += tags_.CalculateSize(_map_tags_codec); - size += measurements_.CalculateSize(_map_measurements_codec); - if (AutoDetectMeasurements != false) { - size += 2 + 1; - } - if (RegionConfigId.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(RegionConfigId); - } - if (IsRelay != false) { - size += 2 + 1; - } - if (IsRelayEd != false) { - size += 2 + 1; - } - if (RelayEdRelayOnly != false) { - size += 2 + 1; - } - if (RelayEnabled != false) { - size += 2 + 1; - } - if (RelayCadPeriodicity != global::Chirpstack.Api.CadPeriodicity.Sec1) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) RelayCadPeriodicity); - } - if (RelayDefaultChannelIndex != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(RelayDefaultChannelIndex); - } - if (RelaySecondChannelFreq != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(RelaySecondChannelFreq); - } - if (RelaySecondChannelDr != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(RelaySecondChannelDr); - } - if (RelaySecondChannelAckOffset != global::Chirpstack.Api.SecondChAckOffset.Khz0) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) RelaySecondChannelAckOffset); - } - if (RelayEdActivationMode != global::Chirpstack.Api.RelayModeActivation.DisableRelayMode) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) RelayEdActivationMode); - } - if (RelayEdSmartEnableLevel != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(RelayEdSmartEnableLevel); - } - if (RelayEdBackOff != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(RelayEdBackOff); - } - if (RelayEdUplinkLimitBucketSize != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(RelayEdUplinkLimitBucketSize); - } - if (RelayEdUplinkLimitReloadRate != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(RelayEdUplinkLimitReloadRate); - } - if (RelayJoinReqLimitReloadRate != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(RelayJoinReqLimitReloadRate); - } - if (RelayNotifyLimitReloadRate != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(RelayNotifyLimitReloadRate); - } - if (RelayGlobalUplinkLimitReloadRate != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(RelayGlobalUplinkLimitReloadRate); - } - if (RelayOverallLimitReloadRate != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(RelayOverallLimitReloadRate); - } - if (RelayJoinReqLimitBucketSize != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(RelayJoinReqLimitBucketSize); - } - if (RelayNotifyLimitBucketSize != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(RelayNotifyLimitBucketSize); - } - if (RelayGlobalUplinkLimitBucketSize != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(RelayGlobalUplinkLimitBucketSize); - } - if (RelayOverallLimitBucketSize != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(RelayOverallLimitBucketSize); - } - if (AllowRoaming != 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(DeviceProfile other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - if (other.Region != global::Chirpstack.Common.Region.Eu868) { - Region = other.Region; - } - if (other.MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { - MacVersion = other.MacVersion; - } - if (other.RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { - RegParamsRevision = other.RegParamsRevision; - } - if (other.AdrAlgorithmId.Length != 0) { - AdrAlgorithmId = other.AdrAlgorithmId; - } - if (other.PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) { - PayloadCodecRuntime = other.PayloadCodecRuntime; - } - if (other.PayloadCodecScript.Length != 0) { - PayloadCodecScript = other.PayloadCodecScript; - } - if (other.FlushQueueOnActivate != false) { - FlushQueueOnActivate = other.FlushQueueOnActivate; - } - if (other.UplinkInterval != 0) { - UplinkInterval = other.UplinkInterval; - } - if (other.DeviceStatusReqInterval != 0) { - DeviceStatusReqInterval = other.DeviceStatusReqInterval; - } - if (other.SupportsOtaa != false) { - SupportsOtaa = other.SupportsOtaa; - } - if (other.SupportsClassB != false) { - SupportsClassB = other.SupportsClassB; - } - if (other.SupportsClassC != false) { - SupportsClassC = other.SupportsClassC; - } - if (other.ClassBTimeout != 0) { - ClassBTimeout = other.ClassBTimeout; - } - if (other.ClassBPingSlotNbK != 0) { - ClassBPingSlotNbK = other.ClassBPingSlotNbK; - } - if (other.ClassBPingSlotDr != 0) { - ClassBPingSlotDr = other.ClassBPingSlotDr; - } - if (other.ClassBPingSlotFreq != 0) { - ClassBPingSlotFreq = other.ClassBPingSlotFreq; - } - if (other.ClassCTimeout != 0) { - ClassCTimeout = other.ClassCTimeout; - } - if (other.AbpRx1Delay != 0) { - AbpRx1Delay = other.AbpRx1Delay; - } - if (other.AbpRx1DrOffset != 0) { - AbpRx1DrOffset = other.AbpRx1DrOffset; - } - if (other.AbpRx2Dr != 0) { - AbpRx2Dr = other.AbpRx2Dr; - } - if (other.AbpRx2Freq != 0) { - AbpRx2Freq = other.AbpRx2Freq; - } - tags_.Add(other.tags_); - measurements_.Add(other.measurements_); - if (other.AutoDetectMeasurements != false) { - AutoDetectMeasurements = other.AutoDetectMeasurements; - } - if (other.RegionConfigId.Length != 0) { - RegionConfigId = other.RegionConfigId; - } - if (other.IsRelay != false) { - IsRelay = other.IsRelay; - } - if (other.IsRelayEd != false) { - IsRelayEd = other.IsRelayEd; - } - if (other.RelayEdRelayOnly != false) { - RelayEdRelayOnly = other.RelayEdRelayOnly; - } - if (other.RelayEnabled != false) { - RelayEnabled = other.RelayEnabled; - } - if (other.RelayCadPeriodicity != global::Chirpstack.Api.CadPeriodicity.Sec1) { - RelayCadPeriodicity = other.RelayCadPeriodicity; - } - if (other.RelayDefaultChannelIndex != 0) { - RelayDefaultChannelIndex = other.RelayDefaultChannelIndex; - } - if (other.RelaySecondChannelFreq != 0) { - RelaySecondChannelFreq = other.RelaySecondChannelFreq; - } - if (other.RelaySecondChannelDr != 0) { - RelaySecondChannelDr = other.RelaySecondChannelDr; - } - if (other.RelaySecondChannelAckOffset != global::Chirpstack.Api.SecondChAckOffset.Khz0) { - RelaySecondChannelAckOffset = other.RelaySecondChannelAckOffset; - } - if (other.RelayEdActivationMode != global::Chirpstack.Api.RelayModeActivation.DisableRelayMode) { - RelayEdActivationMode = other.RelayEdActivationMode; - } - if (other.RelayEdSmartEnableLevel != 0) { - RelayEdSmartEnableLevel = other.RelayEdSmartEnableLevel; - } - if (other.RelayEdBackOff != 0) { - RelayEdBackOff = other.RelayEdBackOff; - } - if (other.RelayEdUplinkLimitBucketSize != 0) { - RelayEdUplinkLimitBucketSize = other.RelayEdUplinkLimitBucketSize; - } - if (other.RelayEdUplinkLimitReloadRate != 0) { - RelayEdUplinkLimitReloadRate = other.RelayEdUplinkLimitReloadRate; - } - if (other.RelayJoinReqLimitReloadRate != 0) { - RelayJoinReqLimitReloadRate = other.RelayJoinReqLimitReloadRate; - } - if (other.RelayNotifyLimitReloadRate != 0) { - RelayNotifyLimitReloadRate = other.RelayNotifyLimitReloadRate; - } - if (other.RelayGlobalUplinkLimitReloadRate != 0) { - RelayGlobalUplinkLimitReloadRate = other.RelayGlobalUplinkLimitReloadRate; - } - if (other.RelayOverallLimitReloadRate != 0) { - RelayOverallLimitReloadRate = other.RelayOverallLimitReloadRate; - } - if (other.RelayJoinReqLimitBucketSize != 0) { - RelayJoinReqLimitBucketSize = other.RelayJoinReqLimitBucketSize; - } - if (other.RelayNotifyLimitBucketSize != 0) { - RelayNotifyLimitBucketSize = other.RelayNotifyLimitBucketSize; - } - if (other.RelayGlobalUplinkLimitBucketSize != 0) { - RelayGlobalUplinkLimitBucketSize = other.RelayGlobalUplinkLimitBucketSize; - } - if (other.RelayOverallLimitBucketSize != 0) { - RelayOverallLimitBucketSize = other.RelayOverallLimitBucketSize; - } - if (other.AllowRoaming != false) { - AllowRoaming = other.AllowRoaming; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - TenantId = input.ReadString(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 32: { - Region = (global::Chirpstack.Common.Region) input.ReadEnum(); - break; - } - case 40: { - MacVersion = (global::Chirpstack.Common.MacVersion) input.ReadEnum(); - break; - } - case 48: { - RegParamsRevision = (global::Chirpstack.Common.RegParamsRevision) input.ReadEnum(); - break; - } - case 58: { - AdrAlgorithmId = input.ReadString(); - break; - } - case 64: { - PayloadCodecRuntime = (global::Chirpstack.Api.CodecRuntime) input.ReadEnum(); - break; - } - case 74: { - PayloadCodecScript = input.ReadString(); - break; - } - case 80: { - FlushQueueOnActivate = input.ReadBool(); - break; - } - case 88: { - UplinkInterval = input.ReadUInt32(); - break; - } - case 96: { - DeviceStatusReqInterval = input.ReadUInt32(); - break; - } - case 104: { - SupportsOtaa = input.ReadBool(); - break; - } - case 112: { - SupportsClassB = input.ReadBool(); - break; - } - case 120: { - SupportsClassC = input.ReadBool(); - break; - } - case 128: { - ClassBTimeout = input.ReadUInt32(); - break; - } - case 136: { - ClassBPingSlotNbK = input.ReadUInt32(); - break; - } - case 144: { - ClassBPingSlotDr = input.ReadUInt32(); - break; - } - case 152: { - ClassBPingSlotFreq = input.ReadUInt32(); - break; - } - case 160: { - ClassCTimeout = input.ReadUInt32(); - break; - } - case 168: { - AbpRx1Delay = input.ReadUInt32(); - break; - } - case 176: { - AbpRx1DrOffset = input.ReadUInt32(); - break; - } - case 184: { - AbpRx2Dr = input.ReadUInt32(); - break; - } - case 192: { - AbpRx2Freq = input.ReadUInt32(); - break; - } - case 202: { - tags_.AddEntriesFrom(input, _map_tags_codec); - break; - } - case 210: { - Description = input.ReadString(); - break; - } - case 218: { - measurements_.AddEntriesFrom(input, _map_measurements_codec); - break; - } - case 224: { - AutoDetectMeasurements = input.ReadBool(); - break; - } - case 234: { - RegionConfigId = input.ReadString(); - break; - } - case 240: { - IsRelay = input.ReadBool(); - break; - } - case 248: { - IsRelayEd = input.ReadBool(); - break; - } - case 256: { - RelayEdRelayOnly = input.ReadBool(); - break; - } - case 264: { - RelayEnabled = input.ReadBool(); - break; - } - case 272: { - RelayCadPeriodicity = (global::Chirpstack.Api.CadPeriodicity) input.ReadEnum(); - break; - } - case 280: { - RelayDefaultChannelIndex = input.ReadUInt32(); - break; - } - case 288: { - RelaySecondChannelFreq = input.ReadUInt32(); - break; - } - case 296: { - RelaySecondChannelDr = input.ReadUInt32(); - break; - } - case 304: { - RelaySecondChannelAckOffset = (global::Chirpstack.Api.SecondChAckOffset) input.ReadEnum(); - break; - } - case 312: { - RelayEdActivationMode = (global::Chirpstack.Api.RelayModeActivation) input.ReadEnum(); - break; - } - case 320: { - RelayEdSmartEnableLevel = input.ReadUInt32(); - break; - } - case 328: { - RelayEdBackOff = input.ReadUInt32(); - break; - } - case 336: { - RelayEdUplinkLimitBucketSize = input.ReadUInt32(); - break; - } - case 344: { - RelayEdUplinkLimitReloadRate = input.ReadUInt32(); - break; - } - case 352: { - RelayJoinReqLimitReloadRate = input.ReadUInt32(); - break; - } - case 360: { - RelayNotifyLimitReloadRate = input.ReadUInt32(); - break; - } - case 368: { - RelayGlobalUplinkLimitReloadRate = input.ReadUInt32(); - break; - } - case 376: { - RelayOverallLimitReloadRate = input.ReadUInt32(); - break; - } - case 384: { - RelayJoinReqLimitBucketSize = input.ReadUInt32(); - break; - } - case 392: { - RelayNotifyLimitBucketSize = input.ReadUInt32(); - break; - } - case 400: { - RelayGlobalUplinkLimitBucketSize = input.ReadUInt32(); - break; - } - case 408: { - RelayOverallLimitBucketSize = input.ReadUInt32(); - break; - } - case 416: { - AllowRoaming = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - TenantId = input.ReadString(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 32: { - Region = (global::Chirpstack.Common.Region) input.ReadEnum(); - break; - } - case 40: { - MacVersion = (global::Chirpstack.Common.MacVersion) input.ReadEnum(); - break; - } - case 48: { - RegParamsRevision = (global::Chirpstack.Common.RegParamsRevision) input.ReadEnum(); - break; - } - case 58: { - AdrAlgorithmId = input.ReadString(); - break; - } - case 64: { - PayloadCodecRuntime = (global::Chirpstack.Api.CodecRuntime) input.ReadEnum(); - break; - } - case 74: { - PayloadCodecScript = input.ReadString(); - break; - } - case 80: { - FlushQueueOnActivate = input.ReadBool(); - break; - } - case 88: { - UplinkInterval = input.ReadUInt32(); - break; - } - case 96: { - DeviceStatusReqInterval = input.ReadUInt32(); - break; - } - case 104: { - SupportsOtaa = input.ReadBool(); - break; - } - case 112: { - SupportsClassB = input.ReadBool(); - break; - } - case 120: { - SupportsClassC = input.ReadBool(); - break; - } - case 128: { - ClassBTimeout = input.ReadUInt32(); - break; - } - case 136: { - ClassBPingSlotNbK = input.ReadUInt32(); - break; - } - case 144: { - ClassBPingSlotDr = input.ReadUInt32(); - break; - } - case 152: { - ClassBPingSlotFreq = input.ReadUInt32(); - break; - } - case 160: { - ClassCTimeout = input.ReadUInt32(); - break; - } - case 168: { - AbpRx1Delay = input.ReadUInt32(); - break; - } - case 176: { - AbpRx1DrOffset = input.ReadUInt32(); - break; - } - case 184: { - AbpRx2Dr = input.ReadUInt32(); - break; - } - case 192: { - AbpRx2Freq = input.ReadUInt32(); - break; - } - case 202: { - tags_.AddEntriesFrom(ref input, _map_tags_codec); - break; - } - case 210: { - Description = input.ReadString(); - break; - } - case 218: { - measurements_.AddEntriesFrom(ref input, _map_measurements_codec); - break; - } - case 224: { - AutoDetectMeasurements = input.ReadBool(); - break; - } - case 234: { - RegionConfigId = input.ReadString(); - break; - } - case 240: { - IsRelay = input.ReadBool(); - break; - } - case 248: { - IsRelayEd = input.ReadBool(); - break; - } - case 256: { - RelayEdRelayOnly = input.ReadBool(); - break; - } - case 264: { - RelayEnabled = input.ReadBool(); - break; - } - case 272: { - RelayCadPeriodicity = (global::Chirpstack.Api.CadPeriodicity) input.ReadEnum(); - break; - } - case 280: { - RelayDefaultChannelIndex = input.ReadUInt32(); - break; - } - case 288: { - RelaySecondChannelFreq = input.ReadUInt32(); - break; - } - case 296: { - RelaySecondChannelDr = input.ReadUInt32(); - break; - } - case 304: { - RelaySecondChannelAckOffset = (global::Chirpstack.Api.SecondChAckOffset) input.ReadEnum(); - break; - } - case 312: { - RelayEdActivationMode = (global::Chirpstack.Api.RelayModeActivation) input.ReadEnum(); - break; - } - case 320: { - RelayEdSmartEnableLevel = input.ReadUInt32(); - break; - } - case 328: { - RelayEdBackOff = input.ReadUInt32(); - break; - } - case 336: { - RelayEdUplinkLimitBucketSize = input.ReadUInt32(); - break; - } - case 344: { - RelayEdUplinkLimitReloadRate = input.ReadUInt32(); - break; - } - case 352: { - RelayJoinReqLimitReloadRate = input.ReadUInt32(); - break; - } - case 360: { - RelayNotifyLimitReloadRate = input.ReadUInt32(); - break; - } - case 368: { - RelayGlobalUplinkLimitReloadRate = input.ReadUInt32(); - break; - } - case 376: { - RelayOverallLimitReloadRate = input.ReadUInt32(); - break; - } - case 384: { - RelayJoinReqLimitBucketSize = input.ReadUInt32(); - break; - } - case 392: { - RelayNotifyLimitBucketSize = input.ReadUInt32(); - break; - } - case 400: { - RelayGlobalUplinkLimitBucketSize = input.ReadUInt32(); - break; - } - case 408: { - RelayOverallLimitBucketSize = input.ReadUInt32(); - break; - } - case 416: { - AllowRoaming = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - public sealed partial class Measurement : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Measurement()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Measurement() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Measurement(Measurement other) : this() { - name_ = other.name_; - kind_ = other.kind_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Measurement Clone() { - return new Measurement(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - /// - /// Name (user defined). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "kind" field. - public const int KindFieldNumber = 3; - private global::Chirpstack.Api.MeasurementKind kind_ = global::Chirpstack.Api.MeasurementKind.Unknown; - /// - /// Kind. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.MeasurementKind Kind { - get { return kind_; } - set { - kind_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Measurement); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Measurement other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (Kind != other.Kind) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Kind != global::Chirpstack.Api.MeasurementKind.Unknown) hash ^= Kind.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Kind != global::Chirpstack.Api.MeasurementKind.Unknown) { - output.WriteRawTag(24); - output.WriteEnum((int) Kind); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Kind != global::Chirpstack.Api.MeasurementKind.Unknown) { - output.WriteRawTag(24); - output.WriteEnum((int) Kind); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Kind != global::Chirpstack.Api.MeasurementKind.Unknown) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Measurement other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Kind != global::Chirpstack.Api.MeasurementKind.Unknown) { - Kind = other.Kind; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - Name = input.ReadString(); - break; - } - case 24: { - Kind = (global::Chirpstack.Api.MeasurementKind) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - Name = input.ReadString(); - break; - } - case 24: { - Kind = (global::Chirpstack.Api.MeasurementKind) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeviceProfileListItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceProfileListItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceProfileListItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceProfileListItem(DeviceProfileListItem other) : this() { - id_ = other.id_; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - name_ = other.name_; - region_ = other.region_; - macVersion_ = other.macVersion_; - regParamsRevision_ = other.regParamsRevision_; - supportsOtaa_ = other.supportsOtaa_; - supportsClassB_ = other.supportsClassB_; - supportsClassC_ = other.supportsClassC_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceProfileListItem Clone() { - return new DeviceProfileListItem(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Device-profile ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 4; - private string name_ = ""; - /// - /// Name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 5; - private global::Chirpstack.Common.Region region_ = global::Chirpstack.Common.Region.Eu868; - /// - /// Region. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Region Region { - get { return region_; } - set { - region_ = value; - } - } - - /// Field number for the "mac_version" field. - public const int MacVersionFieldNumber = 6; - private global::Chirpstack.Common.MacVersion macVersion_ = global::Chirpstack.Common.MacVersion.Lorawan100; - /// - /// LoRaWAN mac-version. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.MacVersion MacVersion { - get { return macVersion_; } - set { - macVersion_ = value; - } - } - - /// Field number for the "reg_params_revision" field. - public const int RegParamsRevisionFieldNumber = 7; - private global::Chirpstack.Common.RegParamsRevision regParamsRevision_ = global::Chirpstack.Common.RegParamsRevision.A; - /// - /// Regional parameters revision. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.RegParamsRevision RegParamsRevision { - get { return regParamsRevision_; } - set { - regParamsRevision_ = value; - } - } - - /// Field number for the "supports_otaa" field. - public const int SupportsOtaaFieldNumber = 8; - private bool supportsOtaa_; - /// - /// Supports OTAA. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool SupportsOtaa { - get { return supportsOtaa_; } - set { - supportsOtaa_ = value; - } - } - - /// Field number for the "supports_class_b" field. - public const int SupportsClassBFieldNumber = 9; - private bool supportsClassB_; - /// - /// Supports Class-B. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool SupportsClassB { - get { return supportsClassB_; } - set { - supportsClassB_ = value; - } - } - - /// Field number for the "supports_class_c" field. - public const int SupportsClassCFieldNumber = 10; - private bool supportsClassC_; - /// - /// Supports Class-C. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool SupportsClassC { - get { return supportsClassC_; } - set { - supportsClassC_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeviceProfileListItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeviceProfileListItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - if (Name != other.Name) return false; - if (Region != other.Region) return false; - if (MacVersion != other.MacVersion) return false; - if (RegParamsRevision != other.RegParamsRevision) return false; - if (SupportsOtaa != other.SupportsOtaa) return false; - if (SupportsClassB != other.SupportsClassB) return false; - if (SupportsClassC != other.SupportsClassC) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Region != global::Chirpstack.Common.Region.Eu868) hash ^= Region.GetHashCode(); - if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) hash ^= MacVersion.GetHashCode(); - if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) hash ^= RegParamsRevision.GetHashCode(); - if (SupportsOtaa != false) hash ^= SupportsOtaa.GetHashCode(); - if (SupportsClassB != false) hash ^= SupportsClassB.GetHashCode(); - if (SupportsClassC != false) hash ^= SupportsClassC.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - output.WriteRawTag(40); - output.WriteEnum((int) Region); - } - if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { - output.WriteRawTag(48); - output.WriteEnum((int) MacVersion); - } - if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { - output.WriteRawTag(56); - output.WriteEnum((int) RegParamsRevision); - } - if (SupportsOtaa != false) { - output.WriteRawTag(64); - output.WriteBool(SupportsOtaa); - } - if (SupportsClassB != false) { - output.WriteRawTag(72); - output.WriteBool(SupportsClassB); - } - if (SupportsClassC != false) { - output.WriteRawTag(80); - output.WriteBool(SupportsClassC); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - output.WriteRawTag(40); - output.WriteEnum((int) Region); - } - if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { - output.WriteRawTag(48); - output.WriteEnum((int) MacVersion); - } - if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { - output.WriteRawTag(56); - output.WriteEnum((int) RegParamsRevision); - } - if (SupportsOtaa != false) { - output.WriteRawTag(64); - output.WriteBool(SupportsOtaa); - } - if (SupportsClassB != false) { - output.WriteRawTag(72); - output.WriteBool(SupportsClassB); - } - if (SupportsClassC != false) { - output.WriteRawTag(80); - output.WriteBool(SupportsClassC); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Region); - } - if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MacVersion); - } - if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RegParamsRevision); - } - if (SupportsOtaa != false) { - size += 1 + 1; - } - if (SupportsClassB != false) { - size += 1 + 1; - } - if (SupportsClassC != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeviceProfileListItem other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Region != global::Chirpstack.Common.Region.Eu868) { - Region = other.Region; - } - if (other.MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { - MacVersion = other.MacVersion; - } - if (other.RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { - RegParamsRevision = other.RegParamsRevision; - } - if (other.SupportsOtaa != false) { - SupportsOtaa = other.SupportsOtaa; - } - if (other.SupportsClassB != false) { - SupportsClassB = other.SupportsClassB; - } - if (other.SupportsClassC != false) { - SupportsClassC = other.SupportsClassC; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 40: { - Region = (global::Chirpstack.Common.Region) input.ReadEnum(); - break; - } - case 48: { - MacVersion = (global::Chirpstack.Common.MacVersion) input.ReadEnum(); - break; - } - case 56: { - RegParamsRevision = (global::Chirpstack.Common.RegParamsRevision) input.ReadEnum(); - break; - } - case 64: { - SupportsOtaa = input.ReadBool(); - break; - } - case 72: { - SupportsClassB = input.ReadBool(); - break; - } - case 80: { - SupportsClassC = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 40: { - Region = (global::Chirpstack.Common.Region) input.ReadEnum(); - break; - } - case 48: { - MacVersion = (global::Chirpstack.Common.MacVersion) input.ReadEnum(); - break; - } - case 56: { - RegParamsRevision = (global::Chirpstack.Common.RegParamsRevision) input.ReadEnum(); - break; - } - case 64: { - SupportsOtaa = input.ReadBool(); - break; - } - case 72: { - SupportsClassB = input.ReadBool(); - break; - } - case 80: { - SupportsClassC = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateDeviceProfileRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateDeviceProfileRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateDeviceProfileRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateDeviceProfileRequest(CreateDeviceProfileRequest other) : this() { - deviceProfile_ = other.deviceProfile_ != null ? other.deviceProfile_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateDeviceProfileRequest Clone() { - return new CreateDeviceProfileRequest(this); - } - - /// Field number for the "device_profile" field. - public const int DeviceProfileFieldNumber = 1; - private global::Chirpstack.Api.DeviceProfile deviceProfile_; - /// - /// Object to create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.DeviceProfile DeviceProfile { - get { return deviceProfile_; } - set { - deviceProfile_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateDeviceProfileRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateDeviceProfileRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(DeviceProfile, other.DeviceProfile)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (deviceProfile_ != null) hash ^= DeviceProfile.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (deviceProfile_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceProfile); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (deviceProfile_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceProfile); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (deviceProfile_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceProfile); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateDeviceProfileRequest other) { - if (other == null) { - return; - } - if (other.deviceProfile_ != null) { - if (deviceProfile_ == null) { - DeviceProfile = new global::Chirpstack.Api.DeviceProfile(); - } - DeviceProfile.MergeFrom(other.DeviceProfile); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (deviceProfile_ == null) { - DeviceProfile = new global::Chirpstack.Api.DeviceProfile(); - } - input.ReadMessage(DeviceProfile); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (deviceProfile_ == null) { - DeviceProfile = new global::Chirpstack.Api.DeviceProfile(); - } - input.ReadMessage(DeviceProfile); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateDeviceProfileResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateDeviceProfileResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateDeviceProfileResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateDeviceProfileResponse(CreateDeviceProfileResponse other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateDeviceProfileResponse Clone() { - return new CreateDeviceProfileResponse(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateDeviceProfileResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateDeviceProfileResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateDeviceProfileResponse other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDeviceProfileRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceProfileRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceProfileRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceProfileRequest(GetDeviceProfileRequest other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceProfileRequest Clone() { - return new GetDeviceProfileRequest(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDeviceProfileRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeviceProfileRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeviceProfileRequest other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDeviceProfileResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceProfileResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceProfileResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceProfileResponse(GetDeviceProfileResponse other) : this() { - deviceProfile_ = other.deviceProfile_ != null ? other.deviceProfile_.Clone() : null; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceProfileResponse Clone() { - return new GetDeviceProfileResponse(this); - } - - /// Field number for the "device_profile" field. - public const int DeviceProfileFieldNumber = 1; - private global::Chirpstack.Api.DeviceProfile deviceProfile_; - /// - /// Device-profile object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.DeviceProfile DeviceProfile { - get { return deviceProfile_; } - set { - deviceProfile_ = value; - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDeviceProfileResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeviceProfileResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(DeviceProfile, other.DeviceProfile)) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (deviceProfile_ != null) hash ^= DeviceProfile.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (deviceProfile_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceProfile); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (deviceProfile_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceProfile); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (deviceProfile_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceProfile); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeviceProfileResponse other) { - if (other == null) { - return; - } - if (other.deviceProfile_ != null) { - if (deviceProfile_ == null) { - DeviceProfile = new global::Chirpstack.Api.DeviceProfile(); - } - DeviceProfile.MergeFrom(other.DeviceProfile); - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (deviceProfile_ == null) { - DeviceProfile = new global::Chirpstack.Api.DeviceProfile(); - } - input.ReadMessage(DeviceProfile); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (deviceProfile_ == null) { - DeviceProfile = new global::Chirpstack.Api.DeviceProfile(); - } - input.ReadMessage(DeviceProfile); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateDeviceProfileRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateDeviceProfileRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateDeviceProfileRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateDeviceProfileRequest(UpdateDeviceProfileRequest other) : this() { - deviceProfile_ = other.deviceProfile_ != null ? other.deviceProfile_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateDeviceProfileRequest Clone() { - return new UpdateDeviceProfileRequest(this); - } - - /// Field number for the "device_profile" field. - public const int DeviceProfileFieldNumber = 1; - private global::Chirpstack.Api.DeviceProfile deviceProfile_; - /// - /// Device-profile object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.DeviceProfile DeviceProfile { - get { return deviceProfile_; } - set { - deviceProfile_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateDeviceProfileRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateDeviceProfileRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(DeviceProfile, other.DeviceProfile)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (deviceProfile_ != null) hash ^= DeviceProfile.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (deviceProfile_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceProfile); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (deviceProfile_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceProfile); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (deviceProfile_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceProfile); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateDeviceProfileRequest other) { - if (other == null) { - return; - } - if (other.deviceProfile_ != null) { - if (deviceProfile_ == null) { - DeviceProfile = new global::Chirpstack.Api.DeviceProfile(); - } - DeviceProfile.MergeFrom(other.DeviceProfile); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (deviceProfile_ == null) { - DeviceProfile = new global::Chirpstack.Api.DeviceProfile(); - } - input.ReadMessage(DeviceProfile); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (deviceProfile_ == null) { - DeviceProfile = new global::Chirpstack.Api.DeviceProfile(); - } - input.ReadMessage(DeviceProfile); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteDeviceProfileRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteDeviceProfileRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteDeviceProfileRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteDeviceProfileRequest(DeleteDeviceProfileRequest other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteDeviceProfileRequest Clone() { - return new DeleteDeviceProfileRequest(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteDeviceProfileRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteDeviceProfileRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteDeviceProfileRequest other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListDeviceProfilesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDeviceProfilesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDeviceProfilesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDeviceProfilesRequest(ListDeviceProfilesRequest other) : this() { - limit_ = other.limit_; - offset_ = other.offset_; - search_ = other.search_; - tenantId_ = other.tenantId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDeviceProfilesRequest Clone() { - return new ListDeviceProfilesRequest(this); - } - - /// Field number for the "limit" field. - public const int LimitFieldNumber = 1; - private uint limit_; - /// - /// Max number of device-profiles to return in the result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Limit { - get { return limit_; } - set { - limit_ = value; - } - } - - /// Field number for the "offset" field. - public const int OffsetFieldNumber = 2; - private uint offset_; - /// - /// Offset in the result-set (for pagination). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Offset { - get { return offset_; } - set { - offset_ = value; - } - } - - /// Field number for the "search" field. - public const int SearchFieldNumber = 3; - private string search_ = ""; - /// - /// If set, the given string will be used to search on name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Search { - get { return search_; } - set { - search_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 4; - private string tenantId_ = ""; - /// - /// Tenant ID to list the device-profiles for. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListDeviceProfilesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListDeviceProfilesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Limit != other.Limit) return false; - if (Offset != other.Offset) return false; - if (Search != other.Search) return false; - if (TenantId != other.TenantId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Limit != 0) hash ^= Limit.GetHashCode(); - if (Offset != 0) hash ^= Offset.GetHashCode(); - if (Search.Length != 0) hash ^= Search.GetHashCode(); - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (Search.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Search); - } - if (TenantId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(TenantId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (Search.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Search); - } - if (TenantId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(TenantId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Limit != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); - } - if (Offset != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); - } - if (Search.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); - } - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListDeviceProfilesRequest other) { - if (other == null) { - return; - } - if (other.Limit != 0) { - Limit = other.Limit; - } - if (other.Offset != 0) { - Offset = other.Offset; - } - if (other.Search.Length != 0) { - Search = other.Search; - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - case 26: { - Search = input.ReadString(); - break; - } - case 34: { - TenantId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - case 26: { - Search = input.ReadString(); - break; - } - case 34: { - TenantId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListDeviceProfilesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDeviceProfilesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDeviceProfilesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDeviceProfilesResponse(ListDeviceProfilesResponse other) : this() { - totalCount_ = other.totalCount_; - result_ = other.result_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDeviceProfilesResponse Clone() { - return new ListDeviceProfilesResponse(this); - } - - /// Field number for the "total_count" field. - public const int TotalCountFieldNumber = 1; - private uint totalCount_; - /// - /// Total number of device-profiles. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TotalCount { - get { return totalCount_; } - set { - totalCount_ = value; - } - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_result_codec - = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.DeviceProfileListItem.Parser); - private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); - /// - /// Result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Result { - get { return result_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListDeviceProfilesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListDeviceProfilesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TotalCount != other.TotalCount) return false; - if(!result_.Equals(other.result_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TotalCount != 0) hash ^= TotalCount.GetHashCode(); - hash ^= result_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(ref output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TotalCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); - } - size += result_.CalculateSize(_repeated_result_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListDeviceProfilesResponse other) { - if (other == null) { - return; - } - if (other.TotalCount != 0) { - TotalCount = other.TotalCount; - } - result_.Add(other.result_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(input, _repeated_result_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(ref input, _repeated_result_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListDeviceProfileAdrAlgorithmsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDeviceProfileAdrAlgorithmsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDeviceProfileAdrAlgorithmsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDeviceProfileAdrAlgorithmsResponse(ListDeviceProfileAdrAlgorithmsResponse other) : this() { - totalCount_ = other.totalCount_; - result_ = other.result_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDeviceProfileAdrAlgorithmsResponse Clone() { - return new ListDeviceProfileAdrAlgorithmsResponse(this); - } - - /// Field number for the "total_count" field. - public const int TotalCountFieldNumber = 1; - private uint totalCount_; - /// - /// Total number of algorithms. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TotalCount { - get { return totalCount_; } - set { - totalCount_ = value; - } - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_result_codec - = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.AdrAlgorithmListItem.Parser); - private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); - /// - /// Result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Result { - get { return result_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListDeviceProfileAdrAlgorithmsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListDeviceProfileAdrAlgorithmsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TotalCount != other.TotalCount) return false; - if(!result_.Equals(other.result_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TotalCount != 0) hash ^= TotalCount.GetHashCode(); - hash ^= result_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(ref output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TotalCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); - } - size += result_.CalculateSize(_repeated_result_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListDeviceProfileAdrAlgorithmsResponse other) { - if (other == null) { - return; - } - if (other.TotalCount != 0) { - TotalCount = other.TotalCount; - } - result_.Add(other.result_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(input, _repeated_result_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(ref input, _repeated_result_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class AdrAlgorithmListItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdrAlgorithmListItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdrAlgorithmListItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdrAlgorithmListItem(AdrAlgorithmListItem other) : this() { - id_ = other.id_; - name_ = other.name_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdrAlgorithmListItem Clone() { - return new AdrAlgorithmListItem(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Algorithm ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - /// - /// Algorithm name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdrAlgorithmListItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdrAlgorithmListItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (Name != other.Name) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdrAlgorithmListItem other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/DeviceProfileGrpc.cs b/api/csharp/Chirpstack/api/DeviceProfileGrpc.cs deleted file mode 100644 index 979a8512..00000000 --- a/api/csharp/Chirpstack/api/DeviceProfileGrpc.cs +++ /dev/null @@ -1,559 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/device_profile.proto -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Chirpstack.Api { - /// - /// DeviceProfileService is the service providing API methods for managing - /// device-profiles. - /// - public static partial class DeviceProfileService - { - static readonly string __ServiceName = "api.DeviceProfileService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateDeviceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateDeviceProfileRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateDeviceProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateDeviceProfileResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDeviceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceProfileRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDeviceProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceProfileResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateDeviceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateDeviceProfileRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteDeviceProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteDeviceProfileRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListDeviceProfilesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListDeviceProfilesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListDeviceProfilesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListDeviceProfilesResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListDeviceProfileAdrAlgorithmsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListDeviceProfileAdrAlgorithmsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Create = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Create", - __Marshaller_api_CreateDeviceProfileRequest, - __Marshaller_api_CreateDeviceProfileResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Get = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Get", - __Marshaller_api_GetDeviceProfileRequest, - __Marshaller_api_GetDeviceProfileResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Update = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Update", - __Marshaller_api_UpdateDeviceProfileRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Delete = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Delete", - __Marshaller_api_DeleteDeviceProfileRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_List = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "List", - __Marshaller_api_ListDeviceProfilesRequest, - __Marshaller_api_ListDeviceProfilesResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ListAdrAlgorithms = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ListAdrAlgorithms", - __Marshaller_google_protobuf_Empty, - __Marshaller_api_ListDeviceProfileAdrAlgorithmsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Chirpstack.Api.DeviceProfileReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of DeviceProfileService - [grpc::BindServiceMethod(typeof(DeviceProfileService), "BindService")] - public abstract partial class DeviceProfileServiceBase - { - /// - /// Create the given device-profile. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Create(global::Chirpstack.Api.CreateDeviceProfileRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get the device-profile for the given ID. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Get(global::Chirpstack.Api.GetDeviceProfileRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update the given device-profile. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Update(global::Chirpstack.Api.UpdateDeviceProfileRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete the device-profile with the given ID. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Delete(global::Chirpstack.Api.DeleteDeviceProfileRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// List the available device-profiles. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task List(global::Chirpstack.Api.ListDeviceProfilesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// List available ADR algorithms. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ListAdrAlgorithms(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for DeviceProfileService - public partial class DeviceProfileServiceClient : grpc::ClientBase - { - /// Creates a new client for DeviceProfileService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public DeviceProfileServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for DeviceProfileService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public DeviceProfileServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected DeviceProfileServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected DeviceProfileServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Create the given device-profile. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.CreateDeviceProfileResponse Create(global::Chirpstack.Api.CreateDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Create(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create the given device-profile. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.CreateDeviceProfileResponse Create(global::Chirpstack.Api.CreateDeviceProfileRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); - } - /// - /// Create the given device-profile. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create the given device-profile. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateDeviceProfileRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); - } - /// - /// Get the device-profile for the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDeviceProfileResponse Get(global::Chirpstack.Api.GetDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Get(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the device-profile for the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDeviceProfileResponse Get(global::Chirpstack.Api.GetDeviceProfileRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); - } - /// - /// Get the device-profile for the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the device-profile for the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetDeviceProfileRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); - } - /// - /// Update the given device-profile. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Update(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the given device-profile. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateDeviceProfileRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); - } - /// - /// Update the given device-profile. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the given device-profile. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateDeviceProfileRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); - } - /// - /// Delete the device-profile with the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Delete(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the device-profile with the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteDeviceProfileRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); - } - /// - /// Delete the device-profile with the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteDeviceProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the device-profile with the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteDeviceProfileRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); - } - /// - /// List the available device-profiles. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListDeviceProfilesResponse List(global::Chirpstack.Api.ListDeviceProfilesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return List(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// List the available device-profiles. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListDeviceProfilesResponse List(global::Chirpstack.Api.ListDeviceProfilesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); - } - /// - /// List the available device-profiles. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListDeviceProfilesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// List the available device-profiles. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListDeviceProfilesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); - } - /// - /// List available ADR algorithms. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListDeviceProfileAdrAlgorithmsResponse ListAdrAlgorithms(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListAdrAlgorithms(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// List available ADR algorithms. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListDeviceProfileAdrAlgorithmsResponse ListAdrAlgorithms(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ListAdrAlgorithms, null, options, request); - } - /// - /// List available ADR algorithms. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAdrAlgorithmsAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListAdrAlgorithmsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// List available ADR algorithms. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAdrAlgorithmsAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ListAdrAlgorithms, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override DeviceProfileServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new DeviceProfileServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(DeviceProfileServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_Create, serviceImpl.Create) - .AddMethod(__Method_Get, serviceImpl.Get) - .AddMethod(__Method_Update, serviceImpl.Update) - .AddMethod(__Method_Delete, serviceImpl.Delete) - .AddMethod(__Method_List, serviceImpl.List) - .AddMethod(__Method_ListAdrAlgorithms, serviceImpl.ListAdrAlgorithms).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, DeviceProfileServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Create)); - serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Get)); - serviceBinder.AddMethod(__Method_Update, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Update)); - serviceBinder.AddMethod(__Method_Delete, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Delete)); - serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); - serviceBinder.AddMethod(__Method_ListAdrAlgorithms, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListAdrAlgorithms)); - } - - } -} -#endregion diff --git a/api/csharp/Chirpstack/api/DeviceProfileTemplate.cs b/api/csharp/Chirpstack/api/DeviceProfileTemplate.cs deleted file mode 100644 index 31ef838c..00000000 --- a/api/csharp/Chirpstack/api/DeviceProfileTemplate.cs +++ /dev/null @@ -1,3609 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/device_profile_template.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Chirpstack.Api { - - /// Holder for reflection information generated from api/device_profile_template.proto - public static partial class DeviceProfileTemplateReflection { - - #region Descriptor - /// File descriptor for api/device_profile_template.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DeviceProfileTemplateReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CiFhcGkvZGV2aWNlX3Byb2ZpbGVfdGVtcGxhdGUucHJvdG8SA2FwaRocZ29v", - "Z2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3Rp", - "bWVzdGFtcC5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvGhNj", - "b21tb24vY29tbW9uLnByb3RvGhhhcGkvZGV2aWNlX3Byb2ZpbGUucHJvdG8i", - "9gcKFURldmljZVByb2ZpbGVUZW1wbGF0ZRIKCgJpZBgBIAEoCRIMCgRuYW1l", - "GAIgASgJEhMKC2Rlc2NyaXB0aW9uGAMgASgJEg4KBnZlbmRvchgEIAEoCRIQ", - "CghmaXJtd2FyZRgFIAEoCRIeCgZyZWdpb24YBiABKA4yDi5jb21tb24uUmVn", - "aW9uEicKC21hY192ZXJzaW9uGAcgASgOMhIuY29tbW9uLk1hY1ZlcnNpb24S", - "NgoTcmVnX3BhcmFtc19yZXZpc2lvbhgIIAEoDjIZLmNvbW1vbi5SZWdQYXJh", - "bXNSZXZpc2lvbhIYChBhZHJfYWxnb3JpdGhtX2lkGAkgASgJEjAKFXBheWxv", - "YWRfY29kZWNfcnVudGltZRgKIAEoDjIRLmFwaS5Db2RlY1J1bnRpbWUSHAoU", - "cGF5bG9hZF9jb2RlY19zY3JpcHQYCyABKAkSHwoXZmx1c2hfcXVldWVfb25f", - "YWN0aXZhdGUYDCABKAgSFwoPdXBsaW5rX2ludGVydmFsGA0gASgNEiIKGmRl", - "dmljZV9zdGF0dXNfcmVxX2ludGVydmFsGA4gASgNEhUKDXN1cHBvcnRzX290", - "YWEYDyABKAgSGAoQc3VwcG9ydHNfY2xhc3NfYhgQIAEoCBIYChBzdXBwb3J0", - "c19jbGFzc19jGBEgASgIEhcKD2NsYXNzX2JfdGltZW91dBgSIAEoDRIeChZj", - "bGFzc19iX3Bpbmdfc2xvdF9uYl9rGBMgASgNEhwKFGNsYXNzX2JfcGluZ19z", - "bG90X2RyGBQgASgNEh4KFmNsYXNzX2JfcGluZ19zbG90X2ZyZXEYFSABKA0S", - "FwoPY2xhc3NfY190aW1lb3V0GBYgASgNEhUKDWFicF9yeDFfZGVsYXkYFyAB", - "KA0SGQoRYWJwX3J4MV9kcl9vZmZzZXQYGCABKA0SEgoKYWJwX3J4Ml9kchgZ", - "IAEoDRIUCgxhYnBfcngyX2ZyZXEYGiABKA0SMgoEdGFncxgbIAMoCzIkLmFw", - "aS5EZXZpY2VQcm9maWxlVGVtcGxhdGUuVGFnc0VudHJ5EkIKDG1lYXN1cmVt", - "ZW50cxgcIAMoCzIsLmFwaS5EZXZpY2VQcm9maWxlVGVtcGxhdGUuTWVhc3Vy", - "ZW1lbnRzRW50cnkSIAoYYXV0b19kZXRlY3RfbWVhc3VyZW1lbnRzGB0gASgI", - "GisKCVRhZ3NFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgB", - "GkUKEU1lYXN1cmVtZW50c0VudHJ5EgsKA2tleRgBIAEoCRIfCgV2YWx1ZRgC", - "IAEoCzIQLmFwaS5NZWFzdXJlbWVudDoCOAEihwMKHURldmljZVByb2ZpbGVU", - "ZW1wbGF0ZUxpc3RJdGVtEgoKAmlkGAEgASgJEi4KCmNyZWF0ZWRfYXQYAiAB", - "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQY", - "AyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEgwKBG5hbWUYBCAB", - "KAkSDgoGdmVuZG9yGAUgASgJEhAKCGZpcm13YXJlGAYgASgJEh4KBnJlZ2lv", - "bhgHIAEoDjIOLmNvbW1vbi5SZWdpb24SJwoLbWFjX3ZlcnNpb24YCCABKA4y", - "Ei5jb21tb24uTWFjVmVyc2lvbhI2ChNyZWdfcGFyYW1zX3JldmlzaW9uGAkg", - "ASgOMhkuY29tbW9uLlJlZ1BhcmFtc1JldmlzaW9uEhUKDXN1cHBvcnRzX290", - "YWEYCiABKAgSGAoQc3VwcG9ydHNfY2xhc3NfYhgLIAEoCBIYChBzdXBwb3J0", - "c19jbGFzc19jGAwgASgIImEKIkNyZWF0ZURldmljZVByb2ZpbGVUZW1wbGF0", - "ZVJlcXVlc3QSOwoXZGV2aWNlX3Byb2ZpbGVfdGVtcGxhdGUYASABKAsyGi5h", - "cGkuRGV2aWNlUHJvZmlsZVRlbXBsYXRlIi0KH0dldERldmljZVByb2ZpbGVU", - "ZW1wbGF0ZVJlcXVlc3QSCgoCaWQYASABKAkivwEKIEdldERldmljZVByb2Zp", - "bGVUZW1wbGF0ZVJlc3BvbnNlEjsKF2RldmljZV9wcm9maWxlX3RlbXBsYXRl", - "GAEgASgLMhouYXBpLkRldmljZVByb2ZpbGVUZW1wbGF0ZRIuCgpjcmVhdGVk", - "X2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRh", - "dGVkX2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCJhCiJV", - "cGRhdGVEZXZpY2VQcm9maWxlVGVtcGxhdGVSZXF1ZXN0EjsKF2RldmljZV9w", - "cm9maWxlX3RlbXBsYXRlGAEgASgLMhouYXBpLkRldmljZVByb2ZpbGVUZW1w", - "bGF0ZSIwCiJEZWxldGVEZXZpY2VQcm9maWxlVGVtcGxhdGVSZXF1ZXN0EgoK", - "AmlkGAEgASgJIkIKIUxpc3REZXZpY2VQcm9maWxlVGVtcGxhdGVzUmVxdWVz", - "dBINCgVsaW1pdBgBIAEoDRIOCgZvZmZzZXQYAiABKA0ibQoiTGlzdERldmlj", - "ZVByb2ZpbGVUZW1wbGF0ZXNSZXNwb25zZRITCgt0b3RhbF9jb3VudBgBIAEo", - "DRIyCgZyZXN1bHQYAiADKAsyIi5hcGkuRGV2aWNlUHJvZmlsZVRlbXBsYXRl", - "TGlzdEl0ZW0ynQUKHERldmljZVByb2ZpbGVUZW1wbGF0ZVNlcnZpY2UScwoG", - "Q3JlYXRlEicuYXBpLkNyZWF0ZURldmljZVByb2ZpbGVUZW1wbGF0ZVJlcXVl", - "c3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiKILT5JMCIiIdL2FwaS9kZXZp", - "Y2UtcHJvZmlsZS10ZW1wbGF0ZXM6ASoSfgoDR2V0EiQuYXBpLkdldERldmlj", - "ZVByb2ZpbGVUZW1wbGF0ZVJlcXVlc3QaJS5hcGkuR2V0RGV2aWNlUHJvZmls", - "ZVRlbXBsYXRlUmVzcG9uc2UiKoLT5JMCJBIiL2FwaS9kZXZpY2UtcHJvZmls", - "ZS10ZW1wbGF0ZXMve2lkfRKQAQoGVXBkYXRlEicuYXBpLlVwZGF0ZURldmlj", - "ZVByb2ZpbGVUZW1wbGF0ZVJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1w", - "dHkiRYLT5JMCPxo6L2FwaS9kZXZpY2UtcHJvZmlsZS10ZW1wbGF0ZXMve2Rl", - "dmljZV9wcm9maWxlX3RlbXBsYXRlLmlkfToBKhJ1CgZEZWxldGUSJy5hcGku", - "RGVsZXRlRGV2aWNlUHJvZmlsZVRlbXBsYXRlUmVxdWVzdBoWLmdvb2dsZS5w", - "cm90b2J1Zi5FbXB0eSIqgtPkkwIkKiIvYXBpL2RldmljZS1wcm9maWxlLXRl", - "bXBsYXRlcy97aWR9En4KBExpc3QSJi5hcGkuTGlzdERldmljZVByb2ZpbGVU", - "ZW1wbGF0ZXNSZXF1ZXN0GicuYXBpLkxpc3REZXZpY2VQcm9maWxlVGVtcGxh", - "dGVzUmVzcG9uc2UiJYLT5JMCHxIdL2FwaS9kZXZpY2UtcHJvZmlsZS10ZW1w", - "bGF0ZXNCcgoRaW8uY2hpcnBzdGFjay5hcGlCGkRldmljZVByb2ZpbGVUZW1w", - "bGF0ZVByb3RvUAFaLmdpdGh1Yi5jb20vY2hpcnBzdGFjay9jaGlycHN0YWNr", - "L2FwaS9nby92NC9hcGmqAg5DaGlycHN0YWNrLkFwaWIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, global::Chirpstack.Api.DeviceProfileReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceProfileTemplate), global::Chirpstack.Api.DeviceProfileTemplate.Parser, new[]{ "Id", "Name", "Description", "Vendor", "Firmware", "Region", "MacVersion", "RegParamsRevision", "AdrAlgorithmId", "PayloadCodecRuntime", "PayloadCodecScript", "FlushQueueOnActivate", "UplinkInterval", "DeviceStatusReqInterval", "SupportsOtaa", "SupportsClassB", "SupportsClassC", "ClassBTimeout", "ClassBPingSlotNbK", "ClassBPingSlotDr", "ClassBPingSlotFreq", "ClassCTimeout", "AbpRx1Delay", "AbpRx1DrOffset", "AbpRx2Dr", "AbpRx2Freq", "Tags", "Measurements", "AutoDetectMeasurements" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeviceProfileTemplateListItem), global::Chirpstack.Api.DeviceProfileTemplateListItem.Parser, new[]{ "Id", "CreatedAt", "UpdatedAt", "Name", "Vendor", "Firmware", "Region", "MacVersion", "RegParamsRevision", "SupportsOtaa", "SupportsClassB", "SupportsClassC" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateDeviceProfileTemplateRequest), global::Chirpstack.Api.CreateDeviceProfileTemplateRequest.Parser, new[]{ "DeviceProfileTemplate" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceProfileTemplateRequest), global::Chirpstack.Api.GetDeviceProfileTemplateRequest.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDeviceProfileTemplateResponse), global::Chirpstack.Api.GetDeviceProfileTemplateResponse.Parser, new[]{ "DeviceProfileTemplate", "CreatedAt", "UpdatedAt" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest), global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest.Parser, new[]{ "DeviceProfileTemplate" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest), global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListDeviceProfileTemplatesRequest), global::Chirpstack.Api.ListDeviceProfileTemplatesRequest.Parser, new[]{ "Limit", "Offset" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListDeviceProfileTemplatesResponse), global::Chirpstack.Api.ListDeviceProfileTemplatesResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - public sealed partial class DeviceProfileTemplate : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceProfileTemplate()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileTemplateReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceProfileTemplate() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceProfileTemplate(DeviceProfileTemplate other) : this() { - id_ = other.id_; - name_ = other.name_; - description_ = other.description_; - vendor_ = other.vendor_; - firmware_ = other.firmware_; - region_ = other.region_; - macVersion_ = other.macVersion_; - regParamsRevision_ = other.regParamsRevision_; - adrAlgorithmId_ = other.adrAlgorithmId_; - payloadCodecRuntime_ = other.payloadCodecRuntime_; - payloadCodecScript_ = other.payloadCodecScript_; - flushQueueOnActivate_ = other.flushQueueOnActivate_; - uplinkInterval_ = other.uplinkInterval_; - deviceStatusReqInterval_ = other.deviceStatusReqInterval_; - supportsOtaa_ = other.supportsOtaa_; - supportsClassB_ = other.supportsClassB_; - supportsClassC_ = other.supportsClassC_; - classBTimeout_ = other.classBTimeout_; - classBPingSlotNbK_ = other.classBPingSlotNbK_; - classBPingSlotDr_ = other.classBPingSlotDr_; - classBPingSlotFreq_ = other.classBPingSlotFreq_; - classCTimeout_ = other.classCTimeout_; - abpRx1Delay_ = other.abpRx1Delay_; - abpRx1DrOffset_ = other.abpRx1DrOffset_; - abpRx2Dr_ = other.abpRx2Dr_; - abpRx2Freq_ = other.abpRx2Freq_; - tags_ = other.tags_.Clone(); - measurements_ = other.measurements_.Clone(); - autoDetectMeasurements_ = other.autoDetectMeasurements_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceProfileTemplate Clone() { - return new DeviceProfileTemplate(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Device-profile template ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - /// - /// Name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 3; - private string description_ = ""; - /// - /// Description. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "vendor" field. - public const int VendorFieldNumber = 4; - private string vendor_ = ""; - /// - /// Vendor. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Vendor { - get { return vendor_; } - set { - vendor_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "firmware" field. - public const int FirmwareFieldNumber = 5; - private string firmware_ = ""; - /// - /// Firmware. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Firmware { - get { return firmware_; } - set { - firmware_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 6; - private global::Chirpstack.Common.Region region_ = global::Chirpstack.Common.Region.Eu868; - /// - /// Region. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Region Region { - get { return region_; } - set { - region_ = value; - } - } - - /// Field number for the "mac_version" field. - public const int MacVersionFieldNumber = 7; - private global::Chirpstack.Common.MacVersion macVersion_ = global::Chirpstack.Common.MacVersion.Lorawan100; - /// - /// LoRaWAN mac-version. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.MacVersion MacVersion { - get { return macVersion_; } - set { - macVersion_ = value; - } - } - - /// Field number for the "reg_params_revision" field. - public const int RegParamsRevisionFieldNumber = 8; - private global::Chirpstack.Common.RegParamsRevision regParamsRevision_ = global::Chirpstack.Common.RegParamsRevision.A; - /// - /// Regional parameters revision. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.RegParamsRevision RegParamsRevision { - get { return regParamsRevision_; } - set { - regParamsRevision_ = value; - } - } - - /// Field number for the "adr_algorithm_id" field. - public const int AdrAlgorithmIdFieldNumber = 9; - private string adrAlgorithmId_ = ""; - /// - /// ADR algorithm ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdrAlgorithmId { - get { return adrAlgorithmId_; } - set { - adrAlgorithmId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "payload_codec_runtime" field. - public const int PayloadCodecRuntimeFieldNumber = 10; - private global::Chirpstack.Api.CodecRuntime payloadCodecRuntime_ = global::Chirpstack.Api.CodecRuntime.None; - /// - /// Payload codec runtime. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.CodecRuntime PayloadCodecRuntime { - get { return payloadCodecRuntime_; } - set { - payloadCodecRuntime_ = value; - } - } - - /// Field number for the "payload_codec_script" field. - public const int PayloadCodecScriptFieldNumber = 11; - private string payloadCodecScript_ = ""; - /// - /// Payload codec script. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PayloadCodecScript { - get { return payloadCodecScript_; } - set { - payloadCodecScript_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "flush_queue_on_activate" field. - public const int FlushQueueOnActivateFieldNumber = 12; - private bool flushQueueOnActivate_; - /// - /// Flush queue on device activation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool FlushQueueOnActivate { - get { return flushQueueOnActivate_; } - set { - flushQueueOnActivate_ = value; - } - } - - /// Field number for the "uplink_interval" field. - public const int UplinkIntervalFieldNumber = 13; - private uint uplinkInterval_; - /// - /// Uplink interval (seconds). - /// This defines the expected uplink interval which the device uses for - /// communication. When the uplink interval has expired and no uplink has - /// been received, the device is considered inactive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint UplinkInterval { - get { return uplinkInterval_; } - set { - uplinkInterval_ = value; - } - } - - /// Field number for the "device_status_req_interval" field. - public const int DeviceStatusReqIntervalFieldNumber = 14; - private uint deviceStatusReqInterval_; - /// - /// Device-status request interval (times / day). - /// This defines the times per day that ChirpStack will request the device-status - /// from the device. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint DeviceStatusReqInterval { - get { return deviceStatusReqInterval_; } - set { - deviceStatusReqInterval_ = value; - } - } - - /// Field number for the "supports_otaa" field. - public const int SupportsOtaaFieldNumber = 15; - private bool supportsOtaa_; - /// - /// Supports OTAA. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool SupportsOtaa { - get { return supportsOtaa_; } - set { - supportsOtaa_ = value; - } - } - - /// Field number for the "supports_class_b" field. - public const int SupportsClassBFieldNumber = 16; - private bool supportsClassB_; - /// - /// Supports Class B. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool SupportsClassB { - get { return supportsClassB_; } - set { - supportsClassB_ = value; - } - } - - /// Field number for the "supports_class_c" field. - public const int SupportsClassCFieldNumber = 17; - private bool supportsClassC_; - /// - /// Supports Class-C. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool SupportsClassC { - get { return supportsClassC_; } - set { - supportsClassC_ = value; - } - } - - /// Field number for the "class_b_timeout" field. - public const int ClassBTimeoutFieldNumber = 18; - private uint classBTimeout_; - /// - /// Class-B timeout (seconds). - /// This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ClassBTimeout { - get { return classBTimeout_; } - set { - classBTimeout_ = value; - } - } - - /// Field number for the "class_b_ping_slot_nb_k" field. - public const int ClassBPingSlotNbKFieldNumber = 19; - private uint classBPingSlotNbK_; - /// - /// Class-B ping-slots per beacon period. - /// Valid options are: 0 - 7. - /// - /// The actual number of ping-slots per beacon period equals to 2^k. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ClassBPingSlotNbK { - get { return classBPingSlotNbK_; } - set { - classBPingSlotNbK_ = value; - } - } - - /// Field number for the "class_b_ping_slot_dr" field. - public const int ClassBPingSlotDrFieldNumber = 20; - private uint classBPingSlotDr_; - /// - /// Class-B ping-slot DR. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ClassBPingSlotDr { - get { return classBPingSlotDr_; } - set { - classBPingSlotDr_ = value; - } - } - - /// Field number for the "class_b_ping_slot_freq" field. - public const int ClassBPingSlotFreqFieldNumber = 21; - private uint classBPingSlotFreq_; - /// - /// Class-B ping-slot freq (Hz). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ClassBPingSlotFreq { - get { return classBPingSlotFreq_; } - set { - classBPingSlotFreq_ = value; - } - } - - /// Field number for the "class_c_timeout" field. - public const int ClassCTimeoutFieldNumber = 22; - private uint classCTimeout_; - /// - /// Class-C timeout (seconds). - /// This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ClassCTimeout { - get { return classCTimeout_; } - set { - classCTimeout_ = value; - } - } - - /// Field number for the "abp_rx1_delay" field. - public const int AbpRx1DelayFieldNumber = 23; - private uint abpRx1Delay_; - /// - /// RX1 delay (for ABP). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint AbpRx1Delay { - get { return abpRx1Delay_; } - set { - abpRx1Delay_ = value; - } - } - - /// Field number for the "abp_rx1_dr_offset" field. - public const int AbpRx1DrOffsetFieldNumber = 24; - private uint abpRx1DrOffset_; - /// - /// RX1 DR offset (for ABP). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint AbpRx1DrOffset { - get { return abpRx1DrOffset_; } - set { - abpRx1DrOffset_ = value; - } - } - - /// Field number for the "abp_rx2_dr" field. - public const int AbpRx2DrFieldNumber = 25; - private uint abpRx2Dr_; - /// - /// RX2 DR (for ABP). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint AbpRx2Dr { - get { return abpRx2Dr_; } - set { - abpRx2Dr_ = value; - } - } - - /// Field number for the "abp_rx2_freq" field. - public const int AbpRx2FreqFieldNumber = 26; - private uint abpRx2Freq_; - /// - /// RX2 frequency (for ABP, Hz). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint AbpRx2Freq { - get { return abpRx2Freq_; } - set { - abpRx2Freq_ = value; - } - } - - /// Field number for the "tags" field. - public const int TagsFieldNumber = 27; - private static readonly pbc::MapField.Codec _map_tags_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 218); - private readonly pbc::MapField tags_ = new pbc::MapField(); - /// - /// User defined tags. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Tags { - get { return tags_; } - } - - /// Field number for the "measurements" field. - public const int MeasurementsFieldNumber = 28; - private static readonly pbc::MapField.Codec _map_measurements_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.Measurement.Parser), 226); - private readonly pbc::MapField measurements_ = new pbc::MapField(); - /// - /// Measurements. - /// If defined, ChirpStack will visualize these metrics in the web-interface. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Measurements { - get { return measurements_; } - } - - /// Field number for the "auto_detect_measurements" field. - public const int AutoDetectMeasurementsFieldNumber = 29; - private bool autoDetectMeasurements_; - /// - /// Auto-detect measurements. - /// If set to true, measurements will be automatically added based on the - /// keys of the decoded payload. In cases where the decoded payload contains - /// random keys in the data, you want to set this to false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AutoDetectMeasurements { - get { return autoDetectMeasurements_; } - set { - autoDetectMeasurements_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeviceProfileTemplate); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeviceProfileTemplate other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (Description != other.Description) return false; - if (Vendor != other.Vendor) return false; - if (Firmware != other.Firmware) return false; - if (Region != other.Region) return false; - if (MacVersion != other.MacVersion) return false; - if (RegParamsRevision != other.RegParamsRevision) return false; - if (AdrAlgorithmId != other.AdrAlgorithmId) return false; - if (PayloadCodecRuntime != other.PayloadCodecRuntime) return false; - if (PayloadCodecScript != other.PayloadCodecScript) return false; - if (FlushQueueOnActivate != other.FlushQueueOnActivate) return false; - if (UplinkInterval != other.UplinkInterval) return false; - if (DeviceStatusReqInterval != other.DeviceStatusReqInterval) return false; - if (SupportsOtaa != other.SupportsOtaa) return false; - if (SupportsClassB != other.SupportsClassB) return false; - if (SupportsClassC != other.SupportsClassC) return false; - if (ClassBTimeout != other.ClassBTimeout) return false; - if (ClassBPingSlotNbK != other.ClassBPingSlotNbK) return false; - if (ClassBPingSlotDr != other.ClassBPingSlotDr) return false; - if (ClassBPingSlotFreq != other.ClassBPingSlotFreq) return false; - if (ClassCTimeout != other.ClassCTimeout) return false; - if (AbpRx1Delay != other.AbpRx1Delay) return false; - if (AbpRx1DrOffset != other.AbpRx1DrOffset) return false; - if (AbpRx2Dr != other.AbpRx2Dr) return false; - if (AbpRx2Freq != other.AbpRx2Freq) return false; - if (!Tags.Equals(other.Tags)) return false; - if (!Measurements.Equals(other.Measurements)) return false; - if (AutoDetectMeasurements != other.AutoDetectMeasurements) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (Vendor.Length != 0) hash ^= Vendor.GetHashCode(); - if (Firmware.Length != 0) hash ^= Firmware.GetHashCode(); - if (Region != global::Chirpstack.Common.Region.Eu868) hash ^= Region.GetHashCode(); - if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) hash ^= MacVersion.GetHashCode(); - if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) hash ^= RegParamsRevision.GetHashCode(); - if (AdrAlgorithmId.Length != 0) hash ^= AdrAlgorithmId.GetHashCode(); - if (PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) hash ^= PayloadCodecRuntime.GetHashCode(); - if (PayloadCodecScript.Length != 0) hash ^= PayloadCodecScript.GetHashCode(); - if (FlushQueueOnActivate != false) hash ^= FlushQueueOnActivate.GetHashCode(); - if (UplinkInterval != 0) hash ^= UplinkInterval.GetHashCode(); - if (DeviceStatusReqInterval != 0) hash ^= DeviceStatusReqInterval.GetHashCode(); - if (SupportsOtaa != false) hash ^= SupportsOtaa.GetHashCode(); - if (SupportsClassB != false) hash ^= SupportsClassB.GetHashCode(); - if (SupportsClassC != false) hash ^= SupportsClassC.GetHashCode(); - if (ClassBTimeout != 0) hash ^= ClassBTimeout.GetHashCode(); - if (ClassBPingSlotNbK != 0) hash ^= ClassBPingSlotNbK.GetHashCode(); - if (ClassBPingSlotDr != 0) hash ^= ClassBPingSlotDr.GetHashCode(); - if (ClassBPingSlotFreq != 0) hash ^= ClassBPingSlotFreq.GetHashCode(); - if (ClassCTimeout != 0) hash ^= ClassCTimeout.GetHashCode(); - if (AbpRx1Delay != 0) hash ^= AbpRx1Delay.GetHashCode(); - if (AbpRx1DrOffset != 0) hash ^= AbpRx1DrOffset.GetHashCode(); - if (AbpRx2Dr != 0) hash ^= AbpRx2Dr.GetHashCode(); - if (AbpRx2Freq != 0) hash ^= AbpRx2Freq.GetHashCode(); - hash ^= Tags.GetHashCode(); - hash ^= Measurements.GetHashCode(); - if (AutoDetectMeasurements != false) hash ^= AutoDetectMeasurements.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description); - } - if (Vendor.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Vendor); - } - if (Firmware.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Firmware); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - output.WriteRawTag(48); - output.WriteEnum((int) Region); - } - if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { - output.WriteRawTag(56); - output.WriteEnum((int) MacVersion); - } - if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { - output.WriteRawTag(64); - output.WriteEnum((int) RegParamsRevision); - } - if (AdrAlgorithmId.Length != 0) { - output.WriteRawTag(74); - output.WriteString(AdrAlgorithmId); - } - if (PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) { - output.WriteRawTag(80); - output.WriteEnum((int) PayloadCodecRuntime); - } - if (PayloadCodecScript.Length != 0) { - output.WriteRawTag(90); - output.WriteString(PayloadCodecScript); - } - if (FlushQueueOnActivate != false) { - output.WriteRawTag(96); - output.WriteBool(FlushQueueOnActivate); - } - if (UplinkInterval != 0) { - output.WriteRawTag(104); - output.WriteUInt32(UplinkInterval); - } - if (DeviceStatusReqInterval != 0) { - output.WriteRawTag(112); - output.WriteUInt32(DeviceStatusReqInterval); - } - if (SupportsOtaa != false) { - output.WriteRawTag(120); - output.WriteBool(SupportsOtaa); - } - if (SupportsClassB != false) { - output.WriteRawTag(128, 1); - output.WriteBool(SupportsClassB); - } - if (SupportsClassC != false) { - output.WriteRawTag(136, 1); - output.WriteBool(SupportsClassC); - } - if (ClassBTimeout != 0) { - output.WriteRawTag(144, 1); - output.WriteUInt32(ClassBTimeout); - } - if (ClassBPingSlotNbK != 0) { - output.WriteRawTag(152, 1); - output.WriteUInt32(ClassBPingSlotNbK); - } - if (ClassBPingSlotDr != 0) { - output.WriteRawTag(160, 1); - output.WriteUInt32(ClassBPingSlotDr); - } - if (ClassBPingSlotFreq != 0) { - output.WriteRawTag(168, 1); - output.WriteUInt32(ClassBPingSlotFreq); - } - if (ClassCTimeout != 0) { - output.WriteRawTag(176, 1); - output.WriteUInt32(ClassCTimeout); - } - if (AbpRx1Delay != 0) { - output.WriteRawTag(184, 1); - output.WriteUInt32(AbpRx1Delay); - } - if (AbpRx1DrOffset != 0) { - output.WriteRawTag(192, 1); - output.WriteUInt32(AbpRx1DrOffset); - } - if (AbpRx2Dr != 0) { - output.WriteRawTag(200, 1); - output.WriteUInt32(AbpRx2Dr); - } - if (AbpRx2Freq != 0) { - output.WriteRawTag(208, 1); - output.WriteUInt32(AbpRx2Freq); - } - tags_.WriteTo(output, _map_tags_codec); - measurements_.WriteTo(output, _map_measurements_codec); - if (AutoDetectMeasurements != false) { - output.WriteRawTag(232, 1); - output.WriteBool(AutoDetectMeasurements); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description); - } - if (Vendor.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Vendor); - } - if (Firmware.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Firmware); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - output.WriteRawTag(48); - output.WriteEnum((int) Region); - } - if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { - output.WriteRawTag(56); - output.WriteEnum((int) MacVersion); - } - if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { - output.WriteRawTag(64); - output.WriteEnum((int) RegParamsRevision); - } - if (AdrAlgorithmId.Length != 0) { - output.WriteRawTag(74); - output.WriteString(AdrAlgorithmId); - } - if (PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) { - output.WriteRawTag(80); - output.WriteEnum((int) PayloadCodecRuntime); - } - if (PayloadCodecScript.Length != 0) { - output.WriteRawTag(90); - output.WriteString(PayloadCodecScript); - } - if (FlushQueueOnActivate != false) { - output.WriteRawTag(96); - output.WriteBool(FlushQueueOnActivate); - } - if (UplinkInterval != 0) { - output.WriteRawTag(104); - output.WriteUInt32(UplinkInterval); - } - if (DeviceStatusReqInterval != 0) { - output.WriteRawTag(112); - output.WriteUInt32(DeviceStatusReqInterval); - } - if (SupportsOtaa != false) { - output.WriteRawTag(120); - output.WriteBool(SupportsOtaa); - } - if (SupportsClassB != false) { - output.WriteRawTag(128, 1); - output.WriteBool(SupportsClassB); - } - if (SupportsClassC != false) { - output.WriteRawTag(136, 1); - output.WriteBool(SupportsClassC); - } - if (ClassBTimeout != 0) { - output.WriteRawTag(144, 1); - output.WriteUInt32(ClassBTimeout); - } - if (ClassBPingSlotNbK != 0) { - output.WriteRawTag(152, 1); - output.WriteUInt32(ClassBPingSlotNbK); - } - if (ClassBPingSlotDr != 0) { - output.WriteRawTag(160, 1); - output.WriteUInt32(ClassBPingSlotDr); - } - if (ClassBPingSlotFreq != 0) { - output.WriteRawTag(168, 1); - output.WriteUInt32(ClassBPingSlotFreq); - } - if (ClassCTimeout != 0) { - output.WriteRawTag(176, 1); - output.WriteUInt32(ClassCTimeout); - } - if (AbpRx1Delay != 0) { - output.WriteRawTag(184, 1); - output.WriteUInt32(AbpRx1Delay); - } - if (AbpRx1DrOffset != 0) { - output.WriteRawTag(192, 1); - output.WriteUInt32(AbpRx1DrOffset); - } - if (AbpRx2Dr != 0) { - output.WriteRawTag(200, 1); - output.WriteUInt32(AbpRx2Dr); - } - if (AbpRx2Freq != 0) { - output.WriteRawTag(208, 1); - output.WriteUInt32(AbpRx2Freq); - } - tags_.WriteTo(ref output, _map_tags_codec); - measurements_.WriteTo(ref output, _map_measurements_codec); - if (AutoDetectMeasurements != false) { - output.WriteRawTag(232, 1); - output.WriteBool(AutoDetectMeasurements); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (Vendor.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Vendor); - } - if (Firmware.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Firmware); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Region); - } - if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MacVersion); - } - if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RegParamsRevision); - } - if (AdrAlgorithmId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdrAlgorithmId); - } - if (PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PayloadCodecRuntime); - } - if (PayloadCodecScript.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PayloadCodecScript); - } - if (FlushQueueOnActivate != false) { - size += 1 + 1; - } - if (UplinkInterval != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UplinkInterval); - } - if (DeviceStatusReqInterval != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DeviceStatusReqInterval); - } - if (SupportsOtaa != false) { - size += 1 + 1; - } - if (SupportsClassB != false) { - size += 2 + 1; - } - if (SupportsClassC != false) { - size += 2 + 1; - } - if (ClassBTimeout != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassBTimeout); - } - if (ClassBPingSlotNbK != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotNbK); - } - if (ClassBPingSlotDr != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotDr); - } - if (ClassBPingSlotFreq != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotFreq); - } - if (ClassCTimeout != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(ClassCTimeout); - } - if (AbpRx1Delay != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(AbpRx1Delay); - } - if (AbpRx1DrOffset != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(AbpRx1DrOffset); - } - if (AbpRx2Dr != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(AbpRx2Dr); - } - if (AbpRx2Freq != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(AbpRx2Freq); - } - size += tags_.CalculateSize(_map_tags_codec); - size += measurements_.CalculateSize(_map_measurements_codec); - if (AutoDetectMeasurements != false) { - size += 2 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeviceProfileTemplate other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - if (other.Vendor.Length != 0) { - Vendor = other.Vendor; - } - if (other.Firmware.Length != 0) { - Firmware = other.Firmware; - } - if (other.Region != global::Chirpstack.Common.Region.Eu868) { - Region = other.Region; - } - if (other.MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { - MacVersion = other.MacVersion; - } - if (other.RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { - RegParamsRevision = other.RegParamsRevision; - } - if (other.AdrAlgorithmId.Length != 0) { - AdrAlgorithmId = other.AdrAlgorithmId; - } - if (other.PayloadCodecRuntime != global::Chirpstack.Api.CodecRuntime.None) { - PayloadCodecRuntime = other.PayloadCodecRuntime; - } - if (other.PayloadCodecScript.Length != 0) { - PayloadCodecScript = other.PayloadCodecScript; - } - if (other.FlushQueueOnActivate != false) { - FlushQueueOnActivate = other.FlushQueueOnActivate; - } - if (other.UplinkInterval != 0) { - UplinkInterval = other.UplinkInterval; - } - if (other.DeviceStatusReqInterval != 0) { - DeviceStatusReqInterval = other.DeviceStatusReqInterval; - } - if (other.SupportsOtaa != false) { - SupportsOtaa = other.SupportsOtaa; - } - if (other.SupportsClassB != false) { - SupportsClassB = other.SupportsClassB; - } - if (other.SupportsClassC != false) { - SupportsClassC = other.SupportsClassC; - } - if (other.ClassBTimeout != 0) { - ClassBTimeout = other.ClassBTimeout; - } - if (other.ClassBPingSlotNbK != 0) { - ClassBPingSlotNbK = other.ClassBPingSlotNbK; - } - if (other.ClassBPingSlotDr != 0) { - ClassBPingSlotDr = other.ClassBPingSlotDr; - } - if (other.ClassBPingSlotFreq != 0) { - ClassBPingSlotFreq = other.ClassBPingSlotFreq; - } - if (other.ClassCTimeout != 0) { - ClassCTimeout = other.ClassCTimeout; - } - if (other.AbpRx1Delay != 0) { - AbpRx1Delay = other.AbpRx1Delay; - } - if (other.AbpRx1DrOffset != 0) { - AbpRx1DrOffset = other.AbpRx1DrOffset; - } - if (other.AbpRx2Dr != 0) { - AbpRx2Dr = other.AbpRx2Dr; - } - if (other.AbpRx2Freq != 0) { - AbpRx2Freq = other.AbpRx2Freq; - } - tags_.Add(other.tags_); - measurements_.Add(other.measurements_); - if (other.AutoDetectMeasurements != false) { - AutoDetectMeasurements = other.AutoDetectMeasurements; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Description = input.ReadString(); - break; - } - case 34: { - Vendor = input.ReadString(); - break; - } - case 42: { - Firmware = input.ReadString(); - break; - } - case 48: { - Region = (global::Chirpstack.Common.Region) input.ReadEnum(); - break; - } - case 56: { - MacVersion = (global::Chirpstack.Common.MacVersion) input.ReadEnum(); - break; - } - case 64: { - RegParamsRevision = (global::Chirpstack.Common.RegParamsRevision) input.ReadEnum(); - break; - } - case 74: { - AdrAlgorithmId = input.ReadString(); - break; - } - case 80: { - PayloadCodecRuntime = (global::Chirpstack.Api.CodecRuntime) input.ReadEnum(); - break; - } - case 90: { - PayloadCodecScript = input.ReadString(); - break; - } - case 96: { - FlushQueueOnActivate = input.ReadBool(); - break; - } - case 104: { - UplinkInterval = input.ReadUInt32(); - break; - } - case 112: { - DeviceStatusReqInterval = input.ReadUInt32(); - break; - } - case 120: { - SupportsOtaa = input.ReadBool(); - break; - } - case 128: { - SupportsClassB = input.ReadBool(); - break; - } - case 136: { - SupportsClassC = input.ReadBool(); - break; - } - case 144: { - ClassBTimeout = input.ReadUInt32(); - break; - } - case 152: { - ClassBPingSlotNbK = input.ReadUInt32(); - break; - } - case 160: { - ClassBPingSlotDr = input.ReadUInt32(); - break; - } - case 168: { - ClassBPingSlotFreq = input.ReadUInt32(); - break; - } - case 176: { - ClassCTimeout = input.ReadUInt32(); - break; - } - case 184: { - AbpRx1Delay = input.ReadUInt32(); - break; - } - case 192: { - AbpRx1DrOffset = input.ReadUInt32(); - break; - } - case 200: { - AbpRx2Dr = input.ReadUInt32(); - break; - } - case 208: { - AbpRx2Freq = input.ReadUInt32(); - break; - } - case 218: { - tags_.AddEntriesFrom(input, _map_tags_codec); - break; - } - case 226: { - measurements_.AddEntriesFrom(input, _map_measurements_codec); - break; - } - case 232: { - AutoDetectMeasurements = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Description = input.ReadString(); - break; - } - case 34: { - Vendor = input.ReadString(); - break; - } - case 42: { - Firmware = input.ReadString(); - break; - } - case 48: { - Region = (global::Chirpstack.Common.Region) input.ReadEnum(); - break; - } - case 56: { - MacVersion = (global::Chirpstack.Common.MacVersion) input.ReadEnum(); - break; - } - case 64: { - RegParamsRevision = (global::Chirpstack.Common.RegParamsRevision) input.ReadEnum(); - break; - } - case 74: { - AdrAlgorithmId = input.ReadString(); - break; - } - case 80: { - PayloadCodecRuntime = (global::Chirpstack.Api.CodecRuntime) input.ReadEnum(); - break; - } - case 90: { - PayloadCodecScript = input.ReadString(); - break; - } - case 96: { - FlushQueueOnActivate = input.ReadBool(); - break; - } - case 104: { - UplinkInterval = input.ReadUInt32(); - break; - } - case 112: { - DeviceStatusReqInterval = input.ReadUInt32(); - break; - } - case 120: { - SupportsOtaa = input.ReadBool(); - break; - } - case 128: { - SupportsClassB = input.ReadBool(); - break; - } - case 136: { - SupportsClassC = input.ReadBool(); - break; - } - case 144: { - ClassBTimeout = input.ReadUInt32(); - break; - } - case 152: { - ClassBPingSlotNbK = input.ReadUInt32(); - break; - } - case 160: { - ClassBPingSlotDr = input.ReadUInt32(); - break; - } - case 168: { - ClassBPingSlotFreq = input.ReadUInt32(); - break; - } - case 176: { - ClassCTimeout = input.ReadUInt32(); - break; - } - case 184: { - AbpRx1Delay = input.ReadUInt32(); - break; - } - case 192: { - AbpRx1DrOffset = input.ReadUInt32(); - break; - } - case 200: { - AbpRx2Dr = input.ReadUInt32(); - break; - } - case 208: { - AbpRx2Freq = input.ReadUInt32(); - break; - } - case 218: { - tags_.AddEntriesFrom(ref input, _map_tags_codec); - break; - } - case 226: { - measurements_.AddEntriesFrom(ref input, _map_measurements_codec); - break; - } - case 232: { - AutoDetectMeasurements = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeviceProfileTemplateListItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceProfileTemplateListItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileTemplateReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceProfileTemplateListItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceProfileTemplateListItem(DeviceProfileTemplateListItem other) : this() { - id_ = other.id_; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - name_ = other.name_; - vendor_ = other.vendor_; - firmware_ = other.firmware_; - region_ = other.region_; - macVersion_ = other.macVersion_; - regParamsRevision_ = other.regParamsRevision_; - supportsOtaa_ = other.supportsOtaa_; - supportsClassB_ = other.supportsClassB_; - supportsClassC_ = other.supportsClassC_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceProfileTemplateListItem Clone() { - return new DeviceProfileTemplateListItem(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Device-profile template ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 4; - private string name_ = ""; - /// - /// Name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "vendor" field. - public const int VendorFieldNumber = 5; - private string vendor_ = ""; - /// - /// Vendor. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Vendor { - get { return vendor_; } - set { - vendor_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "firmware" field. - public const int FirmwareFieldNumber = 6; - private string firmware_ = ""; - /// - /// Firmware. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Firmware { - get { return firmware_; } - set { - firmware_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 7; - private global::Chirpstack.Common.Region region_ = global::Chirpstack.Common.Region.Eu868; - /// - /// Region. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Region Region { - get { return region_; } - set { - region_ = value; - } - } - - /// Field number for the "mac_version" field. - public const int MacVersionFieldNumber = 8; - private global::Chirpstack.Common.MacVersion macVersion_ = global::Chirpstack.Common.MacVersion.Lorawan100; - /// - /// LoRaWAN mac-version. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.MacVersion MacVersion { - get { return macVersion_; } - set { - macVersion_ = value; - } - } - - /// Field number for the "reg_params_revision" field. - public const int RegParamsRevisionFieldNumber = 9; - private global::Chirpstack.Common.RegParamsRevision regParamsRevision_ = global::Chirpstack.Common.RegParamsRevision.A; - /// - /// Regional parameters revision. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.RegParamsRevision RegParamsRevision { - get { return regParamsRevision_; } - set { - regParamsRevision_ = value; - } - } - - /// Field number for the "supports_otaa" field. - public const int SupportsOtaaFieldNumber = 10; - private bool supportsOtaa_; - /// - /// Supports OTAA. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool SupportsOtaa { - get { return supportsOtaa_; } - set { - supportsOtaa_ = value; - } - } - - /// Field number for the "supports_class_b" field. - public const int SupportsClassBFieldNumber = 11; - private bool supportsClassB_; - /// - /// Supports Class-B. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool SupportsClassB { - get { return supportsClassB_; } - set { - supportsClassB_ = value; - } - } - - /// Field number for the "supports_class_c" field. - public const int SupportsClassCFieldNumber = 12; - private bool supportsClassC_; - /// - /// Supports Class-C. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool SupportsClassC { - get { return supportsClassC_; } - set { - supportsClassC_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeviceProfileTemplateListItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeviceProfileTemplateListItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - if (Name != other.Name) return false; - if (Vendor != other.Vendor) return false; - if (Firmware != other.Firmware) return false; - if (Region != other.Region) return false; - if (MacVersion != other.MacVersion) return false; - if (RegParamsRevision != other.RegParamsRevision) return false; - if (SupportsOtaa != other.SupportsOtaa) return false; - if (SupportsClassB != other.SupportsClassB) return false; - if (SupportsClassC != other.SupportsClassC) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Vendor.Length != 0) hash ^= Vendor.GetHashCode(); - if (Firmware.Length != 0) hash ^= Firmware.GetHashCode(); - if (Region != global::Chirpstack.Common.Region.Eu868) hash ^= Region.GetHashCode(); - if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) hash ^= MacVersion.GetHashCode(); - if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) hash ^= RegParamsRevision.GetHashCode(); - if (SupportsOtaa != false) hash ^= SupportsOtaa.GetHashCode(); - if (SupportsClassB != false) hash ^= SupportsClassB.GetHashCode(); - if (SupportsClassC != false) hash ^= SupportsClassC.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (Vendor.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Vendor); - } - if (Firmware.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Firmware); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - output.WriteRawTag(56); - output.WriteEnum((int) Region); - } - if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { - output.WriteRawTag(64); - output.WriteEnum((int) MacVersion); - } - if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { - output.WriteRawTag(72); - output.WriteEnum((int) RegParamsRevision); - } - if (SupportsOtaa != false) { - output.WriteRawTag(80); - output.WriteBool(SupportsOtaa); - } - if (SupportsClassB != false) { - output.WriteRawTag(88); - output.WriteBool(SupportsClassB); - } - if (SupportsClassC != false) { - output.WriteRawTag(96); - output.WriteBool(SupportsClassC); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (Vendor.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Vendor); - } - if (Firmware.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Firmware); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - output.WriteRawTag(56); - output.WriteEnum((int) Region); - } - if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { - output.WriteRawTag(64); - output.WriteEnum((int) MacVersion); - } - if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { - output.WriteRawTag(72); - output.WriteEnum((int) RegParamsRevision); - } - if (SupportsOtaa != false) { - output.WriteRawTag(80); - output.WriteBool(SupportsOtaa); - } - if (SupportsClassB != false) { - output.WriteRawTag(88); - output.WriteBool(SupportsClassB); - } - if (SupportsClassC != false) { - output.WriteRawTag(96); - output.WriteBool(SupportsClassC); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Vendor.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Vendor); - } - if (Firmware.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Firmware); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Region); - } - if (MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MacVersion); - } - if (RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RegParamsRevision); - } - if (SupportsOtaa != false) { - size += 1 + 1; - } - if (SupportsClassB != false) { - size += 1 + 1; - } - if (SupportsClassC != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeviceProfileTemplateListItem other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Vendor.Length != 0) { - Vendor = other.Vendor; - } - if (other.Firmware.Length != 0) { - Firmware = other.Firmware; - } - if (other.Region != global::Chirpstack.Common.Region.Eu868) { - Region = other.Region; - } - if (other.MacVersion != global::Chirpstack.Common.MacVersion.Lorawan100) { - MacVersion = other.MacVersion; - } - if (other.RegParamsRevision != global::Chirpstack.Common.RegParamsRevision.A) { - RegParamsRevision = other.RegParamsRevision; - } - if (other.SupportsOtaa != false) { - SupportsOtaa = other.SupportsOtaa; - } - if (other.SupportsClassB != false) { - SupportsClassB = other.SupportsClassB; - } - if (other.SupportsClassC != false) { - SupportsClassC = other.SupportsClassC; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 42: { - Vendor = input.ReadString(); - break; - } - case 50: { - Firmware = input.ReadString(); - break; - } - case 56: { - Region = (global::Chirpstack.Common.Region) input.ReadEnum(); - break; - } - case 64: { - MacVersion = (global::Chirpstack.Common.MacVersion) input.ReadEnum(); - break; - } - case 72: { - RegParamsRevision = (global::Chirpstack.Common.RegParamsRevision) input.ReadEnum(); - break; - } - case 80: { - SupportsOtaa = input.ReadBool(); - break; - } - case 88: { - SupportsClassB = input.ReadBool(); - break; - } - case 96: { - SupportsClassC = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 42: { - Vendor = input.ReadString(); - break; - } - case 50: { - Firmware = input.ReadString(); - break; - } - case 56: { - Region = (global::Chirpstack.Common.Region) input.ReadEnum(); - break; - } - case 64: { - MacVersion = (global::Chirpstack.Common.MacVersion) input.ReadEnum(); - break; - } - case 72: { - RegParamsRevision = (global::Chirpstack.Common.RegParamsRevision) input.ReadEnum(); - break; - } - case 80: { - SupportsOtaa = input.ReadBool(); - break; - } - case 88: { - SupportsClassB = input.ReadBool(); - break; - } - case 96: { - SupportsClassC = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateDeviceProfileTemplateRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateDeviceProfileTemplateRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileTemplateReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateDeviceProfileTemplateRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateDeviceProfileTemplateRequest(CreateDeviceProfileTemplateRequest other) : this() { - deviceProfileTemplate_ = other.deviceProfileTemplate_ != null ? other.deviceProfileTemplate_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateDeviceProfileTemplateRequest Clone() { - return new CreateDeviceProfileTemplateRequest(this); - } - - /// Field number for the "device_profile_template" field. - public const int DeviceProfileTemplateFieldNumber = 1; - private global::Chirpstack.Api.DeviceProfileTemplate deviceProfileTemplate_; - /// - /// Object to create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.DeviceProfileTemplate DeviceProfileTemplate { - get { return deviceProfileTemplate_; } - set { - deviceProfileTemplate_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateDeviceProfileTemplateRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateDeviceProfileTemplateRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(DeviceProfileTemplate, other.DeviceProfileTemplate)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (deviceProfileTemplate_ != null) hash ^= DeviceProfileTemplate.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (deviceProfileTemplate_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceProfileTemplate); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (deviceProfileTemplate_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceProfileTemplate); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (deviceProfileTemplate_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceProfileTemplate); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateDeviceProfileTemplateRequest other) { - if (other == null) { - return; - } - if (other.deviceProfileTemplate_ != null) { - if (deviceProfileTemplate_ == null) { - DeviceProfileTemplate = new global::Chirpstack.Api.DeviceProfileTemplate(); - } - DeviceProfileTemplate.MergeFrom(other.DeviceProfileTemplate); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (deviceProfileTemplate_ == null) { - DeviceProfileTemplate = new global::Chirpstack.Api.DeviceProfileTemplate(); - } - input.ReadMessage(DeviceProfileTemplate); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (deviceProfileTemplate_ == null) { - DeviceProfileTemplate = new global::Chirpstack.Api.DeviceProfileTemplate(); - } - input.ReadMessage(DeviceProfileTemplate); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDeviceProfileTemplateRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceProfileTemplateRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileTemplateReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceProfileTemplateRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceProfileTemplateRequest(GetDeviceProfileTemplateRequest other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceProfileTemplateRequest Clone() { - return new GetDeviceProfileTemplateRequest(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDeviceProfileTemplateRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeviceProfileTemplateRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeviceProfileTemplateRequest other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDeviceProfileTemplateResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceProfileTemplateResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileTemplateReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceProfileTemplateResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceProfileTemplateResponse(GetDeviceProfileTemplateResponse other) : this() { - deviceProfileTemplate_ = other.deviceProfileTemplate_ != null ? other.deviceProfileTemplate_.Clone() : null; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDeviceProfileTemplateResponse Clone() { - return new GetDeviceProfileTemplateResponse(this); - } - - /// Field number for the "device_profile_template" field. - public const int DeviceProfileTemplateFieldNumber = 1; - private global::Chirpstack.Api.DeviceProfileTemplate deviceProfileTemplate_; - /// - /// Device-profile template object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.DeviceProfileTemplate DeviceProfileTemplate { - get { return deviceProfileTemplate_; } - set { - deviceProfileTemplate_ = value; - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDeviceProfileTemplateResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeviceProfileTemplateResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(DeviceProfileTemplate, other.DeviceProfileTemplate)) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (deviceProfileTemplate_ != null) hash ^= DeviceProfileTemplate.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (deviceProfileTemplate_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceProfileTemplate); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (deviceProfileTemplate_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceProfileTemplate); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (deviceProfileTemplate_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceProfileTemplate); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeviceProfileTemplateResponse other) { - if (other == null) { - return; - } - if (other.deviceProfileTemplate_ != null) { - if (deviceProfileTemplate_ == null) { - DeviceProfileTemplate = new global::Chirpstack.Api.DeviceProfileTemplate(); - } - DeviceProfileTemplate.MergeFrom(other.DeviceProfileTemplate); - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (deviceProfileTemplate_ == null) { - DeviceProfileTemplate = new global::Chirpstack.Api.DeviceProfileTemplate(); - } - input.ReadMessage(DeviceProfileTemplate); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (deviceProfileTemplate_ == null) { - DeviceProfileTemplate = new global::Chirpstack.Api.DeviceProfileTemplate(); - } - input.ReadMessage(DeviceProfileTemplate); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateDeviceProfileTemplateRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateDeviceProfileTemplateRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileTemplateReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateDeviceProfileTemplateRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateDeviceProfileTemplateRequest(UpdateDeviceProfileTemplateRequest other) : this() { - deviceProfileTemplate_ = other.deviceProfileTemplate_ != null ? other.deviceProfileTemplate_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateDeviceProfileTemplateRequest Clone() { - return new UpdateDeviceProfileTemplateRequest(this); - } - - /// Field number for the "device_profile_template" field. - public const int DeviceProfileTemplateFieldNumber = 1; - private global::Chirpstack.Api.DeviceProfileTemplate deviceProfileTemplate_; - /// - /// Object to update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.DeviceProfileTemplate DeviceProfileTemplate { - get { return deviceProfileTemplate_; } - set { - deviceProfileTemplate_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateDeviceProfileTemplateRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateDeviceProfileTemplateRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(DeviceProfileTemplate, other.DeviceProfileTemplate)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (deviceProfileTemplate_ != null) hash ^= DeviceProfileTemplate.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (deviceProfileTemplate_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceProfileTemplate); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (deviceProfileTemplate_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DeviceProfileTemplate); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (deviceProfileTemplate_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceProfileTemplate); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateDeviceProfileTemplateRequest other) { - if (other == null) { - return; - } - if (other.deviceProfileTemplate_ != null) { - if (deviceProfileTemplate_ == null) { - DeviceProfileTemplate = new global::Chirpstack.Api.DeviceProfileTemplate(); - } - DeviceProfileTemplate.MergeFrom(other.DeviceProfileTemplate); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (deviceProfileTemplate_ == null) { - DeviceProfileTemplate = new global::Chirpstack.Api.DeviceProfileTemplate(); - } - input.ReadMessage(DeviceProfileTemplate); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (deviceProfileTemplate_ == null) { - DeviceProfileTemplate = new global::Chirpstack.Api.DeviceProfileTemplate(); - } - input.ReadMessage(DeviceProfileTemplate); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteDeviceProfileTemplateRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteDeviceProfileTemplateRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileTemplateReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteDeviceProfileTemplateRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteDeviceProfileTemplateRequest(DeleteDeviceProfileTemplateRequest other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteDeviceProfileTemplateRequest Clone() { - return new DeleteDeviceProfileTemplateRequest(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteDeviceProfileTemplateRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteDeviceProfileTemplateRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteDeviceProfileTemplateRequest other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListDeviceProfileTemplatesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDeviceProfileTemplatesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileTemplateReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDeviceProfileTemplatesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDeviceProfileTemplatesRequest(ListDeviceProfileTemplatesRequest other) : this() { - limit_ = other.limit_; - offset_ = other.offset_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDeviceProfileTemplatesRequest Clone() { - return new ListDeviceProfileTemplatesRequest(this); - } - - /// Field number for the "limit" field. - public const int LimitFieldNumber = 1; - private uint limit_; - /// - /// Max number of device-profile templates to return in the result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Limit { - get { return limit_; } - set { - limit_ = value; - } - } - - /// Field number for the "offset" field. - public const int OffsetFieldNumber = 2; - private uint offset_; - /// - /// Offset in the result-set (for pagination). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Offset { - get { return offset_; } - set { - offset_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListDeviceProfileTemplatesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListDeviceProfileTemplatesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Limit != other.Limit) return false; - if (Offset != other.Offset) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Limit != 0) hash ^= Limit.GetHashCode(); - if (Offset != 0) hash ^= Offset.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Limit != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); - } - if (Offset != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListDeviceProfileTemplatesRequest other) { - if (other == null) { - return; - } - if (other.Limit != 0) { - Limit = other.Limit; - } - if (other.Offset != 0) { - Offset = other.Offset; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListDeviceProfileTemplatesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListDeviceProfileTemplatesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.DeviceProfileTemplateReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDeviceProfileTemplatesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDeviceProfileTemplatesResponse(ListDeviceProfileTemplatesResponse other) : this() { - totalCount_ = other.totalCount_; - result_ = other.result_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListDeviceProfileTemplatesResponse Clone() { - return new ListDeviceProfileTemplatesResponse(this); - } - - /// Field number for the "total_count" field. - public const int TotalCountFieldNumber = 1; - private uint totalCount_; - /// - /// Total number of device-profile templates. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TotalCount { - get { return totalCount_; } - set { - totalCount_ = value; - } - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_result_codec - = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.DeviceProfileTemplateListItem.Parser); - private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); - /// - /// Result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Result { - get { return result_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListDeviceProfileTemplatesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListDeviceProfileTemplatesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TotalCount != other.TotalCount) return false; - if(!result_.Equals(other.result_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TotalCount != 0) hash ^= TotalCount.GetHashCode(); - hash ^= result_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(ref output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TotalCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); - } - size += result_.CalculateSize(_repeated_result_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListDeviceProfileTemplatesResponse other) { - if (other == null) { - return; - } - if (other.TotalCount != 0) { - TotalCount = other.TotalCount; - } - result_.Add(other.result_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(input, _repeated_result_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(ref input, _repeated_result_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/DeviceProfileTemplateGrpc.cs b/api/csharp/Chirpstack/api/DeviceProfileTemplateGrpc.cs deleted file mode 100644 index d46eafe0..00000000 --- a/api/csharp/Chirpstack/api/DeviceProfileTemplateGrpc.cs +++ /dev/null @@ -1,484 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/device_profile_template.proto -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Chirpstack.Api { - /// - /// DeviceProfileTemplateService is the service providing API methods for managing device-profile templates. - /// - public static partial class DeviceProfileTemplateService - { - static readonly string __ServiceName = "api.DeviceProfileTemplateService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateDeviceProfileTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateDeviceProfileTemplateRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDeviceProfileTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceProfileTemplateRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDeviceProfileTemplateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDeviceProfileTemplateResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateDeviceProfileTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteDeviceProfileTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListDeviceProfileTemplatesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListDeviceProfileTemplatesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListDeviceProfileTemplatesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListDeviceProfileTemplatesResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Create = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Create", - __Marshaller_api_CreateDeviceProfileTemplateRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Get = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Get", - __Marshaller_api_GetDeviceProfileTemplateRequest, - __Marshaller_api_GetDeviceProfileTemplateResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Update = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Update", - __Marshaller_api_UpdateDeviceProfileTemplateRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Delete = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Delete", - __Marshaller_api_DeleteDeviceProfileTemplateRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_List = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "List", - __Marshaller_api_ListDeviceProfileTemplatesRequest, - __Marshaller_api_ListDeviceProfileTemplatesResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Chirpstack.Api.DeviceProfileTemplateReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of DeviceProfileTemplateService - [grpc::BindServiceMethod(typeof(DeviceProfileTemplateService), "BindService")] - public abstract partial class DeviceProfileTemplateServiceBase - { - /// - /// Create the given device-profile template. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Create(global::Chirpstack.Api.CreateDeviceProfileTemplateRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get the device-profile template for the given ID. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Get(global::Chirpstack.Api.GetDeviceProfileTemplateRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update the given device-profile template. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Update(global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete the device-profile template with the given ID. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Delete(global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// List the available device-profile templates. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task List(global::Chirpstack.Api.ListDeviceProfileTemplatesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for DeviceProfileTemplateService - public partial class DeviceProfileTemplateServiceClient : grpc::ClientBase - { - /// Creates a new client for DeviceProfileTemplateService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public DeviceProfileTemplateServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for DeviceProfileTemplateService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public DeviceProfileTemplateServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected DeviceProfileTemplateServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected DeviceProfileTemplateServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Create the given device-profile template. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Create(global::Chirpstack.Api.CreateDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Create(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create the given device-profile template. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Create(global::Chirpstack.Api.CreateDeviceProfileTemplateRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); - } - /// - /// Create the given device-profile template. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create the given device-profile template. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateDeviceProfileTemplateRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); - } - /// - /// Get the device-profile template for the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDeviceProfileTemplateResponse Get(global::Chirpstack.Api.GetDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Get(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the device-profile template for the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDeviceProfileTemplateResponse Get(global::Chirpstack.Api.GetDeviceProfileTemplateRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); - } - /// - /// Get the device-profile template for the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the device-profile template for the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetDeviceProfileTemplateRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); - } - /// - /// Update the given device-profile template. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Update(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the given device-profile template. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); - } - /// - /// Update the given device-profile template. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the given device-profile template. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateDeviceProfileTemplateRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); - } - /// - /// Delete the device-profile template with the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Delete(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the device-profile template with the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); - } - /// - /// Delete the device-profile template with the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the device-profile template with the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteDeviceProfileTemplateRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); - } - /// - /// List the available device-profile templates. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListDeviceProfileTemplatesResponse List(global::Chirpstack.Api.ListDeviceProfileTemplatesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return List(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// List the available device-profile templates. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListDeviceProfileTemplatesResponse List(global::Chirpstack.Api.ListDeviceProfileTemplatesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); - } - /// - /// List the available device-profile templates. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListDeviceProfileTemplatesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// List the available device-profile templates. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListDeviceProfileTemplatesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override DeviceProfileTemplateServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new DeviceProfileTemplateServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(DeviceProfileTemplateServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_Create, serviceImpl.Create) - .AddMethod(__Method_Get, serviceImpl.Get) - .AddMethod(__Method_Update, serviceImpl.Update) - .AddMethod(__Method_Delete, serviceImpl.Delete) - .AddMethod(__Method_List, serviceImpl.List).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, DeviceProfileTemplateServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Create)); - serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Get)); - serviceBinder.AddMethod(__Method_Update, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Update)); - serviceBinder.AddMethod(__Method_Delete, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Delete)); - serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); - } - - } -} -#endregion diff --git a/api/csharp/Chirpstack/api/Gateway.cs b/api/csharp/Chirpstack/api/Gateway.cs deleted file mode 100644 index 5353c800..00000000 --- a/api/csharp/Chirpstack/api/Gateway.cs +++ /dev/null @@ -1,4227 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/gateway.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Chirpstack.Api { - - /// Holder for reflection information generated from api/gateway.proto - public static partial class GatewayReflection { - - #region Descriptor - /// File descriptor for api/gateway.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GatewayReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ChFhcGkvZ2F0ZXdheS5wcm90bxIDYXBpGhxnb29nbGUvYXBpL2Fubm90YXRp", - "b25zLnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvGhtn", - "b29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8aE2NvbW1vbi9jb21tb24ucHJv", - "dG8iwQIKB0dhdGV3YXkSEgoKZ2F0ZXdheV9pZBgBIAEoCRIMCgRuYW1lGAIg", - "ASgJEhMKC2Rlc2NyaXB0aW9uGAMgASgJEiIKCGxvY2F0aW9uGAQgASgLMhAu", - "Y29tbW9uLkxvY2F0aW9uEhEKCXRlbmFudF9pZBgFIAEoCRIkCgR0YWdzGAYg", - "AygLMhYuYXBpLkdhdGV3YXkuVGFnc0VudHJ5EiwKCG1ldGFkYXRhGAcgAygL", - "MhouYXBpLkdhdGV3YXkuTWV0YWRhdGFFbnRyeRIWCg5zdGF0c19pbnRlcnZh", - "bBgIIAEoDRorCglUYWdzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIg", - "ASgJOgI4ARovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1", - "ZRgCIAEoCToCOAEioAMKD0dhdGV3YXlMaXN0SXRlbRIRCgl0ZW5hbnRfaWQY", - "ASABKAkSEgoKZ2F0ZXdheV9pZBgCIAEoCRIMCgRuYW1lGAMgASgJEhMKC2Rl", - "c2NyaXB0aW9uGAQgASgJEiIKCGxvY2F0aW9uGAUgASgLMhAuY29tbW9uLkxv", - "Y2F0aW9uEjgKCnByb3BlcnRpZXMYBiADKAsyJC5hcGkuR2F0ZXdheUxpc3RJ", - "dGVtLlByb3BlcnRpZXNFbnRyeRIuCgpjcmVhdGVkX2F0GAcgASgLMhouZ29v", - "Z2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAggASgLMhou", - "Z29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIwCgxsYXN0X3NlZW5fYXQYCSAB", - "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEiAKBXN0YXRlGAogASgO", - "MhEuYXBpLkdhdGV3YXlTdGF0ZRoxCg9Qcm9wZXJ0aWVzRW50cnkSCwoDa2V5", - "GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASI1ChRDcmVhdGVHYXRld2F5UmVx", - "dWVzdBIdCgdnYXRld2F5GAEgASgLMgwuYXBpLkdhdGV3YXkiJwoRR2V0R2F0", - "ZXdheVJlcXVlc3QSEgoKZ2F0ZXdheV9pZBgBIAEoCSLFAQoSR2V0R2F0ZXdh", - "eVJlc3BvbnNlEh0KB2dhdGV3YXkYASABKAsyDC5hcGkuR2F0ZXdheRIuCgpj", - "cmVhdGVkX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIu", - "Cgp1cGRhdGVkX2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt", - "cBIwCgxsYXN0X3NlZW5fYXQYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGlt", - "ZXN0YW1wIjUKFFVwZGF0ZUdhdGV3YXlSZXF1ZXN0Eh0KB2dhdGV3YXkYASAB", - "KAsyDC5hcGkuR2F0ZXdheSIqChREZWxldGVHYXRld2F5UmVxdWVzdBISCgpn", - "YXRld2F5X2lkGAEgASgJInMKE0xpc3RHYXRld2F5c1JlcXVlc3QSDQoFbGlt", - "aXQYASABKA0SDgoGb2Zmc2V0GAIgASgNEg4KBnNlYXJjaBgDIAEoCRIRCgl0", - "ZW5hbnRfaWQYBCABKAkSGgoSbXVsdGljYXN0X2dyb3VwX2lkGAUgASgJIlEK", - "FExpc3RHYXRld2F5c1Jlc3BvbnNlEhMKC3RvdGFsX2NvdW50GAEgASgNEiQK", - "BnJlc3VsdBgCIAMoCzIULmFwaS5HYXRld2F5TGlzdEl0ZW0iPQonR2VuZXJh", - "dGVHYXRld2F5Q2xpZW50Q2VydGlmaWNhdGVSZXF1ZXN0EhIKCmdhdGV3YXlf", - "aWQYASABKAkijgEKKEdlbmVyYXRlR2F0ZXdheUNsaWVudENlcnRpZmljYXRl", - "UmVzcG9uc2USEAoIdGxzX2NlcnQYASABKAkSDwoHdGxzX2tleRgCIAEoCRIP", - "CgdjYV9jZXJ0GAMgASgJEi4KCmV4cGlyZXNfYXQYBCABKAsyGi5nb29nbGUu", - "cHJvdG9idWYuVGltZXN0YW1wIqwBChhHZXRHYXRld2F5TWV0cmljc1JlcXVl", - "c3QSEgoKZ2F0ZXdheV9pZBgBIAEoCRIpCgVzdGFydBgCIAEoCzIaLmdvb2ds", - "ZS5wcm90b2J1Zi5UaW1lc3RhbXASJwoDZW5kGAMgASgLMhouZ29vZ2xlLnBy", - "b3RvYnVmLlRpbWVzdGFtcBIoCgthZ2dyZWdhdGlvbhgEIAEoDjITLmNvbW1v", - "bi5BZ2dyZWdhdGlvbiLCAgoZR2V0R2F0ZXdheU1ldHJpY3NSZXNwb25zZRIi", - "CgpyeF9wYWNrZXRzGAEgASgLMg4uY29tbW9uLk1ldHJpYxIiCgp0eF9wYWNr", - "ZXRzGAIgASgLMg4uY29tbW9uLk1ldHJpYxIrChN0eF9wYWNrZXRzX3Blcl9m", - "cmVxGAMgASgLMg4uY29tbW9uLk1ldHJpYxIrChNyeF9wYWNrZXRzX3Blcl9m", - "cmVxGAQgASgLMg4uY29tbW9uLk1ldHJpYxIpChF0eF9wYWNrZXRzX3Blcl9k", - "chgFIAEoCzIOLmNvbW1vbi5NZXRyaWMSKQoRcnhfcGFja2V0c19wZXJfZHIY", - "BiABKAsyDi5jb21tb24uTWV0cmljEi0KFXR4X3BhY2tldHNfcGVyX3N0YXR1", - "cxgHIAEoCzIOLmNvbW1vbi5NZXRyaWMqNwoMR2F0ZXdheVN0YXRlEg4KCk5F", - "VkVSX1NFRU4QABIKCgZPTkxJTkUQARILCgdPRkZMSU5FEAIykQYKDkdhdGV3", - "YXlTZXJ2aWNlElUKBkNyZWF0ZRIZLmFwaS5DcmVhdGVHYXRld2F5UmVxdWVz", - "dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIYgtPkkwISIg0vYXBpL2dhdGV3", - "YXlzOgEqEloKA0dldBIWLmFwaS5HZXRHYXRld2F5UmVxdWVzdBoXLmFwaS5H", - "ZXRHYXRld2F5UmVzcG9uc2UiIoLT5JMCHBIaL2FwaS9nYXRld2F5cy97Z2F0", - "ZXdheV9pZH0SagoGVXBkYXRlEhkuYXBpLlVwZGF0ZUdhdGV3YXlSZXF1ZXN0", - "GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Ii2C0+STAicaIi9hcGkvZ2F0ZXdh", - "eXMve2dhdGV3YXkuZ2F0ZXdheV9pZH06ASoSXwoGRGVsZXRlEhkuYXBpLkRl", - "bGV0ZUdhdGV3YXlSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IiKC", - "0+STAhwqGi9hcGkvZ2F0ZXdheXMve2dhdGV3YXlfaWR9ElIKBExpc3QSGC5h", - "cGkuTGlzdEdhdGV3YXlzUmVxdWVzdBoZLmFwaS5MaXN0R2F0ZXdheXNSZXNw", - "b25zZSIVgtPkkwIPEg0vYXBpL2dhdGV3YXlzErEBChlHZW5lcmF0ZUNsaWVu", - "dENlcnRpZmljYXRlEiwuYXBpLkdlbmVyYXRlR2F0ZXdheUNsaWVudENlcnRp", - "ZmljYXRlUmVxdWVzdBotLmFwaS5HZW5lcmF0ZUdhdGV3YXlDbGllbnRDZXJ0", - "aWZpY2F0ZVJlc3BvbnNlIjeC0+STAjEiLy9hcGkvZ2F0ZXdheXMve2dhdGV3", - "YXlfaWR9L2dlbmVyYXRlLWNlcnRpZmljYXRlEncKCkdldE1ldHJpY3MSHS5h", - "cGkuR2V0R2F0ZXdheU1ldHJpY3NSZXF1ZXN0Gh4uYXBpLkdldEdhdGV3YXlN", - "ZXRyaWNzUmVzcG9uc2UiKoLT5JMCJBIiL2FwaS9nYXRld2F5cy97Z2F0ZXdh", - "eV9pZH0vbWV0cmljc0JkChFpby5jaGlycHN0YWNrLmFwaUIMR2F0ZXdheVBy", - "b3RvUAFaLmdpdGh1Yi5jb20vY2hpcnBzdGFjay9jaGlycHN0YWNrL2FwaS9n", - "by92NC9hcGmqAg5DaGlycHN0YWNrLkFwaWIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.Api.GatewayState), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.Gateway), global::Chirpstack.Api.Gateway.Parser, new[]{ "GatewayId", "Name", "Description", "Location", "TenantId", "Tags", "Metadata", "StatsInterval" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GatewayListItem), global::Chirpstack.Api.GatewayListItem.Parser, new[]{ "TenantId", "GatewayId", "Name", "Description", "Location", "Properties", "CreatedAt", "UpdatedAt", "LastSeenAt", "State" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateGatewayRequest), global::Chirpstack.Api.CreateGatewayRequest.Parser, new[]{ "Gateway" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetGatewayRequest), global::Chirpstack.Api.GetGatewayRequest.Parser, new[]{ "GatewayId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetGatewayResponse), global::Chirpstack.Api.GetGatewayResponse.Parser, new[]{ "Gateway", "CreatedAt", "UpdatedAt", "LastSeenAt" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateGatewayRequest), global::Chirpstack.Api.UpdateGatewayRequest.Parser, new[]{ "Gateway" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteGatewayRequest), global::Chirpstack.Api.DeleteGatewayRequest.Parser, new[]{ "GatewayId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListGatewaysRequest), global::Chirpstack.Api.ListGatewaysRequest.Parser, new[]{ "Limit", "Offset", "Search", "TenantId", "MulticastGroupId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListGatewaysResponse), global::Chirpstack.Api.ListGatewaysResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GenerateGatewayClientCertificateRequest), global::Chirpstack.Api.GenerateGatewayClientCertificateRequest.Parser, new[]{ "GatewayId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GenerateGatewayClientCertificateResponse), global::Chirpstack.Api.GenerateGatewayClientCertificateResponse.Parser, new[]{ "TlsCert", "TlsKey", "CaCert", "ExpiresAt" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetGatewayMetricsRequest), global::Chirpstack.Api.GetGatewayMetricsRequest.Parser, new[]{ "GatewayId", "Start", "End", "Aggregation" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetGatewayMetricsResponse), global::Chirpstack.Api.GetGatewayMetricsResponse.Parser, new[]{ "RxPackets", "TxPackets", "TxPacketsPerFreq", "RxPacketsPerFreq", "TxPacketsPerDr", "RxPacketsPerDr", "TxPacketsPerStatus" }, null, null, null, null) - })); - } - #endregion - - } - #region Enums - public enum GatewayState { - /// - /// The gateway has never sent any stats. - /// - [pbr::OriginalName("NEVER_SEEN")] NeverSeen = 0, - /// - /// Online. - /// - [pbr::OriginalName("ONLINE")] Online = 1, - /// - /// Offline. - /// - [pbr::OriginalName("OFFLINE")] Offline = 2, - } - - #endregion - - #region Messages - public sealed partial class Gateway : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Gateway()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.GatewayReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Gateway() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Gateway(Gateway other) : this() { - gatewayId_ = other.gatewayId_; - name_ = other.name_; - description_ = other.description_; - location_ = other.location_ != null ? other.location_.Clone() : null; - tenantId_ = other.tenantId_; - tags_ = other.tags_.Clone(); - metadata_ = other.metadata_.Clone(); - statsInterval_ = other.statsInterval_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Gateway Clone() { - return new Gateway(this); - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 1; - private string gatewayId_ = ""; - /// - /// Gateway ID (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - /// - /// Name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 3; - private string description_ = ""; - /// - /// Description. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "location" field. - public const int LocationFieldNumber = 4; - private global::Chirpstack.Common.Location location_; - /// - /// Gateway location. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Location Location { - get { return location_; } - set { - location_ = value; - } - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 5; - private string tenantId_ = ""; - /// - /// Tenant ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tags" field. - public const int TagsFieldNumber = 6; - private static readonly pbc::MapField.Codec _map_tags_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 50); - private readonly pbc::MapField tags_ = new pbc::MapField(); - /// - /// Tags. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Tags { - get { return tags_; } - } - - /// Field number for the "metadata" field. - public const int MetadataFieldNumber = 7; - private static readonly pbc::MapField.Codec _map_metadata_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 58); - private readonly pbc::MapField metadata_ = new pbc::MapField(); - /// - /// Metadata (provided by the gateway). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Metadata { - get { return metadata_; } - } - - /// Field number for the "stats_interval" field. - public const int StatsIntervalFieldNumber = 8; - private uint statsInterval_; - /// - /// Stats interval (seconds). - /// This defines the expected interval in which the gateway sends its - /// statistics. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint StatsInterval { - get { return statsInterval_; } - set { - statsInterval_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Gateway); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Gateway other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GatewayId != other.GatewayId) return false; - if (Name != other.Name) return false; - if (Description != other.Description) return false; - if (!object.Equals(Location, other.Location)) return false; - if (TenantId != other.TenantId) return false; - if (!Tags.Equals(other.Tags)) return false; - if (!Metadata.Equals(other.Metadata)) return false; - if (StatsInterval != other.StatsInterval) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (location_ != null) hash ^= Location.GetHashCode(); - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - hash ^= Tags.GetHashCode(); - hash ^= Metadata.GetHashCode(); - if (StatsInterval != 0) hash ^= StatsInterval.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (GatewayId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(GatewayId); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description); - } - if (location_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Location); - } - if (TenantId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(TenantId); - } - tags_.WriteTo(output, _map_tags_codec); - metadata_.WriteTo(output, _map_metadata_codec); - if (StatsInterval != 0) { - output.WriteRawTag(64); - output.WriteUInt32(StatsInterval); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (GatewayId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(GatewayId); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description); - } - if (location_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Location); - } - if (TenantId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(TenantId); - } - tags_.WriteTo(ref output, _map_tags_codec); - metadata_.WriteTo(ref output, _map_metadata_codec); - if (StatsInterval != 0) { - output.WriteRawTag(64); - output.WriteUInt32(StatsInterval); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (location_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); - } - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - size += tags_.CalculateSize(_map_tags_codec); - size += metadata_.CalculateSize(_map_metadata_codec); - if (StatsInterval != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StatsInterval); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Gateway other) { - if (other == null) { - return; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - if (other.location_ != null) { - if (location_ == null) { - Location = new global::Chirpstack.Common.Location(); - } - Location.MergeFrom(other.Location); - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - tags_.Add(other.tags_); - metadata_.Add(other.metadata_); - if (other.StatsInterval != 0) { - StatsInterval = other.StatsInterval; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - GatewayId = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Description = input.ReadString(); - break; - } - case 34: { - if (location_ == null) { - Location = new global::Chirpstack.Common.Location(); - } - input.ReadMessage(Location); - break; - } - case 42: { - TenantId = input.ReadString(); - break; - } - case 50: { - tags_.AddEntriesFrom(input, _map_tags_codec); - break; - } - case 58: { - metadata_.AddEntriesFrom(input, _map_metadata_codec); - break; - } - case 64: { - StatsInterval = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - GatewayId = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Description = input.ReadString(); - break; - } - case 34: { - if (location_ == null) { - Location = new global::Chirpstack.Common.Location(); - } - input.ReadMessage(Location); - break; - } - case 42: { - TenantId = input.ReadString(); - break; - } - case 50: { - tags_.AddEntriesFrom(ref input, _map_tags_codec); - break; - } - case 58: { - metadata_.AddEntriesFrom(ref input, _map_metadata_codec); - break; - } - case 64: { - StatsInterval = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GatewayListItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GatewayListItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.GatewayReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GatewayListItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GatewayListItem(GatewayListItem other) : this() { - tenantId_ = other.tenantId_; - gatewayId_ = other.gatewayId_; - name_ = other.name_; - description_ = other.description_; - location_ = other.location_ != null ? other.location_.Clone() : null; - properties_ = other.properties_.Clone(); - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - lastSeenAt_ = other.lastSeenAt_ != null ? other.lastSeenAt_.Clone() : null; - state_ = other.state_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GatewayListItem Clone() { - return new GatewayListItem(this); - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 1; - private string tenantId_ = ""; - /// - /// Tenant ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 2; - private string gatewayId_ = ""; - /// - /// Gateway ID (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 3; - private string name_ = ""; - /// - /// Name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 4; - private string description_ = ""; - /// - /// Description. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "location" field. - public const int LocationFieldNumber = 5; - private global::Chirpstack.Common.Location location_; - /// - /// Location. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Location Location { - get { return location_; } - set { - location_ = value; - } - } - - /// Field number for the "properties" field. - public const int PropertiesFieldNumber = 6; - private static readonly pbc::MapField.Codec _map_properties_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 50); - private readonly pbc::MapField properties_ = new pbc::MapField(); - /// - /// Gateway properties. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Properties { - get { return properties_; } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 7; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 8; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - /// Field number for the "last_seen_at" field. - public const int LastSeenAtFieldNumber = 9; - private global::Google.Protobuf.WellKnownTypes.Timestamp lastSeenAt_; - /// - /// Last seen at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp LastSeenAt { - get { return lastSeenAt_; } - set { - lastSeenAt_ = value; - } - } - - /// Field number for the "state" field. - public const int StateFieldNumber = 10; - private global::Chirpstack.Api.GatewayState state_ = global::Chirpstack.Api.GatewayState.NeverSeen; - /// - /// Gateway state. - /// Please note that the state of the gateway is driven by the stats - /// packages that are sent by the gateway. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.GatewayState State { - get { return state_; } - set { - state_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GatewayListItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GatewayListItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TenantId != other.TenantId) return false; - if (GatewayId != other.GatewayId) return false; - if (Name != other.Name) return false; - if (Description != other.Description) return false; - if (!object.Equals(Location, other.Location)) return false; - if (!Properties.Equals(other.Properties)) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - if (!object.Equals(LastSeenAt, other.LastSeenAt)) return false; - if (State != other.State) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (location_ != null) hash ^= Location.GetHashCode(); - hash ^= Properties.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (lastSeenAt_ != null) hash ^= LastSeenAt.GetHashCode(); - if (State != global::Chirpstack.Api.GatewayState.NeverSeen) hash ^= State.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(GatewayId); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Description); - } - if (location_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Location); - } - properties_.WriteTo(output, _map_properties_codec); - if (createdAt_ != null) { - output.WriteRawTag(58); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(66); - output.WriteMessage(UpdatedAt); - } - if (lastSeenAt_ != null) { - output.WriteRawTag(74); - output.WriteMessage(LastSeenAt); - } - if (State != global::Chirpstack.Api.GatewayState.NeverSeen) { - output.WriteRawTag(80); - output.WriteEnum((int) State); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(GatewayId); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Description); - } - if (location_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Location); - } - properties_.WriteTo(ref output, _map_properties_codec); - if (createdAt_ != null) { - output.WriteRawTag(58); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(66); - output.WriteMessage(UpdatedAt); - } - if (lastSeenAt_ != null) { - output.WriteRawTag(74); - output.WriteMessage(LastSeenAt); - } - if (State != global::Chirpstack.Api.GatewayState.NeverSeen) { - output.WriteRawTag(80); - output.WriteEnum((int) State); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (location_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); - } - size += properties_.CalculateSize(_map_properties_codec); - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (lastSeenAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastSeenAt); - } - if (State != global::Chirpstack.Api.GatewayState.NeverSeen) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GatewayListItem other) { - if (other == null) { - return; - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - if (other.location_ != null) { - if (location_ == null) { - Location = new global::Chirpstack.Common.Location(); - } - Location.MergeFrom(other.Location); - } - properties_.Add(other.properties_); - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - if (other.lastSeenAt_ != null) { - if (lastSeenAt_ == null) { - LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - LastSeenAt.MergeFrom(other.LastSeenAt); - } - if (other.State != global::Chirpstack.Api.GatewayState.NeverSeen) { - State = other.State; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - case 18: { - GatewayId = input.ReadString(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - Description = input.ReadString(); - break; - } - case 42: { - if (location_ == null) { - Location = new global::Chirpstack.Common.Location(); - } - input.ReadMessage(Location); - break; - } - case 50: { - properties_.AddEntriesFrom(input, _map_properties_codec); - break; - } - case 58: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 66: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 74: { - if (lastSeenAt_ == null) { - LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(LastSeenAt); - break; - } - case 80: { - State = (global::Chirpstack.Api.GatewayState) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - case 18: { - GatewayId = input.ReadString(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - Description = input.ReadString(); - break; - } - case 42: { - if (location_ == null) { - Location = new global::Chirpstack.Common.Location(); - } - input.ReadMessage(Location); - break; - } - case 50: { - properties_.AddEntriesFrom(ref input, _map_properties_codec); - break; - } - case 58: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 66: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 74: { - if (lastSeenAt_ == null) { - LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(LastSeenAt); - break; - } - case 80: { - State = (global::Chirpstack.Api.GatewayState) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateGatewayRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateGatewayRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.GatewayReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateGatewayRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateGatewayRequest(CreateGatewayRequest other) : this() { - gateway_ = other.gateway_ != null ? other.gateway_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateGatewayRequest Clone() { - return new CreateGatewayRequest(this); - } - - /// Field number for the "gateway" field. - public const int GatewayFieldNumber = 1; - private global::Chirpstack.Api.Gateway gateway_; - /// - /// Gateway object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.Gateway Gateway { - get { return gateway_; } - set { - gateway_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateGatewayRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateGatewayRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Gateway, other.Gateway)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (gateway_ != null) hash ^= Gateway.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (gateway_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Gateway); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (gateway_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Gateway); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (gateway_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Gateway); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateGatewayRequest other) { - if (other == null) { - return; - } - if (other.gateway_ != null) { - if (gateway_ == null) { - Gateway = new global::Chirpstack.Api.Gateway(); - } - Gateway.MergeFrom(other.Gateway); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (gateway_ == null) { - Gateway = new global::Chirpstack.Api.Gateway(); - } - input.ReadMessage(Gateway); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (gateway_ == null) { - Gateway = new global::Chirpstack.Api.Gateway(); - } - input.ReadMessage(Gateway); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetGatewayRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewayRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.GatewayReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGatewayRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGatewayRequest(GetGatewayRequest other) : this() { - gatewayId_ = other.gatewayId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGatewayRequest Clone() { - return new GetGatewayRequest(this); - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 1; - private string gatewayId_ = ""; - /// - /// Gateway ID (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetGatewayRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetGatewayRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GatewayId != other.GatewayId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (GatewayId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (GatewayId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetGatewayRequest other) { - if (other == null) { - return; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - GatewayId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - GatewayId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetGatewayResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewayResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.GatewayReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGatewayResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGatewayResponse(GetGatewayResponse other) : this() { - gateway_ = other.gateway_ != null ? other.gateway_.Clone() : null; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - lastSeenAt_ = other.lastSeenAt_ != null ? other.lastSeenAt_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGatewayResponse Clone() { - return new GetGatewayResponse(this); - } - - /// Field number for the "gateway" field. - public const int GatewayFieldNumber = 1; - private global::Chirpstack.Api.Gateway gateway_; - /// - /// Gateway object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.Gateway Gateway { - get { return gateway_; } - set { - gateway_ = value; - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - /// Field number for the "last_seen_at" field. - public const int LastSeenAtFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.Timestamp lastSeenAt_; - /// - /// Last seen at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp LastSeenAt { - get { return lastSeenAt_; } - set { - lastSeenAt_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetGatewayResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetGatewayResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Gateway, other.Gateway)) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - if (!object.Equals(LastSeenAt, other.LastSeenAt)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (gateway_ != null) hash ^= Gateway.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (lastSeenAt_ != null) hash ^= LastSeenAt.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (gateway_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Gateway); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (lastSeenAt_ != null) { - output.WriteRawTag(34); - output.WriteMessage(LastSeenAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (gateway_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Gateway); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (lastSeenAt_ != null) { - output.WriteRawTag(34); - output.WriteMessage(LastSeenAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (gateway_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Gateway); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (lastSeenAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastSeenAt); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetGatewayResponse other) { - if (other == null) { - return; - } - if (other.gateway_ != null) { - if (gateway_ == null) { - Gateway = new global::Chirpstack.Api.Gateway(); - } - Gateway.MergeFrom(other.Gateway); - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - if (other.lastSeenAt_ != null) { - if (lastSeenAt_ == null) { - LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - LastSeenAt.MergeFrom(other.LastSeenAt); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (gateway_ == null) { - Gateway = new global::Chirpstack.Api.Gateway(); - } - input.ReadMessage(Gateway); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - if (lastSeenAt_ == null) { - LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(LastSeenAt); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (gateway_ == null) { - Gateway = new global::Chirpstack.Api.Gateway(); - } - input.ReadMessage(Gateway); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - if (lastSeenAt_ == null) { - LastSeenAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(LastSeenAt); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateGatewayRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateGatewayRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.GatewayReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateGatewayRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateGatewayRequest(UpdateGatewayRequest other) : this() { - gateway_ = other.gateway_ != null ? other.gateway_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateGatewayRequest Clone() { - return new UpdateGatewayRequest(this); - } - - /// Field number for the "gateway" field. - public const int GatewayFieldNumber = 1; - private global::Chirpstack.Api.Gateway gateway_; - /// - /// Gateway object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.Gateway Gateway { - get { return gateway_; } - set { - gateway_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateGatewayRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateGatewayRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Gateway, other.Gateway)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (gateway_ != null) hash ^= Gateway.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (gateway_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Gateway); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (gateway_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Gateway); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (gateway_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Gateway); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateGatewayRequest other) { - if (other == null) { - return; - } - if (other.gateway_ != null) { - if (gateway_ == null) { - Gateway = new global::Chirpstack.Api.Gateway(); - } - Gateway.MergeFrom(other.Gateway); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (gateway_ == null) { - Gateway = new global::Chirpstack.Api.Gateway(); - } - input.ReadMessage(Gateway); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (gateway_ == null) { - Gateway = new global::Chirpstack.Api.Gateway(); - } - input.ReadMessage(Gateway); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteGatewayRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteGatewayRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.GatewayReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteGatewayRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteGatewayRequest(DeleteGatewayRequest other) : this() { - gatewayId_ = other.gatewayId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteGatewayRequest Clone() { - return new DeleteGatewayRequest(this); - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 1; - private string gatewayId_ = ""; - /// - /// Gateway ID (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteGatewayRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteGatewayRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GatewayId != other.GatewayId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (GatewayId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (GatewayId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteGatewayRequest other) { - if (other == null) { - return; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - GatewayId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - GatewayId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListGatewaysRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListGatewaysRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.GatewayReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListGatewaysRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListGatewaysRequest(ListGatewaysRequest other) : this() { - limit_ = other.limit_; - offset_ = other.offset_; - search_ = other.search_; - tenantId_ = other.tenantId_; - multicastGroupId_ = other.multicastGroupId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListGatewaysRequest Clone() { - return new ListGatewaysRequest(this); - } - - /// Field number for the "limit" field. - public const int LimitFieldNumber = 1; - private uint limit_; - /// - /// Max number of gateways to return in the result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Limit { - get { return limit_; } - set { - limit_ = value; - } - } - - /// Field number for the "offset" field. - public const int OffsetFieldNumber = 2; - private uint offset_; - /// - /// Offset in the result-set (for pagination). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Offset { - get { return offset_; } - set { - offset_ = value; - } - } - - /// Field number for the "search" field. - public const int SearchFieldNumber = 3; - private string search_ = ""; - /// - /// If set, the given string will be used to search on name (optional). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Search { - get { return search_; } - set { - search_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 4; - private string tenantId_ = ""; - /// - /// Tenant ID (UUID) to filter gateways on. - /// To list all gateways as a global admin user, this field can be left blank. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "multicast_group_id" field. - public const int MulticastGroupIdFieldNumber = 5; - private string multicastGroupId_ = ""; - /// - /// Multicast-group ID (UUID) to filter gateways on. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MulticastGroupId { - get { return multicastGroupId_; } - set { - multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListGatewaysRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListGatewaysRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Limit != other.Limit) return false; - if (Offset != other.Offset) return false; - if (Search != other.Search) return false; - if (TenantId != other.TenantId) return false; - if (MulticastGroupId != other.MulticastGroupId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Limit != 0) hash ^= Limit.GetHashCode(); - if (Offset != 0) hash ^= Offset.GetHashCode(); - if (Search.Length != 0) hash ^= Search.GetHashCode(); - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - if (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (Search.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Search); - } - if (TenantId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(TenantId); - } - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(MulticastGroupId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (Search.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Search); - } - if (TenantId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(TenantId); - } - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(MulticastGroupId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Limit != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); - } - if (Offset != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); - } - if (Search.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); - } - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - if (MulticastGroupId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListGatewaysRequest other) { - if (other == null) { - return; - } - if (other.Limit != 0) { - Limit = other.Limit; - } - if (other.Offset != 0) { - Offset = other.Offset; - } - if (other.Search.Length != 0) { - Search = other.Search; - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - if (other.MulticastGroupId.Length != 0) { - MulticastGroupId = other.MulticastGroupId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - case 26: { - Search = input.ReadString(); - break; - } - case 34: { - TenantId = input.ReadString(); - break; - } - case 42: { - MulticastGroupId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - case 26: { - Search = input.ReadString(); - break; - } - case 34: { - TenantId = input.ReadString(); - break; - } - case 42: { - MulticastGroupId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListGatewaysResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListGatewaysResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.GatewayReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListGatewaysResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListGatewaysResponse(ListGatewaysResponse other) : this() { - totalCount_ = other.totalCount_; - result_ = other.result_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListGatewaysResponse Clone() { - return new ListGatewaysResponse(this); - } - - /// Field number for the "total_count" field. - public const int TotalCountFieldNumber = 1; - private uint totalCount_; - /// - /// Total number of gateways. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TotalCount { - get { return totalCount_; } - set { - totalCount_ = value; - } - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_result_codec - = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.GatewayListItem.Parser); - private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); - /// - /// Result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Result { - get { return result_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListGatewaysResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListGatewaysResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TotalCount != other.TotalCount) return false; - if(!result_.Equals(other.result_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TotalCount != 0) hash ^= TotalCount.GetHashCode(); - hash ^= result_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(ref output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TotalCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); - } - size += result_.CalculateSize(_repeated_result_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListGatewaysResponse other) { - if (other == null) { - return; - } - if (other.TotalCount != 0) { - TotalCount = other.TotalCount; - } - result_.Add(other.result_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(input, _repeated_result_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(ref input, _repeated_result_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class GenerateGatewayClientCertificateRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateGatewayClientCertificateRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.GatewayReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateGatewayClientCertificateRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateGatewayClientCertificateRequest(GenerateGatewayClientCertificateRequest other) : this() { - gatewayId_ = other.gatewayId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateGatewayClientCertificateRequest Clone() { - return new GenerateGatewayClientCertificateRequest(this); - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 1; - private string gatewayId_ = ""; - /// - /// Gateway ID (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateGatewayClientCertificateRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateGatewayClientCertificateRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GatewayId != other.GatewayId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (GatewayId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (GatewayId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateGatewayClientCertificateRequest other) { - if (other == null) { - return; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - GatewayId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - GatewayId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GenerateGatewayClientCertificateResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateGatewayClientCertificateResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.GatewayReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateGatewayClientCertificateResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateGatewayClientCertificateResponse(GenerateGatewayClientCertificateResponse other) : this() { - tlsCert_ = other.tlsCert_; - tlsKey_ = other.tlsKey_; - caCert_ = other.caCert_; - expiresAt_ = other.expiresAt_ != null ? other.expiresAt_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateGatewayClientCertificateResponse Clone() { - return new GenerateGatewayClientCertificateResponse(this); - } - - /// Field number for the "tls_cert" field. - public const int TlsCertFieldNumber = 1; - private string tlsCert_ = ""; - /// - /// TLS certificate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TlsCert { - get { return tlsCert_; } - set { - tlsCert_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tls_key" field. - public const int TlsKeyFieldNumber = 2; - private string tlsKey_ = ""; - /// - /// TLS key. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TlsKey { - get { return tlsKey_; } - set { - tlsKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ca_cert" field. - public const int CaCertFieldNumber = 3; - private string caCert_ = ""; - /// - /// CA certificate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CaCert { - get { return caCert_; } - set { - caCert_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "expires_at" field. - public const int ExpiresAtFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.Timestamp expiresAt_; - /// - /// Expires at defines the expiration date of the certificate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp ExpiresAt { - get { return expiresAt_; } - set { - expiresAt_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateGatewayClientCertificateResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateGatewayClientCertificateResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TlsCert != other.TlsCert) return false; - if (TlsKey != other.TlsKey) return false; - if (CaCert != other.CaCert) return false; - if (!object.Equals(ExpiresAt, other.ExpiresAt)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TlsCert.Length != 0) hash ^= TlsCert.GetHashCode(); - if (TlsKey.Length != 0) hash ^= TlsKey.GetHashCode(); - if (CaCert.Length != 0) hash ^= CaCert.GetHashCode(); - if (expiresAt_ != null) hash ^= ExpiresAt.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TlsCert.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TlsCert); - } - if (TlsKey.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TlsKey); - } - if (CaCert.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CaCert); - } - if (expiresAt_ != null) { - output.WriteRawTag(34); - output.WriteMessage(ExpiresAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TlsCert.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TlsCert); - } - if (TlsKey.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TlsKey); - } - if (CaCert.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CaCert); - } - if (expiresAt_ != null) { - output.WriteRawTag(34); - output.WriteMessage(ExpiresAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TlsCert.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TlsCert); - } - if (TlsKey.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TlsKey); - } - if (CaCert.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CaCert); - } - if (expiresAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpiresAt); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateGatewayClientCertificateResponse other) { - if (other == null) { - return; - } - if (other.TlsCert.Length != 0) { - TlsCert = other.TlsCert; - } - if (other.TlsKey.Length != 0) { - TlsKey = other.TlsKey; - } - if (other.CaCert.Length != 0) { - CaCert = other.CaCert; - } - if (other.expiresAt_ != null) { - if (expiresAt_ == null) { - ExpiresAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - ExpiresAt.MergeFrom(other.ExpiresAt); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - TlsCert = input.ReadString(); - break; - } - case 18: { - TlsKey = input.ReadString(); - break; - } - case 26: { - CaCert = input.ReadString(); - break; - } - case 34: { - if (expiresAt_ == null) { - ExpiresAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(ExpiresAt); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - TlsCert = input.ReadString(); - break; - } - case 18: { - TlsKey = input.ReadString(); - break; - } - case 26: { - CaCert = input.ReadString(); - break; - } - case 34: { - if (expiresAt_ == null) { - ExpiresAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(ExpiresAt); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetGatewayMetricsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewayMetricsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.GatewayReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGatewayMetricsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGatewayMetricsRequest(GetGatewayMetricsRequest other) : this() { - gatewayId_ = other.gatewayId_; - start_ = other.start_ != null ? other.start_.Clone() : null; - end_ = other.end_ != null ? other.end_.Clone() : null; - aggregation_ = other.aggregation_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGatewayMetricsRequest Clone() { - return new GetGatewayMetricsRequest(this); - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 1; - private string gatewayId_ = ""; - /// - /// Gateway ID (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "start" field. - public const int StartFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp start_; - /// - /// Interval start timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Start { - get { return start_; } - set { - start_ = value; - } - } - - /// Field number for the "end" field. - public const int EndFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp end_; - /// - /// Interval end timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp End { - get { return end_; } - set { - end_ = value; - } - } - - /// Field number for the "aggregation" field. - public const int AggregationFieldNumber = 4; - private global::Chirpstack.Common.Aggregation aggregation_ = global::Chirpstack.Common.Aggregation.Hour; - /// - /// Aggregation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Aggregation Aggregation { - get { return aggregation_; } - set { - aggregation_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetGatewayMetricsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetGatewayMetricsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GatewayId != other.GatewayId) return false; - if (!object.Equals(Start, other.Start)) return false; - if (!object.Equals(End, other.End)) return false; - if (Aggregation != other.Aggregation) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (start_ != null) hash ^= Start.GetHashCode(); - if (end_ != null) hash ^= End.GetHashCode(); - if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) hash ^= Aggregation.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (GatewayId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(GatewayId); - } - if (start_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Start); - } - if (end_ != null) { - output.WriteRawTag(26); - output.WriteMessage(End); - } - if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) { - output.WriteRawTag(32); - output.WriteEnum((int) Aggregation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (GatewayId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(GatewayId); - } - if (start_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Start); - } - if (end_ != null) { - output.WriteRawTag(26); - output.WriteMessage(End); - } - if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) { - output.WriteRawTag(32); - output.WriteEnum((int) Aggregation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (start_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Start); - } - if (end_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(End); - } - if (Aggregation != global::Chirpstack.Common.Aggregation.Hour) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Aggregation); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetGatewayMetricsRequest other) { - if (other == null) { - return; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - if (other.start_ != null) { - if (start_ == null) { - Start = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Start.MergeFrom(other.Start); - } - if (other.end_ != null) { - if (end_ == null) { - End = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - End.MergeFrom(other.End); - } - if (other.Aggregation != global::Chirpstack.Common.Aggregation.Hour) { - Aggregation = other.Aggregation; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - GatewayId = input.ReadString(); - break; - } - case 18: { - if (start_ == null) { - Start = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Start); - break; - } - case 26: { - if (end_ == null) { - End = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(End); - break; - } - case 32: { - Aggregation = (global::Chirpstack.Common.Aggregation) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - GatewayId = input.ReadString(); - break; - } - case 18: { - if (start_ == null) { - Start = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Start); - break; - } - case 26: { - if (end_ == null) { - End = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(End); - break; - } - case 32: { - Aggregation = (global::Chirpstack.Common.Aggregation) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetGatewayMetricsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewayMetricsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.GatewayReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGatewayMetricsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGatewayMetricsResponse(GetGatewayMetricsResponse other) : this() { - rxPackets_ = other.rxPackets_ != null ? other.rxPackets_.Clone() : null; - txPackets_ = other.txPackets_ != null ? other.txPackets_.Clone() : null; - txPacketsPerFreq_ = other.txPacketsPerFreq_ != null ? other.txPacketsPerFreq_.Clone() : null; - rxPacketsPerFreq_ = other.rxPacketsPerFreq_ != null ? other.rxPacketsPerFreq_.Clone() : null; - txPacketsPerDr_ = other.txPacketsPerDr_ != null ? other.txPacketsPerDr_.Clone() : null; - rxPacketsPerDr_ = other.rxPacketsPerDr_ != null ? other.rxPacketsPerDr_.Clone() : null; - txPacketsPerStatus_ = other.txPacketsPerStatus_ != null ? other.txPacketsPerStatus_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGatewayMetricsResponse Clone() { - return new GetGatewayMetricsResponse(this); - } - - /// Field number for the "rx_packets" field. - public const int RxPacketsFieldNumber = 1; - private global::Chirpstack.Common.Metric rxPackets_; - /// - /// RX packets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Metric RxPackets { - get { return rxPackets_; } - set { - rxPackets_ = value; - } - } - - /// Field number for the "tx_packets" field. - public const int TxPacketsFieldNumber = 2; - private global::Chirpstack.Common.Metric txPackets_; - /// - /// TX packets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Metric TxPackets { - get { return txPackets_; } - set { - txPackets_ = value; - } - } - - /// Field number for the "tx_packets_per_freq" field. - public const int TxPacketsPerFreqFieldNumber = 3; - private global::Chirpstack.Common.Metric txPacketsPerFreq_; - /// - /// TX packets / frequency. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Metric TxPacketsPerFreq { - get { return txPacketsPerFreq_; } - set { - txPacketsPerFreq_ = value; - } - } - - /// Field number for the "rx_packets_per_freq" field. - public const int RxPacketsPerFreqFieldNumber = 4; - private global::Chirpstack.Common.Metric rxPacketsPerFreq_; - /// - /// RX packets / frequency. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Metric RxPacketsPerFreq { - get { return rxPacketsPerFreq_; } - set { - rxPacketsPerFreq_ = value; - } - } - - /// Field number for the "tx_packets_per_dr" field. - public const int TxPacketsPerDrFieldNumber = 5; - private global::Chirpstack.Common.Metric txPacketsPerDr_; - /// - /// TX packets / DR. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Metric TxPacketsPerDr { - get { return txPacketsPerDr_; } - set { - txPacketsPerDr_ = value; - } - } - - /// Field number for the "rx_packets_per_dr" field. - public const int RxPacketsPerDrFieldNumber = 6; - private global::Chirpstack.Common.Metric rxPacketsPerDr_; - /// - /// RX packets / DR. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Metric RxPacketsPerDr { - get { return rxPacketsPerDr_; } - set { - rxPacketsPerDr_ = value; - } - } - - /// Field number for the "tx_packets_per_status" field. - public const int TxPacketsPerStatusFieldNumber = 7; - private global::Chirpstack.Common.Metric txPacketsPerStatus_; - /// - /// TX packets per status. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Metric TxPacketsPerStatus { - get { return txPacketsPerStatus_; } - set { - txPacketsPerStatus_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetGatewayMetricsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetGatewayMetricsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(RxPackets, other.RxPackets)) return false; - if (!object.Equals(TxPackets, other.TxPackets)) return false; - if (!object.Equals(TxPacketsPerFreq, other.TxPacketsPerFreq)) return false; - if (!object.Equals(RxPacketsPerFreq, other.RxPacketsPerFreq)) return false; - if (!object.Equals(TxPacketsPerDr, other.TxPacketsPerDr)) return false; - if (!object.Equals(RxPacketsPerDr, other.RxPacketsPerDr)) return false; - if (!object.Equals(TxPacketsPerStatus, other.TxPacketsPerStatus)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (rxPackets_ != null) hash ^= RxPackets.GetHashCode(); - if (txPackets_ != null) hash ^= TxPackets.GetHashCode(); - if (txPacketsPerFreq_ != null) hash ^= TxPacketsPerFreq.GetHashCode(); - if (rxPacketsPerFreq_ != null) hash ^= RxPacketsPerFreq.GetHashCode(); - if (txPacketsPerDr_ != null) hash ^= TxPacketsPerDr.GetHashCode(); - if (rxPacketsPerDr_ != null) hash ^= RxPacketsPerDr.GetHashCode(); - if (txPacketsPerStatus_ != null) hash ^= TxPacketsPerStatus.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (rxPackets_ != null) { - output.WriteRawTag(10); - output.WriteMessage(RxPackets); - } - if (txPackets_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TxPackets); - } - if (txPacketsPerFreq_ != null) { - output.WriteRawTag(26); - output.WriteMessage(TxPacketsPerFreq); - } - if (rxPacketsPerFreq_ != null) { - output.WriteRawTag(34); - output.WriteMessage(RxPacketsPerFreq); - } - if (txPacketsPerDr_ != null) { - output.WriteRawTag(42); - output.WriteMessage(TxPacketsPerDr); - } - if (rxPacketsPerDr_ != null) { - output.WriteRawTag(50); - output.WriteMessage(RxPacketsPerDr); - } - if (txPacketsPerStatus_ != null) { - output.WriteRawTag(58); - output.WriteMessage(TxPacketsPerStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (rxPackets_ != null) { - output.WriteRawTag(10); - output.WriteMessage(RxPackets); - } - if (txPackets_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TxPackets); - } - if (txPacketsPerFreq_ != null) { - output.WriteRawTag(26); - output.WriteMessage(TxPacketsPerFreq); - } - if (rxPacketsPerFreq_ != null) { - output.WriteRawTag(34); - output.WriteMessage(RxPacketsPerFreq); - } - if (txPacketsPerDr_ != null) { - output.WriteRawTag(42); - output.WriteMessage(TxPacketsPerDr); - } - if (rxPacketsPerDr_ != null) { - output.WriteRawTag(50); - output.WriteMessage(RxPacketsPerDr); - } - if (txPacketsPerStatus_ != null) { - output.WriteRawTag(58); - output.WriteMessage(TxPacketsPerStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (rxPackets_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RxPackets); - } - if (txPackets_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxPackets); - } - if (txPacketsPerFreq_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxPacketsPerFreq); - } - if (rxPacketsPerFreq_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RxPacketsPerFreq); - } - if (txPacketsPerDr_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxPacketsPerDr); - } - if (rxPacketsPerDr_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RxPacketsPerDr); - } - if (txPacketsPerStatus_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxPacketsPerStatus); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetGatewayMetricsResponse other) { - if (other == null) { - return; - } - if (other.rxPackets_ != null) { - if (rxPackets_ == null) { - RxPackets = new global::Chirpstack.Common.Metric(); - } - RxPackets.MergeFrom(other.RxPackets); - } - if (other.txPackets_ != null) { - if (txPackets_ == null) { - TxPackets = new global::Chirpstack.Common.Metric(); - } - TxPackets.MergeFrom(other.TxPackets); - } - if (other.txPacketsPerFreq_ != null) { - if (txPacketsPerFreq_ == null) { - TxPacketsPerFreq = new global::Chirpstack.Common.Metric(); - } - TxPacketsPerFreq.MergeFrom(other.TxPacketsPerFreq); - } - if (other.rxPacketsPerFreq_ != null) { - if (rxPacketsPerFreq_ == null) { - RxPacketsPerFreq = new global::Chirpstack.Common.Metric(); - } - RxPacketsPerFreq.MergeFrom(other.RxPacketsPerFreq); - } - if (other.txPacketsPerDr_ != null) { - if (txPacketsPerDr_ == null) { - TxPacketsPerDr = new global::Chirpstack.Common.Metric(); - } - TxPacketsPerDr.MergeFrom(other.TxPacketsPerDr); - } - if (other.rxPacketsPerDr_ != null) { - if (rxPacketsPerDr_ == null) { - RxPacketsPerDr = new global::Chirpstack.Common.Metric(); - } - RxPacketsPerDr.MergeFrom(other.RxPacketsPerDr); - } - if (other.txPacketsPerStatus_ != null) { - if (txPacketsPerStatus_ == null) { - TxPacketsPerStatus = new global::Chirpstack.Common.Metric(); - } - TxPacketsPerStatus.MergeFrom(other.TxPacketsPerStatus); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (rxPackets_ == null) { - RxPackets = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(RxPackets); - break; - } - case 18: { - if (txPackets_ == null) { - TxPackets = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(TxPackets); - break; - } - case 26: { - if (txPacketsPerFreq_ == null) { - TxPacketsPerFreq = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(TxPacketsPerFreq); - break; - } - case 34: { - if (rxPacketsPerFreq_ == null) { - RxPacketsPerFreq = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(RxPacketsPerFreq); - break; - } - case 42: { - if (txPacketsPerDr_ == null) { - TxPacketsPerDr = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(TxPacketsPerDr); - break; - } - case 50: { - if (rxPacketsPerDr_ == null) { - RxPacketsPerDr = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(RxPacketsPerDr); - break; - } - case 58: { - if (txPacketsPerStatus_ == null) { - TxPacketsPerStatus = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(TxPacketsPerStatus); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (rxPackets_ == null) { - RxPackets = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(RxPackets); - break; - } - case 18: { - if (txPackets_ == null) { - TxPackets = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(TxPackets); - break; - } - case 26: { - if (txPacketsPerFreq_ == null) { - TxPacketsPerFreq = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(TxPacketsPerFreq); - break; - } - case 34: { - if (rxPacketsPerFreq_ == null) { - RxPacketsPerFreq = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(RxPacketsPerFreq); - break; - } - case 42: { - if (txPacketsPerDr_ == null) { - TxPacketsPerDr = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(TxPacketsPerDr); - break; - } - case 50: { - if (rxPacketsPerDr_ == null) { - RxPacketsPerDr = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(RxPacketsPerDr); - break; - } - case 58: { - if (txPacketsPerStatus_ == null) { - TxPacketsPerStatus = new global::Chirpstack.Common.Metric(); - } - input.ReadMessage(TxPacketsPerStatus); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/GatewayGrpc.cs b/api/csharp/Chirpstack/api/GatewayGrpc.cs deleted file mode 100644 index 1e5d5b61..00000000 --- a/api/csharp/Chirpstack/api/GatewayGrpc.cs +++ /dev/null @@ -1,632 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/gateway.proto -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Chirpstack.Api { - /// - /// GatewayService is the service providing API methods for managing gateways. - /// - public static partial class GatewayService - { - static readonly string __ServiceName = "api.GatewayService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateGatewayRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateGatewayRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetGatewayRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetGatewayRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetGatewayResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetGatewayResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateGatewayRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateGatewayRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteGatewayRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteGatewayRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListGatewaysRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListGatewaysRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListGatewaysResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListGatewaysResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GenerateGatewayClientCertificateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GenerateGatewayClientCertificateRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GenerateGatewayClientCertificateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GenerateGatewayClientCertificateResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetGatewayMetricsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetGatewayMetricsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetGatewayMetricsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetGatewayMetricsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Create = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Create", - __Marshaller_api_CreateGatewayRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Get = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Get", - __Marshaller_api_GetGatewayRequest, - __Marshaller_api_GetGatewayResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Update = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Update", - __Marshaller_api_UpdateGatewayRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Delete = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Delete", - __Marshaller_api_DeleteGatewayRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_List = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "List", - __Marshaller_api_ListGatewaysRequest, - __Marshaller_api_ListGatewaysResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GenerateClientCertificate = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GenerateClientCertificate", - __Marshaller_api_GenerateGatewayClientCertificateRequest, - __Marshaller_api_GenerateGatewayClientCertificateResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetMetrics = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetMetrics", - __Marshaller_api_GetGatewayMetricsRequest, - __Marshaller_api_GetGatewayMetricsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Chirpstack.Api.GatewayReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of GatewayService - [grpc::BindServiceMethod(typeof(GatewayService), "BindService")] - public abstract partial class GatewayServiceBase - { - /// - /// Create creates the given gateway. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Create(global::Chirpstack.Api.CreateGatewayRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get returns the gateway for the given Gateway ID. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Get(global::Chirpstack.Api.GetGatewayRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update updates the given gateway. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Update(global::Chirpstack.Api.UpdateGatewayRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete deletes the gateway matching the given Gateway ID. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Delete(global::Chirpstack.Api.DeleteGatewayRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get the list of gateways. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task List(global::Chirpstack.Api.ListGatewaysRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Generate client-certificate for the gateway. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GenerateClientCertificate(global::Chirpstack.Api.GenerateGatewayClientCertificateRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// GetMetrics returns the gateway metrics. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetMetrics(global::Chirpstack.Api.GetGatewayMetricsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for GatewayService - public partial class GatewayServiceClient : grpc::ClientBase - { - /// Creates a new client for GatewayService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public GatewayServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for GatewayService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public GatewayServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected GatewayServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected GatewayServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Create creates the given gateway. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Create(global::Chirpstack.Api.CreateGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Create(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create creates the given gateway. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Create(global::Chirpstack.Api.CreateGatewayRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); - } - /// - /// Create creates the given gateway. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create creates the given gateway. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateGatewayRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); - } - /// - /// Get returns the gateway for the given Gateway ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetGatewayResponse Get(global::Chirpstack.Api.GetGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Get(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get returns the gateway for the given Gateway ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetGatewayResponse Get(global::Chirpstack.Api.GetGatewayRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); - } - /// - /// Get returns the gateway for the given Gateway ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get returns the gateway for the given Gateway ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetGatewayRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); - } - /// - /// Update updates the given gateway. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Update(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update updates the given gateway. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateGatewayRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); - } - /// - /// Update updates the given gateway. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update updates the given gateway. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateGatewayRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); - } - /// - /// Delete deletes the gateway matching the given Gateway ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Delete(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete deletes the gateway matching the given Gateway ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteGatewayRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); - } - /// - /// Delete deletes the gateway matching the given Gateway ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteGatewayRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete deletes the gateway matching the given Gateway ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteGatewayRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); - } - /// - /// Get the list of gateways. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListGatewaysResponse List(global::Chirpstack.Api.ListGatewaysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return List(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the list of gateways. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListGatewaysResponse List(global::Chirpstack.Api.ListGatewaysRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); - } - /// - /// Get the list of gateways. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListGatewaysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the list of gateways. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListGatewaysRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); - } - /// - /// Generate client-certificate for the gateway. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GenerateGatewayClientCertificateResponse GenerateClientCertificate(global::Chirpstack.Api.GenerateGatewayClientCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateClientCertificate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Generate client-certificate for the gateway. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GenerateGatewayClientCertificateResponse GenerateClientCertificate(global::Chirpstack.Api.GenerateGatewayClientCertificateRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GenerateClientCertificate, null, options, request); - } - /// - /// Generate client-certificate for the gateway. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateClientCertificateAsync(global::Chirpstack.Api.GenerateGatewayClientCertificateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateClientCertificateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Generate client-certificate for the gateway. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateClientCertificateAsync(global::Chirpstack.Api.GenerateGatewayClientCertificateRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GenerateClientCertificate, null, options, request); - } - /// - /// GetMetrics returns the gateway metrics. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetGatewayMetricsResponse GetMetrics(global::Chirpstack.Api.GetGatewayMetricsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetMetrics(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetMetrics returns the gateway metrics. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetGatewayMetricsResponse GetMetrics(global::Chirpstack.Api.GetGatewayMetricsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetMetrics, null, options, request); - } - /// - /// GetMetrics returns the gateway metrics. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetMetricsAsync(global::Chirpstack.Api.GetGatewayMetricsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetMetricsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetMetrics returns the gateway metrics. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetMetricsAsync(global::Chirpstack.Api.GetGatewayMetricsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetMetrics, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override GatewayServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new GatewayServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(GatewayServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_Create, serviceImpl.Create) - .AddMethod(__Method_Get, serviceImpl.Get) - .AddMethod(__Method_Update, serviceImpl.Update) - .AddMethod(__Method_Delete, serviceImpl.Delete) - .AddMethod(__Method_List, serviceImpl.List) - .AddMethod(__Method_GenerateClientCertificate, serviceImpl.GenerateClientCertificate) - .AddMethod(__Method_GetMetrics, serviceImpl.GetMetrics).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, GatewayServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Create)); - serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Get)); - serviceBinder.AddMethod(__Method_Update, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Update)); - serviceBinder.AddMethod(__Method_Delete, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Delete)); - serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); - serviceBinder.AddMethod(__Method_GenerateClientCertificate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GenerateClientCertificate)); - serviceBinder.AddMethod(__Method_GetMetrics, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetMetrics)); - } - - } -} -#endregion diff --git a/api/csharp/Chirpstack/api/Internal.cs b/api/csharp/Chirpstack/api/Internal.cs deleted file mode 100644 index 8718068f..00000000 --- a/api/csharp/Chirpstack/api/Internal.cs +++ /dev/null @@ -1,9088 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/internal.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Chirpstack.Api { - - /// Holder for reflection information generated from api/internal.proto - public static partial class InternalReflection { - - #region Descriptor - /// File descriptor for api/internal.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static InternalReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ChJhcGkvaW50ZXJuYWwucHJvdG8SA2FwaRofZ29vZ2xlL3Byb3RvYnVmL3Rp", - "bWVzdGFtcC5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvGhNj", - "b21tb24vY29tbW9uLnByb3RvGg5hcGkvdXNlci5wcm90byJHCgZBcGlLZXkS", - "CgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCRIQCghpc19hZG1pbhgDIAEoCBIR", - "Cgl0ZW5hbnRfaWQYBCABKAkiMwoTQ3JlYXRlQXBpS2V5UmVxdWVzdBIcCgdh", - "cGlfa2V5GAEgASgLMgsuYXBpLkFwaUtleSIxChRDcmVhdGVBcGlLZXlSZXNw", - "b25zZRIKCgJpZBgBIAEoCRINCgV0b2tlbhgCIAEoCSIhChNEZWxldGVBcGlL", - "ZXlSZXF1ZXN0EgoKAmlkGAEgASgJIlgKEkxpc3RBcGlLZXlzUmVxdWVzdBIN", - "CgVsaW1pdBgBIAEoDRIOCgZvZmZzZXQYAiABKA0SEAoIaXNfYWRtaW4YAyAB", - "KAgSEQoJdGVuYW50X2lkGAQgASgJIkcKE0xpc3RBcGlLZXlzUmVzcG9uc2US", - "EwoLdG90YWxfY291bnQYASABKA0SGwoGcmVzdWx0GAIgAygLMgsuYXBpLkFw", - "aUtleSLIAQoOVXNlclRlbmFudExpbmsSLgoKY3JlYXRlZF9hdBgBIAEoCzIa", - "Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKdXBkYXRlZF9hdBgCIAEo", - "CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASEQoJdGVuYW50X2lkGAMg", - "ASgJEhAKCGlzX2FkbWluGAQgASgIEhcKD2lzX2RldmljZV9hZG1pbhgFIAEo", - "CBIYChBpc19nYXRld2F5X2FkbWluGAYgASgIIi8KDExvZ2luUmVxdWVzdBIN", - "CgVlbWFpbBgBIAEoCRIQCghwYXNzd29yZBgCIAEoCSIcCg1Mb2dpblJlc3Bv", - "bnNlEgsKA2p3dBgBIAEoCSJQCg9Qcm9maWxlUmVzcG9uc2USFwoEdXNlchgB", - "IAEoCzIJLmFwaS5Vc2VyEiQKB3RlbmFudHMYAyADKAsyEy5hcGkuVXNlclRl", - "bmFudExpbmsiRAoTR2xvYmFsU2VhcmNoUmVxdWVzdBIOCgZzZWFyY2gYASAB", - "KAkSDQoFbGltaXQYAiABKAMSDgoGb2Zmc2V0GAMgASgDIj8KFEdsb2JhbFNl", - "YXJjaFJlc3BvbnNlEicKBnJlc3VsdBgBIAMoCzIXLmFwaS5HbG9iYWxTZWFy", - "Y2hSZXN1bHQi4gEKEkdsb2JhbFNlYXJjaFJlc3VsdBIMCgRraW5kGAEgASgJ", - "Eg0KBXNjb3JlGAIgASgCEhEKCXRlbmFudF9pZBgDIAEoCRITCgt0ZW5hbnRf", - "bmFtZRgEIAEoCRIWCg5hcHBsaWNhdGlvbl9pZBgFIAEoCRIYChBhcHBsaWNh", - "dGlvbl9uYW1lGAYgASgJEhYKDmRldmljZV9kZXZfZXVpGAcgASgJEhMKC2Rl", - "dmljZV9uYW1lGAggASgJEhIKCmdhdGV3YXlfaWQYCSABKAkSFAoMZ2F0ZXdh", - "eV9uYW1lGAogASgJIlsKEFNldHRpbmdzUmVzcG9uc2USKgoOb3BlbmlkX2Nv", - "bm5lY3QYASABKAsyEi5hcGkuT3BlbklkQ29ubmVjdBIbCgZvYXV0aDIYAiAB", - "KAsyCy5hcGkuT0F1dGgyInQKDU9wZW5JZENvbm5lY3QSDwoHZW5hYmxlZBgB", - "IAEoCBIRCglsb2dpbl91cmwYAiABKAkSEwoLbG9naW5fbGFiZWwYAyABKAkS", - "EgoKbG9nb3V0X3VybBgEIAEoCRIWCg5sb2dpbl9yZWRpcmVjdBgFIAEoCCJt", - "CgZPQXV0aDISDwoHZW5hYmxlZBgBIAEoCBIRCglsb2dpbl91cmwYAiABKAkS", - "EwoLbG9naW5fbGFiZWwYAyABKAkSEgoKbG9nb3V0X3VybBgEIAEoCRIWCg5s", - "b2dpbl9yZWRpcmVjdBgFIAEoCCI4ChlPcGVuSWRDb25uZWN0TG9naW5SZXF1", - "ZXN0EgwKBGNvZGUYASABKAkSDQoFc3RhdGUYAiABKAkiKwoaT3BlbklkQ29u", - "bmVjdExvZ2luUmVzcG9uc2USDQoFdG9rZW4YASABKAkiMQoST0F1dGgyTG9n", - "aW5SZXF1ZXN0EgwKBGNvZGUYASABKAkSDQoFc3RhdGUYAiABKAkiJAoTT0F1", - "dGgyTG9naW5SZXNwb25zZRINCgV0b2tlbhgBIAEoCSItChhHZXREZXZpY2Vz", - "U3VtbWFyeVJlcXVlc3QSEQoJdGVuYW50X2lkGAEgASgJItIBChlHZXREZXZp", - "Y2VzU3VtbWFyeVJlc3BvbnNlEhQKDGFjdGl2ZV9jb3VudBgBIAEoDRIWCg5p", - "bmFjdGl2ZV9jb3VudBgCIAEoDRI9Cghkcl9jb3VudBgDIAMoCzIrLmFwaS5H", - "ZXREZXZpY2VzU3VtbWFyeVJlc3BvbnNlLkRyQ291bnRFbnRyeRIYChBuZXZl", - "cl9zZWVuX2NvdW50GAQgASgNGi4KDERyQ291bnRFbnRyeRILCgNrZXkYASAB", - "KA0SDQoFdmFsdWUYAiABKA06AjgBIi4KGUdldEdhdGV3YXlzU3VtbWFyeVJl", - "cXVlc3QSEQoJdGVuYW50X2lkGAEgASgJImMKGkdldEdhdGV3YXlzU3VtbWFy", - "eVJlc3BvbnNlEhQKDG9ubGluZV9jb3VudBgBIAEoDRIVCg1vZmZsaW5lX2Nv", - "dW50GAIgASgNEhgKEG5ldmVyX3NlZW5fY291bnQYAyABKA0ixwEKB0xvZ0l0", - "ZW0SCgoCaWQYASABKAkSKAoEdGltZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1", - "Zi5UaW1lc3RhbXASEwoLZGVzY3JpcHRpb24YAyABKAkSDAoEYm9keRgEIAEo", - "CRIwCgpwcm9wZXJ0aWVzGAUgAygLMhwuYXBpLkxvZ0l0ZW0uUHJvcGVydGll", - "c0VudHJ5GjEKD1Byb3BlcnRpZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFs", - "dWUYAiABKAk6AjgBIjAKGlN0cmVhbUdhdGV3YXlGcmFtZXNSZXF1ZXN0EhIK", - "CmdhdGV3YXlfaWQYASABKAkiLAoZU3RyZWFtRGV2aWNlRnJhbWVzUmVxdWVz", - "dBIPCgdkZXZfZXVpGAEgASgJIiwKGVN0cmVhbURldmljZUV2ZW50c1JlcXVl", - "c3QSDwoHZGV2X2V1aRgBIAEoCSI7ChNMaXN0UmVnaW9uc1Jlc3BvbnNlEiQK", - "B3JlZ2lvbnMYASADKAsyEy5hcGkuUmVnaW9uTGlzdEl0ZW0iUQoOUmVnaW9u", - "TGlzdEl0ZW0SCgoCaWQYASABKAkSHgoGcmVnaW9uGAIgASgOMg4uY29tbW9u", - "LlJlZ2lvbhITCgtkZXNjcmlwdGlvbhgDIAEoCSIeChBHZXRSZWdpb25SZXF1", - "ZXN0EgoKAmlkGAEgASgJIqgCChFHZXRSZWdpb25SZXNwb25zZRIKCgJpZBgB", - "IAEoCRIeCgZyZWdpb24YAiABKA4yDi5jb21tb24uUmVnaW9uEhEKCXVzZXJf", - "aW5mbxgDIAEoCRIrCg91cGxpbmtfY2hhbm5lbHMYBCADKAsyEi5hcGkuUmVn", - "aW9uQ2hhbm5lbBIRCglyeDFfZGVsYXkYBSABKA0SFQoNcngxX2RyX29mZnNl", - "dBgGIAEoDRIOCgZyeDJfZHIYByABKA0SFQoNcngyX2ZyZXF1ZW5jeRgIIAEo", - "DRIcChRjbGFzc19iX3Bpbmdfc2xvdF9kchgJIAEoDRIjChtjbGFzc19iX3Bp", - "bmdfc2xvdF9mcmVxdWVuY3kYCiABKA0SEwoLZGVzY3JpcHRpb24YCyABKAki", - "QgoNUmVnaW9uQ2hhbm5lbBIRCglmcmVxdWVuY3kYASABKA0SDgoGZHJfbWlu", - "GAIgASgNEg4KBmRyX21heBgDIAEoDSIlChJHZXRWZXJzaW9uUmVzcG9uc2US", - "DwoHdmVyc2lvbhgBIAEoCTK5CQoPSW50ZXJuYWxTZXJ2aWNlEjAKBUxvZ2lu", - "EhEuYXBpLkxvZ2luUmVxdWVzdBoSLmFwaS5Mb2dpblJlc3BvbnNlIgASOQoH", - "UHJvZmlsZRIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoULmFwaS5Qcm9maWxl", - "UmVzcG9uc2UiABJFCgxHbG9iYWxTZWFyY2gSGC5hcGkuR2xvYmFsU2VhcmNo", - "UmVxdWVzdBoZLmFwaS5HbG9iYWxTZWFyY2hSZXNwb25zZSIAEkUKDENyZWF0", - "ZUFwaUtleRIYLmFwaS5DcmVhdGVBcGlLZXlSZXF1ZXN0GhkuYXBpLkNyZWF0", - "ZUFwaUtleVJlc3BvbnNlIgASQgoMRGVsZXRlQXBpS2V5EhguYXBpLkRlbGV0", - "ZUFwaUtleVJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJCCgtM", - "aXN0QXBpS2V5cxIXLmFwaS5MaXN0QXBpS2V5c1JlcXVlc3QaGC5hcGkuTGlz", - "dEFwaUtleXNSZXNwb25zZSIAEjsKCFNldHRpbmdzEhYuZ29vZ2xlLnByb3Rv", - "YnVmLkVtcHR5GhUuYXBpLlNldHRpbmdzUmVzcG9uc2UiABJXChJPcGVuSWRD", - "b25uZWN0TG9naW4SHi5hcGkuT3BlbklkQ29ubmVjdExvZ2luUmVxdWVzdBof", - "LmFwaS5PcGVuSWRDb25uZWN0TG9naW5SZXNwb25zZSIAEkIKC09BdXRoMkxv", - "Z2luEhcuYXBpLk9BdXRoMkxvZ2luUmVxdWVzdBoYLmFwaS5PQXV0aDJMb2dp", - "blJlc3BvbnNlIgASVAoRR2V0RGV2aWNlc1N1bW1hcnkSHS5hcGkuR2V0RGV2", - "aWNlc1N1bW1hcnlSZXF1ZXN0Gh4uYXBpLkdldERldmljZXNTdW1tYXJ5UmVz", - "cG9uc2UiABJXChJHZXRHYXRld2F5c1N1bW1hcnkSHi5hcGkuR2V0R2F0ZXdh", - "eXNTdW1tYXJ5UmVxdWVzdBofLmFwaS5HZXRHYXRld2F5c1N1bW1hcnlSZXNw", - "b25zZSIAEkgKE1N0cmVhbUdhdGV3YXlGcmFtZXMSHy5hcGkuU3RyZWFtR2F0", - "ZXdheUZyYW1lc1JlcXVlc3QaDC5hcGkuTG9nSXRlbSIAMAESRgoSU3RyZWFt", - "RGV2aWNlRnJhbWVzEh4uYXBpLlN0cmVhbURldmljZUZyYW1lc1JlcXVlc3Qa", - "DC5hcGkuTG9nSXRlbSIAMAESRgoSU3RyZWFtRGV2aWNlRXZlbnRzEh4uYXBp", - "LlN0cmVhbURldmljZUV2ZW50c1JlcXVlc3QaDC5hcGkuTG9nSXRlbSIAMAES", - "QQoLTGlzdFJlZ2lvbnMSFi5nb29nbGUucHJvdG9idWYuRW1wdHkaGC5hcGku", - "TGlzdFJlZ2lvbnNSZXNwb25zZSIAEjwKCUdldFJlZ2lvbhIVLmFwaS5HZXRS", - "ZWdpb25SZXF1ZXN0GhYuYXBpLkdldFJlZ2lvblJlc3BvbnNlIgASPwoKR2V0", - "VmVyc2lvbhIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoXLmFwaS5HZXRWZXJz", - "aW9uUmVzcG9uc2UiAEJlChFpby5jaGlycHN0YWNrLmFwaUINSW50ZXJuYWxQ", - "cm90b1ABWi5naXRodWIuY29tL2NoaXJwc3RhY2svY2hpcnBzdGFjay9hcGkv", - "Z28vdjQvYXBpqgIOQ2hpcnBzdGFjay5BcGliBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, global::Chirpstack.Api.UserReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ApiKey), global::Chirpstack.Api.ApiKey.Parser, new[]{ "Id", "Name", "IsAdmin", "TenantId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateApiKeyRequest), global::Chirpstack.Api.CreateApiKeyRequest.Parser, new[]{ "ApiKey" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateApiKeyResponse), global::Chirpstack.Api.CreateApiKeyResponse.Parser, new[]{ "Id", "Token" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteApiKeyRequest), global::Chirpstack.Api.DeleteApiKeyRequest.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListApiKeysRequest), global::Chirpstack.Api.ListApiKeysRequest.Parser, new[]{ "Limit", "Offset", "IsAdmin", "TenantId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListApiKeysResponse), global::Chirpstack.Api.ListApiKeysResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UserTenantLink), global::Chirpstack.Api.UserTenantLink.Parser, new[]{ "CreatedAt", "UpdatedAt", "TenantId", "IsAdmin", "IsDeviceAdmin", "IsGatewayAdmin" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.LoginRequest), global::Chirpstack.Api.LoginRequest.Parser, new[]{ "Email", "Password" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.LoginResponse), global::Chirpstack.Api.LoginResponse.Parser, new[]{ "Jwt" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ProfileResponse), global::Chirpstack.Api.ProfileResponse.Parser, new[]{ "User", "Tenants" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GlobalSearchRequest), global::Chirpstack.Api.GlobalSearchRequest.Parser, new[]{ "Search", "Limit", "Offset" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GlobalSearchResponse), global::Chirpstack.Api.GlobalSearchResponse.Parser, new[]{ "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GlobalSearchResult), global::Chirpstack.Api.GlobalSearchResult.Parser, new[]{ "Kind", "Score", "TenantId", "TenantName", "ApplicationId", "ApplicationName", "DeviceDevEui", "DeviceName", "GatewayId", "GatewayName" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.SettingsResponse), global::Chirpstack.Api.SettingsResponse.Parser, new[]{ "OpenidConnect", "Oauth2" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.OpenIdConnect), global::Chirpstack.Api.OpenIdConnect.Parser, new[]{ "Enabled", "LoginUrl", "LoginLabel", "LogoutUrl", "LoginRedirect" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.OAuth2), global::Chirpstack.Api.OAuth2.Parser, new[]{ "Enabled", "LoginUrl", "LoginLabel", "LogoutUrl", "LoginRedirect" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.OpenIdConnectLoginRequest), global::Chirpstack.Api.OpenIdConnectLoginRequest.Parser, new[]{ "Code", "State" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.OpenIdConnectLoginResponse), global::Chirpstack.Api.OpenIdConnectLoginResponse.Parser, new[]{ "Token" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.OAuth2LoginRequest), global::Chirpstack.Api.OAuth2LoginRequest.Parser, new[]{ "Code", "State" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.OAuth2LoginResponse), global::Chirpstack.Api.OAuth2LoginResponse.Parser, new[]{ "Token" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDevicesSummaryRequest), global::Chirpstack.Api.GetDevicesSummaryRequest.Parser, new[]{ "TenantId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetDevicesSummaryResponse), global::Chirpstack.Api.GetDevicesSummaryResponse.Parser, new[]{ "ActiveCount", "InactiveCount", "DrCount", "NeverSeenCount" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetGatewaysSummaryRequest), global::Chirpstack.Api.GetGatewaysSummaryRequest.Parser, new[]{ "TenantId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetGatewaysSummaryResponse), global::Chirpstack.Api.GetGatewaysSummaryResponse.Parser, new[]{ "OnlineCount", "OfflineCount", "NeverSeenCount" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.LogItem), global::Chirpstack.Api.LogItem.Parser, new[]{ "Id", "Time", "Description", "Body", "Properties" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.StreamGatewayFramesRequest), global::Chirpstack.Api.StreamGatewayFramesRequest.Parser, new[]{ "GatewayId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.StreamDeviceFramesRequest), global::Chirpstack.Api.StreamDeviceFramesRequest.Parser, new[]{ "DevEui" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.StreamDeviceEventsRequest), global::Chirpstack.Api.StreamDeviceEventsRequest.Parser, new[]{ "DevEui" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListRegionsResponse), global::Chirpstack.Api.ListRegionsResponse.Parser, new[]{ "Regions" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.RegionListItem), global::Chirpstack.Api.RegionListItem.Parser, new[]{ "Id", "Region", "Description" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetRegionRequest), global::Chirpstack.Api.GetRegionRequest.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetRegionResponse), global::Chirpstack.Api.GetRegionResponse.Parser, new[]{ "Id", "Region", "UserInfo", "UplinkChannels", "Rx1Delay", "Rx1DrOffset", "Rx2Dr", "Rx2Frequency", "ClassBPingSlotDr", "ClassBPingSlotFrequency", "Description" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.RegionChannel), global::Chirpstack.Api.RegionChannel.Parser, new[]{ "Frequency", "DrMin", "DrMax" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetVersionResponse), global::Chirpstack.Api.GetVersionResponse.Parser, new[]{ "Version" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - public sealed partial class ApiKey : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApiKey()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ApiKey() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ApiKey(ApiKey other) : this() { - id_ = other.id_; - name_ = other.name_; - isAdmin_ = other.isAdmin_; - tenantId_ = other.tenantId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ApiKey Clone() { - return new ApiKey(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// API key ID. - /// This value will be automatically generated on create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - /// - /// Name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "is_admin" field. - public const int IsAdminFieldNumber = 3; - private bool isAdmin_; - /// - /// Is global admin key. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsAdmin { - get { return isAdmin_; } - set { - isAdmin_ = value; - } - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 4; - private string tenantId_ = ""; - /// - /// Tenant ID. - /// In case the API key is intended to manage resources under a single tenant. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ApiKey); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ApiKey other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (IsAdmin != other.IsAdmin) return false; - if (TenantId != other.TenantId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (IsAdmin != false) { - output.WriteRawTag(24); - output.WriteBool(IsAdmin); - } - if (TenantId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(TenantId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (IsAdmin != false) { - output.WriteRawTag(24); - output.WriteBool(IsAdmin); - } - if (TenantId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(TenantId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (IsAdmin != false) { - size += 1 + 1; - } - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ApiKey other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.IsAdmin != false) { - IsAdmin = other.IsAdmin; - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 24: { - IsAdmin = input.ReadBool(); - break; - } - case 34: { - TenantId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 24: { - IsAdmin = input.ReadBool(); - break; - } - case 34: { - TenantId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateApiKeyRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateApiKeyRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateApiKeyRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateApiKeyRequest(CreateApiKeyRequest other) : this() { - apiKey_ = other.apiKey_ != null ? other.apiKey_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateApiKeyRequest Clone() { - return new CreateApiKeyRequest(this); - } - - /// Field number for the "api_key" field. - public const int ApiKeyFieldNumber = 1; - private global::Chirpstack.Api.ApiKey apiKey_; - /// - /// The API key to create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.ApiKey ApiKey { - get { return apiKey_; } - set { - apiKey_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateApiKeyRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateApiKeyRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(ApiKey, other.ApiKey)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (apiKey_ != null) hash ^= ApiKey.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (apiKey_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ApiKey); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (apiKey_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ApiKey); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (apiKey_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApiKey); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateApiKeyRequest other) { - if (other == null) { - return; - } - if (other.apiKey_ != null) { - if (apiKey_ == null) { - ApiKey = new global::Chirpstack.Api.ApiKey(); - } - ApiKey.MergeFrom(other.ApiKey); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (apiKey_ == null) { - ApiKey = new global::Chirpstack.Api.ApiKey(); - } - input.ReadMessage(ApiKey); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (apiKey_ == null) { - ApiKey = new global::Chirpstack.Api.ApiKey(); - } - input.ReadMessage(ApiKey); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateApiKeyResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateApiKeyResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateApiKeyResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateApiKeyResponse(CreateApiKeyResponse other) : this() { - id_ = other.id_; - token_ = other.token_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateApiKeyResponse Clone() { - return new CreateApiKeyResponse(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// API key ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "token" field. - public const int TokenFieldNumber = 2; - private string token_ = ""; - /// - /// API token for authentication API requests. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Token { - get { return token_; } - set { - token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateApiKeyResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateApiKeyResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (Token != other.Token) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (Token.Length != 0) hash ^= Token.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Token.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Token); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Token.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Token); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (Token.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateApiKeyResponse other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.Token.Length != 0) { - Token = other.Token; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Token = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Token = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteApiKeyRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteApiKeyRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteApiKeyRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteApiKeyRequest(DeleteApiKeyRequest other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteApiKeyRequest Clone() { - return new DeleteApiKeyRequest(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// API key ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteApiKeyRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteApiKeyRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteApiKeyRequest other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListApiKeysRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListApiKeysRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListApiKeysRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListApiKeysRequest(ListApiKeysRequest other) : this() { - limit_ = other.limit_; - offset_ = other.offset_; - isAdmin_ = other.isAdmin_; - tenantId_ = other.tenantId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListApiKeysRequest Clone() { - return new ListApiKeysRequest(this); - } - - /// Field number for the "limit" field. - public const int LimitFieldNumber = 1; - private uint limit_; - /// - /// Max number of items to return. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Limit { - get { return limit_; } - set { - limit_ = value; - } - } - - /// Field number for the "offset" field. - public const int OffsetFieldNumber = 2; - private uint offset_; - /// - /// Offset in the result-set (for pagination). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Offset { - get { return offset_; } - set { - offset_ = value; - } - } - - /// Field number for the "is_admin" field. - public const int IsAdminFieldNumber = 3; - private bool isAdmin_; - /// - /// Return only admin keys. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsAdmin { - get { return isAdmin_; } - set { - isAdmin_ = value; - } - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 4; - private string tenantId_ = ""; - /// - /// Filter on tenant ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListApiKeysRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListApiKeysRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Limit != other.Limit) return false; - if (Offset != other.Offset) return false; - if (IsAdmin != other.IsAdmin) return false; - if (TenantId != other.TenantId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Limit != 0) hash ^= Limit.GetHashCode(); - if (Offset != 0) hash ^= Offset.GetHashCode(); - if (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (IsAdmin != false) { - output.WriteRawTag(24); - output.WriteBool(IsAdmin); - } - if (TenantId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(TenantId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (IsAdmin != false) { - output.WriteRawTag(24); - output.WriteBool(IsAdmin); - } - if (TenantId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(TenantId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Limit != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); - } - if (Offset != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); - } - if (IsAdmin != false) { - size += 1 + 1; - } - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListApiKeysRequest other) { - if (other == null) { - return; - } - if (other.Limit != 0) { - Limit = other.Limit; - } - if (other.Offset != 0) { - Offset = other.Offset; - } - if (other.IsAdmin != false) { - IsAdmin = other.IsAdmin; - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - case 24: { - IsAdmin = input.ReadBool(); - break; - } - case 34: { - TenantId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - case 24: { - IsAdmin = input.ReadBool(); - break; - } - case 34: { - TenantId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListApiKeysResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListApiKeysResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListApiKeysResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListApiKeysResponse(ListApiKeysResponse other) : this() { - totalCount_ = other.totalCount_; - result_ = other.result_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListApiKeysResponse Clone() { - return new ListApiKeysResponse(this); - } - - /// Field number for the "total_count" field. - public const int TotalCountFieldNumber = 1; - private uint totalCount_; - /// - /// Total number of API keys. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TotalCount { - get { return totalCount_; } - set { - totalCount_ = value; - } - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_result_codec - = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.ApiKey.Parser); - private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Result { - get { return result_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListApiKeysResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListApiKeysResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TotalCount != other.TotalCount) return false; - if(!result_.Equals(other.result_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TotalCount != 0) hash ^= TotalCount.GetHashCode(); - hash ^= result_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(ref output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TotalCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); - } - size += result_.CalculateSize(_repeated_result_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListApiKeysResponse other) { - if (other == null) { - return; - } - if (other.TotalCount != 0) { - TotalCount = other.TotalCount; - } - result_.Add(other.result_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(input, _repeated_result_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(ref input, _repeated_result_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Defines a tenant to which the user is associated. - /// - public sealed partial class UserTenantLink : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserTenantLink()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserTenantLink() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserTenantLink(UserTenantLink other) : this() { - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - tenantId_ = other.tenantId_; - isAdmin_ = other.isAdmin_; - isDeviceAdmin_ = other.isDeviceAdmin_; - isGatewayAdmin_ = other.isGatewayAdmin_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserTenantLink Clone() { - return new UserTenantLink(this); - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 1; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 3; - private string tenantId_ = ""; - /// - /// Tenant ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "is_admin" field. - public const int IsAdminFieldNumber = 4; - private bool isAdmin_; - /// - /// User is admin within the context of this tenant. - /// There is no need to set the is_device_admin and is_gateway_admin flags. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsAdmin { - get { return isAdmin_; } - set { - isAdmin_ = value; - } - } - - /// Field number for the "is_device_admin" field. - public const int IsDeviceAdminFieldNumber = 5; - private bool isDeviceAdmin_; - /// - /// User is able to modify device related resources (applications, - /// device-profiles, devices, multicast-groups). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsDeviceAdmin { - get { return isDeviceAdmin_; } - set { - isDeviceAdmin_ = value; - } - } - - /// Field number for the "is_gateway_admin" field. - public const int IsGatewayAdminFieldNumber = 6; - private bool isGatewayAdmin_; - /// - /// User is able to modify gateways. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsGatewayAdmin { - get { return isGatewayAdmin_; } - set { - isGatewayAdmin_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UserTenantLink); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserTenantLink other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - if (TenantId != other.TenantId) return false; - if (IsAdmin != other.IsAdmin) return false; - if (IsDeviceAdmin != other.IsDeviceAdmin) return false; - if (IsGatewayAdmin != other.IsGatewayAdmin) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - if (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); - if (IsDeviceAdmin != false) hash ^= IsDeviceAdmin.GetHashCode(); - if (IsGatewayAdmin != false) hash ^= IsGatewayAdmin.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (createdAt_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(UpdatedAt); - } - if (TenantId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(TenantId); - } - if (IsAdmin != false) { - output.WriteRawTag(32); - output.WriteBool(IsAdmin); - } - if (IsDeviceAdmin != false) { - output.WriteRawTag(40); - output.WriteBool(IsDeviceAdmin); - } - if (IsGatewayAdmin != false) { - output.WriteRawTag(48); - output.WriteBool(IsGatewayAdmin); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (createdAt_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(UpdatedAt); - } - if (TenantId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(TenantId); - } - if (IsAdmin != false) { - output.WriteRawTag(32); - output.WriteBool(IsAdmin); - } - if (IsDeviceAdmin != false) { - output.WriteRawTag(40); - output.WriteBool(IsDeviceAdmin); - } - if (IsGatewayAdmin != false) { - output.WriteRawTag(48); - output.WriteBool(IsGatewayAdmin); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - if (IsAdmin != false) { - size += 1 + 1; - } - if (IsDeviceAdmin != false) { - size += 1 + 1; - } - if (IsGatewayAdmin != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserTenantLink other) { - if (other == null) { - return; - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - if (other.IsAdmin != false) { - IsAdmin = other.IsAdmin; - } - if (other.IsDeviceAdmin != false) { - IsDeviceAdmin = other.IsDeviceAdmin; - } - if (other.IsGatewayAdmin != false) { - IsGatewayAdmin = other.IsGatewayAdmin; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 18: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 26: { - TenantId = input.ReadString(); - break; - } - case 32: { - IsAdmin = input.ReadBool(); - break; - } - case 40: { - IsDeviceAdmin = input.ReadBool(); - break; - } - case 48: { - IsGatewayAdmin = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 18: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 26: { - TenantId = input.ReadString(); - break; - } - case 32: { - IsAdmin = input.ReadBool(); - break; - } - case 40: { - IsDeviceAdmin = input.ReadBool(); - break; - } - case 48: { - IsGatewayAdmin = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - public sealed partial class LoginRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoginRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoginRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoginRequest(LoginRequest other) : this() { - email_ = other.email_; - password_ = other.password_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoginRequest Clone() { - return new LoginRequest(this); - } - - /// Field number for the "email" field. - public const int EmailFieldNumber = 1; - private string email_ = ""; - /// - /// Email of the user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Email { - get { return email_; } - set { - email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "password" field. - public const int PasswordFieldNumber = 2; - private string password_ = ""; - /// - /// Password of the user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Password { - get { return password_; } - set { - password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LoginRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LoginRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Email != other.Email) return false; - if (Password != other.Password) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Email.Length != 0) hash ^= Email.GetHashCode(); - if (Password.Length != 0) hash ^= Password.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Email.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Email); - } - if (Password.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Password); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Email.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Email); - } - if (Password.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Password); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Email.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); - } - if (Password.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LoginRequest other) { - if (other == null) { - return; - } - if (other.Email.Length != 0) { - Email = other.Email; - } - if (other.Password.Length != 0) { - Password = other.Password; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Email = input.ReadString(); - break; - } - case 18: { - Password = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Email = input.ReadString(); - break; - } - case 18: { - Password = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class LoginResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoginResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoginResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoginResponse(LoginResponse other) : this() { - jwt_ = other.jwt_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoginResponse Clone() { - return new LoginResponse(this); - } - - /// Field number for the "jwt" field. - public const int JwtFieldNumber = 1; - private string jwt_ = ""; - /// - /// The JWT tag to be used to access chirpstack-application-server interfaces. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Jwt { - get { return jwt_; } - set { - jwt_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LoginResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LoginResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Jwt != other.Jwt) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Jwt.Length != 0) hash ^= Jwt.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Jwt.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Jwt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Jwt.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Jwt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Jwt.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Jwt); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LoginResponse other) { - if (other == null) { - return; - } - if (other.Jwt.Length != 0) { - Jwt = other.Jwt; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Jwt = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Jwt = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ProfileResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProfileResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProfileResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProfileResponse(ProfileResponse other) : this() { - user_ = other.user_ != null ? other.user_.Clone() : null; - tenants_ = other.tenants_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProfileResponse Clone() { - return new ProfileResponse(this); - } - - /// Field number for the "user" field. - public const int UserFieldNumber = 1; - private global::Chirpstack.Api.User user_; - /// - /// User object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.User User { - get { return user_; } - set { - user_ = value; - } - } - - /// Field number for the "tenants" field. - public const int TenantsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_tenants_codec - = pb::FieldCodec.ForMessage(26, global::Chirpstack.Api.UserTenantLink.Parser); - private readonly pbc::RepeatedField tenants_ = new pbc::RepeatedField(); - /// - /// Tenants to which the user is associated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Tenants { - get { return tenants_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProfileResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProfileResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(User, other.User)) return false; - if(!tenants_.Equals(other.tenants_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (user_ != null) hash ^= User.GetHashCode(); - hash ^= tenants_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (user_ != null) { - output.WriteRawTag(10); - output.WriteMessage(User); - } - tenants_.WriteTo(output, _repeated_tenants_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (user_ != null) { - output.WriteRawTag(10); - output.WriteMessage(User); - } - tenants_.WriteTo(ref output, _repeated_tenants_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (user_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); - } - size += tenants_.CalculateSize(_repeated_tenants_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProfileResponse other) { - if (other == null) { - return; - } - if (other.user_ != null) { - if (user_ == null) { - User = new global::Chirpstack.Api.User(); - } - User.MergeFrom(other.User); - } - tenants_.Add(other.tenants_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (user_ == null) { - User = new global::Chirpstack.Api.User(); - } - input.ReadMessage(User); - break; - } - case 26: { - tenants_.AddEntriesFrom(input, _repeated_tenants_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (user_ == null) { - User = new global::Chirpstack.Api.User(); - } - input.ReadMessage(User); - break; - } - case 26: { - tenants_.AddEntriesFrom(ref input, _repeated_tenants_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class GlobalSearchRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GlobalSearchRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GlobalSearchRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GlobalSearchRequest(GlobalSearchRequest other) : this() { - search_ = other.search_; - limit_ = other.limit_; - offset_ = other.offset_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GlobalSearchRequest Clone() { - return new GlobalSearchRequest(this); - } - - /// Field number for the "search" field. - public const int SearchFieldNumber = 1; - private string search_ = ""; - /// - /// Search query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Search { - get { return search_; } - set { - search_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "limit" field. - public const int LimitFieldNumber = 2; - private long limit_; - /// - /// Max number of results to return. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Limit { - get { return limit_; } - set { - limit_ = value; - } - } - - /// Field number for the "offset" field. - public const int OffsetFieldNumber = 3; - private long offset_; - /// - /// Offset offset of the result-set (for pagination). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Offset { - get { return offset_; } - set { - offset_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GlobalSearchRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GlobalSearchRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Search != other.Search) return false; - if (Limit != other.Limit) return false; - if (Offset != other.Offset) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Search.Length != 0) hash ^= Search.GetHashCode(); - if (Limit != 0L) hash ^= Limit.GetHashCode(); - if (Offset != 0L) hash ^= Offset.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Search.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Search); - } - if (Limit != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Limit); - } - if (Offset != 0L) { - output.WriteRawTag(24); - output.WriteInt64(Offset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Search.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Search); - } - if (Limit != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Limit); - } - if (Offset != 0L) { - output.WriteRawTag(24); - output.WriteInt64(Offset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Search.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); - } - if (Limit != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Limit); - } - if (Offset != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Offset); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GlobalSearchRequest other) { - if (other == null) { - return; - } - if (other.Search.Length != 0) { - Search = other.Search; - } - if (other.Limit != 0L) { - Limit = other.Limit; - } - if (other.Offset != 0L) { - Offset = other.Offset; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Search = input.ReadString(); - break; - } - case 16: { - Limit = input.ReadInt64(); - break; - } - case 24: { - Offset = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Search = input.ReadString(); - break; - } - case 16: { - Limit = input.ReadInt64(); - break; - } - case 24: { - Offset = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GlobalSearchResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GlobalSearchResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GlobalSearchResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GlobalSearchResponse(GlobalSearchResponse other) : this() { - result_ = other.result_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GlobalSearchResponse Clone() { - return new GlobalSearchResponse(this); - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_result_codec - = pb::FieldCodec.ForMessage(10, global::Chirpstack.Api.GlobalSearchResult.Parser); - private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Result { - get { return result_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GlobalSearchResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GlobalSearchResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!result_.Equals(other.result_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= result_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - result_.WriteTo(output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - result_.WriteTo(ref output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += result_.CalculateSize(_repeated_result_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GlobalSearchResponse other) { - if (other == null) { - return; - } - result_.Add(other.result_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - result_.AddEntriesFrom(input, _repeated_result_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - result_.AddEntriesFrom(ref input, _repeated_result_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class GlobalSearchResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GlobalSearchResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GlobalSearchResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GlobalSearchResult(GlobalSearchResult other) : this() { - kind_ = other.kind_; - score_ = other.score_; - tenantId_ = other.tenantId_; - tenantName_ = other.tenantName_; - applicationId_ = other.applicationId_; - applicationName_ = other.applicationName_; - deviceDevEui_ = other.deviceDevEui_; - deviceName_ = other.deviceName_; - gatewayId_ = other.gatewayId_; - gatewayName_ = other.gatewayName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GlobalSearchResult Clone() { - return new GlobalSearchResult(this); - } - - /// Field number for the "kind" field. - public const int KindFieldNumber = 1; - private string kind_ = ""; - /// - /// Record kind. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Kind { - get { return kind_; } - set { - kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "score" field. - public const int ScoreFieldNumber = 2; - private float score_; - /// - /// Search score. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Score { - get { return score_; } - set { - score_ = value; - } - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 3; - private string tenantId_ = ""; - /// - /// Organization id. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tenant_name" field. - public const int TenantNameFieldNumber = 4; - private string tenantName_ = ""; - /// - /// Organization name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantName { - get { return tenantName_; } - set { - tenantName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 5; - private string applicationId_ = ""; - /// - /// Application id. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "application_name" field. - public const int ApplicationNameFieldNumber = 6; - private string applicationName_ = ""; - /// - /// Application name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationName { - get { return applicationName_; } - set { - applicationName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_dev_eui" field. - public const int DeviceDevEuiFieldNumber = 7; - private string deviceDevEui_ = ""; - /// - /// Device DevEUI (hex encoded). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeviceDevEui { - get { return deviceDevEui_; } - set { - deviceDevEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_name" field. - public const int DeviceNameFieldNumber = 8; - private string deviceName_ = ""; - /// - /// Device name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeviceName { - get { return deviceName_; } - set { - deviceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 9; - private string gatewayId_ = ""; - /// - /// Gateway MAC (hex encoded). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "gateway_name" field. - public const int GatewayNameFieldNumber = 10; - private string gatewayName_ = ""; - /// - /// Gateway name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayName { - get { return gatewayName_; } - set { - gatewayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GlobalSearchResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GlobalSearchResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Kind != other.Kind) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Score, other.Score)) return false; - if (TenantId != other.TenantId) return false; - if (TenantName != other.TenantName) return false; - if (ApplicationId != other.ApplicationId) return false; - if (ApplicationName != other.ApplicationName) return false; - if (DeviceDevEui != other.DeviceDevEui) return false; - if (DeviceName != other.DeviceName) return false; - if (GatewayId != other.GatewayId) return false; - if (GatewayName != other.GatewayName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Kind.Length != 0) hash ^= Kind.GetHashCode(); - if (Score != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Score); - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - if (TenantName.Length != 0) hash ^= TenantName.GetHashCode(); - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (ApplicationName.Length != 0) hash ^= ApplicationName.GetHashCode(); - if (DeviceDevEui.Length != 0) hash ^= DeviceDevEui.GetHashCode(); - if (DeviceName.Length != 0) hash ^= DeviceName.GetHashCode(); - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (GatewayName.Length != 0) hash ^= GatewayName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Kind.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Kind); - } - if (Score != 0F) { - output.WriteRawTag(21); - output.WriteFloat(Score); - } - if (TenantId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(TenantId); - } - if (TenantName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(TenantName); - } - if (ApplicationId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(ApplicationId); - } - if (ApplicationName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(ApplicationName); - } - if (DeviceDevEui.Length != 0) { - output.WriteRawTag(58); - output.WriteString(DeviceDevEui); - } - if (DeviceName.Length != 0) { - output.WriteRawTag(66); - output.WriteString(DeviceName); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(74); - output.WriteString(GatewayId); - } - if (GatewayName.Length != 0) { - output.WriteRawTag(82); - output.WriteString(GatewayName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Kind.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Kind); - } - if (Score != 0F) { - output.WriteRawTag(21); - output.WriteFloat(Score); - } - if (TenantId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(TenantId); - } - if (TenantName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(TenantName); - } - if (ApplicationId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(ApplicationId); - } - if (ApplicationName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(ApplicationName); - } - if (DeviceDevEui.Length != 0) { - output.WriteRawTag(58); - output.WriteString(DeviceDevEui); - } - if (DeviceName.Length != 0) { - output.WriteRawTag(66); - output.WriteString(DeviceName); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(74); - output.WriteString(GatewayId); - } - if (GatewayName.Length != 0) { - output.WriteRawTag(82); - output.WriteString(GatewayName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Kind.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind); - } - if (Score != 0F) { - size += 1 + 4; - } - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - if (TenantName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantName); - } - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (ApplicationName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationName); - } - if (DeviceDevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceDevEui); - } - if (DeviceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceName); - } - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (GatewayName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GlobalSearchResult other) { - if (other == null) { - return; - } - if (other.Kind.Length != 0) { - Kind = other.Kind; - } - if (other.Score != 0F) { - Score = other.Score; - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - if (other.TenantName.Length != 0) { - TenantName = other.TenantName; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - if (other.ApplicationName.Length != 0) { - ApplicationName = other.ApplicationName; - } - if (other.DeviceDevEui.Length != 0) { - DeviceDevEui = other.DeviceDevEui; - } - if (other.DeviceName.Length != 0) { - DeviceName = other.DeviceName; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - if (other.GatewayName.Length != 0) { - GatewayName = other.GatewayName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Kind = input.ReadString(); - break; - } - case 21: { - Score = input.ReadFloat(); - break; - } - case 26: { - TenantId = input.ReadString(); - break; - } - case 34: { - TenantName = input.ReadString(); - break; - } - case 42: { - ApplicationId = input.ReadString(); - break; - } - case 50: { - ApplicationName = input.ReadString(); - break; - } - case 58: { - DeviceDevEui = input.ReadString(); - break; - } - case 66: { - DeviceName = input.ReadString(); - break; - } - case 74: { - GatewayId = input.ReadString(); - break; - } - case 82: { - GatewayName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Kind = input.ReadString(); - break; - } - case 21: { - Score = input.ReadFloat(); - break; - } - case 26: { - TenantId = input.ReadString(); - break; - } - case 34: { - TenantName = input.ReadString(); - break; - } - case 42: { - ApplicationId = input.ReadString(); - break; - } - case 50: { - ApplicationName = input.ReadString(); - break; - } - case 58: { - DeviceDevEui = input.ReadString(); - break; - } - case 66: { - DeviceName = input.ReadString(); - break; - } - case 74: { - GatewayId = input.ReadString(); - break; - } - case 82: { - GatewayName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class SettingsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SettingsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[13]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SettingsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SettingsResponse(SettingsResponse other) : this() { - openidConnect_ = other.openidConnect_ != null ? other.openidConnect_.Clone() : null; - oauth2_ = other.oauth2_ != null ? other.oauth2_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SettingsResponse Clone() { - return new SettingsResponse(this); - } - - /// Field number for the "openid_connect" field. - public const int OpenidConnectFieldNumber = 1; - private global::Chirpstack.Api.OpenIdConnect openidConnect_; - /// - /// OpenId Connect settings. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.OpenIdConnect OpenidConnect { - get { return openidConnect_; } - set { - openidConnect_ = value; - } - } - - /// Field number for the "oauth2" field. - public const int Oauth2FieldNumber = 2; - private global::Chirpstack.Api.OAuth2 oauth2_; - /// - /// OAuth2 settings. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.OAuth2 Oauth2 { - get { return oauth2_; } - set { - oauth2_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SettingsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SettingsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(OpenidConnect, other.OpenidConnect)) return false; - if (!object.Equals(Oauth2, other.Oauth2)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (openidConnect_ != null) hash ^= OpenidConnect.GetHashCode(); - if (oauth2_ != null) hash ^= Oauth2.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (openidConnect_ != null) { - output.WriteRawTag(10); - output.WriteMessage(OpenidConnect); - } - if (oauth2_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Oauth2); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (openidConnect_ != null) { - output.WriteRawTag(10); - output.WriteMessage(OpenidConnect); - } - if (oauth2_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Oauth2); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (openidConnect_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(OpenidConnect); - } - if (oauth2_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Oauth2); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SettingsResponse other) { - if (other == null) { - return; - } - if (other.openidConnect_ != null) { - if (openidConnect_ == null) { - OpenidConnect = new global::Chirpstack.Api.OpenIdConnect(); - } - OpenidConnect.MergeFrom(other.OpenidConnect); - } - if (other.oauth2_ != null) { - if (oauth2_ == null) { - Oauth2 = new global::Chirpstack.Api.OAuth2(); - } - Oauth2.MergeFrom(other.Oauth2); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (openidConnect_ == null) { - OpenidConnect = new global::Chirpstack.Api.OpenIdConnect(); - } - input.ReadMessage(OpenidConnect); - break; - } - case 18: { - if (oauth2_ == null) { - Oauth2 = new global::Chirpstack.Api.OAuth2(); - } - input.ReadMessage(Oauth2); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (openidConnect_ == null) { - OpenidConnect = new global::Chirpstack.Api.OpenIdConnect(); - } - input.ReadMessage(OpenidConnect); - break; - } - case 18: { - if (oauth2_ == null) { - Oauth2 = new global::Chirpstack.Api.OAuth2(); - } - input.ReadMessage(Oauth2); - break; - } - } - } - } - #endif - - } - - public sealed partial class OpenIdConnect : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OpenIdConnect()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[14]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OpenIdConnect() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OpenIdConnect(OpenIdConnect other) : this() { - enabled_ = other.enabled_; - loginUrl_ = other.loginUrl_; - loginLabel_ = other.loginLabel_; - logoutUrl_ = other.logoutUrl_; - loginRedirect_ = other.loginRedirect_; - _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"); - } - } - - /// Field number for the "login_redirect" field. - public const int LoginRedirectFieldNumber = 5; - private bool loginRedirect_; - /// - /// Login redirect. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool LoginRedirect { - get { return loginRedirect_; } - set { - loginRedirect_ = 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; - if (LoginRedirect != other.LoginRedirect) return false; - 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 (LoginRedirect != false) hash ^= LoginRedirect.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [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 (LoginRedirect != false) { - output.WriteRawTag(40); - output.WriteBool(LoginRedirect); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_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 (LoginRedirect != false) { - output.WriteRawTag(40); - output.WriteBool(LoginRedirect); - } - if (_unknownFields != 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 (LoginRedirect != 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(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; - } - if (other.LoginRedirect != false) { - LoginRedirect = other.LoginRedirect; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_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; - } - case 40: { - LoginRedirect = 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: { - Enabled = input.ReadBool(); - break; - } - case 18: { - LoginUrl = input.ReadString(); - break; - } - case 26: { - LoginLabel = input.ReadString(); - break; - } - case 34: { - LogoutUrl = input.ReadString(); - break; - } - case 40: { - LoginRedirect = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - public sealed partial class OAuth2 : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OAuth2()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[15]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OAuth2() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OAuth2(OAuth2 other) : this() { - enabled_ = other.enabled_; - loginUrl_ = other.loginUrl_; - loginLabel_ = other.loginLabel_; - logoutUrl_ = other.logoutUrl_; - loginRedirect_ = other.loginRedirect_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OAuth2 Clone() { - return new OAuth2(this); - } - - /// Field number for the "enabled" field. - public const int EnabledFieldNumber = 1; - private bool enabled_; - /// - /// OAuth2 is enabled. - /// - [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"); - } - } - - /// Field number for the "login_redirect" field. - public const int LoginRedirectFieldNumber = 5; - private bool loginRedirect_; - /// - /// Login redirect. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool LoginRedirect { - get { return loginRedirect_; } - set { - loginRedirect_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as OAuth2); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(OAuth2 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; - if (LoginRedirect != other.LoginRedirect) return false; - 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 (LoginRedirect != false) hash ^= LoginRedirect.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [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 (LoginRedirect != false) { - output.WriteRawTag(40); - output.WriteBool(LoginRedirect); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_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 (LoginRedirect != false) { - output.WriteRawTag(40); - output.WriteBool(LoginRedirect); - } - if (_unknownFields != 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 (LoginRedirect != 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(OAuth2 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; - } - if (other.LoginRedirect != false) { - LoginRedirect = other.LoginRedirect; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_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; - } - case 40: { - LoginRedirect = 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: { - Enabled = input.ReadBool(); - break; - } - case 18: { - LoginUrl = input.ReadString(); - break; - } - case 26: { - LoginLabel = input.ReadString(); - break; - } - case 34: { - LogoutUrl = input.ReadString(); - break; - } - case 40: { - LoginRedirect = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - public sealed partial class OpenIdConnectLoginRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OpenIdConnectLoginRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[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.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() { - token_ = other.token_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OpenIdConnectLoginResponse Clone() { - return new OpenIdConnectLoginResponse(this); - } - - /// Field number for the "token" field. - public const int TokenFieldNumber = 1; - private string token_ = ""; - /// - /// Token to use for authentication. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Token { - get { return token_; } - set { - token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as OpenIdConnectLoginResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(OpenIdConnectLoginResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Token != other.Token) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Token.Length != 0) hash ^= Token.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Token.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Token); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Token.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Token); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Token.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(OpenIdConnectLoginResponse other) { - if (other == null) { - return; - } - if (other.Token.Length != 0) { - Token = other.Token; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Token = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Token = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class OAuth2LoginRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OAuth2LoginRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[18]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OAuth2LoginRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OAuth2LoginRequest(OAuth2LoginRequest 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 OAuth2LoginRequest Clone() { - return new OAuth2LoginRequest(this); - } - - /// Field number for the "code" field. - public const int CodeFieldNumber = 1; - private string code_ = ""; - /// - /// OAuth2 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_ = ""; - /// - /// OAuth2 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 OAuth2LoginRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(OAuth2LoginRequest 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(OAuth2LoginRequest 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 OAuth2LoginResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OAuth2LoginResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[19]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OAuth2LoginResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OAuth2LoginResponse(OAuth2LoginResponse other) : this() { - token_ = other.token_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OAuth2LoginResponse Clone() { - return new OAuth2LoginResponse(this); - } - - /// Field number for the "token" field. - public const int TokenFieldNumber = 1; - private string token_ = ""; - /// - /// Token to use for authentication. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Token { - get { return token_; } - set { - token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as OAuth2LoginResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(OAuth2LoginResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Token != other.Token) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Token.Length != 0) hash ^= Token.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Token.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Token); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Token.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Token); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Token.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(OAuth2LoginResponse other) { - if (other == null) { - return; - } - if (other.Token.Length != 0) { - Token = other.Token; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Token = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Token = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDevicesSummaryRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDevicesSummaryRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[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 GetDevicesSummaryRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDevicesSummaryRequest(GetDevicesSummaryRequest other) : this() { - tenantId_ = other.tenantId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDevicesSummaryRequest Clone() { - return new GetDevicesSummaryRequest(this); - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 1; - private string tenantId_ = ""; - /// - /// Tenant ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDevicesSummaryRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDevicesSummaryRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TenantId != other.TenantId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDevicesSummaryRequest other) { - if (other == null) { - return; - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetDevicesSummaryResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDevicesSummaryResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[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 GetDevicesSummaryResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDevicesSummaryResponse(GetDevicesSummaryResponse other) : this() { - activeCount_ = other.activeCount_; - inactiveCount_ = other.inactiveCount_; - drCount_ = other.drCount_.Clone(); - neverSeenCount_ = other.neverSeenCount_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetDevicesSummaryResponse Clone() { - return new GetDevicesSummaryResponse(this); - } - - /// Field number for the "active_count" field. - public const int ActiveCountFieldNumber = 1; - private uint activeCount_; - /// - /// Active count. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ActiveCount { - get { return activeCount_; } - set { - activeCount_ = value; - } - } - - /// Field number for the "inactive_count" field. - public const int InactiveCountFieldNumber = 2; - private uint inactiveCount_; - /// - /// Inactive count. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint InactiveCount { - get { return inactiveCount_; } - set { - inactiveCount_ = value; - } - } - - /// Field number for the "dr_count" field. - public const int DrCountFieldNumber = 3; - private static readonly pbc::MapField.Codec _map_drCount_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 26); - private readonly pbc::MapField drCount_ = new pbc::MapField(); - /// - /// per data-rate count. - /// Devices that have never been seen are excluded. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField DrCount { - get { return drCount_; } - } - - /// Field number for the "never_seen_count" field. - public const int NeverSeenCountFieldNumber = 4; - private uint neverSeenCount_; - /// - /// Never seen count. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint NeverSeenCount { - get { return neverSeenCount_; } - set { - neverSeenCount_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetDevicesSummaryResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDevicesSummaryResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ActiveCount != other.ActiveCount) return false; - if (InactiveCount != other.InactiveCount) return false; - if (!DrCount.Equals(other.DrCount)) return false; - if (NeverSeenCount != other.NeverSeenCount) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ActiveCount != 0) hash ^= ActiveCount.GetHashCode(); - if (InactiveCount != 0) hash ^= InactiveCount.GetHashCode(); - hash ^= DrCount.GetHashCode(); - if (NeverSeenCount != 0) hash ^= NeverSeenCount.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ActiveCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(ActiveCount); - } - if (InactiveCount != 0) { - output.WriteRawTag(16); - output.WriteUInt32(InactiveCount); - } - drCount_.WriteTo(output, _map_drCount_codec); - if (NeverSeenCount != 0) { - output.WriteRawTag(32); - output.WriteUInt32(NeverSeenCount); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ActiveCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(ActiveCount); - } - if (InactiveCount != 0) { - output.WriteRawTag(16); - output.WriteUInt32(InactiveCount); - } - drCount_.WriteTo(ref output, _map_drCount_codec); - if (NeverSeenCount != 0) { - output.WriteRawTag(32); - output.WriteUInt32(NeverSeenCount); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ActiveCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ActiveCount); - } - if (InactiveCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(InactiveCount); - } - size += drCount_.CalculateSize(_map_drCount_codec); - if (NeverSeenCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NeverSeenCount); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDevicesSummaryResponse other) { - if (other == null) { - return; - } - if (other.ActiveCount != 0) { - ActiveCount = other.ActiveCount; - } - if (other.InactiveCount != 0) { - InactiveCount = other.InactiveCount; - } - drCount_.Add(other.drCount_); - if (other.NeverSeenCount != 0) { - NeverSeenCount = other.NeverSeenCount; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - ActiveCount = input.ReadUInt32(); - break; - } - case 16: { - InactiveCount = input.ReadUInt32(); - break; - } - case 26: { - drCount_.AddEntriesFrom(input, _map_drCount_codec); - break; - } - case 32: { - NeverSeenCount = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - ActiveCount = input.ReadUInt32(); - break; - } - case 16: { - InactiveCount = input.ReadUInt32(); - break; - } - case 26: { - drCount_.AddEntriesFrom(ref input, _map_drCount_codec); - break; - } - case 32: { - NeverSeenCount = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetGatewaysSummaryRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewaysSummaryRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[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 GetGatewaysSummaryRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGatewaysSummaryRequest(GetGatewaysSummaryRequest other) : this() { - tenantId_ = other.tenantId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGatewaysSummaryRequest Clone() { - return new GetGatewaysSummaryRequest(this); - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 1; - private string tenantId_ = ""; - /// - /// Tenant ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetGatewaysSummaryRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetGatewaysSummaryRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TenantId != other.TenantId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetGatewaysSummaryRequest other) { - if (other == null) { - return; - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetGatewaysSummaryResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGatewaysSummaryResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[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 GetGatewaysSummaryResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGatewaysSummaryResponse(GetGatewaysSummaryResponse other) : this() { - onlineCount_ = other.onlineCount_; - offlineCount_ = other.offlineCount_; - neverSeenCount_ = other.neverSeenCount_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGatewaysSummaryResponse Clone() { - return new GetGatewaysSummaryResponse(this); - } - - /// Field number for the "online_count" field. - public const int OnlineCountFieldNumber = 1; - private uint onlineCount_; - /// - /// Online count. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint OnlineCount { - get { return onlineCount_; } - set { - onlineCount_ = value; - } - } - - /// Field number for the "offline_count" field. - public const int OfflineCountFieldNumber = 2; - private uint offlineCount_; - /// - /// Offline count. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint OfflineCount { - get { return offlineCount_; } - set { - offlineCount_ = value; - } - } - - /// Field number for the "never_seen_count" field. - public const int NeverSeenCountFieldNumber = 3; - private uint neverSeenCount_; - /// - /// Never seen count. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint NeverSeenCount { - get { return neverSeenCount_; } - set { - neverSeenCount_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetGatewaysSummaryResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetGatewaysSummaryResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (OnlineCount != other.OnlineCount) return false; - if (OfflineCount != other.OfflineCount) return false; - if (NeverSeenCount != other.NeverSeenCount) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (OnlineCount != 0) hash ^= OnlineCount.GetHashCode(); - if (OfflineCount != 0) hash ^= OfflineCount.GetHashCode(); - if (NeverSeenCount != 0) hash ^= NeverSeenCount.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (OnlineCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(OnlineCount); - } - if (OfflineCount != 0) { - output.WriteRawTag(16); - output.WriteUInt32(OfflineCount); - } - if (NeverSeenCount != 0) { - output.WriteRawTag(24); - output.WriteUInt32(NeverSeenCount); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (OnlineCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(OnlineCount); - } - if (OfflineCount != 0) { - output.WriteRawTag(16); - output.WriteUInt32(OfflineCount); - } - if (NeverSeenCount != 0) { - output.WriteRawTag(24); - output.WriteUInt32(NeverSeenCount); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (OnlineCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OnlineCount); - } - if (OfflineCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OfflineCount); - } - if (NeverSeenCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NeverSeenCount); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetGatewaysSummaryResponse other) { - if (other == null) { - return; - } - if (other.OnlineCount != 0) { - OnlineCount = other.OnlineCount; - } - if (other.OfflineCount != 0) { - OfflineCount = other.OfflineCount; - } - if (other.NeverSeenCount != 0) { - NeverSeenCount = other.NeverSeenCount; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - OnlineCount = input.ReadUInt32(); - break; - } - case 16: { - OfflineCount = input.ReadUInt32(); - break; - } - case 24: { - NeverSeenCount = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - OnlineCount = input.ReadUInt32(); - break; - } - case 16: { - OfflineCount = input.ReadUInt32(); - break; - } - case 24: { - NeverSeenCount = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - public sealed partial class LogItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LogItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[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 LogItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LogItem(LogItem other) : this() { - id_ = other.id_; - time_ = other.time_ != null ? other.time_.Clone() : null; - description_ = other.description_; - body_ = other.body_; - properties_ = other.properties_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LogItem Clone() { - return new LogItem(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp time_; - /// - /// Timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Time { - get { return time_; } - set { - time_ = value; - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 3; - private string description_ = ""; - /// - /// Message. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "body" field. - public const int BodyFieldNumber = 4; - private string body_ = ""; - /// - /// Body. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Body { - get { return body_; } - set { - body_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "properties" field. - public const int PropertiesFieldNumber = 5; - private static readonly pbc::MapField.Codec _map_properties_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 42); - private readonly pbc::MapField properties_ = new pbc::MapField(); - /// - /// Properties. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Properties { - get { return properties_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LogItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LogItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (!object.Equals(Time, other.Time)) return false; - if (Description != other.Description) return false; - if (Body != other.Body) return false; - if (!Properties.Equals(other.Properties)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (time_ != null) hash ^= Time.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (Body.Length != 0) hash ^= Body.GetHashCode(); - hash ^= Properties.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (Description.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description); - } - if (Body.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Body); - } - properties_.WriteTo(output, _map_properties_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (Description.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description); - } - if (Body.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Body); - } - properties_.WriteTo(ref output, _map_properties_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (time_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (Body.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Body); - } - size += properties_.CalculateSize(_map_properties_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LogItem other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.time_ != null) { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Time.MergeFrom(other.Time); - } - if (other.Description.Length != 0) { - Description = other.Description; - } - if (other.Body.Length != 0) { - Body = other.Body; - } - properties_.Add(other.properties_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - Description = input.ReadString(); - break; - } - case 34: { - Body = input.ReadString(); - break; - } - case 42: { - properties_.AddEntriesFrom(input, _map_properties_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - Description = input.ReadString(); - break; - } - case 34: { - Body = input.ReadString(); - break; - } - case 42: { - properties_.AddEntriesFrom(ref input, _map_properties_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class StreamGatewayFramesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamGatewayFramesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[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 StreamGatewayFramesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StreamGatewayFramesRequest(StreamGatewayFramesRequest other) : this() { - gatewayId_ = other.gatewayId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StreamGatewayFramesRequest Clone() { - return new StreamGatewayFramesRequest(this); - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 1; - private string gatewayId_ = ""; - /// - /// Gateway ID (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StreamGatewayFramesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StreamGatewayFramesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GatewayId != other.GatewayId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (GatewayId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (GatewayId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StreamGatewayFramesRequest other) { - if (other == null) { - return; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - GatewayId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - GatewayId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class StreamDeviceFramesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamDeviceFramesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[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 StreamDeviceFramesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StreamDeviceFramesRequest(StreamDeviceFramesRequest other) : this() { - devEui_ = other.devEui_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StreamDeviceFramesRequest Clone() { - return new StreamDeviceFramesRequest(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// Device EUI. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StreamDeviceFramesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StreamDeviceFramesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StreamDeviceFramesRequest other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class StreamDeviceEventsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamDeviceEventsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[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 StreamDeviceEventsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StreamDeviceEventsRequest(StreamDeviceEventsRequest other) : this() { - devEui_ = other.devEui_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StreamDeviceEventsRequest Clone() { - return new StreamDeviceEventsRequest(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// Device EUI. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StreamDeviceEventsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StreamDeviceEventsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StreamDeviceEventsRequest other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListRegionsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListRegionsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[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 ListRegionsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListRegionsResponse(ListRegionsResponse other) : this() { - regions_ = other.regions_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListRegionsResponse Clone() { - return new ListRegionsResponse(this); - } - - /// Field number for the "regions" field. - public const int RegionsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_regions_codec - = pb::FieldCodec.ForMessage(10, global::Chirpstack.Api.RegionListItem.Parser); - private readonly pbc::RepeatedField regions_ = new pbc::RepeatedField(); - /// - /// Configured regions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Regions { - get { return regions_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListRegionsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListRegionsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!regions_.Equals(other.regions_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= regions_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - regions_.WriteTo(output, _repeated_regions_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - regions_.WriteTo(ref output, _repeated_regions_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += regions_.CalculateSize(_repeated_regions_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListRegionsResponse other) { - if (other == null) { - return; - } - regions_.Add(other.regions_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - regions_.AddEntriesFrom(input, _repeated_regions_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - regions_.AddEntriesFrom(ref input, _repeated_regions_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class RegionListItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegionListItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[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 RegionListItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RegionListItem(RegionListItem other) : this() { - id_ = other.id_; - region_ = other.region_; - description_ = other.description_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RegionListItem Clone() { - return new RegionListItem(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 2; - private global::Chirpstack.Common.Region region_ = global::Chirpstack.Common.Region.Eu868; - /// - /// Region. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Region Region { - get { return region_; } - set { - region_ = value; - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 3; - private string description_ = ""; - /// - /// Description. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RegionListItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RegionListItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (Region != other.Region) return false; - if (Description != other.Description) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (Region != global::Chirpstack.Common.Region.Eu868) hash ^= Region.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - output.WriteRawTag(16); - output.WriteEnum((int) Region); - } - if (Description.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - output.WriteRawTag(16); - output.WriteEnum((int) Region); - } - if (Description.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Region); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RegionListItem other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.Region != global::Chirpstack.Common.Region.Eu868) { - Region = other.Region; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 16: { - Region = (global::Chirpstack.Common.Region) input.ReadEnum(); - break; - } - case 26: { - Description = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 16: { - Region = (global::Chirpstack.Common.Region) input.ReadEnum(); - break; - } - case 26: { - Description = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetRegionRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRegionRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[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 GetRegionRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetRegionRequest(GetRegionRequest other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetRegionRequest Clone() { - return new GetRegionRequest(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Region ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetRegionRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetRegionRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetRegionRequest other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetRegionResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRegionResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[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 GetRegionResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetRegionResponse(GetRegionResponse other) : this() { - id_ = other.id_; - region_ = other.region_; - userInfo_ = other.userInfo_; - uplinkChannels_ = other.uplinkChannels_.Clone(); - rx1Delay_ = other.rx1Delay_; - rx1DrOffset_ = other.rx1DrOffset_; - rx2Dr_ = other.rx2Dr_; - rx2Frequency_ = other.rx2Frequency_; - classBPingSlotDr_ = other.classBPingSlotDr_; - classBPingSlotFrequency_ = other.classBPingSlotFrequency_; - description_ = other.description_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetRegionResponse Clone() { - return new GetRegionResponse(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 2; - private global::Chirpstack.Common.Region region_ = global::Chirpstack.Common.Region.Eu868; - /// - /// Region. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Region Region { - get { return region_; } - set { - region_ = value; - } - } - - /// Field number for the "user_info" field. - public const int UserInfoFieldNumber = 3; - private string userInfo_ = ""; - /// - /// User information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserInfo { - get { return userInfo_; } - set { - userInfo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "uplink_channels" field. - public const int UplinkChannelsFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_uplinkChannels_codec - = pb::FieldCodec.ForMessage(34, global::Chirpstack.Api.RegionChannel.Parser); - private readonly pbc::RepeatedField uplinkChannels_ = new pbc::RepeatedField(); - /// - /// Uplink channels. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UplinkChannels { - get { return uplinkChannels_; } - } - - /// Field number for the "rx1_delay" field. - public const int Rx1DelayFieldNumber = 5; - private uint rx1Delay_; - /// - /// RX1 delay. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Rx1Delay { - get { return rx1Delay_; } - set { - rx1Delay_ = value; - } - } - - /// Field number for the "rx1_dr_offset" field. - public const int Rx1DrOffsetFieldNumber = 6; - private uint rx1DrOffset_; - /// - /// RX1 data-rate offset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Rx1DrOffset { - get { return rx1DrOffset_; } - set { - rx1DrOffset_ = value; - } - } - - /// Field number for the "rx2_dr" field. - public const int Rx2DrFieldNumber = 7; - private uint rx2Dr_; - /// - /// RX2 DR. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Rx2Dr { - get { return rx2Dr_; } - set { - rx2Dr_ = value; - } - } - - /// Field number for the "rx2_frequency" field. - public const int Rx2FrequencyFieldNumber = 8; - private uint rx2Frequency_; - /// - /// RX2 frequency. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Rx2Frequency { - get { return rx2Frequency_; } - set { - rx2Frequency_ = value; - } - } - - /// Field number for the "class_b_ping_slot_dr" field. - public const int ClassBPingSlotDrFieldNumber = 9; - private uint classBPingSlotDr_; - /// - /// Class-B ping-slot DR. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ClassBPingSlotDr { - get { return classBPingSlotDr_; } - set { - classBPingSlotDr_ = value; - } - } - - /// Field number for the "class_b_ping_slot_frequency" field. - public const int ClassBPingSlotFrequencyFieldNumber = 10; - private uint classBPingSlotFrequency_; - /// - /// Class-B ping-slot frequency. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ClassBPingSlotFrequency { - get { return classBPingSlotFrequency_; } - set { - classBPingSlotFrequency_ = value; - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 11; - private string description_ = ""; - /// - /// Region description. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetRegionResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetRegionResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (Region != other.Region) return false; - if (UserInfo != other.UserInfo) return false; - if(!uplinkChannels_.Equals(other.uplinkChannels_)) return false; - if (Rx1Delay != other.Rx1Delay) return false; - if (Rx1DrOffset != other.Rx1DrOffset) return false; - if (Rx2Dr != other.Rx2Dr) return false; - if (Rx2Frequency != other.Rx2Frequency) return false; - if (ClassBPingSlotDr != other.ClassBPingSlotDr) return false; - if (ClassBPingSlotFrequency != other.ClassBPingSlotFrequency) return false; - if (Description != other.Description) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (Region != global::Chirpstack.Common.Region.Eu868) hash ^= Region.GetHashCode(); - if (UserInfo.Length != 0) hash ^= UserInfo.GetHashCode(); - hash ^= uplinkChannels_.GetHashCode(); - if (Rx1Delay != 0) hash ^= Rx1Delay.GetHashCode(); - if (Rx1DrOffset != 0) hash ^= Rx1DrOffset.GetHashCode(); - if (Rx2Dr != 0) hash ^= Rx2Dr.GetHashCode(); - if (Rx2Frequency != 0) hash ^= Rx2Frequency.GetHashCode(); - if (ClassBPingSlotDr != 0) hash ^= ClassBPingSlotDr.GetHashCode(); - if (ClassBPingSlotFrequency != 0) hash ^= ClassBPingSlotFrequency.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - output.WriteRawTag(16); - output.WriteEnum((int) Region); - } - if (UserInfo.Length != 0) { - output.WriteRawTag(26); - output.WriteString(UserInfo); - } - uplinkChannels_.WriteTo(output, _repeated_uplinkChannels_codec); - if (Rx1Delay != 0) { - output.WriteRawTag(40); - output.WriteUInt32(Rx1Delay); - } - if (Rx1DrOffset != 0) { - output.WriteRawTag(48); - output.WriteUInt32(Rx1DrOffset); - } - if (Rx2Dr != 0) { - output.WriteRawTag(56); - output.WriteUInt32(Rx2Dr); - } - if (Rx2Frequency != 0) { - output.WriteRawTag(64); - output.WriteUInt32(Rx2Frequency); - } - if (ClassBPingSlotDr != 0) { - output.WriteRawTag(72); - output.WriteUInt32(ClassBPingSlotDr); - } - if (ClassBPingSlotFrequency != 0) { - output.WriteRawTag(80); - output.WriteUInt32(ClassBPingSlotFrequency); - } - if (Description.Length != 0) { - output.WriteRawTag(90); - output.WriteString(Description); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - output.WriteRawTag(16); - output.WriteEnum((int) Region); - } - if (UserInfo.Length != 0) { - output.WriteRawTag(26); - output.WriteString(UserInfo); - } - uplinkChannels_.WriteTo(ref output, _repeated_uplinkChannels_codec); - if (Rx1Delay != 0) { - output.WriteRawTag(40); - output.WriteUInt32(Rx1Delay); - } - if (Rx1DrOffset != 0) { - output.WriteRawTag(48); - output.WriteUInt32(Rx1DrOffset); - } - if (Rx2Dr != 0) { - output.WriteRawTag(56); - output.WriteUInt32(Rx2Dr); - } - if (Rx2Frequency != 0) { - output.WriteRawTag(64); - output.WriteUInt32(Rx2Frequency); - } - if (ClassBPingSlotDr != 0) { - output.WriteRawTag(72); - output.WriteUInt32(ClassBPingSlotDr); - } - if (ClassBPingSlotFrequency != 0) { - output.WriteRawTag(80); - output.WriteUInt32(ClassBPingSlotFrequency); - } - if (Description.Length != 0) { - output.WriteRawTag(90); - output.WriteString(Description); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Region); - } - if (UserInfo.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserInfo); - } - size += uplinkChannels_.CalculateSize(_repeated_uplinkChannels_codec); - if (Rx1Delay != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Rx1Delay); - } - if (Rx1DrOffset != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Rx1DrOffset); - } - if (Rx2Dr != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Rx2Dr); - } - if (Rx2Frequency != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Rx2Frequency); - } - if (ClassBPingSlotDr != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotDr); - } - if (ClassBPingSlotFrequency != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotFrequency); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetRegionResponse other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.Region != global::Chirpstack.Common.Region.Eu868) { - Region = other.Region; - } - if (other.UserInfo.Length != 0) { - UserInfo = other.UserInfo; - } - uplinkChannels_.Add(other.uplinkChannels_); - if (other.Rx1Delay != 0) { - Rx1Delay = other.Rx1Delay; - } - if (other.Rx1DrOffset != 0) { - Rx1DrOffset = other.Rx1DrOffset; - } - if (other.Rx2Dr != 0) { - Rx2Dr = other.Rx2Dr; - } - if (other.Rx2Frequency != 0) { - Rx2Frequency = other.Rx2Frequency; - } - if (other.ClassBPingSlotDr != 0) { - ClassBPingSlotDr = other.ClassBPingSlotDr; - } - if (other.ClassBPingSlotFrequency != 0) { - ClassBPingSlotFrequency = other.ClassBPingSlotFrequency; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 16: { - Region = (global::Chirpstack.Common.Region) input.ReadEnum(); - break; - } - case 26: { - UserInfo = input.ReadString(); - break; - } - case 34: { - uplinkChannels_.AddEntriesFrom(input, _repeated_uplinkChannels_codec); - break; - } - case 40: { - Rx1Delay = input.ReadUInt32(); - break; - } - case 48: { - Rx1DrOffset = input.ReadUInt32(); - break; - } - case 56: { - Rx2Dr = input.ReadUInt32(); - break; - } - case 64: { - Rx2Frequency = input.ReadUInt32(); - break; - } - case 72: { - ClassBPingSlotDr = input.ReadUInt32(); - break; - } - case 80: { - ClassBPingSlotFrequency = input.ReadUInt32(); - break; - } - case 90: { - Description = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 16: { - Region = (global::Chirpstack.Common.Region) input.ReadEnum(); - break; - } - case 26: { - UserInfo = input.ReadString(); - break; - } - case 34: { - uplinkChannels_.AddEntriesFrom(ref input, _repeated_uplinkChannels_codec); - break; - } - case 40: { - Rx1Delay = input.ReadUInt32(); - break; - } - case 48: { - Rx1DrOffset = input.ReadUInt32(); - break; - } - case 56: { - Rx2Dr = input.ReadUInt32(); - break; - } - case 64: { - Rx2Frequency = input.ReadUInt32(); - break; - } - case 72: { - ClassBPingSlotDr = input.ReadUInt32(); - break; - } - case 80: { - ClassBPingSlotFrequency = input.ReadUInt32(); - break; - } - case 90: { - Description = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class RegionChannel : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegionChannel()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.MessageTypes[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 RegionChannel() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RegionChannel(RegionChannel other) : this() { - frequency_ = other.frequency_; - drMin_ = other.drMin_; - drMax_ = other.drMax_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RegionChannel Clone() { - return new RegionChannel(this); - } - - /// Field number for the "frequency" field. - public const int FrequencyFieldNumber = 1; - private uint frequency_; - /// - /// Frequency (Hz). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Frequency { - get { return frequency_; } - set { - frequency_ = value; - } - } - - /// Field number for the "dr_min" field. - public const int DrMinFieldNumber = 2; - private uint drMin_; - /// - /// Min DR. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint DrMin { - get { return drMin_; } - set { - drMin_ = value; - } - } - - /// Field number for the "dr_max" field. - public const int DrMaxFieldNumber = 3; - private uint drMax_; - /// - /// Max DR. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint DrMax { - get { return drMax_; } - set { - drMax_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RegionChannel); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RegionChannel other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Frequency != other.Frequency) return false; - if (DrMin != other.DrMin) return false; - if (DrMax != other.DrMax) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Frequency != 0) hash ^= Frequency.GetHashCode(); - if (DrMin != 0) hash ^= DrMin.GetHashCode(); - if (DrMax != 0) hash ^= DrMax.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Frequency != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Frequency); - } - if (DrMin != 0) { - output.WriteRawTag(16); - output.WriteUInt32(DrMin); - } - if (DrMax != 0) { - output.WriteRawTag(24); - output.WriteUInt32(DrMax); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Frequency != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Frequency); - } - if (DrMin != 0) { - output.WriteRawTag(16); - output.WriteUInt32(DrMin); - } - if (DrMax != 0) { - output.WriteRawTag(24); - output.WriteUInt32(DrMax); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Frequency != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); - } - if (DrMin != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DrMin); - } - if (DrMax != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DrMax); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RegionChannel other) { - if (other == null) { - return; - } - if (other.Frequency != 0) { - Frequency = other.Frequency; - } - if (other.DrMin != 0) { - DrMin = other.DrMin; - } - if (other.DrMax != 0) { - DrMax = other.DrMax; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Frequency = input.ReadUInt32(); - break; - } - case 16: { - DrMin = input.ReadUInt32(); - break; - } - case 24: { - DrMax = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Frequency = input.ReadUInt32(); - break; - } - case 16: { - DrMin = input.ReadUInt32(); - break; - } - case 24: { - DrMax = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - 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.Api.InternalReflection.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 GetVersionResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetVersionResponse(GetVersionResponse other) : this() { - version_ = other.version_; - _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_ = ""; - /// - /// 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"); - } - } - - [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; - 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 (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [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 (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_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 (_unknownFields != 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 (_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; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(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; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/InternalGrpc.cs b/api/csharp/Chirpstack/api/InternalGrpc.cs deleted file mode 100644 index a0530b9b..00000000 --- a/api/csharp/Chirpstack/api/InternalGrpc.cs +++ /dev/null @@ -1,1295 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/internal.proto -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Chirpstack.Api { - /// - /// InternalService is the service providing API endpoints for internal usage. - /// - public static partial class InternalService - { - static readonly string __ServiceName = "api.InternalService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_LoginRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.LoginRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_LoginResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.LoginResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ProfileResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GlobalSearchRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GlobalSearchRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GlobalSearchResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GlobalSearchResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateApiKeyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateApiKeyRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateApiKeyResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateApiKeyResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteApiKeyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteApiKeyRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListApiKeysRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListApiKeysRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListApiKeysResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListApiKeysResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_SettingsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.SettingsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_OpenIdConnectLoginRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.OpenIdConnectLoginRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_OpenIdConnectLoginResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.OpenIdConnectLoginResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_OAuth2LoginRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.OAuth2LoginRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_OAuth2LoginResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.OAuth2LoginResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDevicesSummaryRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDevicesSummaryRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetDevicesSummaryResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetDevicesSummaryResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetGatewaysSummaryRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetGatewaysSummaryRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetGatewaysSummaryResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetGatewaysSummaryResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_StreamGatewayFramesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.StreamGatewayFramesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_LogItem = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.LogItem.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_StreamDeviceFramesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.StreamDeviceFramesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_StreamDeviceEventsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.StreamDeviceEventsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListRegionsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListRegionsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetRegionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetRegionRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetRegionResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetRegionResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetVersionResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetVersionResponse.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_OAuth2Login = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "OAuth2Login", - __Marshaller_api_OAuth2LoginRequest, - __Marshaller_api_OAuth2LoginResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetDevicesSummary = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetDevicesSummary", - __Marshaller_api_GetDevicesSummaryRequest, - __Marshaller_api_GetDevicesSummaryResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetGatewaysSummary = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetGatewaysSummary", - __Marshaller_api_GetGatewaysSummaryRequest, - __Marshaller_api_GetGatewaysSummaryResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_StreamGatewayFrames = new grpc::Method( - grpc::MethodType.ServerStreaming, - __ServiceName, - "StreamGatewayFrames", - __Marshaller_api_StreamGatewayFramesRequest, - __Marshaller_api_LogItem); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_StreamDeviceFrames = new grpc::Method( - grpc::MethodType.ServerStreaming, - __ServiceName, - "StreamDeviceFrames", - __Marshaller_api_StreamDeviceFramesRequest, - __Marshaller_api_LogItem); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_StreamDeviceEvents = new grpc::Method( - grpc::MethodType.ServerStreaming, - __ServiceName, - "StreamDeviceEvents", - __Marshaller_api_StreamDeviceEventsRequest, - __Marshaller_api_LogItem); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ListRegions = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ListRegions", - __Marshaller_google_protobuf_Empty, - __Marshaller_api_ListRegionsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetRegion = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetRegion", - __Marshaller_api_GetRegionRequest, - __Marshaller_api_GetRegionResponse); - - [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_api_GetVersionResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Chirpstack.Api.InternalReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of InternalService - [grpc::BindServiceMethod(typeof(InternalService), "BindService")] - public abstract partial class InternalServiceBase - { - /// - /// Log in a user - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Login(global::Chirpstack.Api.LoginRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get the current user's profile - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Profile(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Perform a global search. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GlobalSearch(global::Chirpstack.Api.GlobalSearchRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// CreateApiKey creates the given API key. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task CreateApiKey(global::Chirpstack.Api.CreateApiKeyRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// DeleteApiKey deletes the API key. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task DeleteApiKey(global::Chirpstack.Api.DeleteApiKeyRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// ListApiKeys lists the available API keys. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ListApiKeys(global::Chirpstack.Api.ListApiKeysRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get the global settings. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Settings(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// OpenId Connect login. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task OpenIdConnectLogin(global::Chirpstack.Api.OpenIdConnectLoginRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// OAuth2 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 OAuth2Login(global::Chirpstack.Api.OAuth2LoginRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// GetDevicesSummary returns an aggregated summary of the devices. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetDevicesSummary(global::Chirpstack.Api.GetDevicesSummaryRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// GetGatewaysSummary returns an aggregated summary of the gateways. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetGatewaysSummary(global::Chirpstack.Api.GetGatewaysSummaryRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Stream frame for the given Gateway ID. - /// - /// The request received from the client. - /// Used for sending responses back to the client. - /// The context of the server-side call handler being invoked. - /// A task indicating completion of the handler. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task StreamGatewayFrames(global::Chirpstack.Api.StreamGatewayFramesRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Stream frames for the given Device EUI. - /// - /// The request received from the client. - /// Used for sending responses back to the client. - /// The context of the server-side call handler being invoked. - /// A task indicating completion of the handler. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task StreamDeviceFrames(global::Chirpstack.Api.StreamDeviceFramesRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Stream events for the given Device EUI. - /// - /// The request received from the client. - /// Used for sending responses back to the client. - /// The context of the server-side call handler being invoked. - /// A task indicating completion of the handler. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task StreamDeviceEvents(global::Chirpstack.Api.StreamDeviceEventsRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// ListRegions lists the available (configured) regions. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ListRegions(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// GetRegion returns the region details for the given region. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetRegion(global::Chirpstack.Api.GetRegionRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// GetVersion returns the ChirpStack 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, "")); - } - - } - - /// Client for InternalService - public partial class InternalServiceClient : grpc::ClientBase - { - /// Creates a new client for InternalService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public InternalServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for InternalService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public InternalServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected InternalServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected InternalServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Log in a user - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.LoginResponse Login(global::Chirpstack.Api.LoginRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Login(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Log in a user - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.LoginResponse Login(global::Chirpstack.Api.LoginRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Login, null, options, request); - } - /// - /// Log in a user - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall LoginAsync(global::Chirpstack.Api.LoginRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return LoginAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Log in a user - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall LoginAsync(global::Chirpstack.Api.LoginRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Login, null, options, request); - } - /// - /// Get the current user's profile - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ProfileResponse Profile(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Profile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the current user's profile - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ProfileResponse Profile(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Profile, null, options, request); - } - /// - /// Get the current user's profile - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ProfileAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the current user's profile - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ProfileAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Profile, null, options, request); - } - /// - /// Perform a global search. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GlobalSearchResponse GlobalSearch(global::Chirpstack.Api.GlobalSearchRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GlobalSearch(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Perform a global search. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GlobalSearchResponse GlobalSearch(global::Chirpstack.Api.GlobalSearchRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GlobalSearch, null, options, request); - } - /// - /// Perform a global search. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GlobalSearchAsync(global::Chirpstack.Api.GlobalSearchRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GlobalSearchAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Perform a global search. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GlobalSearchAsync(global::Chirpstack.Api.GlobalSearchRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GlobalSearch, null, options, request); - } - /// - /// CreateApiKey creates the given API key. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.CreateApiKeyResponse CreateApiKey(global::Chirpstack.Api.CreateApiKeyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateApiKey(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// CreateApiKey creates the given API key. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.CreateApiKeyResponse CreateApiKey(global::Chirpstack.Api.CreateApiKeyRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CreateApiKey, null, options, request); - } - /// - /// CreateApiKey creates the given API key. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateApiKeyAsync(global::Chirpstack.Api.CreateApiKeyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateApiKeyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// CreateApiKey creates the given API key. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateApiKeyAsync(global::Chirpstack.Api.CreateApiKeyRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CreateApiKey, null, options, request); - } - /// - /// DeleteApiKey deletes the API key. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteApiKey(global::Chirpstack.Api.DeleteApiKeyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteApiKey(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// DeleteApiKey deletes the API key. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteApiKey(global::Chirpstack.Api.DeleteApiKeyRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_DeleteApiKey, null, options, request); - } - /// - /// DeleteApiKey deletes the API key. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteApiKeyAsync(global::Chirpstack.Api.DeleteApiKeyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteApiKeyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// DeleteApiKey deletes the API key. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteApiKeyAsync(global::Chirpstack.Api.DeleteApiKeyRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_DeleteApiKey, null, options, request); - } - /// - /// ListApiKeys lists the available API keys. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListApiKeysResponse ListApiKeys(global::Chirpstack.Api.ListApiKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListApiKeys(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ListApiKeys lists the available API keys. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListApiKeysResponse ListApiKeys(global::Chirpstack.Api.ListApiKeysRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ListApiKeys, null, options, request); - } - /// - /// ListApiKeys lists the available API keys. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListApiKeysAsync(global::Chirpstack.Api.ListApiKeysRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListApiKeysAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ListApiKeys lists the available API keys. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListApiKeysAsync(global::Chirpstack.Api.ListApiKeysRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ListApiKeys, null, options, request); - } - /// - /// Get the global settings. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.SettingsResponse Settings(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Settings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the global settings. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.SettingsResponse Settings(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Settings, null, options, request); - } - /// - /// Get the global settings. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SettingsAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SettingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the global settings. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SettingsAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Settings, null, options, request); - } - /// - /// OpenId Connect login. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.OpenIdConnectLoginResponse OpenIdConnectLogin(global::Chirpstack.Api.OpenIdConnectLoginRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return OpenIdConnectLogin(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// OpenId Connect login. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.OpenIdConnectLoginResponse OpenIdConnectLogin(global::Chirpstack.Api.OpenIdConnectLoginRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_OpenIdConnectLogin, null, options, request); - } - /// - /// OpenId Connect login. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall OpenIdConnectLoginAsync(global::Chirpstack.Api.OpenIdConnectLoginRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return OpenIdConnectLoginAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// OpenId Connect login. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall OpenIdConnectLoginAsync(global::Chirpstack.Api.OpenIdConnectLoginRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_OpenIdConnectLogin, null, options, request); - } - /// - /// OAuth2 login. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.OAuth2LoginResponse OAuth2Login(global::Chirpstack.Api.OAuth2LoginRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return OAuth2Login(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// OAuth2 login. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.OAuth2LoginResponse OAuth2Login(global::Chirpstack.Api.OAuth2LoginRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_OAuth2Login, null, options, request); - } - /// - /// OAuth2 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 OAuth2LoginAsync(global::Chirpstack.Api.OAuth2LoginRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return OAuth2LoginAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// OAuth2 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 OAuth2LoginAsync(global::Chirpstack.Api.OAuth2LoginRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_OAuth2Login, null, options, request); - } - /// - /// GetDevicesSummary returns an aggregated summary of the devices. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDevicesSummaryResponse GetDevicesSummary(global::Chirpstack.Api.GetDevicesSummaryRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetDevicesSummary(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetDevicesSummary returns an aggregated summary of the devices. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetDevicesSummaryResponse GetDevicesSummary(global::Chirpstack.Api.GetDevicesSummaryRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetDevicesSummary, null, options, request); - } - /// - /// GetDevicesSummary returns an aggregated summary of the devices. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetDevicesSummaryAsync(global::Chirpstack.Api.GetDevicesSummaryRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetDevicesSummaryAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetDevicesSummary returns an aggregated summary of the devices. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetDevicesSummaryAsync(global::Chirpstack.Api.GetDevicesSummaryRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetDevicesSummary, null, options, request); - } - /// - /// GetGatewaysSummary returns an aggregated summary of the gateways. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetGatewaysSummaryResponse GetGatewaysSummary(global::Chirpstack.Api.GetGatewaysSummaryRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetGatewaysSummary(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetGatewaysSummary returns an aggregated summary of the gateways. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetGatewaysSummaryResponse GetGatewaysSummary(global::Chirpstack.Api.GetGatewaysSummaryRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetGatewaysSummary, null, options, request); - } - /// - /// GetGatewaysSummary returns an aggregated summary of the gateways. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetGatewaysSummaryAsync(global::Chirpstack.Api.GetGatewaysSummaryRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetGatewaysSummaryAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetGatewaysSummary returns an aggregated summary of the gateways. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetGatewaysSummaryAsync(global::Chirpstack.Api.GetGatewaysSummaryRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetGatewaysSummary, null, options, request); - } - /// - /// Stream frame for the given Gateway ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncServerStreamingCall StreamGatewayFrames(global::Chirpstack.Api.StreamGatewayFramesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return StreamGatewayFrames(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Stream frame for the given Gateway ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncServerStreamingCall StreamGatewayFrames(global::Chirpstack.Api.StreamGatewayFramesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncServerStreamingCall(__Method_StreamGatewayFrames, null, options, request); - } - /// - /// Stream frames for the given Device EUI. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncServerStreamingCall StreamDeviceFrames(global::Chirpstack.Api.StreamDeviceFramesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return StreamDeviceFrames(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Stream frames for the given Device EUI. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncServerStreamingCall StreamDeviceFrames(global::Chirpstack.Api.StreamDeviceFramesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncServerStreamingCall(__Method_StreamDeviceFrames, null, options, request); - } - /// - /// Stream events for the given Device EUI. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncServerStreamingCall StreamDeviceEvents(global::Chirpstack.Api.StreamDeviceEventsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return StreamDeviceEvents(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Stream events for the given Device EUI. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncServerStreamingCall StreamDeviceEvents(global::Chirpstack.Api.StreamDeviceEventsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncServerStreamingCall(__Method_StreamDeviceEvents, null, options, request); - } - /// - /// ListRegions lists the available (configured) regions. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListRegionsResponse ListRegions(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListRegions(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ListRegions lists the available (configured) regions. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListRegionsResponse ListRegions(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ListRegions, null, options, request); - } - /// - /// ListRegions lists the available (configured) regions. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListRegionsAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListRegionsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ListRegions lists the available (configured) regions. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListRegionsAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ListRegions, null, options, request); - } - /// - /// GetRegion returns the region details for the given region. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetRegionResponse GetRegion(global::Chirpstack.Api.GetRegionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetRegion(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetRegion returns the region details for the given region. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetRegionResponse GetRegion(global::Chirpstack.Api.GetRegionRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetRegion, null, options, request); - } - /// - /// GetRegion returns the region details for the given region. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetRegionAsync(global::Chirpstack.Api.GetRegionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetRegionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetRegion returns the region details for the given region. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetRegionAsync(global::Chirpstack.Api.GetRegionRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetRegion, null, options, request); - } - /// - /// GetVersion returns the ChirpStack 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.Api.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 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.Api.GetVersionResponse GetVersion(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetVersion, null, options, request); - } - /// - /// GetVersion returns the ChirpStack 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 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); - } - /// 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_OAuth2Login, serviceImpl.OAuth2Login) - .AddMethod(__Method_GetDevicesSummary, serviceImpl.GetDevicesSummary) - .AddMethod(__Method_GetGatewaysSummary, serviceImpl.GetGatewaysSummary) - .AddMethod(__Method_StreamGatewayFrames, serviceImpl.StreamGatewayFrames) - .AddMethod(__Method_StreamDeviceFrames, serviceImpl.StreamDeviceFrames) - .AddMethod(__Method_StreamDeviceEvents, serviceImpl.StreamDeviceEvents) - .AddMethod(__Method_ListRegions, serviceImpl.ListRegions) - .AddMethod(__Method_GetRegion, serviceImpl.GetRegion) - .AddMethod(__Method_GetVersion, serviceImpl.GetVersion).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_OAuth2Login, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.OAuth2Login)); - serviceBinder.AddMethod(__Method_GetDevicesSummary, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetDevicesSummary)); - serviceBinder.AddMethod(__Method_GetGatewaysSummary, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetGatewaysSummary)); - serviceBinder.AddMethod(__Method_StreamGatewayFrames, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.StreamGatewayFrames)); - serviceBinder.AddMethod(__Method_StreamDeviceFrames, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.StreamDeviceFrames)); - serviceBinder.AddMethod(__Method_StreamDeviceEvents, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.StreamDeviceEvents)); - serviceBinder.AddMethod(__Method_ListRegions, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListRegions)); - serviceBinder.AddMethod(__Method_GetRegion, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetRegion)); - serviceBinder.AddMethod(__Method_GetVersion, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetVersion)); - } - - } -} -#endregion diff --git a/api/csharp/Chirpstack/api/MulticastGroup.cs b/api/csharp/Chirpstack/api/MulticastGroup.cs deleted file mode 100644 index 21a3352f..00000000 --- a/api/csharp/Chirpstack/api/MulticastGroup.cs +++ /dev/null @@ -1,5315 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/multicast_group.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Chirpstack.Api { - - /// Holder for reflection information generated from api/multicast_group.proto - public static partial class MulticastGroupReflection { - - #region Descriptor - /// File descriptor for api/multicast_group.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static MulticastGroupReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ChlhcGkvbXVsdGljYXN0X2dyb3VwLnByb3RvEgNhcGkaHGdvb2dsZS9hcGkv", - "YW5ub3RhdGlvbnMucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAu", - "cHJvdG8aG2dvb2dsZS9wcm90b2J1Zi9lbXB0eS5wcm90bxoTY29tbW9uL2Nv", - "bW1vbi5wcm90byKAAwoOTXVsdGljYXN0R3JvdXASCgoCaWQYASABKAkSDAoE", - "bmFtZRgCIAEoCRIWCg5hcHBsaWNhdGlvbl9pZBgDIAEoCRIeCgZyZWdpb24Y", - "BCABKA4yDi5jb21tb24uUmVnaW9uEg8KB21jX2FkZHIYBSABKAkSFAoMbWNf", - "bndrX3Nfa2V5GAYgASgJEhQKDG1jX2FwcF9zX2tleRgHIAEoCRINCgVmX2Nu", - "dBgIIAEoDRIrCgpncm91cF90eXBlGAkgASgOMhcuYXBpLk11bHRpY2FzdEdy", - "b3VwVHlwZRIKCgJkchgKIAEoDRIRCglmcmVxdWVuY3kYCyABKA0SIAoYY2xh", - "c3NfYl9waW5nX3Nsb3RfcGVyaW9kGAwgASgNEh4KFmNsYXNzX2JfcGluZ19z", - "bG90X25iX2sYDiABKA0SQgoXY2xhc3NfY19zY2hlZHVsaW5nX3R5cGUYDSAB", - "KA4yIS5hcGkuTXVsdGljYXN0R3JvdXBTY2hlZHVsaW5nVHlwZSLfAQoWTXVs", - "dGljYXN0R3JvdXBMaXN0SXRlbRIKCgJpZBgBIAEoCRIuCgpjcmVhdGVkX2F0", - "GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVk", - "X2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIMCgRuYW1l", - "GAQgASgJEh4KBnJlZ2lvbhgFIAEoDjIOLmNvbW1vbi5SZWdpb24SKwoKZ3Jv", - "dXBfdHlwZRgGIAEoDjIXLmFwaS5NdWx0aWNhc3RHcm91cFR5cGUiSwobQ3Jl", - "YXRlTXVsdGljYXN0R3JvdXBSZXF1ZXN0EiwKD211bHRpY2FzdF9ncm91cBgB", - "IAEoCzITLmFwaS5NdWx0aWNhc3RHcm91cCIqChxDcmVhdGVNdWx0aWNhc3RH", - "cm91cFJlc3BvbnNlEgoKAmlkGAEgASgJIiYKGEdldE11bHRpY2FzdEdyb3Vw", - "UmVxdWVzdBIKCgJpZBgBIAEoCSKpAQoZR2V0TXVsdGljYXN0R3JvdXBSZXNw", - "b25zZRIsCg9tdWx0aWNhc3RfZ3JvdXAYASABKAsyEy5hcGkuTXVsdGljYXN0", - "R3JvdXASLgoKY3JlYXRlZF9hdBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", - "aW1lc3RhbXASLgoKdXBkYXRlZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1", - "Zi5UaW1lc3RhbXAiSwobVXBkYXRlTXVsdGljYXN0R3JvdXBSZXF1ZXN0EiwK", - "D211bHRpY2FzdF9ncm91cBgBIAEoCzITLmFwaS5NdWx0aWNhc3RHcm91cCIp", - "ChtEZWxldGVNdWx0aWNhc3RHcm91cFJlcXVlc3QSCgoCaWQYASABKAkiYwoa", - "TGlzdE11bHRpY2FzdEdyb3Vwc1JlcXVlc3QSDQoFbGltaXQYASABKA0SDgoG", - "b2Zmc2V0GAIgASgNEg4KBnNlYXJjaBgDIAEoCRIWCg5hcHBsaWNhdGlvbl9p", - "ZBgEIAEoCSJfChtMaXN0TXVsdGljYXN0R3JvdXBzUmVzcG9uc2USEwoLdG90", - "YWxfY291bnQYASABKA0SKwoGcmVzdWx0GAIgAygLMhsuYXBpLk11bHRpY2Fz", - "dEdyb3VwTGlzdEl0ZW0iTwogQWRkRGV2aWNlVG9NdWx0aWNhc3RHcm91cFJl", - "cXVlc3QSGgoSbXVsdGljYXN0X2dyb3VwX2lkGAEgASgJEg8KB2Rldl9ldWkY", - "AiABKAkiVAolUmVtb3ZlRGV2aWNlRnJvbU11bHRpY2FzdEdyb3VwUmVxdWVz", - "dBIaChJtdWx0aWNhc3RfZ3JvdXBfaWQYASABKAkSDwoHZGV2X2V1aRgCIAEo", - "CSJTCiFBZGRHYXRld2F5VG9NdWx0aWNhc3RHcm91cFJlcXVlc3QSGgoSbXVs", - "dGljYXN0X2dyb3VwX2lkGAEgASgJEhIKCmdhdGV3YXlfaWQYAiABKAkiWAom", - "UmVtb3ZlR2F0ZXdheUZyb21NdWx0aWNhc3RHcm91cFJlcXVlc3QSGgoSbXVs", - "dGljYXN0X2dyb3VwX2lkGAEgASgJEhIKCmdhdGV3YXlfaWQYAiABKAkiYgoX", - "TXVsdGljYXN0R3JvdXBRdWV1ZUl0ZW0SGgoSbXVsdGljYXN0X2dyb3VwX2lk", - "GAEgASgJEg0KBWZfY250GAIgASgNEg4KBmZfcG9ydBgDIAEoDRIMCgRkYXRh", - "GAQgASgMIlkKJUVucXVldWVNdWx0aWNhc3RHcm91cFF1ZXVlSXRlbVJlcXVl", - "c3QSMAoKcXVldWVfaXRlbRgBIAEoCzIcLmFwaS5NdWx0aWNhc3RHcm91cFF1", - "ZXVlSXRlbSI3CiZFbnF1ZXVlTXVsdGljYXN0R3JvdXBRdWV1ZUl0ZW1SZXNw", - "b25zZRINCgVmX2NudBgBIAEoDSI9Ch9GbHVzaE11bHRpY2FzdEdyb3VwUXVl", - "dWVSZXF1ZXN0EhoKEm11bHRpY2FzdF9ncm91cF9pZBgBIAEoCSI8Ch5MaXN0", - "TXVsdGljYXN0R3JvdXBRdWV1ZVJlcXVlc3QSGgoSbXVsdGljYXN0X2dyb3Vw", - "X2lkGAEgASgJIk4KH0xpc3RNdWx0aWNhc3RHcm91cFF1ZXVlUmVzcG9uc2US", - "KwoFaXRlbXMYASADKAsyHC5hcGkuTXVsdGljYXN0R3JvdXBRdWV1ZUl0ZW0q", - "LgoSTXVsdGljYXN0R3JvdXBUeXBlEgsKB0NMQVNTX0MQABILCgdDTEFTU19C", - "EAEqNwocTXVsdGljYXN0R3JvdXBTY2hlZHVsaW5nVHlwZRIJCgVERUxBWRAA", - "EgwKCEdQU19USU1FEAEy3QwKFU11bHRpY2FzdEdyb3VwU2VydmljZRJvCgZD", - "cmVhdGUSIC5hcGkuQ3JlYXRlTXVsdGljYXN0R3JvdXBSZXF1ZXN0GiEuYXBp", - "LkNyZWF0ZU11bHRpY2FzdEdyb3VwUmVzcG9uc2UiIILT5JMCGiIVL2FwaS9t", - "dWx0aWNhc3QtZ3JvdXBzOgEqEmgKA0dldBIdLmFwaS5HZXRNdWx0aWNhc3RH", - "cm91cFJlcXVlc3QaHi5hcGkuR2V0TXVsdGljYXN0R3JvdXBSZXNwb25zZSIi", - "gtPkkwIcEhovYXBpL211bHRpY2FzdC1ncm91cHMve2lkfRJ5CgZVcGRhdGUS", - "IC5hcGkuVXBkYXRlTXVsdGljYXN0R3JvdXBSZXF1ZXN0GhYuZ29vZ2xlLnBy", - "b3RvYnVmLkVtcHR5IjWC0+STAi8aKi9hcGkvbXVsdGljYXN0LWdyb3Vwcy97", - "bXVsdGljYXN0X2dyb3VwLmlkfToBKhJmCgZEZWxldGUSIC5hcGkuRGVsZXRl", - "TXVsdGljYXN0R3JvdXBSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5", - "IiKC0+STAhwqGi9hcGkvbXVsdGljYXN0LWdyb3Vwcy97aWR9EmgKBExpc3QS", - "Hy5hcGkuTGlzdE11bHRpY2FzdEdyb3Vwc1JlcXVlc3QaIC5hcGkuTGlzdE11", - "bHRpY2FzdEdyb3Vwc1Jlc3BvbnNlIh2C0+STAhcSFS9hcGkvbXVsdGljYXN0", - "LWdyb3VwcxKJAQoJQWRkRGV2aWNlEiUuYXBpLkFkZERldmljZVRvTXVsdGlj", - "YXN0R3JvdXBSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Ij2C0+ST", - "AjciMi9hcGkvbXVsdGljYXN0LWdyb3Vwcy97bXVsdGljYXN0X2dyb3VwX2lk", - "fS9kZXZpY2VzOgEqEpgBCgxSZW1vdmVEZXZpY2USKi5hcGkuUmVtb3ZlRGV2", - "aWNlRnJvbU11bHRpY2FzdEdyb3VwUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1", - "Zi5FbXB0eSJEgtPkkwI+KjwvYXBpL211bHRpY2FzdC1ncm91cHMve211bHRp", - "Y2FzdF9ncm91cF9pZH0vZGV2aWNlcy97ZGV2X2V1aX0SjAEKCkFkZEdhdGV3", - "YXkSJi5hcGkuQWRkR2F0ZXdheVRvTXVsdGljYXN0R3JvdXBSZXF1ZXN0GhYu", - "Z29vZ2xlLnByb3RvYnVmLkVtcHR5Ij6C0+STAjgiMy9hcGkvbXVsdGljYXN0", - "LWdyb3Vwcy97bXVsdGljYXN0X2dyb3VwX2lkfS9nYXRld2F5czoBKhKeAQoN", - "UmVtb3ZlR2F0ZXdheRIrLmFwaS5SZW1vdmVHYXRld2F5RnJvbU11bHRpY2Fz", - "dEdyb3VwUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSJIgtPkkwJC", - "KkAvYXBpL211bHRpY2FzdC1ncm91cHMve211bHRpY2FzdF9ncm91cF9pZH0v", - "Z2F0ZXdheXMve2dhdGV3YXlfaWR9EqoBCgdFbnF1ZXVlEiouYXBpLkVucXVl", - "dWVNdWx0aWNhc3RHcm91cFF1ZXVlSXRlbVJlcXVlc3QaKy5hcGkuRW5xdWV1", - "ZU11bHRpY2FzdEdyb3VwUXVldWVJdGVtUmVzcG9uc2UiRoLT5JMCQCI7L2Fw", - "aS9tdWx0aWNhc3QtZ3JvdXBzL3txdWV1ZV9pdGVtLm11bHRpY2FzdF9ncm91", - "cF9pZH0vcXVldWU6ASoShAEKCkZsdXNoUXVldWUSJC5hcGkuRmx1c2hNdWx0", - "aWNhc3RHcm91cFF1ZXVlUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0", - "eSI4gtPkkwIyKjAvYXBpL211bHRpY2FzdC1ncm91cHMve211bHRpY2FzdF9n", - "cm91cF9pZH0vcXVldWUSkAEKCUxpc3RRdWV1ZRIjLmFwaS5MaXN0TXVsdGlj", - "YXN0R3JvdXBRdWV1ZVJlcXVlc3QaJC5hcGkuTGlzdE11bHRpY2FzdEdyb3Vw", - "UXVldWVSZXNwb25zZSI4gtPkkwIyEjAvYXBpL211bHRpY2FzdC1ncm91cHMv", - "e211bHRpY2FzdF9ncm91cF9pZH0vcXVldWVCawoRaW8uY2hpcnBzdGFjay5h", - "cGlCE011bHRpY2FzdEdyb3VwUHJvdG9QAVouZ2l0aHViLmNvbS9jaGlycHN0", - "YWNrL2NoaXJwc3RhY2svYXBpL2dvL3Y0L2FwaaoCDkNoaXJwc3RhY2suQXBp", - "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, global::Chirpstack.Common.CommonReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.Api.MulticastGroupType), typeof(global::Chirpstack.Api.MulticastGroupSchedulingType), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.MulticastGroup), global::Chirpstack.Api.MulticastGroup.Parser, new[]{ "Id", "Name", "ApplicationId", "Region", "McAddr", "McNwkSKey", "McAppSKey", "FCnt", "GroupType", "Dr", "Frequency", "ClassBPingSlotPeriod", "ClassBPingSlotNbK", "ClassCSchedulingType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.MulticastGroupListItem), global::Chirpstack.Api.MulticastGroupListItem.Parser, new[]{ "Id", "CreatedAt", "UpdatedAt", "Name", "Region", "GroupType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateMulticastGroupRequest), global::Chirpstack.Api.CreateMulticastGroupRequest.Parser, new[]{ "MulticastGroup" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateMulticastGroupResponse), global::Chirpstack.Api.CreateMulticastGroupResponse.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetMulticastGroupRequest), global::Chirpstack.Api.GetMulticastGroupRequest.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetMulticastGroupResponse), global::Chirpstack.Api.GetMulticastGroupResponse.Parser, new[]{ "MulticastGroup", "CreatedAt", "UpdatedAt" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateMulticastGroupRequest), global::Chirpstack.Api.UpdateMulticastGroupRequest.Parser, new[]{ "MulticastGroup" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteMulticastGroupRequest), global::Chirpstack.Api.DeleteMulticastGroupRequest.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListMulticastGroupsRequest), global::Chirpstack.Api.ListMulticastGroupsRequest.Parser, new[]{ "Limit", "Offset", "Search", "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListMulticastGroupsResponse), global::Chirpstack.Api.ListMulticastGroupsResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.AddDeviceToMulticastGroupRequest), global::Chirpstack.Api.AddDeviceToMulticastGroupRequest.Parser, new[]{ "MulticastGroupId", "DevEui" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.RemoveDeviceFromMulticastGroupRequest), global::Chirpstack.Api.RemoveDeviceFromMulticastGroupRequest.Parser, new[]{ "MulticastGroupId", "DevEui" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.AddGatewayToMulticastGroupRequest), global::Chirpstack.Api.AddGatewayToMulticastGroupRequest.Parser, new[]{ "MulticastGroupId", "GatewayId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.RemoveGatewayFromMulticastGroupRequest), global::Chirpstack.Api.RemoveGatewayFromMulticastGroupRequest.Parser, new[]{ "MulticastGroupId", "GatewayId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.MulticastGroupQueueItem), global::Chirpstack.Api.MulticastGroupQueueItem.Parser, new[]{ "MulticastGroupId", "FCnt", "FPort", "Data" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.EnqueueMulticastGroupQueueItemRequest), global::Chirpstack.Api.EnqueueMulticastGroupQueueItemRequest.Parser, new[]{ "QueueItem" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.EnqueueMulticastGroupQueueItemResponse), global::Chirpstack.Api.EnqueueMulticastGroupQueueItemResponse.Parser, new[]{ "FCnt" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.FlushMulticastGroupQueueRequest), global::Chirpstack.Api.FlushMulticastGroupQueueRequest.Parser, new[]{ "MulticastGroupId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListMulticastGroupQueueRequest), global::Chirpstack.Api.ListMulticastGroupQueueRequest.Parser, new[]{ "MulticastGroupId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListMulticastGroupQueueResponse), global::Chirpstack.Api.ListMulticastGroupQueueResponse.Parser, new[]{ "Items" }, null, null, null, null) - })); - } - #endregion - - } - #region Enums - public enum MulticastGroupType { - /// - /// Class C. - /// - [pbr::OriginalName("CLASS_C")] ClassC = 0, - /// - /// Class-B. - /// - [pbr::OriginalName("CLASS_B")] ClassB = 1, - } - - public enum MulticastGroupSchedulingType { - /// - /// Delay. - /// If multicast downlinks must be sent through multiple gateways, then - /// these will be sent one by one with a delay between each gateway. - /// - [pbr::OriginalName("DELAY")] Delay = 0, - /// - /// Time. - /// If multicast downlinks must be sent through multiple gateways, then - /// these will be sent simultaneously using GPS time synchronization. - /// Note that this does require GPS time-synchronized LoRa gateways. - /// - [pbr::OriginalName("GPS_TIME")] GpsTime = 1, - } - - #endregion - - #region Messages - public sealed partial class MulticastGroup : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MulticastGroup()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MulticastGroup() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MulticastGroup(MulticastGroup other) : this() { - id_ = other.id_; - name_ = other.name_; - applicationId_ = other.applicationId_; - region_ = other.region_; - mcAddr_ = other.mcAddr_; - mcNwkSKey_ = other.mcNwkSKey_; - mcAppSKey_ = other.mcAppSKey_; - fCnt_ = other.fCnt_; - groupType_ = other.groupType_; - dr_ = other.dr_; - frequency_ = other.frequency_; - classBPingSlotPeriod_ = other.classBPingSlotPeriod_; - classBPingSlotNbK_ = other.classBPingSlotNbK_; - classCSchedulingType_ = other.classCSchedulingType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MulticastGroup Clone() { - return new MulticastGroup(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// ID (UUID). - /// This will be generated automatically on create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - /// - /// Name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 3; - private string applicationId_ = ""; - /// - /// Application ID. - /// After creation, this can not be updated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 4; - private global::Chirpstack.Common.Region region_ = global::Chirpstack.Common.Region.Eu868; - /// - /// Region. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Region Region { - get { return region_; } - set { - region_ = value; - } - } - - /// Field number for the "mc_addr" field. - public const int McAddrFieldNumber = 5; - private string mcAddr_ = ""; - /// - /// Multicast address (HEX encoded DevAddr). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string McAddr { - get { return mcAddr_; } - set { - mcAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "mc_nwk_s_key" field. - public const int McNwkSKeyFieldNumber = 6; - private string mcNwkSKey_ = ""; - /// - /// Multicast network session key (HEX encoded AES128 key). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string McNwkSKey { - get { return mcNwkSKey_; } - set { - mcNwkSKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "mc_app_s_key" field. - public const int McAppSKeyFieldNumber = 7; - private string mcAppSKey_ = ""; - /// - /// Multicast application session key (HEX encoded AES128 key). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string McAppSKey { - get { return mcAppSKey_; } - set { - mcAppSKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "f_cnt" field. - public const int FCntFieldNumber = 8; - private uint fCnt_; - /// - /// Frame-counter. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint FCnt { - get { return fCnt_; } - set { - fCnt_ = value; - } - } - - /// Field number for the "group_type" field. - public const int GroupTypeFieldNumber = 9; - private global::Chirpstack.Api.MulticastGroupType groupType_ = global::Chirpstack.Api.MulticastGroupType.ClassC; - /// - /// Multicast group type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.MulticastGroupType GroupType { - get { return groupType_; } - set { - groupType_ = value; - } - } - - /// Field number for the "dr" field. - public const int DrFieldNumber = 10; - private uint dr_; - /// - /// Data-rate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Dr { - get { return dr_; } - set { - dr_ = value; - } - } - - /// Field number for the "frequency" field. - public const int FrequencyFieldNumber = 11; - private uint frequency_; - /// - /// Frequency (Hz). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Frequency { - get { return frequency_; } - set { - frequency_ = value; - } - } - - /// Field number for the "class_b_ping_slot_period" field. - public const int ClassBPingSlotPeriodFieldNumber = 12; - private uint classBPingSlotPeriod_; - /// - /// Ping-slot period (only for Class-B). - /// Deprecated: use class_b_ping_slot_nb_k. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ClassBPingSlotPeriod { - get { return classBPingSlotPeriod_; } - set { - classBPingSlotPeriod_ = value; - } - } - - /// Field number for the "class_b_ping_slot_nb_k" field. - public const int ClassBPingSlotNbKFieldNumber = 14; - private uint classBPingSlotNbK_; - /// - /// Class-B ping-slots per beacon period (only for Class-B). - /// Valid options are: 0 - 7; - /// - /// The actual number of ping-slots per beacon period equals to 2^k. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ClassBPingSlotNbK { - get { return classBPingSlotNbK_; } - set { - classBPingSlotNbK_ = value; - } - } - - /// Field number for the "class_c_scheduling_type" field. - public const int ClassCSchedulingTypeFieldNumber = 13; - private global::Chirpstack.Api.MulticastGroupSchedulingType classCSchedulingType_ = global::Chirpstack.Api.MulticastGroupSchedulingType.Delay; - /// - /// Scheduling type (only for Class-C). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.MulticastGroupSchedulingType ClassCSchedulingType { - get { return classCSchedulingType_; } - set { - classCSchedulingType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MulticastGroup); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MulticastGroup other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (ApplicationId != other.ApplicationId) return false; - if (Region != other.Region) return false; - if (McAddr != other.McAddr) return false; - if (McNwkSKey != other.McNwkSKey) return false; - if (McAppSKey != other.McAppSKey) return false; - if (FCnt != other.FCnt) return false; - if (GroupType != other.GroupType) return false; - if (Dr != other.Dr) return false; - if (Frequency != other.Frequency) return false; - if (ClassBPingSlotPeriod != other.ClassBPingSlotPeriod) return false; - if (ClassBPingSlotNbK != other.ClassBPingSlotNbK) return false; - if (ClassCSchedulingType != other.ClassCSchedulingType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (Region != global::Chirpstack.Common.Region.Eu868) hash ^= Region.GetHashCode(); - if (McAddr.Length != 0) hash ^= McAddr.GetHashCode(); - if (McNwkSKey.Length != 0) hash ^= McNwkSKey.GetHashCode(); - if (McAppSKey.Length != 0) hash ^= McAppSKey.GetHashCode(); - if (FCnt != 0) hash ^= FCnt.GetHashCode(); - if (GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) hash ^= GroupType.GetHashCode(); - if (Dr != 0) hash ^= Dr.GetHashCode(); - if (Frequency != 0) hash ^= Frequency.GetHashCode(); - if (ClassBPingSlotPeriod != 0) hash ^= ClassBPingSlotPeriod.GetHashCode(); - if (ClassBPingSlotNbK != 0) hash ^= ClassBPingSlotNbK.GetHashCode(); - if (ClassCSchedulingType != global::Chirpstack.Api.MulticastGroupSchedulingType.Delay) hash ^= ClassCSchedulingType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (ApplicationId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ApplicationId); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - output.WriteRawTag(32); - output.WriteEnum((int) Region); - } - if (McAddr.Length != 0) { - output.WriteRawTag(42); - output.WriteString(McAddr); - } - if (McNwkSKey.Length != 0) { - output.WriteRawTag(50); - output.WriteString(McNwkSKey); - } - if (McAppSKey.Length != 0) { - output.WriteRawTag(58); - output.WriteString(McAppSKey); - } - if (FCnt != 0) { - output.WriteRawTag(64); - output.WriteUInt32(FCnt); - } - if (GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) { - output.WriteRawTag(72); - output.WriteEnum((int) GroupType); - } - if (Dr != 0) { - output.WriteRawTag(80); - output.WriteUInt32(Dr); - } - if (Frequency != 0) { - output.WriteRawTag(88); - output.WriteUInt32(Frequency); - } - if (ClassBPingSlotPeriod != 0) { - output.WriteRawTag(96); - output.WriteUInt32(ClassBPingSlotPeriod); - } - if (ClassCSchedulingType != global::Chirpstack.Api.MulticastGroupSchedulingType.Delay) { - output.WriteRawTag(104); - output.WriteEnum((int) ClassCSchedulingType); - } - if (ClassBPingSlotNbK != 0) { - output.WriteRawTag(112); - output.WriteUInt32(ClassBPingSlotNbK); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (ApplicationId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ApplicationId); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - output.WriteRawTag(32); - output.WriteEnum((int) Region); - } - if (McAddr.Length != 0) { - output.WriteRawTag(42); - output.WriteString(McAddr); - } - if (McNwkSKey.Length != 0) { - output.WriteRawTag(50); - output.WriteString(McNwkSKey); - } - if (McAppSKey.Length != 0) { - output.WriteRawTag(58); - output.WriteString(McAppSKey); - } - if (FCnt != 0) { - output.WriteRawTag(64); - output.WriteUInt32(FCnt); - } - if (GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) { - output.WriteRawTag(72); - output.WriteEnum((int) GroupType); - } - if (Dr != 0) { - output.WriteRawTag(80); - output.WriteUInt32(Dr); - } - if (Frequency != 0) { - output.WriteRawTag(88); - output.WriteUInt32(Frequency); - } - if (ClassBPingSlotPeriod != 0) { - output.WriteRawTag(96); - output.WriteUInt32(ClassBPingSlotPeriod); - } - if (ClassCSchedulingType != global::Chirpstack.Api.MulticastGroupSchedulingType.Delay) { - output.WriteRawTag(104); - output.WriteEnum((int) ClassCSchedulingType); - } - if (ClassBPingSlotNbK != 0) { - output.WriteRawTag(112); - output.WriteUInt32(ClassBPingSlotNbK); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Region); - } - if (McAddr.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(McAddr); - } - if (McNwkSKey.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(McNwkSKey); - } - if (McAppSKey.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(McAppSKey); - } - if (FCnt != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCnt); - } - if (GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GroupType); - } - if (Dr != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Dr); - } - if (Frequency != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); - } - if (ClassBPingSlotPeriod != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotPeriod); - } - if (ClassBPingSlotNbK != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClassBPingSlotNbK); - } - if (ClassCSchedulingType != global::Chirpstack.Api.MulticastGroupSchedulingType.Delay) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ClassCSchedulingType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MulticastGroup other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - if (other.Region != global::Chirpstack.Common.Region.Eu868) { - Region = other.Region; - } - if (other.McAddr.Length != 0) { - McAddr = other.McAddr; - } - if (other.McNwkSKey.Length != 0) { - McNwkSKey = other.McNwkSKey; - } - if (other.McAppSKey.Length != 0) { - McAppSKey = other.McAppSKey; - } - if (other.FCnt != 0) { - FCnt = other.FCnt; - } - if (other.GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) { - GroupType = other.GroupType; - } - if (other.Dr != 0) { - Dr = other.Dr; - } - if (other.Frequency != 0) { - Frequency = other.Frequency; - } - if (other.ClassBPingSlotPeriod != 0) { - ClassBPingSlotPeriod = other.ClassBPingSlotPeriod; - } - if (other.ClassBPingSlotNbK != 0) { - ClassBPingSlotNbK = other.ClassBPingSlotNbK; - } - if (other.ClassCSchedulingType != global::Chirpstack.Api.MulticastGroupSchedulingType.Delay) { - ClassCSchedulingType = other.ClassCSchedulingType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - ApplicationId = input.ReadString(); - break; - } - case 32: { - Region = (global::Chirpstack.Common.Region) input.ReadEnum(); - break; - } - case 42: { - McAddr = input.ReadString(); - break; - } - case 50: { - McNwkSKey = input.ReadString(); - break; - } - case 58: { - McAppSKey = input.ReadString(); - break; - } - case 64: { - FCnt = input.ReadUInt32(); - break; - } - case 72: { - GroupType = (global::Chirpstack.Api.MulticastGroupType) input.ReadEnum(); - break; - } - case 80: { - Dr = input.ReadUInt32(); - break; - } - case 88: { - Frequency = input.ReadUInt32(); - break; - } - case 96: { - ClassBPingSlotPeriod = input.ReadUInt32(); - break; - } - case 104: { - ClassCSchedulingType = (global::Chirpstack.Api.MulticastGroupSchedulingType) input.ReadEnum(); - break; - } - case 112: { - ClassBPingSlotNbK = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - ApplicationId = input.ReadString(); - break; - } - case 32: { - Region = (global::Chirpstack.Common.Region) input.ReadEnum(); - break; - } - case 42: { - McAddr = input.ReadString(); - break; - } - case 50: { - McNwkSKey = input.ReadString(); - break; - } - case 58: { - McAppSKey = input.ReadString(); - break; - } - case 64: { - FCnt = input.ReadUInt32(); - break; - } - case 72: { - GroupType = (global::Chirpstack.Api.MulticastGroupType) input.ReadEnum(); - break; - } - case 80: { - Dr = input.ReadUInt32(); - break; - } - case 88: { - Frequency = input.ReadUInt32(); - break; - } - case 96: { - ClassBPingSlotPeriod = input.ReadUInt32(); - break; - } - case 104: { - ClassCSchedulingType = (global::Chirpstack.Api.MulticastGroupSchedulingType) input.ReadEnum(); - break; - } - case 112: { - ClassBPingSlotNbK = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - public sealed partial class MulticastGroupListItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MulticastGroupListItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MulticastGroupListItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MulticastGroupListItem(MulticastGroupListItem other) : this() { - id_ = other.id_; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - name_ = other.name_; - region_ = other.region_; - groupType_ = other.groupType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MulticastGroupListItem Clone() { - return new MulticastGroupListItem(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 4; - private string name_ = ""; - /// - /// Name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 5; - private global::Chirpstack.Common.Region region_ = global::Chirpstack.Common.Region.Eu868; - /// - /// Region. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Region Region { - get { return region_; } - set { - region_ = value; - } - } - - /// Field number for the "group_type" field. - public const int GroupTypeFieldNumber = 6; - private global::Chirpstack.Api.MulticastGroupType groupType_ = global::Chirpstack.Api.MulticastGroupType.ClassC; - /// - /// Multicast group type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.MulticastGroupType GroupType { - get { return groupType_; } - set { - groupType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MulticastGroupListItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MulticastGroupListItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - if (Name != other.Name) return false; - if (Region != other.Region) return false; - if (GroupType != other.GroupType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Region != global::Chirpstack.Common.Region.Eu868) hash ^= Region.GetHashCode(); - if (GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) hash ^= GroupType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - output.WriteRawTag(40); - output.WriteEnum((int) Region); - } - if (GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) { - output.WriteRawTag(48); - output.WriteEnum((int) GroupType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - output.WriteRawTag(40); - output.WriteEnum((int) Region); - } - if (GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) { - output.WriteRawTag(48); - output.WriteEnum((int) GroupType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Region != global::Chirpstack.Common.Region.Eu868) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Region); - } - if (GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GroupType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MulticastGroupListItem other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Region != global::Chirpstack.Common.Region.Eu868) { - Region = other.Region; - } - if (other.GroupType != global::Chirpstack.Api.MulticastGroupType.ClassC) { - GroupType = other.GroupType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 40: { - Region = (global::Chirpstack.Common.Region) input.ReadEnum(); - break; - } - case 48: { - GroupType = (global::Chirpstack.Api.MulticastGroupType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 40: { - Region = (global::Chirpstack.Common.Region) input.ReadEnum(); - break; - } - case 48: { - GroupType = (global::Chirpstack.Api.MulticastGroupType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateMulticastGroupRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateMulticastGroupRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateMulticastGroupRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateMulticastGroupRequest(CreateMulticastGroupRequest other) : this() { - multicastGroup_ = other.multicastGroup_ != null ? other.multicastGroup_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateMulticastGroupRequest Clone() { - return new CreateMulticastGroupRequest(this); - } - - /// Field number for the "multicast_group" field. - public const int MulticastGroupFieldNumber = 1; - private global::Chirpstack.Api.MulticastGroup multicastGroup_; - /// - /// Multicast group to create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.MulticastGroup MulticastGroup { - get { return multicastGroup_; } - set { - multicastGroup_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateMulticastGroupRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateMulticastGroupRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(MulticastGroup, other.MulticastGroup)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (multicastGroup_ != null) hash ^= MulticastGroup.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (multicastGroup_ != null) { - output.WriteRawTag(10); - output.WriteMessage(MulticastGroup); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (multicastGroup_ != null) { - output.WriteRawTag(10); - output.WriteMessage(MulticastGroup); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (multicastGroup_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MulticastGroup); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateMulticastGroupRequest other) { - if (other == null) { - return; - } - if (other.multicastGroup_ != null) { - if (multicastGroup_ == null) { - MulticastGroup = new global::Chirpstack.Api.MulticastGroup(); - } - MulticastGroup.MergeFrom(other.MulticastGroup); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (multicastGroup_ == null) { - MulticastGroup = new global::Chirpstack.Api.MulticastGroup(); - } - input.ReadMessage(MulticastGroup); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (multicastGroup_ == null) { - MulticastGroup = new global::Chirpstack.Api.MulticastGroup(); - } - input.ReadMessage(MulticastGroup); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateMulticastGroupResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateMulticastGroupResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateMulticastGroupResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateMulticastGroupResponse(CreateMulticastGroupResponse other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateMulticastGroupResponse Clone() { - return new CreateMulticastGroupResponse(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// ID of created multicast group (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateMulticastGroupResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateMulticastGroupResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateMulticastGroupResponse other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetMulticastGroupRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMulticastGroupRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetMulticastGroupRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetMulticastGroupRequest(GetMulticastGroupRequest other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetMulticastGroupRequest Clone() { - return new GetMulticastGroupRequest(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Multicast group ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetMulticastGroupRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetMulticastGroupRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetMulticastGroupRequest other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetMulticastGroupResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMulticastGroupResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetMulticastGroupResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetMulticastGroupResponse(GetMulticastGroupResponse other) : this() { - multicastGroup_ = other.multicastGroup_ != null ? other.multicastGroup_.Clone() : null; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetMulticastGroupResponse Clone() { - return new GetMulticastGroupResponse(this); - } - - /// Field number for the "multicast_group" field. - public const int MulticastGroupFieldNumber = 1; - private global::Chirpstack.Api.MulticastGroup multicastGroup_; - /// - /// Multicast group object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.MulticastGroup MulticastGroup { - get { return multicastGroup_; } - set { - multicastGroup_ = value; - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetMulticastGroupResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetMulticastGroupResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(MulticastGroup, other.MulticastGroup)) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (multicastGroup_ != null) hash ^= MulticastGroup.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (multicastGroup_ != null) { - output.WriteRawTag(10); - output.WriteMessage(MulticastGroup); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (multicastGroup_ != null) { - output.WriteRawTag(10); - output.WriteMessage(MulticastGroup); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (multicastGroup_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MulticastGroup); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetMulticastGroupResponse other) { - if (other == null) { - return; - } - if (other.multicastGroup_ != null) { - if (multicastGroup_ == null) { - MulticastGroup = new global::Chirpstack.Api.MulticastGroup(); - } - MulticastGroup.MergeFrom(other.MulticastGroup); - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (multicastGroup_ == null) { - MulticastGroup = new global::Chirpstack.Api.MulticastGroup(); - } - input.ReadMessage(MulticastGroup); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (multicastGroup_ == null) { - MulticastGroup = new global::Chirpstack.Api.MulticastGroup(); - } - input.ReadMessage(MulticastGroup); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateMulticastGroupRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateMulticastGroupRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateMulticastGroupRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateMulticastGroupRequest(UpdateMulticastGroupRequest other) : this() { - multicastGroup_ = other.multicastGroup_ != null ? other.multicastGroup_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateMulticastGroupRequest Clone() { - return new UpdateMulticastGroupRequest(this); - } - - /// Field number for the "multicast_group" field. - public const int MulticastGroupFieldNumber = 1; - private global::Chirpstack.Api.MulticastGroup multicastGroup_; - /// - /// Multicast group object to update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.MulticastGroup MulticastGroup { - get { return multicastGroup_; } - set { - multicastGroup_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateMulticastGroupRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateMulticastGroupRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(MulticastGroup, other.MulticastGroup)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (multicastGroup_ != null) hash ^= MulticastGroup.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (multicastGroup_ != null) { - output.WriteRawTag(10); - output.WriteMessage(MulticastGroup); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (multicastGroup_ != null) { - output.WriteRawTag(10); - output.WriteMessage(MulticastGroup); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (multicastGroup_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MulticastGroup); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateMulticastGroupRequest other) { - if (other == null) { - return; - } - if (other.multicastGroup_ != null) { - if (multicastGroup_ == null) { - MulticastGroup = new global::Chirpstack.Api.MulticastGroup(); - } - MulticastGroup.MergeFrom(other.MulticastGroup); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (multicastGroup_ == null) { - MulticastGroup = new global::Chirpstack.Api.MulticastGroup(); - } - input.ReadMessage(MulticastGroup); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (multicastGroup_ == null) { - MulticastGroup = new global::Chirpstack.Api.MulticastGroup(); - } - input.ReadMessage(MulticastGroup); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteMulticastGroupRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteMulticastGroupRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteMulticastGroupRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteMulticastGroupRequest(DeleteMulticastGroupRequest other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteMulticastGroupRequest Clone() { - return new DeleteMulticastGroupRequest(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Multicast group iD. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteMulticastGroupRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteMulticastGroupRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteMulticastGroupRequest other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListMulticastGroupsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListMulticastGroupsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListMulticastGroupsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListMulticastGroupsRequest(ListMulticastGroupsRequest other) : this() { - limit_ = other.limit_; - offset_ = other.offset_; - search_ = other.search_; - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListMulticastGroupsRequest Clone() { - return new ListMulticastGroupsRequest(this); - } - - /// Field number for the "limit" field. - public const int LimitFieldNumber = 1; - private uint limit_; - /// - /// Max number of multicast groups to return in the result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Limit { - get { return limit_; } - set { - limit_ = value; - } - } - - /// Field number for the "offset" field. - public const int OffsetFieldNumber = 2; - private uint offset_; - /// - /// Offset in the result-set (for pagination). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Offset { - get { return offset_; } - set { - offset_ = value; - } - } - - /// Field number for the "search" field. - public const int SearchFieldNumber = 3; - private string search_ = ""; - /// - /// If set, the given string will be used to search on name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Search { - get { return search_; } - set { - search_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 4; - private string applicationId_ = ""; - /// - /// Application ID to list the multicast groups for. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListMulticastGroupsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListMulticastGroupsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Limit != other.Limit) return false; - if (Offset != other.Offset) return false; - if (Search != other.Search) return false; - if (ApplicationId != other.ApplicationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Limit != 0) hash ^= Limit.GetHashCode(); - if (Offset != 0) hash ^= Offset.GetHashCode(); - if (Search.Length != 0) hash ^= Search.GetHashCode(); - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (Search.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Search); - } - if (ApplicationId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (Search.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Search); - } - if (ApplicationId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Limit != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); - } - if (Offset != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); - } - if (Search.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); - } - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListMulticastGroupsRequest other) { - if (other == null) { - return; - } - if (other.Limit != 0) { - Limit = other.Limit; - } - if (other.Offset != 0) { - Offset = other.Offset; - } - if (other.Search.Length != 0) { - Search = other.Search; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - case 26: { - Search = input.ReadString(); - break; - } - case 34: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - case 26: { - Search = input.ReadString(); - break; - } - case 34: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListMulticastGroupsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListMulticastGroupsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListMulticastGroupsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListMulticastGroupsResponse(ListMulticastGroupsResponse other) : this() { - totalCount_ = other.totalCount_; - result_ = other.result_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListMulticastGroupsResponse Clone() { - return new ListMulticastGroupsResponse(this); - } - - /// Field number for the "total_count" field. - public const int TotalCountFieldNumber = 1; - private uint totalCount_; - /// - /// Total number of multicast groups. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TotalCount { - get { return totalCount_; } - set { - totalCount_ = value; - } - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_result_codec - = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.MulticastGroupListItem.Parser); - private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); - /// - /// Result-test. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Result { - get { return result_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListMulticastGroupsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListMulticastGroupsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TotalCount != other.TotalCount) return false; - if(!result_.Equals(other.result_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TotalCount != 0) hash ^= TotalCount.GetHashCode(); - hash ^= result_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(ref output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TotalCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); - } - size += result_.CalculateSize(_repeated_result_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListMulticastGroupsResponse other) { - if (other == null) { - return; - } - if (other.TotalCount != 0) { - TotalCount = other.TotalCount; - } - result_.Add(other.result_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(input, _repeated_result_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(ref input, _repeated_result_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class AddDeviceToMulticastGroupRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddDeviceToMulticastGroupRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddDeviceToMulticastGroupRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddDeviceToMulticastGroupRequest(AddDeviceToMulticastGroupRequest other) : this() { - multicastGroupId_ = other.multicastGroupId_; - devEui_ = other.devEui_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddDeviceToMulticastGroupRequest Clone() { - return new AddDeviceToMulticastGroupRequest(this); - } - - /// Field number for the "multicast_group_id" field. - public const int MulticastGroupIdFieldNumber = 1; - private string multicastGroupId_ = ""; - /// - /// Multicast group ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MulticastGroupId { - get { return multicastGroupId_; } - set { - multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 2; - private string devEui_ = ""; - /// - /// Device EUI (HEX encoded). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AddDeviceToMulticastGroupRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AddDeviceToMulticastGroupRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MulticastGroupId != other.MulticastGroupId) return false; - if (DevEui != other.DevEui) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.GetHashCode(); - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MulticastGroupId); - } - if (DevEui.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MulticastGroupId); - } - if (DevEui.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (MulticastGroupId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); - } - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AddDeviceToMulticastGroupRequest other) { - if (other == null) { - return; - } - if (other.MulticastGroupId.Length != 0) { - MulticastGroupId = other.MulticastGroupId; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - MulticastGroupId = input.ReadString(); - break; - } - case 18: { - DevEui = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - MulticastGroupId = input.ReadString(); - break; - } - case 18: { - DevEui = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class RemoveDeviceFromMulticastGroupRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveDeviceFromMulticastGroupRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemoveDeviceFromMulticastGroupRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemoveDeviceFromMulticastGroupRequest(RemoveDeviceFromMulticastGroupRequest other) : this() { - multicastGroupId_ = other.multicastGroupId_; - devEui_ = other.devEui_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemoveDeviceFromMulticastGroupRequest Clone() { - return new RemoveDeviceFromMulticastGroupRequest(this); - } - - /// Field number for the "multicast_group_id" field. - public const int MulticastGroupIdFieldNumber = 1; - private string multicastGroupId_ = ""; - /// - /// Multicast group ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MulticastGroupId { - get { return multicastGroupId_; } - set { - multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 2; - private string devEui_ = ""; - /// - /// Device EUI (HEX encoded). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RemoveDeviceFromMulticastGroupRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RemoveDeviceFromMulticastGroupRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MulticastGroupId != other.MulticastGroupId) return false; - if (DevEui != other.DevEui) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.GetHashCode(); - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MulticastGroupId); - } - if (DevEui.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MulticastGroupId); - } - if (DevEui.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (MulticastGroupId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); - } - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RemoveDeviceFromMulticastGroupRequest other) { - if (other == null) { - return; - } - if (other.MulticastGroupId.Length != 0) { - MulticastGroupId = other.MulticastGroupId; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - MulticastGroupId = input.ReadString(); - break; - } - case 18: { - DevEui = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - MulticastGroupId = input.ReadString(); - break; - } - case 18: { - DevEui = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class AddGatewayToMulticastGroupRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddGatewayToMulticastGroupRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddGatewayToMulticastGroupRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddGatewayToMulticastGroupRequest(AddGatewayToMulticastGroupRequest other) : this() { - multicastGroupId_ = other.multicastGroupId_; - gatewayId_ = other.gatewayId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddGatewayToMulticastGroupRequest Clone() { - return new AddGatewayToMulticastGroupRequest(this); - } - - /// Field number for the "multicast_group_id" field. - public const int MulticastGroupIdFieldNumber = 1; - private string multicastGroupId_ = ""; - /// - /// Multicast group ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MulticastGroupId { - get { return multicastGroupId_; } - set { - multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 2; - private string gatewayId_ = ""; - /// - /// Gateway ID (HEX encoded). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AddGatewayToMulticastGroupRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AddGatewayToMulticastGroupRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MulticastGroupId != other.MulticastGroupId) return false; - if (GatewayId != other.GatewayId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.GetHashCode(); - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MulticastGroupId); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MulticastGroupId); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (MulticastGroupId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); - } - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AddGatewayToMulticastGroupRequest other) { - if (other == null) { - return; - } - if (other.MulticastGroupId.Length != 0) { - MulticastGroupId = other.MulticastGroupId; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - MulticastGroupId = input.ReadString(); - break; - } - case 18: { - GatewayId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - MulticastGroupId = input.ReadString(); - break; - } - case 18: { - GatewayId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class RemoveGatewayFromMulticastGroupRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveGatewayFromMulticastGroupRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[13]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemoveGatewayFromMulticastGroupRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemoveGatewayFromMulticastGroupRequest(RemoveGatewayFromMulticastGroupRequest other) : this() { - multicastGroupId_ = other.multicastGroupId_; - gatewayId_ = other.gatewayId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemoveGatewayFromMulticastGroupRequest Clone() { - return new RemoveGatewayFromMulticastGroupRequest(this); - } - - /// Field number for the "multicast_group_id" field. - public const int MulticastGroupIdFieldNumber = 1; - private string multicastGroupId_ = ""; - /// - /// Multicast group ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MulticastGroupId { - get { return multicastGroupId_; } - set { - multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 2; - private string gatewayId_ = ""; - /// - /// Gateway ID (HEX encoded). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RemoveGatewayFromMulticastGroupRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RemoveGatewayFromMulticastGroupRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MulticastGroupId != other.MulticastGroupId) return false; - if (GatewayId != other.GatewayId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.GetHashCode(); - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MulticastGroupId); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MulticastGroupId); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (MulticastGroupId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); - } - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RemoveGatewayFromMulticastGroupRequest other) { - if (other == null) { - return; - } - if (other.MulticastGroupId.Length != 0) { - MulticastGroupId = other.MulticastGroupId; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - MulticastGroupId = input.ReadString(); - break; - } - case 18: { - GatewayId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - MulticastGroupId = input.ReadString(); - break; - } - case 18: { - GatewayId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class MulticastGroupQueueItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MulticastGroupQueueItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[14]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MulticastGroupQueueItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MulticastGroupQueueItem(MulticastGroupQueueItem other) : this() { - multicastGroupId_ = other.multicastGroupId_; - fCnt_ = other.fCnt_; - fPort_ = other.fPort_; - data_ = other.data_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MulticastGroupQueueItem Clone() { - return new MulticastGroupQueueItem(this); - } - - /// Field number for the "multicast_group_id" field. - public const int MulticastGroupIdFieldNumber = 1; - private string multicastGroupId_ = ""; - /// - /// Multicast group ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MulticastGroupId { - get { return multicastGroupId_; } - set { - multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "f_cnt" field. - public const int FCntFieldNumber = 2; - private uint fCnt_; - /// - /// Downlink frame-counter. - /// This will be automatically set on enqueue. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint FCnt { - get { return fCnt_; } - set { - fCnt_ = value; - } - } - - /// Field number for the "f_port" field. - public const int FPortFieldNumber = 3; - private uint fPort_; - /// - /// FPort (must be > 0). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint FPort { - get { return fPort_; } - set { - fPort_ = value; - } - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 4; - private pb::ByteString data_ = pb::ByteString.Empty; - /// - /// Payload. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Data { - get { return data_; } - set { - data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MulticastGroupQueueItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MulticastGroupQueueItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MulticastGroupId != other.MulticastGroupId) return false; - if (FCnt != other.FCnt) return false; - if (FPort != other.FPort) return false; - if (Data != other.Data) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.GetHashCode(); - if (FCnt != 0) hash ^= FCnt.GetHashCode(); - if (FPort != 0) hash ^= FPort.GetHashCode(); - if (Data.Length != 0) hash ^= Data.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MulticastGroupId); - } - if (FCnt != 0) { - output.WriteRawTag(16); - output.WriteUInt32(FCnt); - } - if (FPort != 0) { - output.WriteRawTag(24); - output.WriteUInt32(FPort); - } - if (Data.Length != 0) { - output.WriteRawTag(34); - output.WriteBytes(Data); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MulticastGroupId); - } - if (FCnt != 0) { - output.WriteRawTag(16); - output.WriteUInt32(FCnt); - } - if (FPort != 0) { - output.WriteRawTag(24); - output.WriteUInt32(FPort); - } - if (Data.Length != 0) { - output.WriteRawTag(34); - output.WriteBytes(Data); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (MulticastGroupId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); - } - if (FCnt != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCnt); - } - if (FPort != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FPort); - } - if (Data.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MulticastGroupQueueItem other) { - if (other == null) { - return; - } - if (other.MulticastGroupId.Length != 0) { - MulticastGroupId = other.MulticastGroupId; - } - if (other.FCnt != 0) { - FCnt = other.FCnt; - } - if (other.FPort != 0) { - FPort = other.FPort; - } - if (other.Data.Length != 0) { - Data = other.Data; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - MulticastGroupId = input.ReadString(); - break; - } - case 16: { - FCnt = input.ReadUInt32(); - break; - } - case 24: { - FPort = input.ReadUInt32(); - break; - } - case 34: { - Data = input.ReadBytes(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - MulticastGroupId = input.ReadString(); - break; - } - case 16: { - FCnt = input.ReadUInt32(); - break; - } - case 24: { - FPort = input.ReadUInt32(); - break; - } - case 34: { - Data = input.ReadBytes(); - break; - } - } - } - } - #endif - - } - - public sealed partial class EnqueueMulticastGroupQueueItemRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnqueueMulticastGroupQueueItemRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[15]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnqueueMulticastGroupQueueItemRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnqueueMulticastGroupQueueItemRequest(EnqueueMulticastGroupQueueItemRequest other) : this() { - queueItem_ = other.queueItem_ != null ? other.queueItem_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnqueueMulticastGroupQueueItemRequest Clone() { - return new EnqueueMulticastGroupQueueItemRequest(this); - } - - /// Field number for the "queue_item" field. - public const int QueueItemFieldNumber = 1; - private global::Chirpstack.Api.MulticastGroupQueueItem queueItem_; - /// - /// Multicast queue-item to enqueue. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.MulticastGroupQueueItem QueueItem { - get { return queueItem_; } - set { - queueItem_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as EnqueueMulticastGroupQueueItemRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(EnqueueMulticastGroupQueueItemRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(QueueItem, other.QueueItem)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (queueItem_ != null) hash ^= QueueItem.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (queueItem_ != null) { - output.WriteRawTag(10); - output.WriteMessage(QueueItem); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (queueItem_ != null) { - output.WriteRawTag(10); - output.WriteMessage(QueueItem); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (queueItem_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueueItem); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(EnqueueMulticastGroupQueueItemRequest other) { - if (other == null) { - return; - } - if (other.queueItem_ != null) { - if (queueItem_ == null) { - QueueItem = new global::Chirpstack.Api.MulticastGroupQueueItem(); - } - QueueItem.MergeFrom(other.QueueItem); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (queueItem_ == null) { - QueueItem = new global::Chirpstack.Api.MulticastGroupQueueItem(); - } - input.ReadMessage(QueueItem); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (queueItem_ == null) { - QueueItem = new global::Chirpstack.Api.MulticastGroupQueueItem(); - } - input.ReadMessage(QueueItem); - break; - } - } - } - } - #endif - - } - - public sealed partial class EnqueueMulticastGroupQueueItemResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnqueueMulticastGroupQueueItemResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[16]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnqueueMulticastGroupQueueItemResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnqueueMulticastGroupQueueItemResponse(EnqueueMulticastGroupQueueItemResponse other) : this() { - fCnt_ = other.fCnt_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnqueueMulticastGroupQueueItemResponse Clone() { - return new EnqueueMulticastGroupQueueItemResponse(this); - } - - /// Field number for the "f_cnt" field. - public const int FCntFieldNumber = 1; - private uint fCnt_; - /// - /// Frame-counter of the enqueued payload. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint FCnt { - get { return fCnt_; } - set { - fCnt_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as EnqueueMulticastGroupQueueItemResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(EnqueueMulticastGroupQueueItemResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (FCnt != other.FCnt) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (FCnt != 0) hash ^= FCnt.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (FCnt != 0) { - output.WriteRawTag(8); - output.WriteUInt32(FCnt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (FCnt != 0) { - output.WriteRawTag(8); - output.WriteUInt32(FCnt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (FCnt != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCnt); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(EnqueueMulticastGroupQueueItemResponse other) { - if (other == null) { - return; - } - if (other.FCnt != 0) { - FCnt = other.FCnt; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - FCnt = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - FCnt = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - public sealed partial class FlushMulticastGroupQueueRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushMulticastGroupQueueRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[17]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FlushMulticastGroupQueueRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FlushMulticastGroupQueueRequest(FlushMulticastGroupQueueRequest other) : this() { - multicastGroupId_ = other.multicastGroupId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FlushMulticastGroupQueueRequest Clone() { - return new FlushMulticastGroupQueueRequest(this); - } - - /// Field number for the "multicast_group_id" field. - public const int MulticastGroupIdFieldNumber = 1; - private string multicastGroupId_ = ""; - /// - /// Multicast group ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MulticastGroupId { - get { return multicastGroupId_; } - set { - multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FlushMulticastGroupQueueRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FlushMulticastGroupQueueRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MulticastGroupId != other.MulticastGroupId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MulticastGroupId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MulticastGroupId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (MulticastGroupId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FlushMulticastGroupQueueRequest other) { - if (other == null) { - return; - } - if (other.MulticastGroupId.Length != 0) { - MulticastGroupId = other.MulticastGroupId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - MulticastGroupId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - MulticastGroupId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListMulticastGroupQueueRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListMulticastGroupQueueRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[18]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListMulticastGroupQueueRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListMulticastGroupQueueRequest(ListMulticastGroupQueueRequest other) : this() { - multicastGroupId_ = other.multicastGroupId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListMulticastGroupQueueRequest Clone() { - return new ListMulticastGroupQueueRequest(this); - } - - /// Field number for the "multicast_group_id" field. - public const int MulticastGroupIdFieldNumber = 1; - private string multicastGroupId_ = ""; - /// - /// Multicast group ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MulticastGroupId { - get { return multicastGroupId_; } - set { - multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListMulticastGroupQueueRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListMulticastGroupQueueRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MulticastGroupId != other.MulticastGroupId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MulticastGroupId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MulticastGroupId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (MulticastGroupId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListMulticastGroupQueueRequest other) { - if (other == null) { - return; - } - if (other.MulticastGroupId.Length != 0) { - MulticastGroupId = other.MulticastGroupId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - MulticastGroupId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - MulticastGroupId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListMulticastGroupQueueResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListMulticastGroupQueueResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.MessageTypes[19]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListMulticastGroupQueueResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListMulticastGroupQueueResponse(ListMulticastGroupQueueResponse other) : this() { - items_ = other.items_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListMulticastGroupQueueResponse Clone() { - return new ListMulticastGroupQueueResponse(this); - } - - /// Field number for the "items" field. - public const int ItemsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_items_codec - = pb::FieldCodec.ForMessage(10, global::Chirpstack.Api.MulticastGroupQueueItem.Parser); - private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Items { - get { return items_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListMulticastGroupQueueResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListMulticastGroupQueueResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!items_.Equals(other.items_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= items_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - items_.WriteTo(output, _repeated_items_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - items_.WriteTo(ref output, _repeated_items_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += items_.CalculateSize(_repeated_items_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListMulticastGroupQueueResponse other) { - if (other == null) { - return; - } - items_.Add(other.items_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - items_.AddEntriesFrom(input, _repeated_items_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - items_.AddEntriesFrom(ref input, _repeated_items_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/MulticastGroupGrpc.cs b/api/csharp/Chirpstack/api/MulticastGroupGrpc.cs deleted file mode 100644 index ab3ae60a..00000000 --- a/api/csharp/Chirpstack/api/MulticastGroupGrpc.cs +++ /dev/null @@ -1,994 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/multicast_group.proto -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Chirpstack.Api { - /// - /// MulticastGroupService is the service managing multicast-groups. - /// - public static partial class MulticastGroupService - { - static readonly string __ServiceName = "api.MulticastGroupService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateMulticastGroupRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateMulticastGroupResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateMulticastGroupResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetMulticastGroupRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetMulticastGroupResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetMulticastGroupResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateMulticastGroupRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteMulticastGroupRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListMulticastGroupsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListMulticastGroupsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListMulticastGroupsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListMulticastGroupsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_AddDeviceToMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.AddDeviceToMulticastGroupRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_RemoveDeviceFromMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.RemoveDeviceFromMulticastGroupRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_AddGatewayToMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.AddGatewayToMulticastGroupRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_RemoveGatewayFromMulticastGroupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.RemoveGatewayFromMulticastGroupRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_EnqueueMulticastGroupQueueItemRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.EnqueueMulticastGroupQueueItemRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_EnqueueMulticastGroupQueueItemResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.EnqueueMulticastGroupQueueItemResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_FlushMulticastGroupQueueRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.FlushMulticastGroupQueueRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListMulticastGroupQueueRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListMulticastGroupQueueRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListMulticastGroupQueueResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListMulticastGroupQueueResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Create = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Create", - __Marshaller_api_CreateMulticastGroupRequest, - __Marshaller_api_CreateMulticastGroupResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Get = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Get", - __Marshaller_api_GetMulticastGroupRequest, - __Marshaller_api_GetMulticastGroupResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Update = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Update", - __Marshaller_api_UpdateMulticastGroupRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Delete = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Delete", - __Marshaller_api_DeleteMulticastGroupRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_List = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "List", - __Marshaller_api_ListMulticastGroupsRequest, - __Marshaller_api_ListMulticastGroupsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_AddDevice = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "AddDevice", - __Marshaller_api_AddDeviceToMulticastGroupRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_RemoveDevice = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "RemoveDevice", - __Marshaller_api_RemoveDeviceFromMulticastGroupRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_AddGateway = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "AddGateway", - __Marshaller_api_AddGatewayToMulticastGroupRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_RemoveGateway = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "RemoveGateway", - __Marshaller_api_RemoveGatewayFromMulticastGroupRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Enqueue = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Enqueue", - __Marshaller_api_EnqueueMulticastGroupQueueItemRequest, - __Marshaller_api_EnqueueMulticastGroupQueueItemResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_FlushQueue = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "FlushQueue", - __Marshaller_api_FlushMulticastGroupQueueRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ListQueue = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ListQueue", - __Marshaller_api_ListMulticastGroupQueueRequest, - __Marshaller_api_ListMulticastGroupQueueResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Chirpstack.Api.MulticastGroupReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of MulticastGroupService - [grpc::BindServiceMethod(typeof(MulticastGroupService), "BindService")] - public abstract partial class MulticastGroupServiceBase - { - /// - /// Create the given multicast group. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Create(global::Chirpstack.Api.CreateMulticastGroupRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get returns the multicast group for the given ID. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Get(global::Chirpstack.Api.GetMulticastGroupRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update the given multicast group. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Update(global::Chirpstack.Api.UpdateMulticastGroupRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete the multicast-group with the given ID. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Delete(global::Chirpstack.Api.DeleteMulticastGroupRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// List the available multicast groups. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task List(global::Chirpstack.Api.ListMulticastGroupsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Add a device to the multicast group. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task AddDevice(global::Chirpstack.Api.AddDeviceToMulticastGroupRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Remove a device from the multicast group. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task RemoveDevice(global::Chirpstack.Api.RemoveDeviceFromMulticastGroupRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Add a gateway to the multicast group. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task AddGateway(global::Chirpstack.Api.AddGatewayToMulticastGroupRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Remove a gateway from the multicast group. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task RemoveGateway(global::Chirpstack.Api.RemoveGatewayFromMulticastGroupRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Add the given item to the multicast group queue. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Enqueue(global::Chirpstack.Api.EnqueueMulticastGroupQueueItemRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Flush the queue for the given multicast group. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task FlushQueue(global::Chirpstack.Api.FlushMulticastGroupQueueRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// List the items in the multicast group queue. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ListQueue(global::Chirpstack.Api.ListMulticastGroupQueueRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for MulticastGroupService - public partial class MulticastGroupServiceClient : grpc::ClientBase - { - /// Creates a new client for MulticastGroupService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public MulticastGroupServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for MulticastGroupService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public MulticastGroupServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected MulticastGroupServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected MulticastGroupServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Create the given multicast group. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.CreateMulticastGroupResponse Create(global::Chirpstack.Api.CreateMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Create(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create the given multicast group. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.CreateMulticastGroupResponse Create(global::Chirpstack.Api.CreateMulticastGroupRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); - } - /// - /// Create the given multicast group. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create the given multicast group. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateMulticastGroupRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); - } - /// - /// Get returns the multicast group for the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetMulticastGroupResponse Get(global::Chirpstack.Api.GetMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Get(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get returns the multicast group for the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetMulticastGroupResponse Get(global::Chirpstack.Api.GetMulticastGroupRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); - } - /// - /// Get returns the multicast group for the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get returns the multicast group for the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetMulticastGroupRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); - } - /// - /// Update the given multicast group. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Update(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the given multicast group. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateMulticastGroupRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); - } - /// - /// Update the given multicast group. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the given multicast group. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateMulticastGroupRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); - } - /// - /// Delete the multicast-group with the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Delete(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the multicast-group with the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteMulticastGroupRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); - } - /// - /// Delete the multicast-group with the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the multicast-group with the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteMulticastGroupRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); - } - /// - /// List the available multicast groups. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListMulticastGroupsResponse List(global::Chirpstack.Api.ListMulticastGroupsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return List(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// List the available multicast groups. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListMulticastGroupsResponse List(global::Chirpstack.Api.ListMulticastGroupsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); - } - /// - /// List the available multicast groups. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListMulticastGroupsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// List the available multicast groups. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListMulticastGroupsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); - } - /// - /// Add a device to the multicast group. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty AddDevice(global::Chirpstack.Api.AddDeviceToMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return AddDevice(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Add a device to the multicast group. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty AddDevice(global::Chirpstack.Api.AddDeviceToMulticastGroupRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_AddDevice, null, options, request); - } - /// - /// Add a device to the multicast group. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall AddDeviceAsync(global::Chirpstack.Api.AddDeviceToMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return AddDeviceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Add a device to the multicast group. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall AddDeviceAsync(global::Chirpstack.Api.AddDeviceToMulticastGroupRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_AddDevice, null, options, request); - } - /// - /// Remove a device from the multicast group. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty RemoveDevice(global::Chirpstack.Api.RemoveDeviceFromMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return RemoveDevice(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Remove a device from the multicast group. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty RemoveDevice(global::Chirpstack.Api.RemoveDeviceFromMulticastGroupRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_RemoveDevice, null, options, request); - } - /// - /// Remove a device from the multicast group. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall RemoveDeviceAsync(global::Chirpstack.Api.RemoveDeviceFromMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return RemoveDeviceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Remove a device from the multicast group. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall RemoveDeviceAsync(global::Chirpstack.Api.RemoveDeviceFromMulticastGroupRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_RemoveDevice, null, options, request); - } - /// - /// Add a gateway to the multicast group. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty AddGateway(global::Chirpstack.Api.AddGatewayToMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return AddGateway(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Add a gateway to the multicast group. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty AddGateway(global::Chirpstack.Api.AddGatewayToMulticastGroupRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_AddGateway, null, options, request); - } - /// - /// Add a gateway to the multicast group. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall AddGatewayAsync(global::Chirpstack.Api.AddGatewayToMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return AddGatewayAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Add a gateway to the multicast group. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall AddGatewayAsync(global::Chirpstack.Api.AddGatewayToMulticastGroupRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_AddGateway, null, options, request); - } - /// - /// Remove a gateway from the multicast group. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty RemoveGateway(global::Chirpstack.Api.RemoveGatewayFromMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return RemoveGateway(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Remove a gateway from the multicast group. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty RemoveGateway(global::Chirpstack.Api.RemoveGatewayFromMulticastGroupRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_RemoveGateway, null, options, request); - } - /// - /// Remove a gateway from the multicast group. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall RemoveGatewayAsync(global::Chirpstack.Api.RemoveGatewayFromMulticastGroupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return RemoveGatewayAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Remove a gateway from the multicast group. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall RemoveGatewayAsync(global::Chirpstack.Api.RemoveGatewayFromMulticastGroupRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_RemoveGateway, null, options, request); - } - /// - /// Add the given item to the multicast group queue. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.EnqueueMulticastGroupQueueItemResponse Enqueue(global::Chirpstack.Api.EnqueueMulticastGroupQueueItemRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Enqueue(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Add the given item to the multicast group queue. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.EnqueueMulticastGroupQueueItemResponse Enqueue(global::Chirpstack.Api.EnqueueMulticastGroupQueueItemRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Enqueue, null, options, request); - } - /// - /// Add the given item to the multicast group queue. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall EnqueueAsync(global::Chirpstack.Api.EnqueueMulticastGroupQueueItemRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return EnqueueAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Add the given item to the multicast group queue. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall EnqueueAsync(global::Chirpstack.Api.EnqueueMulticastGroupQueueItemRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Enqueue, null, options, request); - } - /// - /// Flush the queue for the given multicast group. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty FlushQueue(global::Chirpstack.Api.FlushMulticastGroupQueueRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return FlushQueue(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Flush the queue for the given multicast group. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty FlushQueue(global::Chirpstack.Api.FlushMulticastGroupQueueRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_FlushQueue, null, options, request); - } - /// - /// Flush the queue for the given multicast group. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall FlushQueueAsync(global::Chirpstack.Api.FlushMulticastGroupQueueRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return FlushQueueAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Flush the queue for the given multicast group. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall FlushQueueAsync(global::Chirpstack.Api.FlushMulticastGroupQueueRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_FlushQueue, null, options, request); - } - /// - /// List the items in the multicast group queue. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListMulticastGroupQueueResponse ListQueue(global::Chirpstack.Api.ListMulticastGroupQueueRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListQueue(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// List the items in the multicast group queue. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListMulticastGroupQueueResponse ListQueue(global::Chirpstack.Api.ListMulticastGroupQueueRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ListQueue, null, options, request); - } - /// - /// List the items in the multicast group queue. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListQueueAsync(global::Chirpstack.Api.ListMulticastGroupQueueRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListQueueAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// List the items in the multicast group queue. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListQueueAsync(global::Chirpstack.Api.ListMulticastGroupQueueRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ListQueue, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override MulticastGroupServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new MulticastGroupServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(MulticastGroupServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_Create, serviceImpl.Create) - .AddMethod(__Method_Get, serviceImpl.Get) - .AddMethod(__Method_Update, serviceImpl.Update) - .AddMethod(__Method_Delete, serviceImpl.Delete) - .AddMethod(__Method_List, serviceImpl.List) - .AddMethod(__Method_AddDevice, serviceImpl.AddDevice) - .AddMethod(__Method_RemoveDevice, serviceImpl.RemoveDevice) - .AddMethod(__Method_AddGateway, serviceImpl.AddGateway) - .AddMethod(__Method_RemoveGateway, serviceImpl.RemoveGateway) - .AddMethod(__Method_Enqueue, serviceImpl.Enqueue) - .AddMethod(__Method_FlushQueue, serviceImpl.FlushQueue) - .AddMethod(__Method_ListQueue, serviceImpl.ListQueue).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, MulticastGroupServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Create)); - serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Get)); - serviceBinder.AddMethod(__Method_Update, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Update)); - serviceBinder.AddMethod(__Method_Delete, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Delete)); - serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); - serviceBinder.AddMethod(__Method_AddDevice, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.AddDevice)); - serviceBinder.AddMethod(__Method_RemoveDevice, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.RemoveDevice)); - serviceBinder.AddMethod(__Method_AddGateway, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.AddGateway)); - serviceBinder.AddMethod(__Method_RemoveGateway, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.RemoveGateway)); - serviceBinder.AddMethod(__Method_Enqueue, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Enqueue)); - serviceBinder.AddMethod(__Method_FlushQueue, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.FlushQueue)); - serviceBinder.AddMethod(__Method_ListQueue, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListQueue)); - } - - } -} -#endregion diff --git a/api/csharp/Chirpstack/api/Relay.cs b/api/csharp/Chirpstack/api/Relay.cs deleted file mode 100644 index e6542706..00000000 --- a/api/csharp/Chirpstack/api/Relay.cs +++ /dev/null @@ -1,2040 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/relay.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Chirpstack.Api { - - /// Holder for reflection information generated from api/relay.proto - public static partial class RelayReflection { - - #region Descriptor - /// File descriptor for api/relay.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static RelayReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cg9hcGkvcmVsYXkucHJvdG8SA2FwaRocZ29vZ2xlL2FwaS9hbm5vdGF0aW9u", - "cy5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90bxobZ29v", - "Z2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvIi4KDVJlbGF5TGlzdEl0ZW0SDwoH", - "ZGV2X2V1aRgBIAEoCRIMCgRuYW1lGAIgASgJIkoKEUxpc3RSZWxheXNSZXF1", - "ZXN0Eg0KBWxpbWl0GAEgASgNEg4KBm9mZnNldBgCIAEoDRIWCg5hcHBsaWNh", - "dGlvbl9pZBgDIAEoCSJNChJMaXN0UmVsYXlzUmVzcG9uc2USEwoLdG90YWxf", - "Y291bnQYASABKA0SIgoGcmVzdWx0GAIgAygLMhIuYXBpLlJlbGF5TGlzdEl0", - "ZW0iRgoVQWRkUmVsYXlEZXZpY2VSZXF1ZXN0EhUKDXJlbGF5X2Rldl9ldWkY", - "ASABKAkSFgoOZGV2aWNlX2Rldl9ldWkYAiABKAkiSQoYUmVtb3ZlUmVsYXlE", - "ZXZpY2VSZXF1ZXN0EhUKDXJlbGF5X2Rldl9ldWkYASABKAkSFgoOZGV2aWNl", - "X2Rldl9ldWkYAiABKAkiTwoXTGlzdFJlbGF5RGV2aWNlc1JlcXVlc3QSDQoF", - "bGltaXQYASABKA0SDgoGb2Zmc2V0GAIgASgNEhUKDXJlbGF5X2Rldl9ldWkY", - "AyABKAkiZAoTUmVsYXlEZXZpY2VMaXN0SXRlbRIPCgdkZXZfZXVpGAEgASgJ", - "Ei4KCmNyZWF0ZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0", - "YW1wEgwKBG5hbWUYAyABKAkiWQoYTGlzdFJlbGF5RGV2aWNlc1Jlc3BvbnNl", - "EhMKC3RvdGFsX2NvdW50GAEgASgNEigKBnJlc3VsdBgCIAMoCzIYLmFwaS5S", - "ZWxheURldmljZUxpc3RJdGVtMsQDCgxSZWxheVNlcnZpY2USTAoETGlzdBIW", - "LmFwaS5MaXN0UmVsYXlzUmVxdWVzdBoXLmFwaS5MaXN0UmVsYXlzUmVzcG9u", - "c2UiE4LT5JMCDRILL2FwaS9yZWxheXMSbwoJQWRkRGV2aWNlEhouYXBpLkFk", - "ZFJlbGF5RGV2aWNlUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIu", - "gtPkkwIoIiMvYXBpL3JlbGF5cy97cmVsYXlfZGV2X2V1aX0vZGV2aWNlczoB", - "KhJ8CgxSZW1vdmVEZXZpY2USHS5hcGkuUmVtb3ZlUmVsYXlEZXZpY2VSZXF1", - "ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IjWC0+STAi8qLS9hcGkvcmVs", - "YXlzL3tyZWxheV9kZXZfZXVpfS9kZXZpY2VzL3tkZXZfZXVpfRJ3CgtMaXN0", - "RGV2aWNlcxIcLmFwaS5MaXN0UmVsYXlEZXZpY2VzUmVxdWVzdBodLmFwaS5M", - "aXN0UmVsYXlEZXZpY2VzUmVzcG9uc2UiK4LT5JMCJRIjL2FwaS9yZWxheXMv", - "e3JlbGF5X2Rldl9ldWl9L2RldmljZXNCYgoRaW8uY2hpcnBzdGFjay5hcGlC", - "ClJlbGF5UHJvdG9QAVouZ2l0aHViLmNvbS9jaGlycHN0YWNrL2NoaXJwc3Rh", - "Y2svYXBpL2dvL3Y0L2FwaaoCDkNoaXJwc3RhY2suQXBpYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.RelayListItem), global::Chirpstack.Api.RelayListItem.Parser, new[]{ "DevEui", "Name" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListRelaysRequest), global::Chirpstack.Api.ListRelaysRequest.Parser, new[]{ "Limit", "Offset", "ApplicationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListRelaysResponse), global::Chirpstack.Api.ListRelaysResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.AddRelayDeviceRequest), global::Chirpstack.Api.AddRelayDeviceRequest.Parser, new[]{ "RelayDevEui", "DeviceDevEui" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.RemoveRelayDeviceRequest), global::Chirpstack.Api.RemoveRelayDeviceRequest.Parser, new[]{ "RelayDevEui", "DeviceDevEui" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListRelayDevicesRequest), global::Chirpstack.Api.ListRelayDevicesRequest.Parser, new[]{ "Limit", "Offset", "RelayDevEui" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.RelayDeviceListItem), global::Chirpstack.Api.RelayDeviceListItem.Parser, new[]{ "DevEui", "CreatedAt", "Name" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListRelayDevicesResponse), global::Chirpstack.Api.ListRelayDevicesResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - public sealed partial class RelayListItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RelayListItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.RelayReflection.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 RelayListItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RelayListItem(RelayListItem other) : this() { - devEui_ = other.devEui_; - name_ = other.name_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RelayListItem Clone() { - return new RelayListItem(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - /// - /// Name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RelayListItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RelayListItem 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; - 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 (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [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 (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_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 (_unknownFields != 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 (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RelayListItem other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - 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: { - DevEui = 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: { - DevEui = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListRelaysRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListRelaysRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.RelayReflection.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 ListRelaysRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListRelaysRequest(ListRelaysRequest other) : this() { - limit_ = other.limit_; - offset_ = other.offset_; - applicationId_ = other.applicationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListRelaysRequest Clone() { - return new ListRelaysRequest(this); - } - - /// Field number for the "limit" field. - public const int LimitFieldNumber = 1; - private uint limit_; - /// - /// Max number of devices to return in the result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Limit { - get { return limit_; } - set { - limit_ = value; - } - } - - /// Field number for the "offset" field. - public const int OffsetFieldNumber = 2; - private uint offset_; - /// - /// Offset in the result-set (for pagination). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Offset { - get { return offset_; } - set { - offset_ = value; - } - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 3; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListRelaysRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListRelaysRequest 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; - 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 (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (ApplicationId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (ApplicationId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ApplicationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Limit != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); - } - if (Offset != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); - } - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListRelaysRequest other) { - if (other == null) { - return; - } - if (other.Limit != 0) { - Limit = other.Limit; - } - if (other.Offset != 0) { - Offset = other.Offset; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - case 26: { - ApplicationId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - case 26: { - ApplicationId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListRelaysResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListRelaysResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.RelayReflection.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 ListRelaysResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListRelaysResponse(ListRelaysResponse 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 ListRelaysResponse Clone() { - return new ListRelaysResponse(this); - } - - /// Field number for the "total_count" field. - public const int TotalCountFieldNumber = 1; - private uint totalCount_; - /// - /// Total number of relays. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TotalCount { - get { return totalCount_; } - set { - totalCount_ = value; - } - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_result_codec - = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.RelayListItem.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 ListRelaysResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListRelaysResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TotalCount != other.TotalCount) return false; - if(!result_.Equals(other.result_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TotalCount != 0) hash ^= TotalCount.GetHashCode(); - hash ^= result_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(ref output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TotalCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); - } - size += result_.CalculateSize(_repeated_result_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListRelaysResponse other) { - if (other == null) { - return; - } - if (other.TotalCount != 0) { - TotalCount = other.TotalCount; - } - result_.Add(other.result_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(input, _repeated_result_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(ref input, _repeated_result_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class AddRelayDeviceRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddRelayDeviceRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.RelayReflection.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 AddRelayDeviceRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddRelayDeviceRequest(AddRelayDeviceRequest other) : this() { - relayDevEui_ = other.relayDevEui_; - deviceDevEui_ = other.deviceDevEui_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddRelayDeviceRequest Clone() { - return new AddRelayDeviceRequest(this); - } - - /// Field number for the "relay_dev_eui" field. - public const int RelayDevEuiFieldNumber = 1; - private string relayDevEui_ = ""; - /// - /// Relay DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RelayDevEui { - get { return relayDevEui_; } - set { - relayDevEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_dev_eui" field. - public const int DeviceDevEuiFieldNumber = 2; - private string deviceDevEui_ = ""; - /// - /// Device DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeviceDevEui { - get { return deviceDevEui_; } - set { - deviceDevEui_ = 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 AddRelayDeviceRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AddRelayDeviceRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (RelayDevEui != other.RelayDevEui) return false; - if (DeviceDevEui != other.DeviceDevEui) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (RelayDevEui.Length != 0) hash ^= RelayDevEui.GetHashCode(); - if (DeviceDevEui.Length != 0) hash ^= DeviceDevEui.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (RelayDevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(RelayDevEui); - } - if (DeviceDevEui.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DeviceDevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (RelayDevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(RelayDevEui); - } - if (DeviceDevEui.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DeviceDevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (RelayDevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RelayDevEui); - } - if (DeviceDevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceDevEui); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AddRelayDeviceRequest other) { - if (other == null) { - return; - } - if (other.RelayDevEui.Length != 0) { - RelayDevEui = other.RelayDevEui; - } - if (other.DeviceDevEui.Length != 0) { - DeviceDevEui = other.DeviceDevEui; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - RelayDevEui = input.ReadString(); - break; - } - case 18: { - DeviceDevEui = 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: { - RelayDevEui = input.ReadString(); - break; - } - case 18: { - DeviceDevEui = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class RemoveRelayDeviceRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveRelayDeviceRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.RelayReflection.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 RemoveRelayDeviceRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemoveRelayDeviceRequest(RemoveRelayDeviceRequest other) : this() { - relayDevEui_ = other.relayDevEui_; - deviceDevEui_ = other.deviceDevEui_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemoveRelayDeviceRequest Clone() { - return new RemoveRelayDeviceRequest(this); - } - - /// Field number for the "relay_dev_eui" field. - public const int RelayDevEuiFieldNumber = 1; - private string relayDevEui_ = ""; - /// - /// Relay DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RelayDevEui { - get { return relayDevEui_; } - set { - relayDevEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_dev_eui" field. - public const int DeviceDevEuiFieldNumber = 2; - private string deviceDevEui_ = ""; - /// - /// Device DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeviceDevEui { - get { return deviceDevEui_; } - set { - deviceDevEui_ = 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 RemoveRelayDeviceRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RemoveRelayDeviceRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (RelayDevEui != other.RelayDevEui) return false; - if (DeviceDevEui != other.DeviceDevEui) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (RelayDevEui.Length != 0) hash ^= RelayDevEui.GetHashCode(); - if (DeviceDevEui.Length != 0) hash ^= DeviceDevEui.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (RelayDevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(RelayDevEui); - } - if (DeviceDevEui.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DeviceDevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (RelayDevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(RelayDevEui); - } - if (DeviceDevEui.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DeviceDevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (RelayDevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RelayDevEui); - } - if (DeviceDevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceDevEui); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RemoveRelayDeviceRequest other) { - if (other == null) { - return; - } - if (other.RelayDevEui.Length != 0) { - RelayDevEui = other.RelayDevEui; - } - if (other.DeviceDevEui.Length != 0) { - DeviceDevEui = other.DeviceDevEui; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - RelayDevEui = input.ReadString(); - break; - } - case 18: { - DeviceDevEui = 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: { - RelayDevEui = input.ReadString(); - break; - } - case 18: { - DeviceDevEui = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListRelayDevicesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListRelayDevicesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.RelayReflection.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 ListRelayDevicesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListRelayDevicesRequest(ListRelayDevicesRequest other) : this() { - limit_ = other.limit_; - offset_ = other.offset_; - relayDevEui_ = other.relayDevEui_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListRelayDevicesRequest Clone() { - return new ListRelayDevicesRequest(this); - } - - /// Field number for the "limit" field. - public const int LimitFieldNumber = 1; - private uint limit_; - /// - /// Max number of multicast groups to return in the result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Limit { - get { return limit_; } - set { - limit_ = value; - } - } - - /// Field number for the "offset" field. - public const int OffsetFieldNumber = 2; - private uint offset_; - /// - /// Offset in the result-set (for pagination). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Offset { - get { return offset_; } - set { - offset_ = value; - } - } - - /// Field number for the "relay_dev_eui" field. - public const int RelayDevEuiFieldNumber = 3; - private string relayDevEui_ = ""; - /// - /// Relay DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RelayDevEui { - get { return relayDevEui_; } - set { - relayDevEui_ = 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 ListRelayDevicesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListRelayDevicesRequest 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 (RelayDevEui != other.RelayDevEui) return false; - 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 (RelayDevEui.Length != 0) hash ^= RelayDevEui.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (RelayDevEui.Length != 0) { - output.WriteRawTag(26); - output.WriteString(RelayDevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (RelayDevEui.Length != 0) { - output.WriteRawTag(26); - output.WriteString(RelayDevEui); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Limit != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); - } - if (Offset != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); - } - if (RelayDevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RelayDevEui); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListRelayDevicesRequest other) { - if (other == null) { - return; - } - if (other.Limit != 0) { - Limit = other.Limit; - } - if (other.Offset != 0) { - Offset = other.Offset; - } - if (other.RelayDevEui.Length != 0) { - RelayDevEui = other.RelayDevEui; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - case 26: { - RelayDevEui = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - case 26: { - RelayDevEui = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class RelayDeviceListItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RelayDeviceListItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.RelayReflection.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 RelayDeviceListItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RelayDeviceListItem(RelayDeviceListItem other) : this() { - devEui_ = other.devEui_; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - name_ = other.name_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RelayDeviceListItem Clone() { - return new RelayDeviceListItem(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// DevEUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 3; - private string name_ = ""; - /// - /// Device 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 RelayDeviceListItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RelayDeviceListItem 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 (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 (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.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 (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - 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 (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - 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 (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - 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(RelayDeviceListItem 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.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: { - DevEui = input.ReadString(); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - 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: { - DevEui = input.ReadString(); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListRelayDevicesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListRelayDevicesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.RelayReflection.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 ListRelayDevicesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListRelayDevicesResponse(ListRelayDevicesResponse 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 ListRelayDevicesResponse Clone() { - return new ListRelayDevicesResponse(this); - } - - /// Field number for the "total_count" field. - public const int TotalCountFieldNumber = 1; - private uint totalCount_; - /// - /// Total number of devices. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TotalCount { - get { return totalCount_; } - set { - totalCount_ = value; - } - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_result_codec - = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.RelayDeviceListItem.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 ListRelayDevicesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListRelayDevicesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TotalCount != other.TotalCount) return false; - if(!result_.Equals(other.result_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TotalCount != 0) hash ^= TotalCount.GetHashCode(); - hash ^= result_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(ref output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TotalCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); - } - size += result_.CalculateSize(_repeated_result_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListRelayDevicesResponse other) { - if (other == null) { - return; - } - if (other.TotalCount != 0) { - TotalCount = other.TotalCount; - } - result_.Add(other.result_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(input, _repeated_result_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(ref input, _repeated_result_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/RelayGrpc.cs b/api/csharp/Chirpstack/api/RelayGrpc.cs deleted file mode 100644 index 2abd43d8..00000000 --- a/api/csharp/Chirpstack/api/RelayGrpc.cs +++ /dev/null @@ -1,412 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/relay.proto -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Chirpstack.Api { - /// - /// RelayService is the service providing API methos for managing relays. - /// - public static partial class RelayService - { - static readonly string __ServiceName = "api.RelayService"; - - [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_ListRelaysRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListRelaysRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListRelaysResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListRelaysResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_AddRelayDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.AddRelayDeviceRequest.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_RemoveRelayDeviceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.RemoveRelayDeviceRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListRelayDevicesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListRelayDevicesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListRelayDevicesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListRelayDevicesResponse.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_ListRelaysRequest, - __Marshaller_api_ListRelaysResponse); - - [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_AddRelayDeviceRequest, - __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_RemoveRelayDeviceRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ListDevices = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ListDevices", - __Marshaller_api_ListRelayDevicesRequest, - __Marshaller_api_ListRelayDevicesResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Chirpstack.Api.RelayReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of RelayService - [grpc::BindServiceMethod(typeof(RelayService), "BindService")] - public abstract partial class RelayServiceBase - { - /// - /// List lists the relays for the given application 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 List(global::Chirpstack.Api.ListRelaysRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// AddDevice adds the given device to the relay. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task AddDevice(global::Chirpstack.Api.AddRelayDeviceRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// RemoveDevice removes the given device from the relay. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task RemoveDevice(global::Chirpstack.Api.RemoveRelayDeviceRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// ListDevices lists the devices for the given relay. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ListDevices(global::Chirpstack.Api.ListRelayDevicesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for RelayService - public partial class RelayServiceClient : grpc::ClientBase - { - /// Creates a new client for RelayService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public RelayServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for RelayService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public RelayServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected RelayServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected RelayServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// List lists the relays for the given application id. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListRelaysResponse List(global::Chirpstack.Api.ListRelaysRequest 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 relays for the given application id. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListRelaysResponse List(global::Chirpstack.Api.ListRelaysRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); - } - /// - /// List lists the relays for the given application 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 ListAsync(global::Chirpstack.Api.ListRelaysRequest 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 relays for the given application 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 ListAsync(global::Chirpstack.Api.ListRelaysRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); - } - /// - /// AddDevice adds the given device to the relay. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty AddDevice(global::Chirpstack.Api.AddRelayDeviceRequest 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 relay. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty AddDevice(global::Chirpstack.Api.AddRelayDeviceRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_AddDevice, null, options, request); - } - /// - /// AddDevice adds the given device to the relay. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall AddDeviceAsync(global::Chirpstack.Api.AddRelayDeviceRequest 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 relay. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall AddDeviceAsync(global::Chirpstack.Api.AddRelayDeviceRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_AddDevice, null, options, request); - } - /// - /// RemoveDevice removes the given device from the relay. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty RemoveDevice(global::Chirpstack.Api.RemoveRelayDeviceRequest 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 relay. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty RemoveDevice(global::Chirpstack.Api.RemoveRelayDeviceRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_RemoveDevice, null, options, request); - } - /// - /// RemoveDevice removes the given device from the relay. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall RemoveDeviceAsync(global::Chirpstack.Api.RemoveRelayDeviceRequest 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 relay. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall RemoveDeviceAsync(global::Chirpstack.Api.RemoveRelayDeviceRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_RemoveDevice, null, options, request); - } - /// - /// ListDevices lists the devices for the given relay. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListRelayDevicesResponse ListDevices(global::Chirpstack.Api.ListRelayDevicesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListDevices(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ListDevices lists the devices for the given relay. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListRelayDevicesResponse ListDevices(global::Chirpstack.Api.ListRelayDevicesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ListDevices, null, options, request); - } - /// - /// ListDevices lists the devices for the given relay. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListDevicesAsync(global::Chirpstack.Api.ListRelayDevicesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListDevicesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ListDevices lists the devices for the given relay. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListDevicesAsync(global::Chirpstack.Api.ListRelayDevicesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ListDevices, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override RelayServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new RelayServiceClient(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(RelayServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_List, serviceImpl.List) - .AddMethod(__Method_AddDevice, serviceImpl.AddDevice) - .AddMethod(__Method_RemoveDevice, serviceImpl.RemoveDevice) - .AddMethod(__Method_ListDevices, serviceImpl.ListDevices).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, RelayServiceBase serviceImpl) - { - 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_ListDevices, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListDevices)); - } - - } -} -#endregion diff --git a/api/csharp/Chirpstack/api/Tenant.cs b/api/csharp/Chirpstack/api/Tenant.cs deleted file mode 100644 index 1264bed3..00000000 --- a/api/csharp/Chirpstack/api/Tenant.cs +++ /dev/null @@ -1,5531 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/tenant.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Chirpstack.Api { - - /// Holder for reflection information generated from api/tenant.proto - public static partial class TenantReflection { - - #region Descriptor - /// File descriptor for api/tenant.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static TenantReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ChBhcGkvdGVuYW50LnByb3RvEgNhcGkaHGdvb2dsZS9hcGkvYW5ub3RhdGlv", - "bnMucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8aG2dv", - "b2dsZS9wcm90b2J1Zi9lbXB0eS5wcm90byKVAgoGVGVuYW50EgoKAmlkGAEg", - "ASgJEgwKBG5hbWUYAiABKAkSEwoLZGVzY3JpcHRpb24YAyABKAkSGQoRY2Fu", - "X2hhdmVfZ2F0ZXdheXMYBCABKAgSGQoRbWF4X2dhdGV3YXlfY291bnQYBSAB", - "KA0SGAoQbWF4X2RldmljZV9jb3VudBgGIAEoDRIbChNwcml2YXRlX2dhdGV3", - "YXlzX3VwGAcgASgIEh0KFXByaXZhdGVfZ2F0ZXdheXNfZG93bhgIIAEoCBIj", - "CgR0YWdzGAkgAygLMhUuYXBpLlRlbmFudC5UYWdzRW50cnkaKwoJVGFnc0Vu", - "dHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEilgIKDlRlbmFu", - "dExpc3RJdGVtEgoKAmlkGAEgASgJEi4KCmNyZWF0ZWRfYXQYAiABKAsyGi5n", - "b29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYAyABKAsy", - "Gi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEgwKBG5hbWUYBCABKAkSGQoR", - "Y2FuX2hhdmVfZ2F0ZXdheXMYBSABKAgSGwoTcHJpdmF0ZV9nYXRld2F5c191", - "cBgGIAEoCBIdChVwcml2YXRlX2dhdGV3YXlzX2Rvd24YCSABKAgSGQoRbWF4", - "X2dhdGV3YXlfY291bnQYByABKA0SGAoQbWF4X2RldmljZV9jb3VudBgIIAEo", - "DSIyChNDcmVhdGVUZW5hbnRSZXF1ZXN0EhsKBnRlbmFudBgBIAEoCzILLmFw", - "aS5UZW5hbnQiIgoUQ3JlYXRlVGVuYW50UmVzcG9uc2USCgoCaWQYASABKAki", - "HgoQR2V0VGVuYW50UmVxdWVzdBIKCgJpZBgBIAEoCSKQAQoRR2V0VGVuYW50", - "UmVzcG9uc2USGwoGdGVuYW50GAEgASgLMgsuYXBpLlRlbmFudBIuCgpjcmVh", - "dGVkX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1", - "cGRhdGVkX2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCIy", - "ChNVcGRhdGVUZW5hbnRSZXF1ZXN0EhsKBnRlbmFudBgBIAEoCzILLmFwaS5U", - "ZW5hbnQiIQoTRGVsZXRlVGVuYW50UmVxdWVzdBIKCgJpZBgBIAEoCSJUChJM", - "aXN0VGVuYW50c1JlcXVlc3QSDQoFbGltaXQYASABKA0SDgoGb2Zmc2V0GAIg", - "ASgNEg4KBnNlYXJjaBgDIAEoCRIPCgd1c2VyX2lkGAQgASgJIk8KE0xpc3RU", - "ZW5hbnRzUmVzcG9uc2USEwoLdG90YWxfY291bnQYASABKA0SIwoGcmVzdWx0", - "GAIgAygLMhMuYXBpLlRlbmFudExpc3RJdGVtIoQBCgpUZW5hbnRVc2VyEhEK", - "CXRlbmFudF9pZBgBIAEoCRIPCgd1c2VyX2lkGAIgASgJEhAKCGlzX2FkbWlu", - "GAMgASgIEhcKD2lzX2RldmljZV9hZG1pbhgEIAEoCBIYChBpc19nYXRld2F5", - "X2FkbWluGAUgASgIEg0KBWVtYWlsGAYgASgJIuwBChJUZW5hbnRVc2VyTGlz", - "dEl0ZW0SEQoJdGVuYW50X2lkGAEgASgJEg8KB3VzZXJfaWQYAiABKAkSLgoK", - "Y3JlYXRlZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAS", - "LgoKdXBkYXRlZF9hdBgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh", - "bXASDQoFZW1haWwYBSABKAkSEAoIaXNfYWRtaW4YBiABKAgSFwoPaXNfZGV2", - "aWNlX2FkbWluGAcgASgIEhgKEGlzX2dhdGV3YXlfYWRtaW4YCCABKAgiPAoU", - "QWRkVGVuYW50VXNlclJlcXVlc3QSJAoLdGVuYW50X3VzZXIYASABKAsyDy5h", - "cGkuVGVuYW50VXNlciI6ChRHZXRUZW5hbnRVc2VyUmVxdWVzdBIRCgl0ZW5h", - "bnRfaWQYASABKAkSDwoHdXNlcl9pZBgCIAEoCSKdAQoVR2V0VGVuYW50VXNl", - "clJlc3BvbnNlEiQKC3RlbmFudF91c2VyGAEgASgLMg8uYXBpLlRlbmFudFVz", - "ZXISLgoKY3JlYXRlZF9hdBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l", - "c3RhbXASLgoKdXBkYXRlZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", - "aW1lc3RhbXAiPwoXVXBkYXRlVGVuYW50VXNlclJlcXVlc3QSJAoLdGVuYW50", - "X3VzZXIYASABKAsyDy5hcGkuVGVuYW50VXNlciI9ChdEZWxldGVUZW5hbnRV", - "c2VyUmVxdWVzdBIRCgl0ZW5hbnRfaWQYASABKAkSDwoHdXNlcl9pZBgCIAEo", - "CSJKChZMaXN0VGVuYW50VXNlcnNSZXF1ZXN0EhEKCXRlbmFudF9pZBgBIAEo", - "CRINCgVsaW1pdBgCIAEoDRIOCgZvZmZzZXQYAyABKA0iVwoXTGlzdFRlbmFu", - "dFVzZXJzUmVzcG9uc2USEwoLdG90YWxfY291bnQYASABKA0SJwoGcmVzdWx0", - "GAIgAygLMhcuYXBpLlRlbmFudFVzZXJMaXN0SXRlbTKiCAoNVGVuYW50U2Vy", - "dmljZRJWCgZDcmVhdGUSGC5hcGkuQ3JlYXRlVGVuYW50UmVxdWVzdBoZLmFw", - "aS5DcmVhdGVUZW5hbnRSZXNwb25zZSIXgtPkkwIRIgwvYXBpL3RlbmFudHM6", - "ASoSTwoDR2V0EhUuYXBpLkdldFRlbmFudFJlcXVlc3QaFi5hcGkuR2V0VGVu", - "YW50UmVzcG9uc2UiGYLT5JMCExIRL2FwaS90ZW5hbnRzL3tpZH0SXwoGVXBk", - "YXRlEhguYXBpLlVwZGF0ZVRlbmFudFJlcXVlc3QaFi5nb29nbGUucHJvdG9i", - "dWYuRW1wdHkiI4LT5JMCHRoYL2FwaS90ZW5hbnRzL3t0ZW5hbnQuaWR9OgEq", - "ElUKBkRlbGV0ZRIYLmFwaS5EZWxldGVUZW5hbnRSZXF1ZXN0GhYuZ29vZ2xl", - "LnByb3RvYnVmLkVtcHR5IhmC0+STAhMqES9hcGkvdGVuYW50cy97aWR9Ek8K", - "BExpc3QSFy5hcGkuTGlzdFRlbmFudHNSZXF1ZXN0GhguYXBpLkxpc3RUZW5h", - "bnRzUmVzcG9uc2UiFILT5JMCDhIML2FwaS90ZW5hbnRzEnMKB0FkZFVzZXIS", - "GS5hcGkuQWRkVGVuYW50VXNlclJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYu", - "RW1wdHkiNYLT5JMCLyIqL2FwaS90ZW5hbnRzL3t0ZW5hbnRfdXNlci50ZW5h", - "bnRfaWR9L3VzZXJzOgEqEnIKB0dldFVzZXISGS5hcGkuR2V0VGVuYW50VXNl", - "clJlcXVlc3QaGi5hcGkuR2V0VGVuYW50VXNlclJlc3BvbnNlIjCC0+STAioS", - "KC9hcGkvdGVuYW50cy97dGVuYW50X2lkfS91c2Vycy97dXNlcl9pZH0SjwEK", - "ClVwZGF0ZVVzZXISHC5hcGkuVXBkYXRlVGVuYW50VXNlclJlcXVlc3QaFi5n", - "b29nbGUucHJvdG9idWYuRW1wdHkiS4LT5JMCRRpAL2FwaS90ZW5hbnRzL3t0", - "ZW5hbnRfdXNlci50ZW5hbnRfaWR9L3VzZXJzL3t0ZW5hbnRfdXNlci51c2Vy", - "X2lkfToBKhJ0CgpEZWxldGVVc2VyEhwuYXBpLkRlbGV0ZVRlbmFudFVzZXJS", - "ZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IjCC0+STAioqKC9hcGkv", - "dGVuYW50cy97dGVuYW50X2lkfS91c2Vycy97dXNlcl9pZH0SbgoJTGlzdFVz", - "ZXJzEhsuYXBpLkxpc3RUZW5hbnRVc2Vyc1JlcXVlc3QaHC5hcGkuTGlzdFRl", - "bmFudFVzZXJzUmVzcG9uc2UiJoLT5JMCIBIeL2FwaS90ZW5hbnRzL3t0ZW5h", - "bnRfaWR9L3VzZXJzQmMKEWlvLmNoaXJwc3RhY2suYXBpQgtUZW5hbnRQcm90", - "b1ABWi5naXRodWIuY29tL2NoaXJwc3RhY2svY2hpcnBzdGFjay9hcGkvZ28v", - "djQvYXBpqgIOQ2hpcnBzdGFjay5BcGliBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.Tenant), global::Chirpstack.Api.Tenant.Parser, new[]{ "Id", "Name", "Description", "CanHaveGateways", "MaxGatewayCount", "MaxDeviceCount", "PrivateGatewaysUp", "PrivateGatewaysDown", "Tags" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.TenantListItem), global::Chirpstack.Api.TenantListItem.Parser, new[]{ "Id", "CreatedAt", "UpdatedAt", "Name", "CanHaveGateways", "PrivateGatewaysUp", "PrivateGatewaysDown", "MaxGatewayCount", "MaxDeviceCount" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateTenantRequest), global::Chirpstack.Api.CreateTenantRequest.Parser, new[]{ "Tenant" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateTenantResponse), global::Chirpstack.Api.CreateTenantResponse.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetTenantRequest), global::Chirpstack.Api.GetTenantRequest.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetTenantResponse), global::Chirpstack.Api.GetTenantResponse.Parser, new[]{ "Tenant", "CreatedAt", "UpdatedAt" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateTenantRequest), global::Chirpstack.Api.UpdateTenantRequest.Parser, new[]{ "Tenant" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteTenantRequest), global::Chirpstack.Api.DeleteTenantRequest.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListTenantsRequest), global::Chirpstack.Api.ListTenantsRequest.Parser, new[]{ "Limit", "Offset", "Search", "UserId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListTenantsResponse), global::Chirpstack.Api.ListTenantsResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.TenantUser), global::Chirpstack.Api.TenantUser.Parser, new[]{ "TenantId", "UserId", "IsAdmin", "IsDeviceAdmin", "IsGatewayAdmin", "Email" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.TenantUserListItem), global::Chirpstack.Api.TenantUserListItem.Parser, new[]{ "TenantId", "UserId", "CreatedAt", "UpdatedAt", "Email", "IsAdmin", "IsDeviceAdmin", "IsGatewayAdmin" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.AddTenantUserRequest), global::Chirpstack.Api.AddTenantUserRequest.Parser, new[]{ "TenantUser" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetTenantUserRequest), global::Chirpstack.Api.GetTenantUserRequest.Parser, new[]{ "TenantId", "UserId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetTenantUserResponse), global::Chirpstack.Api.GetTenantUserResponse.Parser, new[]{ "TenantUser", "CreatedAt", "UpdatedAt" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateTenantUserRequest), global::Chirpstack.Api.UpdateTenantUserRequest.Parser, new[]{ "TenantUser" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteTenantUserRequest), global::Chirpstack.Api.DeleteTenantUserRequest.Parser, new[]{ "TenantId", "UserId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListTenantUsersRequest), global::Chirpstack.Api.ListTenantUsersRequest.Parser, new[]{ "TenantId", "Limit", "Offset" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListTenantUsersResponse), global::Chirpstack.Api.ListTenantUsersResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - public sealed partial class Tenant : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Tenant()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Tenant() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Tenant(Tenant other) : this() { - id_ = other.id_; - name_ = other.name_; - description_ = other.description_; - canHaveGateways_ = other.canHaveGateways_; - maxGatewayCount_ = other.maxGatewayCount_; - maxDeviceCount_ = other.maxDeviceCount_; - privateGatewaysUp_ = other.privateGatewaysUp_; - privateGatewaysDown_ = other.privateGatewaysDown_; - tags_ = other.tags_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Tenant Clone() { - return new Tenant(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Tenant ID (UUID). - /// Note: this value will be automatically generated on create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - /// - /// Tenant name, - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 3; - private string description_ = ""; - /// - /// Tenant description. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "can_have_gateways" field. - public const int CanHaveGatewaysFieldNumber = 4; - private bool canHaveGateways_; - /// - /// Can the tenant create and "own" Gateways? - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CanHaveGateways { - get { return canHaveGateways_; } - set { - canHaveGateways_ = value; - } - } - - /// Field number for the "max_gateway_count" field. - public const int MaxGatewayCountFieldNumber = 5; - private uint maxGatewayCount_; - /// - /// Max. gateway count for tenant. - /// When set to 0, the tenant can have unlimited gateways. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint MaxGatewayCount { - get { return maxGatewayCount_; } - set { - maxGatewayCount_ = value; - } - } - - /// Field number for the "max_device_count" field. - public const int MaxDeviceCountFieldNumber = 6; - private uint maxDeviceCount_; - /// - /// Max. device count for tenant. - /// When set to 0, the tenant can have unlimited devices. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint MaxDeviceCount { - get { return maxDeviceCount_; } - set { - maxDeviceCount_ = value; - } - } - - /// Field number for the "private_gateways_up" field. - public const int PrivateGatewaysUpFieldNumber = 7; - private bool privateGatewaysUp_; - /// - /// Private gateways (uplink). - /// If enabled, then uplink messages will not be shared with other tenants. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PrivateGatewaysUp { - get { return privateGatewaysUp_; } - set { - privateGatewaysUp_ = value; - } - } - - /// Field number for the "private_gateways_down" field. - public const int PrivateGatewaysDownFieldNumber = 8; - private bool privateGatewaysDown_; - /// - /// Private gateways (downlink). - /// If enabled, then other tenants will not be able to schedule downlink - /// messages through the gateways of this tenant. For example, in case you - /// do want to share uplinks with other tenants (private_gateways_up=false), - /// but you want to prevent other tenants from using gateway airtime. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PrivateGatewaysDown { - get { return privateGatewaysDown_; } - set { - privateGatewaysDown_ = 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(); - /// - /// Tags (user defined). - /// These tags can be used to add additional information to the tenant. These - /// tags are NOT exposed in the integration events. - /// - [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 Tenant); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Tenant other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (Description != other.Description) return false; - if (CanHaveGateways != other.CanHaveGateways) return false; - if (MaxGatewayCount != other.MaxGatewayCount) return false; - if (MaxDeviceCount != other.MaxDeviceCount) return false; - if (PrivateGatewaysUp != other.PrivateGatewaysUp) return false; - if (PrivateGatewaysDown != other.PrivateGatewaysDown) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (CanHaveGateways != false) hash ^= CanHaveGateways.GetHashCode(); - if (MaxGatewayCount != 0) hash ^= MaxGatewayCount.GetHashCode(); - if (MaxDeviceCount != 0) hash ^= MaxDeviceCount.GetHashCode(); - if (PrivateGatewaysUp != false) hash ^= PrivateGatewaysUp.GetHashCode(); - if (PrivateGatewaysDown != false) hash ^= PrivateGatewaysDown.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 (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description); - } - if (CanHaveGateways != false) { - output.WriteRawTag(32); - output.WriteBool(CanHaveGateways); - } - if (MaxGatewayCount != 0) { - output.WriteRawTag(40); - output.WriteUInt32(MaxGatewayCount); - } - if (MaxDeviceCount != 0) { - output.WriteRawTag(48); - output.WriteUInt32(MaxDeviceCount); - } - if (PrivateGatewaysUp != false) { - output.WriteRawTag(56); - output.WriteBool(PrivateGatewaysUp); - } - if (PrivateGatewaysDown != false) { - output.WriteRawTag(64); - output.WriteBool(PrivateGatewaysDown); - } - 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 (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description); - } - if (CanHaveGateways != false) { - output.WriteRawTag(32); - output.WriteBool(CanHaveGateways); - } - if (MaxGatewayCount != 0) { - output.WriteRawTag(40); - output.WriteUInt32(MaxGatewayCount); - } - if (MaxDeviceCount != 0) { - output.WriteRawTag(48); - output.WriteUInt32(MaxDeviceCount); - } - if (PrivateGatewaysUp != false) { - output.WriteRawTag(56); - output.WriteBool(PrivateGatewaysUp); - } - if (PrivateGatewaysDown != false) { - output.WriteRawTag(64); - output.WriteBool(PrivateGatewaysDown); - } - 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 (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (CanHaveGateways != false) { - size += 1 + 1; - } - if (MaxGatewayCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxGatewayCount); - } - if (MaxDeviceCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxDeviceCount); - } - if (PrivateGatewaysUp != false) { - size += 1 + 1; - } - if (PrivateGatewaysDown != false) { - size += 1 + 1; - } - 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(Tenant other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - if (other.CanHaveGateways != false) { - CanHaveGateways = other.CanHaveGateways; - } - if (other.MaxGatewayCount != 0) { - MaxGatewayCount = other.MaxGatewayCount; - } - if (other.MaxDeviceCount != 0) { - MaxDeviceCount = other.MaxDeviceCount; - } - if (other.PrivateGatewaysUp != false) { - PrivateGatewaysUp = other.PrivateGatewaysUp; - } - if (other.PrivateGatewaysDown != false) { - PrivateGatewaysDown = other.PrivateGatewaysDown; - } - tags_.Add(other.tags_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Description = input.ReadString(); - break; - } - case 32: { - CanHaveGateways = input.ReadBool(); - break; - } - case 40: { - MaxGatewayCount = input.ReadUInt32(); - break; - } - case 48: { - MaxDeviceCount = input.ReadUInt32(); - break; - } - case 56: { - PrivateGatewaysUp = input.ReadBool(); - break; - } - case 64: { - PrivateGatewaysDown = input.ReadBool(); - break; - } - case 74: { - tags_.AddEntriesFrom(input, _map_tags_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Description = input.ReadString(); - break; - } - case 32: { - CanHaveGateways = input.ReadBool(); - break; - } - case 40: { - MaxGatewayCount = input.ReadUInt32(); - break; - } - case 48: { - MaxDeviceCount = input.ReadUInt32(); - break; - } - case 56: { - PrivateGatewaysUp = input.ReadBool(); - break; - } - case 64: { - PrivateGatewaysDown = input.ReadBool(); - break; - } - case 74: { - tags_.AddEntriesFrom(ref input, _map_tags_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class TenantListItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TenantListItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TenantListItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TenantListItem(TenantListItem other) : this() { - id_ = other.id_; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - name_ = other.name_; - canHaveGateways_ = other.canHaveGateways_; - privateGatewaysUp_ = other.privateGatewaysUp_; - privateGatewaysDown_ = other.privateGatewaysDown_; - maxGatewayCount_ = other.maxGatewayCount_; - maxDeviceCount_ = other.maxDeviceCount_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TenantListItem Clone() { - return new TenantListItem(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Tenant ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 4; - private string name_ = ""; - /// - /// Tenant name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "can_have_gateways" field. - public const int CanHaveGatewaysFieldNumber = 5; - private bool canHaveGateways_; - /// - /// Can the tenant create and "own" Gateways? - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CanHaveGateways { - get { return canHaveGateways_; } - set { - canHaveGateways_ = value; - } - } - - /// Field number for the "private_gateways_up" field. - public const int PrivateGatewaysUpFieldNumber = 6; - private bool privateGatewaysUp_; - /// - /// Private gateways (uplink). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PrivateGatewaysUp { - get { return privateGatewaysUp_; } - set { - privateGatewaysUp_ = value; - } - } - - /// Field number for the "private_gateways_down" field. - public const int PrivateGatewaysDownFieldNumber = 9; - private bool privateGatewaysDown_; - /// - /// Private gateways (downlink). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PrivateGatewaysDown { - get { return privateGatewaysDown_; } - set { - privateGatewaysDown_ = value; - } - } - - /// Field number for the "max_gateway_count" field. - public const int MaxGatewayCountFieldNumber = 7; - private uint maxGatewayCount_; - /// - /// Max gateway count. - /// 0 = unlimited. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint MaxGatewayCount { - get { return maxGatewayCount_; } - set { - maxGatewayCount_ = value; - } - } - - /// Field number for the "max_device_count" field. - public const int MaxDeviceCountFieldNumber = 8; - private uint maxDeviceCount_; - /// - /// Max device count. - /// 0 = unlimited. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint MaxDeviceCount { - get { return maxDeviceCount_; } - set { - maxDeviceCount_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TenantListItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TenantListItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - if (Name != other.Name) return false; - if (CanHaveGateways != other.CanHaveGateways) return false; - if (PrivateGatewaysUp != other.PrivateGatewaysUp) return false; - if (PrivateGatewaysDown != other.PrivateGatewaysDown) return false; - if (MaxGatewayCount != other.MaxGatewayCount) return false; - if (MaxDeviceCount != other.MaxDeviceCount) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (CanHaveGateways != false) hash ^= CanHaveGateways.GetHashCode(); - if (PrivateGatewaysUp != false) hash ^= PrivateGatewaysUp.GetHashCode(); - if (PrivateGatewaysDown != false) hash ^= PrivateGatewaysDown.GetHashCode(); - if (MaxGatewayCount != 0) hash ^= MaxGatewayCount.GetHashCode(); - if (MaxDeviceCount != 0) hash ^= MaxDeviceCount.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (CanHaveGateways != false) { - output.WriteRawTag(40); - output.WriteBool(CanHaveGateways); - } - if (PrivateGatewaysUp != false) { - output.WriteRawTag(48); - output.WriteBool(PrivateGatewaysUp); - } - if (MaxGatewayCount != 0) { - output.WriteRawTag(56); - output.WriteUInt32(MaxGatewayCount); - } - if (MaxDeviceCount != 0) { - output.WriteRawTag(64); - output.WriteUInt32(MaxDeviceCount); - } - if (PrivateGatewaysDown != false) { - output.WriteRawTag(72); - output.WriteBool(PrivateGatewaysDown); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (CanHaveGateways != false) { - output.WriteRawTag(40); - output.WriteBool(CanHaveGateways); - } - if (PrivateGatewaysUp != false) { - output.WriteRawTag(48); - output.WriteBool(PrivateGatewaysUp); - } - if (MaxGatewayCount != 0) { - output.WriteRawTag(56); - output.WriteUInt32(MaxGatewayCount); - } - if (MaxDeviceCount != 0) { - output.WriteRawTag(64); - output.WriteUInt32(MaxDeviceCount); - } - if (PrivateGatewaysDown != false) { - output.WriteRawTag(72); - output.WriteBool(PrivateGatewaysDown); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (CanHaveGateways != false) { - size += 1 + 1; - } - if (PrivateGatewaysUp != false) { - size += 1 + 1; - } - if (PrivateGatewaysDown != false) { - size += 1 + 1; - } - if (MaxGatewayCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxGatewayCount); - } - if (MaxDeviceCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxDeviceCount); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TenantListItem other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.CanHaveGateways != false) { - CanHaveGateways = other.CanHaveGateways; - } - if (other.PrivateGatewaysUp != false) { - PrivateGatewaysUp = other.PrivateGatewaysUp; - } - if (other.PrivateGatewaysDown != false) { - PrivateGatewaysDown = other.PrivateGatewaysDown; - } - if (other.MaxGatewayCount != 0) { - MaxGatewayCount = other.MaxGatewayCount; - } - if (other.MaxDeviceCount != 0) { - MaxDeviceCount = other.MaxDeviceCount; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 40: { - CanHaveGateways = input.ReadBool(); - break; - } - case 48: { - PrivateGatewaysUp = input.ReadBool(); - break; - } - case 56: { - MaxGatewayCount = input.ReadUInt32(); - break; - } - case 64: { - MaxDeviceCount = input.ReadUInt32(); - break; - } - case 72: { - PrivateGatewaysDown = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 40: { - CanHaveGateways = input.ReadBool(); - break; - } - case 48: { - PrivateGatewaysUp = input.ReadBool(); - break; - } - case 56: { - MaxGatewayCount = input.ReadUInt32(); - break; - } - case 64: { - MaxDeviceCount = input.ReadUInt32(); - break; - } - case 72: { - PrivateGatewaysDown = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateTenantRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateTenantRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateTenantRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateTenantRequest(CreateTenantRequest other) : this() { - tenant_ = other.tenant_ != null ? other.tenant_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateTenantRequest Clone() { - return new CreateTenantRequest(this); - } - - /// Field number for the "tenant" field. - public const int TenantFieldNumber = 1; - private global::Chirpstack.Api.Tenant tenant_; - /// - /// Tenant object to create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.Tenant Tenant { - get { return tenant_; } - set { - tenant_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateTenantRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateTenantRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Tenant, other.Tenant)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (tenant_ != null) hash ^= Tenant.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (tenant_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Tenant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (tenant_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Tenant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (tenant_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tenant); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateTenantRequest other) { - if (other == null) { - return; - } - if (other.tenant_ != null) { - if (tenant_ == null) { - Tenant = new global::Chirpstack.Api.Tenant(); - } - Tenant.MergeFrom(other.Tenant); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (tenant_ == null) { - Tenant = new global::Chirpstack.Api.Tenant(); - } - input.ReadMessage(Tenant); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (tenant_ == null) { - Tenant = new global::Chirpstack.Api.Tenant(); - } - input.ReadMessage(Tenant); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateTenantResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateTenantResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateTenantResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateTenantResponse(CreateTenantResponse other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateTenantResponse Clone() { - return new CreateTenantResponse(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Tenant ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateTenantResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateTenantResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateTenantResponse other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetTenantRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTenantRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetTenantRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetTenantRequest(GetTenantRequest other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetTenantRequest Clone() { - return new GetTenantRequest(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Tenant ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetTenantRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetTenantRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetTenantRequest other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetTenantResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTenantResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetTenantResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetTenantResponse(GetTenantResponse other) : this() { - tenant_ = other.tenant_ != null ? other.tenant_.Clone() : null; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetTenantResponse Clone() { - return new GetTenantResponse(this); - } - - /// Field number for the "tenant" field. - public const int TenantFieldNumber = 1; - private global::Chirpstack.Api.Tenant tenant_; - /// - /// Tenant object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.Tenant Tenant { - get { return tenant_; } - set { - tenant_ = value; - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetTenantResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetTenantResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Tenant, other.Tenant)) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (tenant_ != null) hash ^= Tenant.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (tenant_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Tenant); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (tenant_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Tenant); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (tenant_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tenant); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetTenantResponse other) { - if (other == null) { - return; - } - if (other.tenant_ != null) { - if (tenant_ == null) { - Tenant = new global::Chirpstack.Api.Tenant(); - } - Tenant.MergeFrom(other.Tenant); - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (tenant_ == null) { - Tenant = new global::Chirpstack.Api.Tenant(); - } - input.ReadMessage(Tenant); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (tenant_ == null) { - Tenant = new global::Chirpstack.Api.Tenant(); - } - input.ReadMessage(Tenant); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateTenantRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateTenantRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateTenantRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateTenantRequest(UpdateTenantRequest other) : this() { - tenant_ = other.tenant_ != null ? other.tenant_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateTenantRequest Clone() { - return new UpdateTenantRequest(this); - } - - /// Field number for the "tenant" field. - public const int TenantFieldNumber = 1; - private global::Chirpstack.Api.Tenant tenant_; - /// - /// Tenant object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.Tenant Tenant { - get { return tenant_; } - set { - tenant_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateTenantRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateTenantRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Tenant, other.Tenant)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (tenant_ != null) hash ^= Tenant.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (tenant_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Tenant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (tenant_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Tenant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (tenant_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tenant); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateTenantRequest other) { - if (other == null) { - return; - } - if (other.tenant_ != null) { - if (tenant_ == null) { - Tenant = new global::Chirpstack.Api.Tenant(); - } - Tenant.MergeFrom(other.Tenant); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (tenant_ == null) { - Tenant = new global::Chirpstack.Api.Tenant(); - } - input.ReadMessage(Tenant); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (tenant_ == null) { - Tenant = new global::Chirpstack.Api.Tenant(); - } - input.ReadMessage(Tenant); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteTenantRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteTenantRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteTenantRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteTenantRequest(DeleteTenantRequest other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteTenantRequest Clone() { - return new DeleteTenantRequest(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Tenant ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteTenantRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteTenantRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteTenantRequest other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListTenantsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListTenantsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListTenantsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListTenantsRequest(ListTenantsRequest other) : this() { - limit_ = other.limit_; - offset_ = other.offset_; - search_ = other.search_; - userId_ = other.userId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListTenantsRequest Clone() { - return new ListTenantsRequest(this); - } - - /// Field number for the "limit" field. - public const int LimitFieldNumber = 1; - private uint limit_; - /// - /// Max number of tenants to return in the result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Limit { - get { return limit_; } - set { - limit_ = value; - } - } - - /// Field number for the "offset" field. - public const int OffsetFieldNumber = 2; - private uint offset_; - /// - /// Offset in the result-set (for pagination). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Offset { - get { return offset_; } - set { - offset_ = value; - } - } - - /// Field number for the "search" field. - public const int SearchFieldNumber = 3; - private string search_ = ""; - /// - /// If set, the given string will be used to search on name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Search { - get { return search_; } - set { - search_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "user_id" field. - public const int UserIdFieldNumber = 4; - private string userId_ = ""; - /// - /// If set, filters the result set to the tenants of the user. - /// Only global API keys are able to filter by this field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { - get { return userId_; } - set { - userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListTenantsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListTenantsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Limit != other.Limit) return false; - if (Offset != other.Offset) return false; - if (Search != other.Search) return false; - if (UserId != other.UserId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Limit != 0) hash ^= Limit.GetHashCode(); - if (Offset != 0) hash ^= Offset.GetHashCode(); - if (Search.Length != 0) hash ^= Search.GetHashCode(); - if (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (Search.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Search); - } - if (UserId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(UserId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (Search.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Search); - } - if (UserId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(UserId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Limit != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); - } - if (Offset != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); - } - if (Search.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Search); - } - if (UserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListTenantsRequest other) { - if (other == null) { - return; - } - if (other.Limit != 0) { - Limit = other.Limit; - } - if (other.Offset != 0) { - Offset = other.Offset; - } - if (other.Search.Length != 0) { - Search = other.Search; - } - if (other.UserId.Length != 0) { - UserId = other.UserId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - case 26: { - Search = input.ReadString(); - break; - } - case 34: { - UserId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - case 26: { - Search = input.ReadString(); - break; - } - case 34: { - UserId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListTenantsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListTenantsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListTenantsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListTenantsResponse(ListTenantsResponse other) : this() { - totalCount_ = other.totalCount_; - result_ = other.result_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListTenantsResponse Clone() { - return new ListTenantsResponse(this); - } - - /// Field number for the "total_count" field. - public const int TotalCountFieldNumber = 1; - private uint totalCount_; - /// - /// Total number of tenants. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TotalCount { - get { return totalCount_; } - set { - totalCount_ = value; - } - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_result_codec - = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.TenantListItem.Parser); - private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); - /// - /// Result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Result { - get { return result_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListTenantsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListTenantsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TotalCount != other.TotalCount) return false; - if(!result_.Equals(other.result_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TotalCount != 0) hash ^= TotalCount.GetHashCode(); - hash ^= result_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(ref output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TotalCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); - } - size += result_.CalculateSize(_repeated_result_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListTenantsResponse other) { - if (other == null) { - return; - } - if (other.TotalCount != 0) { - TotalCount = other.TotalCount; - } - result_.Add(other.result_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(input, _repeated_result_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(ref input, _repeated_result_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class TenantUser : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TenantUser()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TenantUser() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TenantUser(TenantUser other) : this() { - tenantId_ = other.tenantId_; - userId_ = other.userId_; - isAdmin_ = other.isAdmin_; - isDeviceAdmin_ = other.isDeviceAdmin_; - isGatewayAdmin_ = other.isGatewayAdmin_; - email_ = other.email_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TenantUser Clone() { - return new TenantUser(this); - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 1; - private string tenantId_ = ""; - /// - /// Tenant ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "user_id" field. - public const int UserIdFieldNumber = 2; - private string userId_ = ""; - /// - /// User ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { - get { return userId_; } - set { - userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "is_admin" field. - public const int IsAdminFieldNumber = 3; - private bool isAdmin_; - /// - /// User is admin within the context of the tenant. - /// There is no need to set the is_device_admin and is_gateway_admin flags. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsAdmin { - get { return isAdmin_; } - set { - isAdmin_ = value; - } - } - - /// Field number for the "is_device_admin" field. - public const int IsDeviceAdminFieldNumber = 4; - private bool isDeviceAdmin_; - /// - /// User is able to modify device related resources (applications, - /// device-profiles, devices, multicast-groups). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsDeviceAdmin { - get { return isDeviceAdmin_; } - set { - isDeviceAdmin_ = value; - } - } - - /// Field number for the "is_gateway_admin" field. - public const int IsGatewayAdminFieldNumber = 5; - private bool isGatewayAdmin_; - /// - /// User is able to modify gateways. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsGatewayAdmin { - get { return isGatewayAdmin_; } - set { - isGatewayAdmin_ = value; - } - } - - /// Field number for the "email" field. - public const int EmailFieldNumber = 6; - private string email_ = ""; - /// - /// Email (only used on get and when adding a user to a tenant). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Email { - get { return email_; } - set { - email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TenantUser); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TenantUser other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TenantId != other.TenantId) return false; - if (UserId != other.UserId) return false; - if (IsAdmin != other.IsAdmin) return false; - if (IsDeviceAdmin != other.IsDeviceAdmin) return false; - if (IsGatewayAdmin != other.IsGatewayAdmin) return false; - if (Email != other.Email) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - if (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); - if (IsDeviceAdmin != false) hash ^= IsDeviceAdmin.GetHashCode(); - if (IsGatewayAdmin != false) hash ^= IsGatewayAdmin.GetHashCode(); - if (Email.Length != 0) hash ^= Email.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (UserId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(UserId); - } - if (IsAdmin != false) { - output.WriteRawTag(24); - output.WriteBool(IsAdmin); - } - if (IsDeviceAdmin != false) { - output.WriteRawTag(32); - output.WriteBool(IsDeviceAdmin); - } - if (IsGatewayAdmin != false) { - output.WriteRawTag(40); - output.WriteBool(IsGatewayAdmin); - } - if (Email.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Email); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (UserId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(UserId); - } - if (IsAdmin != false) { - output.WriteRawTag(24); - output.WriteBool(IsAdmin); - } - if (IsDeviceAdmin != false) { - output.WriteRawTag(32); - output.WriteBool(IsDeviceAdmin); - } - if (IsGatewayAdmin != false) { - output.WriteRawTag(40); - output.WriteBool(IsGatewayAdmin); - } - if (Email.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Email); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - if (UserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); - } - if (IsAdmin != false) { - size += 1 + 1; - } - if (IsDeviceAdmin != false) { - size += 1 + 1; - } - if (IsGatewayAdmin != false) { - size += 1 + 1; - } - if (Email.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TenantUser other) { - if (other == null) { - return; - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - if (other.UserId.Length != 0) { - UserId = other.UserId; - } - if (other.IsAdmin != false) { - IsAdmin = other.IsAdmin; - } - if (other.IsDeviceAdmin != false) { - IsDeviceAdmin = other.IsDeviceAdmin; - } - if (other.IsGatewayAdmin != false) { - IsGatewayAdmin = other.IsGatewayAdmin; - } - if (other.Email.Length != 0) { - Email = other.Email; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - case 18: { - UserId = input.ReadString(); - break; - } - case 24: { - IsAdmin = input.ReadBool(); - break; - } - case 32: { - IsDeviceAdmin = input.ReadBool(); - break; - } - case 40: { - IsGatewayAdmin = input.ReadBool(); - break; - } - case 50: { - Email = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - case 18: { - UserId = input.ReadString(); - break; - } - case 24: { - IsAdmin = input.ReadBool(); - break; - } - case 32: { - IsDeviceAdmin = input.ReadBool(); - break; - } - case 40: { - IsGatewayAdmin = input.ReadBool(); - break; - } - case 50: { - Email = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class TenantUserListItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TenantUserListItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TenantUserListItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TenantUserListItem(TenantUserListItem other) : this() { - tenantId_ = other.tenantId_; - userId_ = other.userId_; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - email_ = other.email_; - isAdmin_ = other.isAdmin_; - isDeviceAdmin_ = other.isDeviceAdmin_; - isGatewayAdmin_ = other.isGatewayAdmin_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TenantUserListItem Clone() { - return new TenantUserListItem(this); - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 1; - private string tenantId_ = ""; - /// - /// Tenant ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "user_id" field. - public const int UserIdFieldNumber = 2; - private string userId_ = ""; - /// - /// User ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { - get { return userId_; } - set { - userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - /// Field number for the "email" field. - public const int EmailFieldNumber = 5; - private string email_ = ""; - /// - /// Email. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Email { - get { return email_; } - set { - email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "is_admin" field. - public const int IsAdminFieldNumber = 6; - private bool isAdmin_; - /// - /// User is admin within the context of the tenant. - /// There is no need to set the is_device_admin and is_gateway_admin flags. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsAdmin { - get { return isAdmin_; } - set { - isAdmin_ = value; - } - } - - /// Field number for the "is_device_admin" field. - public const int IsDeviceAdminFieldNumber = 7; - private bool isDeviceAdmin_; - /// - /// User is able to modify device related resources (applications, - /// device-profiles, devices, multicast-groups). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsDeviceAdmin { - get { return isDeviceAdmin_; } - set { - isDeviceAdmin_ = value; - } - } - - /// Field number for the "is_gateway_admin" field. - public const int IsGatewayAdminFieldNumber = 8; - private bool isGatewayAdmin_; - /// - /// User is able to modify gateways. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsGatewayAdmin { - get { return isGatewayAdmin_; } - set { - isGatewayAdmin_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TenantUserListItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TenantUserListItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TenantId != other.TenantId) return false; - if (UserId != other.UserId) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - if (Email != other.Email) return false; - if (IsAdmin != other.IsAdmin) return false; - if (IsDeviceAdmin != other.IsDeviceAdmin) return false; - if (IsGatewayAdmin != other.IsGatewayAdmin) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - if (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (Email.Length != 0) hash ^= Email.GetHashCode(); - if (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); - if (IsDeviceAdmin != false) hash ^= IsDeviceAdmin.GetHashCode(); - if (IsGatewayAdmin != false) hash ^= IsGatewayAdmin.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (UserId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(UserId); - } - if (createdAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdatedAt); - } - if (Email.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Email); - } - if (IsAdmin != false) { - output.WriteRawTag(48); - output.WriteBool(IsAdmin); - } - if (IsDeviceAdmin != false) { - output.WriteRawTag(56); - output.WriteBool(IsDeviceAdmin); - } - if (IsGatewayAdmin != false) { - output.WriteRawTag(64); - output.WriteBool(IsGatewayAdmin); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (UserId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(UserId); - } - if (createdAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdatedAt); - } - if (Email.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Email); - } - if (IsAdmin != false) { - output.WriteRawTag(48); - output.WriteBool(IsAdmin); - } - if (IsDeviceAdmin != false) { - output.WriteRawTag(56); - output.WriteBool(IsDeviceAdmin); - } - if (IsGatewayAdmin != false) { - output.WriteRawTag(64); - output.WriteBool(IsGatewayAdmin); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - if (UserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (Email.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); - } - if (IsAdmin != false) { - size += 1 + 1; - } - if (IsDeviceAdmin != false) { - size += 1 + 1; - } - if (IsGatewayAdmin != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TenantUserListItem other) { - if (other == null) { - return; - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - if (other.UserId.Length != 0) { - UserId = other.UserId; - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - if (other.Email.Length != 0) { - Email = other.Email; - } - if (other.IsAdmin != false) { - IsAdmin = other.IsAdmin; - } - if (other.IsDeviceAdmin != false) { - IsDeviceAdmin = other.IsDeviceAdmin; - } - if (other.IsGatewayAdmin != false) { - IsGatewayAdmin = other.IsGatewayAdmin; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - case 18: { - UserId = input.ReadString(); - break; - } - case 26: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 34: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 42: { - Email = input.ReadString(); - break; - } - case 48: { - IsAdmin = input.ReadBool(); - break; - } - case 56: { - IsDeviceAdmin = input.ReadBool(); - break; - } - case 64: { - IsGatewayAdmin = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - case 18: { - UserId = input.ReadString(); - break; - } - case 26: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 34: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 42: { - Email = input.ReadString(); - break; - } - case 48: { - IsAdmin = input.ReadBool(); - break; - } - case 56: { - IsDeviceAdmin = input.ReadBool(); - break; - } - case 64: { - IsGatewayAdmin = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - public sealed partial class AddTenantUserRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddTenantUserRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddTenantUserRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddTenantUserRequest(AddTenantUserRequest other) : this() { - tenantUser_ = other.tenantUser_ != null ? other.tenantUser_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddTenantUserRequest Clone() { - return new AddTenantUserRequest(this); - } - - /// Field number for the "tenant_user" field. - public const int TenantUserFieldNumber = 1; - private global::Chirpstack.Api.TenantUser tenantUser_; - /// - /// Tenant user object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.TenantUser TenantUser { - get { return tenantUser_; } - set { - tenantUser_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AddTenantUserRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AddTenantUserRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(TenantUser, other.TenantUser)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (tenantUser_ != null) hash ^= TenantUser.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (tenantUser_ != null) { - output.WriteRawTag(10); - output.WriteMessage(TenantUser); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (tenantUser_ != null) { - output.WriteRawTag(10); - output.WriteMessage(TenantUser); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (tenantUser_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TenantUser); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AddTenantUserRequest other) { - if (other == null) { - return; - } - if (other.tenantUser_ != null) { - if (tenantUser_ == null) { - TenantUser = new global::Chirpstack.Api.TenantUser(); - } - TenantUser.MergeFrom(other.TenantUser); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (tenantUser_ == null) { - TenantUser = new global::Chirpstack.Api.TenantUser(); - } - input.ReadMessage(TenantUser); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (tenantUser_ == null) { - TenantUser = new global::Chirpstack.Api.TenantUser(); - } - input.ReadMessage(TenantUser); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetTenantUserRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTenantUserRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[13]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetTenantUserRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetTenantUserRequest(GetTenantUserRequest other) : this() { - tenantId_ = other.tenantId_; - userId_ = other.userId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetTenantUserRequest Clone() { - return new GetTenantUserRequest(this); - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 1; - private string tenantId_ = ""; - /// - /// Tenant ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "user_id" field. - public const int UserIdFieldNumber = 2; - private string userId_ = ""; - /// - /// User ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { - get { return userId_; } - set { - userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetTenantUserRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetTenantUserRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TenantId != other.TenantId) return false; - if (UserId != other.UserId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - if (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (UserId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(UserId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (UserId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(UserId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - if (UserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetTenantUserRequest other) { - if (other == null) { - return; - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - if (other.UserId.Length != 0) { - UserId = other.UserId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - case 18: { - UserId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - case 18: { - UserId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetTenantUserResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTenantUserResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[14]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetTenantUserResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetTenantUserResponse(GetTenantUserResponse other) : this() { - tenantUser_ = other.tenantUser_ != null ? other.tenantUser_.Clone() : null; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetTenantUserResponse Clone() { - return new GetTenantUserResponse(this); - } - - /// Field number for the "tenant_user" field. - public const int TenantUserFieldNumber = 1; - private global::Chirpstack.Api.TenantUser tenantUser_; - /// - /// Tenant user object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.TenantUser TenantUser { - get { return tenantUser_; } - set { - tenantUser_ = value; - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetTenantUserResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetTenantUserResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(TenantUser, other.TenantUser)) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (tenantUser_ != null) hash ^= TenantUser.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (tenantUser_ != null) { - output.WriteRawTag(10); - output.WriteMessage(TenantUser); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (tenantUser_ != null) { - output.WriteRawTag(10); - output.WriteMessage(TenantUser); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (tenantUser_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TenantUser); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetTenantUserResponse other) { - if (other == null) { - return; - } - if (other.tenantUser_ != null) { - if (tenantUser_ == null) { - TenantUser = new global::Chirpstack.Api.TenantUser(); - } - TenantUser.MergeFrom(other.TenantUser); - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (tenantUser_ == null) { - TenantUser = new global::Chirpstack.Api.TenantUser(); - } - input.ReadMessage(TenantUser); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (tenantUser_ == null) { - TenantUser = new global::Chirpstack.Api.TenantUser(); - } - input.ReadMessage(TenantUser); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateTenantUserRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateTenantUserRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[15]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateTenantUserRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateTenantUserRequest(UpdateTenantUserRequest other) : this() { - tenantUser_ = other.tenantUser_ != null ? other.tenantUser_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateTenantUserRequest Clone() { - return new UpdateTenantUserRequest(this); - } - - /// Field number for the "tenant_user" field. - public const int TenantUserFieldNumber = 1; - private global::Chirpstack.Api.TenantUser tenantUser_; - /// - /// Tenant user object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.TenantUser TenantUser { - get { return tenantUser_; } - set { - tenantUser_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateTenantUserRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateTenantUserRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(TenantUser, other.TenantUser)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (tenantUser_ != null) hash ^= TenantUser.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (tenantUser_ != null) { - output.WriteRawTag(10); - output.WriteMessage(TenantUser); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (tenantUser_ != null) { - output.WriteRawTag(10); - output.WriteMessage(TenantUser); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (tenantUser_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TenantUser); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateTenantUserRequest other) { - if (other == null) { - return; - } - if (other.tenantUser_ != null) { - if (tenantUser_ == null) { - TenantUser = new global::Chirpstack.Api.TenantUser(); - } - TenantUser.MergeFrom(other.TenantUser); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (tenantUser_ == null) { - TenantUser = new global::Chirpstack.Api.TenantUser(); - } - input.ReadMessage(TenantUser); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (tenantUser_ == null) { - TenantUser = new global::Chirpstack.Api.TenantUser(); - } - input.ReadMessage(TenantUser); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteTenantUserRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteTenantUserRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[16]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteTenantUserRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteTenantUserRequest(DeleteTenantUserRequest other) : this() { - tenantId_ = other.tenantId_; - userId_ = other.userId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteTenantUserRequest Clone() { - return new DeleteTenantUserRequest(this); - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 1; - private string tenantId_ = ""; - /// - /// Tenant ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "user_id" field. - public const int UserIdFieldNumber = 2; - private string userId_ = ""; - /// - /// User ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { - get { return userId_; } - set { - userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteTenantUserRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteTenantUserRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TenantId != other.TenantId) return false; - if (UserId != other.UserId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - if (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (UserId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(UserId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (UserId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(UserId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - if (UserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteTenantUserRequest other) { - if (other == null) { - return; - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - if (other.UserId.Length != 0) { - UserId = other.UserId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - case 18: { - UserId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - case 18: { - UserId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListTenantUsersRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListTenantUsersRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[17]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListTenantUsersRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListTenantUsersRequest(ListTenantUsersRequest other) : this() { - tenantId_ = other.tenantId_; - limit_ = other.limit_; - offset_ = other.offset_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListTenantUsersRequest Clone() { - return new ListTenantUsersRequest(this); - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 1; - private string tenantId_ = ""; - /// - /// Tenant ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "limit" field. - public const int LimitFieldNumber = 2; - private uint limit_; - /// - /// Max number of tenants to return in the result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Limit { - get { return limit_; } - set { - limit_ = value; - } - } - - /// Field number for the "offset" field. - public const int OffsetFieldNumber = 3; - private uint offset_; - /// - /// Offset in the result-set (for pagination). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Offset { - get { return offset_; } - set { - offset_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListTenantUsersRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListTenantUsersRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TenantId != other.TenantId) return false; - if (Limit != other.Limit) return false; - if (Offset != other.Offset) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - if (Limit != 0) hash ^= Limit.GetHashCode(); - if (Offset != 0) hash ^= Offset.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (Limit != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(24); - output.WriteUInt32(Offset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (Limit != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(24); - output.WriteUInt32(Offset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - if (Limit != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); - } - if (Offset != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListTenantUsersRequest other) { - if (other == null) { - return; - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - if (other.Limit != 0) { - Limit = other.Limit; - } - if (other.Offset != 0) { - Offset = other.Offset; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - case 16: { - Limit = input.ReadUInt32(); - break; - } - case 24: { - Offset = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - case 16: { - Limit = input.ReadUInt32(); - break; - } - case 24: { - Offset = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListTenantUsersResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListTenantUsersResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.MessageTypes[18]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListTenantUsersResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListTenantUsersResponse(ListTenantUsersResponse other) : this() { - totalCount_ = other.totalCount_; - result_ = other.result_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListTenantUsersResponse Clone() { - return new ListTenantUsersResponse(this); - } - - /// Field number for the "total_count" field. - public const int TotalCountFieldNumber = 1; - private uint totalCount_; - /// - /// Total number of tenants. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TotalCount { - get { return totalCount_; } - set { - totalCount_ = value; - } - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_result_codec - = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.TenantUserListItem.Parser); - private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); - /// - /// Result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Result { - get { return result_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListTenantUsersResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListTenantUsersResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TotalCount != other.TotalCount) return false; - if(!result_.Equals(other.result_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TotalCount != 0) hash ^= TotalCount.GetHashCode(); - hash ^= result_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(ref output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TotalCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); - } - size += result_.CalculateSize(_repeated_result_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListTenantUsersResponse other) { - if (other == null) { - return; - } - if (other.TotalCount != 0) { - TotalCount = other.TotalCount; - } - result_.Add(other.result_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(input, _repeated_result_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(ref input, _repeated_result_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/TenantGrpc.cs b/api/csharp/Chirpstack/api/TenantGrpc.cs deleted file mode 100644 index 9b6958b3..00000000 --- a/api/csharp/Chirpstack/api/TenantGrpc.cs +++ /dev/null @@ -1,855 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/tenant.proto -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Chirpstack.Api { - /// - /// TenantService is the service providing API methods for managing tenants. - /// - public static partial class TenantService - { - static readonly string __ServiceName = "api.TenantService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateTenantRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateTenantRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateTenantResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateTenantResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetTenantRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetTenantRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetTenantResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetTenantResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateTenantRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateTenantRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteTenantRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteTenantRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListTenantsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListTenantsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListTenantsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListTenantsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_AddTenantUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.AddTenantUserRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetTenantUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetTenantUserRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetTenantUserResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetTenantUserResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateTenantUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateTenantUserRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteTenantUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteTenantUserRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListTenantUsersRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListTenantUsersRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListTenantUsersResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListTenantUsersResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Create = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Create", - __Marshaller_api_CreateTenantRequest, - __Marshaller_api_CreateTenantResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Get = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Get", - __Marshaller_api_GetTenantRequest, - __Marshaller_api_GetTenantResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Update = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Update", - __Marshaller_api_UpdateTenantRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Delete = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Delete", - __Marshaller_api_DeleteTenantRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_List = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "List", - __Marshaller_api_ListTenantsRequest, - __Marshaller_api_ListTenantsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_AddUser = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "AddUser", - __Marshaller_api_AddTenantUserRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetUser = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetUser", - __Marshaller_api_GetTenantUserRequest, - __Marshaller_api_GetTenantUserResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdateUser = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdateUser", - __Marshaller_api_UpdateTenantUserRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_DeleteUser = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "DeleteUser", - __Marshaller_api_DeleteTenantUserRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ListUsers = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ListUsers", - __Marshaller_api_ListTenantUsersRequest, - __Marshaller_api_ListTenantUsersResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Chirpstack.Api.TenantReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of TenantService - [grpc::BindServiceMethod(typeof(TenantService), "BindService")] - public abstract partial class TenantServiceBase - { - /// - /// Create a new tenant. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Create(global::Chirpstack.Api.CreateTenantRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get the tenant for the given ID. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Get(global::Chirpstack.Api.GetTenantRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update the given tenant. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Update(global::Chirpstack.Api.UpdateTenantRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete the tenant with the given ID. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Delete(global::Chirpstack.Api.DeleteTenantRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get the list of tenants. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task List(global::Chirpstack.Api.ListTenantsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Add an user to the tenant. - /// Note: the user must already exist. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task AddUser(global::Chirpstack.Api.AddTenantUserRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get the the tenant user for the given tenant and user IDs. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetUser(global::Chirpstack.Api.GetTenantUserRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update the given tenant user. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UpdateUser(global::Chirpstack.Api.UpdateTenantUserRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete the given tenant user. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task DeleteUser(global::Chirpstack.Api.DeleteTenantUserRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get the list of tenant users. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ListUsers(global::Chirpstack.Api.ListTenantUsersRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for TenantService - public partial class TenantServiceClient : grpc::ClientBase - { - /// Creates a new client for TenantService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public TenantServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for TenantService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public TenantServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected TenantServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected TenantServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Create a new tenant. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.CreateTenantResponse Create(global::Chirpstack.Api.CreateTenantRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Create(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create a new tenant. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.CreateTenantResponse Create(global::Chirpstack.Api.CreateTenantRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); - } - /// - /// Create a new tenant. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateTenantRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create a new tenant. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateTenantRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); - } - /// - /// Get the tenant for the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetTenantResponse Get(global::Chirpstack.Api.GetTenantRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Get(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the tenant for the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetTenantResponse Get(global::Chirpstack.Api.GetTenantRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); - } - /// - /// Get the tenant for the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetTenantRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the tenant for the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetTenantRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); - } - /// - /// Update the given tenant. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateTenantRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Update(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the given tenant. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateTenantRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); - } - /// - /// Update the given tenant. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateTenantRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the given tenant. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateTenantRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); - } - /// - /// Delete the tenant with the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteTenantRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Delete(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the tenant with the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteTenantRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); - } - /// - /// Delete the tenant with the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteTenantRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the tenant with the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteTenantRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); - } - /// - /// Get the list of tenants. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListTenantsResponse List(global::Chirpstack.Api.ListTenantsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return List(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the list of tenants. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListTenantsResponse List(global::Chirpstack.Api.ListTenantsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); - } - /// - /// Get the list of tenants. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListTenantsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the list of tenants. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListTenantsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); - } - /// - /// Add an user to the tenant. - /// Note: the user must already exist. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty AddUser(global::Chirpstack.Api.AddTenantUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return AddUser(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Add an user to the tenant. - /// Note: the user must already exist. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty AddUser(global::Chirpstack.Api.AddTenantUserRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_AddUser, null, options, request); - } - /// - /// Add an user to the tenant. - /// Note: the user must already exist. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall AddUserAsync(global::Chirpstack.Api.AddTenantUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return AddUserAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Add an user to the tenant. - /// Note: the user must already exist. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall AddUserAsync(global::Chirpstack.Api.AddTenantUserRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_AddUser, null, options, request); - } - /// - /// Get the the tenant user for the given tenant and user IDs. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetTenantUserResponse GetUser(global::Chirpstack.Api.GetTenantUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetUser(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the the tenant user for the given tenant and user IDs. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetTenantUserResponse GetUser(global::Chirpstack.Api.GetTenantUserRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetUser, null, options, request); - } - /// - /// Get the the tenant user for the given tenant and user IDs. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetUserAsync(global::Chirpstack.Api.GetTenantUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetUserAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the the tenant user for the given tenant and user IDs. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetUserAsync(global::Chirpstack.Api.GetTenantUserRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetUser, null, options, request); - } - /// - /// Update the given tenant user. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateUser(global::Chirpstack.Api.UpdateTenantUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateUser(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the given tenant user. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdateUser(global::Chirpstack.Api.UpdateTenantUserRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdateUser, null, options, request); - } - /// - /// Update the given tenant user. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateUserAsync(global::Chirpstack.Api.UpdateTenantUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateUserAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the given tenant user. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateUserAsync(global::Chirpstack.Api.UpdateTenantUserRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdateUser, null, options, request); - } - /// - /// Delete the given tenant user. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteUser(global::Chirpstack.Api.DeleteTenantUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteUser(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the given tenant user. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteUser(global::Chirpstack.Api.DeleteTenantUserRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_DeleteUser, null, options, request); - } - /// - /// Delete the given tenant user. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteUserAsync(global::Chirpstack.Api.DeleteTenantUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteUserAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the given tenant user. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteUserAsync(global::Chirpstack.Api.DeleteTenantUserRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_DeleteUser, null, options, request); - } - /// - /// Get the list of tenant users. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListTenantUsersResponse ListUsers(global::Chirpstack.Api.ListTenantUsersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListUsers(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the list of tenant users. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListTenantUsersResponse ListUsers(global::Chirpstack.Api.ListTenantUsersRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ListUsers, null, options, request); - } - /// - /// Get the list of tenant users. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListUsersAsync(global::Chirpstack.Api.ListTenantUsersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListUsersAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the list of tenant users. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListUsersAsync(global::Chirpstack.Api.ListTenantUsersRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ListUsers, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override TenantServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new TenantServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(TenantServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_Create, serviceImpl.Create) - .AddMethod(__Method_Get, serviceImpl.Get) - .AddMethod(__Method_Update, serviceImpl.Update) - .AddMethod(__Method_Delete, serviceImpl.Delete) - .AddMethod(__Method_List, serviceImpl.List) - .AddMethod(__Method_AddUser, serviceImpl.AddUser) - .AddMethod(__Method_GetUser, serviceImpl.GetUser) - .AddMethod(__Method_UpdateUser, serviceImpl.UpdateUser) - .AddMethod(__Method_DeleteUser, serviceImpl.DeleteUser) - .AddMethod(__Method_ListUsers, serviceImpl.ListUsers).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, TenantServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Create)); - serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Get)); - serviceBinder.AddMethod(__Method_Update, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Update)); - serviceBinder.AddMethod(__Method_Delete, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Delete)); - serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); - serviceBinder.AddMethod(__Method_AddUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.AddUser)); - serviceBinder.AddMethod(__Method_GetUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetUser)); - serviceBinder.AddMethod(__Method_UpdateUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateUser)); - serviceBinder.AddMethod(__Method_DeleteUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteUser)); - serviceBinder.AddMethod(__Method_ListUsers, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListUsers)); - } - - } -} -#endregion diff --git a/api/csharp/Chirpstack/api/User.cs b/api/csharp/Chirpstack/api/User.cs deleted file mode 100644 index 87d1283a..00000000 --- a/api/csharp/Chirpstack/api/User.cs +++ /dev/null @@ -1,3198 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/user.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Chirpstack.Api { - - /// Holder for reflection information generated from api/user.proto - public static partial class UserReflection { - - #region Descriptor - /// File descriptor for api/user.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static UserReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cg5hcGkvdXNlci5wcm90bxIDYXBpGhxnb29nbGUvYXBpL2Fubm90YXRpb25z", - "LnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvGhtnb29n", - "bGUvcHJvdG9idWYvZW1wdHkucHJvdG8iVAoEVXNlchIKCgJpZBgBIAEoCRIQ", - "Cghpc19hZG1pbhgEIAEoCBIRCglpc19hY3RpdmUYBSABKAgSDQoFZW1haWwY", - "BiABKAkSDAoEbm90ZRgHIAEoCSKuAQoMVXNlckxpc3RJdGVtEgoKAmlkGAEg", - "ASgJEi4KCmNyZWF0ZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGlt", - "ZXN0YW1wEi4KCnVwZGF0ZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYu", - "VGltZXN0YW1wEg0KBWVtYWlsGAQgASgJEhAKCGlzX2FkbWluGAUgASgIEhEK", - "CWlzX2FjdGl2ZRgGIAEoCCJkCgpVc2VyVGVuYW50EhEKCXRlbmFudF9pZBgB", - "IAEoCRIQCghpc19hZG1pbhgCIAEoCBIXCg9pc19kZXZpY2VfYWRtaW4YAyAB", - "KAgSGAoQaXNfZ2F0ZXdheV9hZG1pbhgEIAEoCCJgChFDcmVhdGVVc2VyUmVx", - "dWVzdBIXCgR1c2VyGAEgASgLMgkuYXBpLlVzZXISEAoIcGFzc3dvcmQYAiAB", - "KAkSIAoHdGVuYW50cxgDIAMoCzIPLmFwaS5Vc2VyVGVuYW50IiAKEkNyZWF0", - "ZVVzZXJSZXNwb25zZRIKCgJpZBgBIAEoCSIcCg5HZXRVc2VyUmVxdWVzdBIK", - "CgJpZBgBIAEoCSKKAQoPR2V0VXNlclJlc3BvbnNlEhcKBHVzZXIYASABKAsy", - "CS5hcGkuVXNlchIuCgpjcmVhdGVkX2F0GAIgASgLMhouZ29vZ2xlLnByb3Rv", - "YnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAMgASgLMhouZ29vZ2xlLnBy", - "b3RvYnVmLlRpbWVzdGFtcCIsChFVcGRhdGVVc2VyUmVxdWVzdBIXCgR1c2Vy", - "GAEgASgLMgkuYXBpLlVzZXIiHwoRRGVsZXRlVXNlclJlcXVlc3QSCgoCaWQY", - "ASABKAkiMQoQTGlzdFVzZXJzUmVxdWVzdBINCgVsaW1pdBgBIAEoDRIOCgZv", - "ZmZzZXQYAiABKA0iSwoRTGlzdFVzZXJzUmVzcG9uc2USEwoLdG90YWxfY291", - "bnQYASABKA0SIQoGcmVzdWx0GAIgAygLMhEuYXBpLlVzZXJMaXN0SXRlbSI+", - "ChlVcGRhdGVVc2VyUGFzc3dvcmRSZXF1ZXN0Eg8KB3VzZXJfaWQYASABKAkS", - "EAoIcGFzc3dvcmQYAiABKAkylwQKC1VzZXJTZXJ2aWNlElAKBkNyZWF0ZRIW", - "LmFwaS5DcmVhdGVVc2VyUmVxdWVzdBoXLmFwaS5DcmVhdGVVc2VyUmVzcG9u", - "c2UiFYLT5JMCDyIKL2FwaS91c2VyczoBKhJJCgNHZXQSEy5hcGkuR2V0VXNl", - "clJlcXVlc3QaFC5hcGkuR2V0VXNlclJlc3BvbnNlIheC0+STAhESDy9hcGkv", - "dXNlcnMve2lkfRJZCgZVcGRhdGUSFi5hcGkuVXBkYXRlVXNlclJlcXVlc3Qa", - "Fi5nb29nbGUucHJvdG9idWYuRW1wdHkiH4LT5JMCGRoUL2FwaS91c2Vycy97", - "dXNlci5pZH06ASoSUQoGRGVsZXRlEhYuYXBpLkRlbGV0ZVVzZXJSZXF1ZXN0", - "GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IheC0+STAhEqDy9hcGkvdXNlcnMv", - "e2lkfRJJCgRMaXN0EhUuYXBpLkxpc3RVc2Vyc1JlcXVlc3QaFi5hcGkuTGlz", - "dFVzZXJzUmVzcG9uc2UiEoLT5JMCDBIKL2FwaS91c2VycxJyCg5VcGRhdGVQ", - "YXNzd29yZBIeLmFwaS5VcGRhdGVVc2VyUGFzc3dvcmRSZXF1ZXN0GhYuZ29v", - "Z2xlLnByb3RvYnVmLkVtcHR5IiiC0+STAiIiHS9hcGkvdXNlcnMve3VzZXJf", - "aWR9L3Bhc3N3b3JkOgEqQmEKEWlvLmNoaXJwc3RhY2suYXBpQglVc2VyUHJv", - "dG9QAVouZ2l0aHViLmNvbS9jaGlycHN0YWNrL2NoaXJwc3RhY2svYXBpL2dv", - "L3Y0L2FwaaoCDkNoaXJwc3RhY2suQXBpYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.User), global::Chirpstack.Api.User.Parser, new[]{ "Id", "IsAdmin", "IsActive", "Email", "Note" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UserListItem), global::Chirpstack.Api.UserListItem.Parser, new[]{ "Id", "CreatedAt", "UpdatedAt", "Email", "IsAdmin", "IsActive" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UserTenant), global::Chirpstack.Api.UserTenant.Parser, new[]{ "TenantId", "IsAdmin", "IsDeviceAdmin", "IsGatewayAdmin" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateUserRequest), global::Chirpstack.Api.CreateUserRequest.Parser, new[]{ "User", "Password", "Tenants" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateUserResponse), global::Chirpstack.Api.CreateUserResponse.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetUserRequest), global::Chirpstack.Api.GetUserRequest.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetUserResponse), global::Chirpstack.Api.GetUserResponse.Parser, new[]{ "User", "CreatedAt", "UpdatedAt" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateUserRequest), global::Chirpstack.Api.UpdateUserRequest.Parser, new[]{ "User" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteUserRequest), global::Chirpstack.Api.DeleteUserRequest.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListUsersRequest), global::Chirpstack.Api.ListUsersRequest.Parser, new[]{ "Limit", "Offset" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListUsersResponse), global::Chirpstack.Api.ListUsersResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateUserPasswordRequest), global::Chirpstack.Api.UpdateUserPasswordRequest.Parser, new[]{ "UserId", "Password" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - public sealed partial class User : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new User()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.UserReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public User() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public User(User other) : this() { - id_ = other.id_; - isAdmin_ = other.isAdmin_; - isActive_ = other.isActive_; - email_ = other.email_; - note_ = other.note_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public User Clone() { - return new User(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// User ID (UUID). - /// Will be set automatically on create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "is_admin" field. - public const int IsAdminFieldNumber = 4; - private bool isAdmin_; - /// - /// Set to true to make the user a global administrator. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsAdmin { - get { return isAdmin_; } - set { - isAdmin_ = value; - } - } - - /// Field number for the "is_active" field. - public const int IsActiveFieldNumber = 5; - private bool isActive_; - /// - /// Set to false to disable the user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsActive { - get { return isActive_; } - set { - isActive_ = value; - } - } - - /// Field number for the "email" field. - public const int EmailFieldNumber = 6; - private string email_ = ""; - /// - /// E-mail of the user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Email { - get { return email_; } - set { - email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "note" field. - public const int NoteFieldNumber = 7; - private string note_ = ""; - /// - /// Optional note to store with the user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Note { - get { return note_; } - set { - note_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as User); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(User other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (IsAdmin != other.IsAdmin) return false; - if (IsActive != other.IsActive) return false; - if (Email != other.Email) return false; - if (Note != other.Note) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); - if (IsActive != false) hash ^= IsActive.GetHashCode(); - if (Email.Length != 0) hash ^= Email.GetHashCode(); - if (Note.Length != 0) hash ^= Note.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (IsAdmin != false) { - output.WriteRawTag(32); - output.WriteBool(IsAdmin); - } - if (IsActive != false) { - output.WriteRawTag(40); - output.WriteBool(IsActive); - } - if (Email.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Email); - } - if (Note.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Note); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (IsAdmin != false) { - output.WriteRawTag(32); - output.WriteBool(IsAdmin); - } - if (IsActive != false) { - output.WriteRawTag(40); - output.WriteBool(IsActive); - } - if (Email.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Email); - } - if (Note.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Note); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (IsAdmin != false) { - size += 1 + 1; - } - if (IsActive != false) { - size += 1 + 1; - } - if (Email.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); - } - if (Note.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Note); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(User other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.IsAdmin != false) { - IsAdmin = other.IsAdmin; - } - if (other.IsActive != false) { - IsActive = other.IsActive; - } - if (other.Email.Length != 0) { - Email = other.Email; - } - if (other.Note.Length != 0) { - Note = other.Note; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 32: { - IsAdmin = input.ReadBool(); - break; - } - case 40: { - IsActive = input.ReadBool(); - break; - } - case 50: { - Email = input.ReadString(); - break; - } - case 58: { - Note = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 32: { - IsAdmin = input.ReadBool(); - break; - } - case 40: { - IsActive = input.ReadBool(); - break; - } - case 50: { - Email = input.ReadString(); - break; - } - case 58: { - Note = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class UserListItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserListItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.UserReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserListItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserListItem(UserListItem other) : this() { - id_ = other.id_; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - email_ = other.email_; - isAdmin_ = other.isAdmin_; - isActive_ = other.isActive_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserListItem Clone() { - return new UserListItem(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// User ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - /// Field number for the "email" field. - public const int EmailFieldNumber = 4; - private string email_ = ""; - /// - /// Email of the user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Email { - get { return email_; } - set { - email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "is_admin" field. - public const int IsAdminFieldNumber = 5; - private bool isAdmin_; - /// - /// Set to true to make the user a global administrator. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsAdmin { - get { return isAdmin_; } - set { - isAdmin_ = value; - } - } - - /// Field number for the "is_active" field. - public const int IsActiveFieldNumber = 6; - private bool isActive_; - /// - /// Set to false to disable the user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsActive { - get { return isActive_; } - set { - isActive_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UserListItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserListItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - if (Email != other.Email) return false; - if (IsAdmin != other.IsAdmin) return false; - if (IsActive != other.IsActive) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (Email.Length != 0) hash ^= Email.GetHashCode(); - if (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); - if (IsActive != false) hash ^= IsActive.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (Email.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Email); - } - if (IsAdmin != false) { - output.WriteRawTag(40); - output.WriteBool(IsAdmin); - } - if (IsActive != false) { - output.WriteRawTag(48); - output.WriteBool(IsActive); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (Email.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Email); - } - if (IsAdmin != false) { - output.WriteRawTag(40); - output.WriteBool(IsAdmin); - } - if (IsActive != false) { - output.WriteRawTag(48); - output.WriteBool(IsActive); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (Email.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); - } - if (IsAdmin != false) { - size += 1 + 1; - } - if (IsActive != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserListItem other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - if (other.Email.Length != 0) { - Email = other.Email; - } - if (other.IsAdmin != false) { - IsAdmin = other.IsAdmin; - } - if (other.IsActive != false) { - IsActive = other.IsActive; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - Email = input.ReadString(); - break; - } - case 40: { - IsAdmin = input.ReadBool(); - break; - } - case 48: { - IsActive = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - case 34: { - Email = input.ReadString(); - break; - } - case 40: { - IsAdmin = input.ReadBool(); - break; - } - case 48: { - IsActive = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - public sealed partial class UserTenant : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserTenant()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.UserReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserTenant() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserTenant(UserTenant other) : this() { - tenantId_ = other.tenantId_; - isAdmin_ = other.isAdmin_; - isDeviceAdmin_ = other.isDeviceAdmin_; - isGatewayAdmin_ = other.isGatewayAdmin_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserTenant Clone() { - return new UserTenant(this); - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 1; - private string tenantId_ = ""; - /// - /// Tenant ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "is_admin" field. - public const int IsAdminFieldNumber = 2; - private bool isAdmin_; - /// - /// User is admin within the context of the tenant. - /// There is no need to set the is_device_admin and is_gateway_admin flags. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsAdmin { - get { return isAdmin_; } - set { - isAdmin_ = value; - } - } - - /// Field number for the "is_device_admin" field. - public const int IsDeviceAdminFieldNumber = 3; - private bool isDeviceAdmin_; - /// - /// User is able to modify device related resources (applications, - /// device-profiles, devices, multicast-groups). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsDeviceAdmin { - get { return isDeviceAdmin_; } - set { - isDeviceAdmin_ = value; - } - } - - /// Field number for the "is_gateway_admin" field. - public const int IsGatewayAdminFieldNumber = 4; - private bool isGatewayAdmin_; - /// - /// User is able to modify gateways. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsGatewayAdmin { - get { return isGatewayAdmin_; } - set { - isGatewayAdmin_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UserTenant); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserTenant other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TenantId != other.TenantId) return false; - if (IsAdmin != other.IsAdmin) return false; - if (IsDeviceAdmin != other.IsDeviceAdmin) return false; - if (IsGatewayAdmin != other.IsGatewayAdmin) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - if (IsAdmin != false) hash ^= IsAdmin.GetHashCode(); - if (IsDeviceAdmin != false) hash ^= IsDeviceAdmin.GetHashCode(); - if (IsGatewayAdmin != false) hash ^= IsGatewayAdmin.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (IsAdmin != false) { - output.WriteRawTag(16); - output.WriteBool(IsAdmin); - } - if (IsDeviceAdmin != false) { - output.WriteRawTag(24); - output.WriteBool(IsDeviceAdmin); - } - if (IsGatewayAdmin != false) { - output.WriteRawTag(32); - output.WriteBool(IsGatewayAdmin); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (IsAdmin != false) { - output.WriteRawTag(16); - output.WriteBool(IsAdmin); - } - if (IsDeviceAdmin != false) { - output.WriteRawTag(24); - output.WriteBool(IsDeviceAdmin); - } - if (IsGatewayAdmin != false) { - output.WriteRawTag(32); - output.WriteBool(IsGatewayAdmin); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - if (IsAdmin != false) { - size += 1 + 1; - } - if (IsDeviceAdmin != false) { - size += 1 + 1; - } - if (IsGatewayAdmin != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserTenant other) { - if (other == null) { - return; - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - if (other.IsAdmin != false) { - IsAdmin = other.IsAdmin; - } - if (other.IsDeviceAdmin != false) { - IsDeviceAdmin = other.IsDeviceAdmin; - } - if (other.IsGatewayAdmin != false) { - IsGatewayAdmin = other.IsGatewayAdmin; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - case 16: { - IsAdmin = input.ReadBool(); - break; - } - case 24: { - IsDeviceAdmin = input.ReadBool(); - break; - } - case 32: { - IsGatewayAdmin = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - case 16: { - IsAdmin = input.ReadBool(); - break; - } - case 24: { - IsDeviceAdmin = input.ReadBool(); - break; - } - case 32: { - IsGatewayAdmin = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateUserRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateUserRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.UserReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateUserRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateUserRequest(CreateUserRequest other) : this() { - user_ = other.user_ != null ? other.user_.Clone() : null; - password_ = other.password_; - tenants_ = other.tenants_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateUserRequest Clone() { - return new CreateUserRequest(this); - } - - /// Field number for the "user" field. - public const int UserFieldNumber = 1; - private global::Chirpstack.Api.User user_; - /// - /// User object to create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.User User { - get { return user_; } - set { - user_ = value; - } - } - - /// Field number for the "password" field. - public const int PasswordFieldNumber = 2; - private string password_ = ""; - /// - /// Password to set for the user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Password { - get { return password_; } - set { - password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tenants" field. - public const int TenantsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_tenants_codec - = pb::FieldCodec.ForMessage(26, global::Chirpstack.Api.UserTenant.Parser); - private readonly pbc::RepeatedField tenants_ = new pbc::RepeatedField(); - /// - /// Add the user to the following tenants. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Tenants { - get { return tenants_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateUserRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateUserRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(User, other.User)) return false; - if (Password != other.Password) return false; - if(!tenants_.Equals(other.tenants_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (user_ != null) hash ^= User.GetHashCode(); - if (Password.Length != 0) hash ^= Password.GetHashCode(); - hash ^= tenants_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (user_ != null) { - output.WriteRawTag(10); - output.WriteMessage(User); - } - if (Password.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Password); - } - tenants_.WriteTo(output, _repeated_tenants_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (user_ != null) { - output.WriteRawTag(10); - output.WriteMessage(User); - } - if (Password.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Password); - } - tenants_.WriteTo(ref output, _repeated_tenants_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (user_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); - } - if (Password.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); - } - size += tenants_.CalculateSize(_repeated_tenants_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateUserRequest other) { - if (other == null) { - return; - } - if (other.user_ != null) { - if (user_ == null) { - User = new global::Chirpstack.Api.User(); - } - User.MergeFrom(other.User); - } - if (other.Password.Length != 0) { - Password = other.Password; - } - tenants_.Add(other.tenants_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (user_ == null) { - User = new global::Chirpstack.Api.User(); - } - input.ReadMessage(User); - break; - } - case 18: { - Password = input.ReadString(); - break; - } - case 26: { - tenants_.AddEntriesFrom(input, _repeated_tenants_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (user_ == null) { - User = new global::Chirpstack.Api.User(); - } - input.ReadMessage(User); - break; - } - case 18: { - Password = input.ReadString(); - break; - } - case 26: { - tenants_.AddEntriesFrom(ref input, _repeated_tenants_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class CreateUserResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateUserResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.UserReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateUserResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateUserResponse(CreateUserResponse other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateUserResponse Clone() { - return new CreateUserResponse(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// User ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateUserResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateUserResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateUserResponse other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetUserRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetUserRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.UserReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetUserRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetUserRequest(GetUserRequest other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetUserRequest Clone() { - return new GetUserRequest(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// User ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetUserRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetUserRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetUserRequest other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GetUserResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetUserResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.UserReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetUserResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetUserResponse(GetUserResponse other) : this() { - user_ = other.user_ != null ? other.user_.Clone() : null; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetUserResponse Clone() { - return new GetUserResponse(this); - } - - /// Field number for the "user" field. - public const int UserFieldNumber = 1; - private global::Chirpstack.Api.User user_; - /// - /// User object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.User User { - get { return user_; } - set { - user_ = value; - } - } - - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; - /// - /// Created at timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } - set { - createdAt_ = value; - } - } - - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; - /// - /// Last update timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } - set { - updatedAt_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetUserResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetUserResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(User, other.User)) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (user_ != null) hash ^= User.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (user_ != null) { - output.WriteRawTag(10); - output.WriteMessage(User); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (user_ != null) { - output.WriteRawTag(10); - output.WriteMessage(User); - } - if (createdAt_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdatedAt); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (user_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); - } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetUserResponse other) { - if (other == null) { - return; - } - if (other.user_ != null) { - if (user_ == null) { - User = new global::Chirpstack.Api.User(); - } - User.MergeFrom(other.User); - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); - } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (user_ == null) { - User = new global::Chirpstack.Api.User(); - } - input.ReadMessage(User); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (user_ == null) { - User = new global::Chirpstack.Api.User(); - } - input.ReadMessage(User); - break; - } - case 18: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 26: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateUserRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateUserRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.UserReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateUserRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateUserRequest(UpdateUserRequest other) : this() { - user_ = other.user_ != null ? other.user_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateUserRequest Clone() { - return new UpdateUserRequest(this); - } - - /// Field number for the "user" field. - public const int UserFieldNumber = 1; - private global::Chirpstack.Api.User user_; - /// - /// User object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Api.User User { - get { return user_; } - set { - user_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateUserRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateUserRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(User, other.User)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (user_ != null) hash ^= User.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (user_ != null) { - output.WriteRawTag(10); - output.WriteMessage(User); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (user_ != null) { - output.WriteRawTag(10); - output.WriteMessage(User); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (user_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateUserRequest other) { - if (other == null) { - return; - } - if (other.user_ != null) { - if (user_ == null) { - User = new global::Chirpstack.Api.User(); - } - User.MergeFrom(other.User); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (user_ == null) { - User = new global::Chirpstack.Api.User(); - } - input.ReadMessage(User); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (user_ == null) { - User = new global::Chirpstack.Api.User(); - } - input.ReadMessage(User); - break; - } - } - } - } - #endif - - } - - public sealed partial class DeleteUserRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteUserRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.UserReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteUserRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteUserRequest(DeleteUserRequest other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteUserRequest Clone() { - return new DeleteUserRequest(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// User ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeleteUserRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteUserRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteUserRequest other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListUsersRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListUsersRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.UserReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListUsersRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListUsersRequest(ListUsersRequest other) : this() { - limit_ = other.limit_; - offset_ = other.offset_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListUsersRequest Clone() { - return new ListUsersRequest(this); - } - - /// Field number for the "limit" field. - public const int LimitFieldNumber = 1; - private uint limit_; - /// - /// Max number of tenants to return in the result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Limit { - get { return limit_; } - set { - limit_ = value; - } - } - - /// Field number for the "offset" field. - public const int OffsetFieldNumber = 2; - private uint offset_; - /// - /// Offset in the result-set (for pagination). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Offset { - get { return offset_; } - set { - offset_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListUsersRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListUsersRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Limit != other.Limit) return false; - if (Offset != other.Offset) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Limit != 0) hash ^= Limit.GetHashCode(); - if (Offset != 0) hash ^= Offset.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Limit != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Limit); - } - if (Offset != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Offset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Limit != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit); - } - if (Offset != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListUsersRequest other) { - if (other == null) { - return; - } - if (other.Limit != 0) { - Limit = other.Limit; - } - if (other.Offset != 0) { - Offset = other.Offset; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Limit = input.ReadUInt32(); - break; - } - case 16: { - Offset = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ListUsersResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListUsersResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.UserReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListUsersResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListUsersResponse(ListUsersResponse other) : this() { - totalCount_ = other.totalCount_; - result_ = other.result_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListUsersResponse Clone() { - return new ListUsersResponse(this); - } - - /// Field number for the "total_count" field. - public const int TotalCountFieldNumber = 1; - private uint totalCount_; - /// - /// Total number of users. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TotalCount { - get { return totalCount_; } - set { - totalCount_ = value; - } - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_result_codec - = pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.UserListItem.Parser); - private readonly pbc::RepeatedField result_ = new pbc::RepeatedField(); - /// - /// Result-set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Result { - get { return result_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListUsersResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListUsersResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TotalCount != other.TotalCount) return false; - if(!result_.Equals(other.result_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TotalCount != 0) hash ^= TotalCount.GetHashCode(); - hash ^= result_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TotalCount != 0) { - output.WriteRawTag(8); - output.WriteUInt32(TotalCount); - } - result_.WriteTo(ref output, _repeated_result_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TotalCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount); - } - size += result_.CalculateSize(_repeated_result_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListUsersResponse other) { - if (other == null) { - return; - } - if (other.TotalCount != 0) { - TotalCount = other.TotalCount; - } - result_.Add(other.result_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(input, _repeated_result_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - TotalCount = input.ReadUInt32(); - break; - } - case 18: { - result_.AddEntriesFrom(ref input, _repeated_result_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class UpdateUserPasswordRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateUserPasswordRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Api.UserReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateUserPasswordRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateUserPasswordRequest(UpdateUserPasswordRequest other) : this() { - userId_ = other.userId_; - password_ = other.password_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateUserPasswordRequest Clone() { - return new UpdateUserPasswordRequest(this); - } - - /// Field number for the "user_id" field. - public const int UserIdFieldNumber = 1; - private string userId_ = ""; - /// - /// User ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { - get { return userId_; } - set { - userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "password" field. - public const int PasswordFieldNumber = 2; - private string password_ = ""; - /// - /// Password to set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Password { - get { return password_; } - set { - password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateUserPasswordRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateUserPasswordRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (UserId != other.UserId) return false; - if (Password != other.Password) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (Password.Length != 0) hash ^= Password.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (UserId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(UserId); - } - if (Password.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Password); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(UserId); - } - if (Password.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Password); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (UserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); - } - if (Password.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateUserPasswordRequest other) { - if (other == null) { - return; - } - if (other.UserId.Length != 0) { - UserId = other.UserId; - } - if (other.Password.Length != 0) { - Password = other.Password; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - Password = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - Password = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/api/csharp/Chirpstack/api/UserGrpc.cs b/api/csharp/Chirpstack/api/UserGrpc.cs deleted file mode 100644 index 7a3617ee..00000000 --- a/api/csharp/Chirpstack/api/UserGrpc.cs +++ /dev/null @@ -1,558 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api/user.proto -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Chirpstack.Api { - /// - /// UserService is the service providing API methods for managing users. - /// - public static partial class UserService - { - static readonly string __ServiceName = "api.UserService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateUserRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_CreateUserResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.CreateUserResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetUserRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_GetUserResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.GetUserResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateUserRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_DeleteUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.DeleteUserRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListUsersRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListUsersRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_ListUsersResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.ListUsersResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_api_UpdateUserPasswordRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Chirpstack.Api.UpdateUserPasswordRequest.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Create = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Create", - __Marshaller_api_CreateUserRequest, - __Marshaller_api_CreateUserResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Get = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Get", - __Marshaller_api_GetUserRequest, - __Marshaller_api_GetUserResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Update = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Update", - __Marshaller_api_UpdateUserRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Delete = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Delete", - __Marshaller_api_DeleteUserRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_List = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "List", - __Marshaller_api_ListUsersRequest, - __Marshaller_api_ListUsersResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdatePassword = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdatePassword", - __Marshaller_api_UpdateUserPasswordRequest, - __Marshaller_google_protobuf_Empty); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Chirpstack.Api.UserReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of UserService - [grpc::BindServiceMethod(typeof(UserService), "BindService")] - public abstract partial class UserServiceBase - { - /// - /// Create a new user. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Create(global::Chirpstack.Api.CreateUserRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get the user for the given ID. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Get(global::Chirpstack.Api.GetUserRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update the given user. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Update(global::Chirpstack.Api.UpdateUserRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Delete the user with the given ID. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Delete(global::Chirpstack.Api.DeleteUserRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Get the list of users. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task List(global::Chirpstack.Api.ListUsersRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Update the password for the given user. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UpdatePassword(global::Chirpstack.Api.UpdateUserPasswordRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for UserService - public partial class UserServiceClient : grpc::ClientBase - { - /// Creates a new client for UserService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public UserServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for UserService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public UserServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected UserServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected UserServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Create a new user. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.CreateUserResponse Create(global::Chirpstack.Api.CreateUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Create(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create a new user. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.CreateUserResponse Create(global::Chirpstack.Api.CreateUserRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Create, null, options, request); - } - /// - /// Create a new user. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Create a new user. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAsync(global::Chirpstack.Api.CreateUserRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Create, null, options, request); - } - /// - /// Get the user for the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetUserResponse Get(global::Chirpstack.Api.GetUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Get(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the user for the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.GetUserResponse Get(global::Chirpstack.Api.GetUserRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Get, null, options, request); - } - /// - /// Get the user for the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the user for the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAsync(global::Chirpstack.Api.GetUserRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Get, null, options, request); - } - /// - /// Update the given user. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Update(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the given user. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Update(global::Chirpstack.Api.UpdateUserRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Update, null, options, request); - } - /// - /// Update the given user. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the given user. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdateAsync(global::Chirpstack.Api.UpdateUserRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Update, null, options, request); - } - /// - /// Delete the user with the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Delete(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the user with the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty Delete(global::Chirpstack.Api.DeleteUserRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Delete, null, options, request); - } - /// - /// Delete the user with the given ID. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return DeleteAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Delete the user with the given ID. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall DeleteAsync(global::Chirpstack.Api.DeleteUserRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Delete, null, options, request); - } - /// - /// Get the list of users. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListUsersResponse List(global::Chirpstack.Api.ListUsersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return List(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the list of users. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Chirpstack.Api.ListUsersResponse List(global::Chirpstack.Api.ListUsersRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_List, null, options, request); - } - /// - /// Get the list of users. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListUsersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Get the list of users. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAsync(global::Chirpstack.Api.ListUsersRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_List, null, options, request); - } - /// - /// Update the password for the given user. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdatePassword(global::Chirpstack.Api.UpdateUserPasswordRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdatePassword(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the password for the given user. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty UpdatePassword(global::Chirpstack.Api.UpdateUserPasswordRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdatePassword, null, options, request); - } - /// - /// Update the password for the given user. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdatePasswordAsync(global::Chirpstack.Api.UpdateUserPasswordRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdatePasswordAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Update the password for the given user. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UpdatePasswordAsync(global::Chirpstack.Api.UpdateUserPasswordRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdatePassword, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override UserServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new UserServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(UserServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_Create, serviceImpl.Create) - .AddMethod(__Method_Get, serviceImpl.Get) - .AddMethod(__Method_Update, serviceImpl.Update) - .AddMethod(__Method_Delete, serviceImpl.Delete) - .AddMethod(__Method_List, serviceImpl.List) - .AddMethod(__Method_UpdatePassword, serviceImpl.UpdatePassword).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, UserServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_Create, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Create)); - serviceBinder.AddMethod(__Method_Get, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Get)); - serviceBinder.AddMethod(__Method_Update, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Update)); - serviceBinder.AddMethod(__Method_Delete, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Delete)); - serviceBinder.AddMethod(__Method_List, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.List)); - serviceBinder.AddMethod(__Method_UpdatePassword, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdatePassword)); - } - - } -} -#endregion diff --git a/api/csharp/Chirpstack/common/Common.cs b/api/csharp/Chirpstack/common/Common.cs deleted file mode 100644 index ab51e84c..00000000 --- a/api/csharp/Chirpstack/common/Common.cs +++ /dev/null @@ -1,1629 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: common/common.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Chirpstack.Common { - - /// Holder for reflection information generated from common/common.proto - public static partial class CommonReflection { - - #region Descriptor - /// File descriptor for common/common.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CommonReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ChNjb21tb24vY29tbW9uLnByb3RvEgZjb21tb24aH2dvb2dsZS9wcm90b2J1", - "Zi90aW1lc3RhbXAucHJvdG8iewoITG9jYXRpb24SEAoIbGF0aXR1ZGUYASAB", - "KAESEQoJbG9uZ2l0dWRlGAIgASgBEhAKCGFsdGl0dWRlGAMgASgBEiYKBnNv", - "dXJjZRgEIAEoDjIWLmNvbW1vbi5Mb2NhdGlvblNvdXJjZRIQCghhY2N1cmFj", - "eRgFIAEoAiIxCgtLZXlFbnZlbG9wZRIRCglrZWtfbGFiZWwYASABKAkSDwoH", - "YWVzX2tleRgCIAEoDCKRAQoGTWV0cmljEgwKBG5hbWUYASABKAkSLgoKdGlt", - "ZXN0YW1wcxgCIAMoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASJwoI", - "ZGF0YXNldHMYAyADKAsyFS5jb21tb24uTWV0cmljRGF0YXNldBIgCgRraW5k", - "GAQgASgOMhIuY29tbW9uLk1ldHJpY0tpbmQiLAoNTWV0cmljRGF0YXNldBIN", - "CgVsYWJlbBgBIAEoCRIMCgRkYXRhGAIgAygCIlMKEUpvaW5TZXJ2ZXJDb250", - "ZXh0EhYKDnNlc3Npb25fa2V5X2lkGAEgASgJEiYKCWFwcF9zX2tleRgCIAEo", - "CzITLmNvbW1vbi5LZXlFbnZlbG9wZSosCgpNb2R1bGF0aW9uEggKBExPUkEQ", - "ABIHCgNGU0sQARILCgdMUl9GSFNTEAIqqgEKBlJlZ2lvbhIJCgVFVTg2OBAA", - "EgkKBVVTOTE1EAISCQoFQ043NzkQAxIJCgVFVTQzMxAEEgkKBUFVOTE1EAUS", - "CQoFQ040NzAQBhIJCgVBUzkyMxAHEgsKB0FTOTIzXzIQDBILCgdBUzkyM18z", - "EA0SCwoHQVM5MjNfNBAOEgkKBUtSOTIwEAgSCQoFSU44NjUQCRIJCgVSVTg2", - "NBAKEgsKB0lTTTI0MDAQCyqzAQoFTVR5cGUSEAoMSk9JTl9SRVFVRVNUEAAS", - "DwoLSk9JTl9BQ0NFUFQQARIXChNVTkNPTkZJUk1FRF9EQVRBX1VQEAISGQoV", - "VU5DT05GSVJNRURfREFUQV9ET1dOEAMSFQoRQ09ORklSTUVEX0RBVEFfVVAQ", - "BBIXChNDT05GSVJNRURfREFUQV9ET1dOEAUSEgoOUkVKT0lOX1JFUVVFU1QQ", - "BhIPCgtQUk9QUklFVEFSWRAHKn4KCk1hY1ZlcnNpb24SEQoNTE9SQVdBTl8x", - "XzBfMBAAEhEKDUxPUkFXQU5fMV8wXzEQARIRCg1MT1JBV0FOXzFfMF8yEAIS", - "EQoNTE9SQVdBTl8xXzBfMxADEhEKDUxPUkFXQU5fMV8wXzQQBBIRCg1MT1JB", - "V0FOXzFfMV8wEAUqZQoRUmVnUGFyYW1zUmV2aXNpb24SBQoBQRAAEgUKAUIQ", - "ARIPCgtSUDAwMl8xXzBfMBACEg8KC1JQMDAyXzFfMF8xEAMSDwoLUlAwMDJf", - "MV8wXzIQBBIPCgtSUDAwMl8xXzBfMxAFKo4BCg5Mb2NhdGlvblNvdXJjZRIL", - "CgdVTktOT1dOEAASBwoDR1BTEAESCgoGQ09ORklHEAISFQoRR0VPX1JFU09M", - "VkVSX1RET0EQAxIVChFHRU9fUkVTT0xWRVJfUlNTSRAEEhUKEUdFT19SRVNP", - "TFZFUl9HTlNTEAUSFQoRR0VPX1JFU09MVkVSX1dJRkkQBiorCgtBZ2dyZWdh", - "dGlvbhIICgRIT1VSEAASBwoDREFZEAESCQoFTU9OVEgQAioyCgpNZXRyaWNL", - "aW5kEgsKB0NPVU5URVIQABIMCghBQlNPTFVURRABEgkKBUdBVUdFEAIqNAoL", - "RGV2aWNlQ2xhc3MSCwoHQ0xBU1NfQRAAEgsKB0NMQVNTX0IQARILCgdDTEFT", - "U19DEAJCaQoRaW8uY2hpcnBzdGFjay5hcGlCC0NvbW1vblByb3RvUAFaMWdp", - "dGh1Yi5jb20vY2hpcnBzdGFjay9jaGlycHN0YWNrL2FwaS9nby92NC9jb21t", - "b26qAhFDaGlycHN0YWNrLkNvbW1vbmIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.Common.Modulation), typeof(global::Chirpstack.Common.Region), typeof(global::Chirpstack.Common.MType), typeof(global::Chirpstack.Common.MacVersion), typeof(global::Chirpstack.Common.RegParamsRevision), typeof(global::Chirpstack.Common.LocationSource), typeof(global::Chirpstack.Common.Aggregation), typeof(global::Chirpstack.Common.MetricKind), typeof(global::Chirpstack.Common.DeviceClass), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Common.Location), global::Chirpstack.Common.Location.Parser, new[]{ "Latitude", "Longitude", "Altitude", "Source", "Accuracy" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Common.KeyEnvelope), global::Chirpstack.Common.KeyEnvelope.Parser, new[]{ "KekLabel", "AesKey" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Common.Metric), global::Chirpstack.Common.Metric.Parser, new[]{ "Name", "Timestamps", "Datasets", "Kind" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Common.MetricDataset), global::Chirpstack.Common.MetricDataset.Parser, new[]{ "Label", "Data" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Common.JoinServerContext), global::Chirpstack.Common.JoinServerContext.Parser, new[]{ "SessionKeyId", "AppSKey" }, null, null, null, null) - })); - } - #endregion - - } - #region Enums - public enum Modulation { - /// - /// LoRa - /// - [pbr::OriginalName("LORA")] Lora = 0, - /// - /// FSK - /// - [pbr::OriginalName("FSK")] Fsk = 1, - /// - /// LR-FHSS - /// - [pbr::OriginalName("LR_FHSS")] LrFhss = 2, - } - - public enum Region { - /// - /// EU868 - /// - [pbr::OriginalName("EU868")] Eu868 = 0, - /// - /// US915 - /// - [pbr::OriginalName("US915")] Us915 = 2, - /// - /// CN779 - /// - [pbr::OriginalName("CN779")] Cn779 = 3, - /// - /// EU433 - /// - [pbr::OriginalName("EU433")] Eu433 = 4, - /// - /// AU915 - /// - [pbr::OriginalName("AU915")] Au915 = 5, - /// - /// CN470 - /// - [pbr::OriginalName("CN470")] Cn470 = 6, - /// - /// AS923 - /// - [pbr::OriginalName("AS923")] As923 = 7, - /// - /// AS923 with -1.80 MHz frequency offset - /// - [pbr::OriginalName("AS923_2")] As9232 = 12, - /// - /// AS923 with -6.60 MHz frequency offset - /// - [pbr::OriginalName("AS923_3")] As9233 = 13, - /// - /// (AS923 with -5.90 MHz frequency offset). - /// - [pbr::OriginalName("AS923_4")] As9234 = 14, - /// - /// KR920 - /// - [pbr::OriginalName("KR920")] Kr920 = 8, - /// - /// IN865 - /// - [pbr::OriginalName("IN865")] In865 = 9, - /// - /// RU864 - /// - [pbr::OriginalName("RU864")] Ru864 = 10, - /// - /// ISM2400 (LoRaWAN 2.4 GHz) - /// - [pbr::OriginalName("ISM2400")] Ism2400 = 11, - } - - public enum MType { - /// - /// JoinRequest. - /// - [pbr::OriginalName("JOIN_REQUEST")] JoinRequest = 0, - /// - /// JoinAccept. - /// - [pbr::OriginalName("JOIN_ACCEPT")] JoinAccept = 1, - /// - /// UnconfirmedDataUp. - /// - [pbr::OriginalName("UNCONFIRMED_DATA_UP")] UnconfirmedDataUp = 2, - /// - /// UnconfirmedDataDown. - /// - [pbr::OriginalName("UNCONFIRMED_DATA_DOWN")] UnconfirmedDataDown = 3, - /// - /// ConfirmedDataUp. - /// - [pbr::OriginalName("CONFIRMED_DATA_UP")] ConfirmedDataUp = 4, - /// - /// ConfirmedDataDown. - /// - [pbr::OriginalName("CONFIRMED_DATA_DOWN")] ConfirmedDataDown = 5, - /// - /// RejoinRequest. - /// - [pbr::OriginalName("REJOIN_REQUEST")] RejoinRequest = 6, - /// - /// Proprietary. - /// - [pbr::OriginalName("PROPRIETARY")] Proprietary = 7, - } - - public enum MacVersion { - [pbr::OriginalName("LORAWAN_1_0_0")] Lorawan100 = 0, - [pbr::OriginalName("LORAWAN_1_0_1")] Lorawan101 = 1, - [pbr::OriginalName("LORAWAN_1_0_2")] Lorawan102 = 2, - [pbr::OriginalName("LORAWAN_1_0_3")] Lorawan103 = 3, - [pbr::OriginalName("LORAWAN_1_0_4")] Lorawan104 = 4, - [pbr::OriginalName("LORAWAN_1_1_0")] Lorawan110 = 5, - } - - public enum RegParamsRevision { - [pbr::OriginalName("A")] A = 0, - [pbr::OriginalName("B")] B = 1, - [pbr::OriginalName("RP002_1_0_0")] Rp002100 = 2, - [pbr::OriginalName("RP002_1_0_1")] Rp002101 = 3, - [pbr::OriginalName("RP002_1_0_2")] Rp002102 = 4, - [pbr::OriginalName("RP002_1_0_3")] Rp002103 = 5, - } - - public enum LocationSource { - /// - /// Unknown. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 0, - /// - /// GPS. - /// - [pbr::OriginalName("GPS")] Gps = 1, - /// - /// Manually configured. - /// - [pbr::OriginalName("CONFIG")] Config = 2, - /// - /// Geo resolver (TDOA). - /// - [pbr::OriginalName("GEO_RESOLVER_TDOA")] GeoResolverTdoa = 3, - /// - /// Geo resolver (RSSI). - /// - [pbr::OriginalName("GEO_RESOLVER_RSSI")] GeoResolverRssi = 4, - /// - /// Geo resolver (GNSS). - /// - [pbr::OriginalName("GEO_RESOLVER_GNSS")] GeoResolverGnss = 5, - /// - /// Geo resolver (WIFI). - /// - [pbr::OriginalName("GEO_RESOLVER_WIFI")] GeoResolverWifi = 6, - } - - public enum Aggregation { - /// - /// Hour. - /// - [pbr::OriginalName("HOUR")] Hour = 0, - /// - /// Day. - /// - [pbr::OriginalName("DAY")] Day = 1, - /// - /// Month. - /// - [pbr::OriginalName("MONTH")] Month = 2, - } - - public enum MetricKind { - /// - /// Incrementing counters that never decrease (these are not reset on each - /// reading). - /// - [pbr::OriginalName("COUNTER")] Counter = 0, - /// - /// Counters that do get reset upon reading. - /// - [pbr::OriginalName("ABSOLUTE")] Absolute = 1, - /// - /// E.g. a temperature value. - /// - [pbr::OriginalName("GAUGE")] Gauge = 2, - } - - public enum DeviceClass { - /// - /// Class-A. - /// - [pbr::OriginalName("CLASS_A")] ClassA = 0, - /// - /// Class-B. - /// - [pbr::OriginalName("CLASS_B")] ClassB = 1, - /// - /// Class-C. - /// - [pbr::OriginalName("CLASS_C")] ClassC = 2, - } - - #endregion - - #region Messages - public sealed partial class Location : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Location()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Common.CommonReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Location() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Location(Location other) : this() { - latitude_ = other.latitude_; - longitude_ = other.longitude_; - altitude_ = other.altitude_; - source_ = other.source_; - accuracy_ = other.accuracy_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Location Clone() { - return new Location(this); - } - - /// Field number for the "latitude" field. - public const int LatitudeFieldNumber = 1; - private double latitude_; - /// - /// Latitude. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double Latitude { - get { return latitude_; } - set { - latitude_ = value; - } - } - - /// Field number for the "longitude" field. - public const int LongitudeFieldNumber = 2; - private double longitude_; - /// - /// Longitude. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double Longitude { - get { return longitude_; } - set { - longitude_ = value; - } - } - - /// Field number for the "altitude" field. - public const int AltitudeFieldNumber = 3; - private double altitude_; - /// - /// Altitude. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double Altitude { - get { return altitude_; } - set { - altitude_ = value; - } - } - - /// Field number for the "source" field. - public const int SourceFieldNumber = 4; - private global::Chirpstack.Common.LocationSource source_ = global::Chirpstack.Common.LocationSource.Unknown; - /// - /// Location source. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.LocationSource Source { - get { return source_; } - set { - source_ = value; - } - } - - /// Field number for the "accuracy" field. - public const int AccuracyFieldNumber = 5; - private float accuracy_; - /// - /// Accuracy. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Accuracy { - get { return accuracy_; } - set { - accuracy_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Location); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Location other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Latitude, other.Latitude)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Longitude, other.Longitude)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Altitude, other.Altitude)) return false; - if (Source != other.Source) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Accuracy, other.Accuracy)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Latitude != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latitude); - if (Longitude != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Longitude); - if (Altitude != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Altitude); - if (Source != global::Chirpstack.Common.LocationSource.Unknown) hash ^= Source.GetHashCode(); - if (Accuracy != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Accuracy); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Latitude != 0D) { - output.WriteRawTag(9); - output.WriteDouble(Latitude); - } - if (Longitude != 0D) { - output.WriteRawTag(17); - output.WriteDouble(Longitude); - } - if (Altitude != 0D) { - output.WriteRawTag(25); - output.WriteDouble(Altitude); - } - if (Source != global::Chirpstack.Common.LocationSource.Unknown) { - output.WriteRawTag(32); - output.WriteEnum((int) Source); - } - if (Accuracy != 0F) { - output.WriteRawTag(45); - output.WriteFloat(Accuracy); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Latitude != 0D) { - output.WriteRawTag(9); - output.WriteDouble(Latitude); - } - if (Longitude != 0D) { - output.WriteRawTag(17); - output.WriteDouble(Longitude); - } - if (Altitude != 0D) { - output.WriteRawTag(25); - output.WriteDouble(Altitude); - } - if (Source != global::Chirpstack.Common.LocationSource.Unknown) { - output.WriteRawTag(32); - output.WriteEnum((int) Source); - } - if (Accuracy != 0F) { - output.WriteRawTag(45); - output.WriteFloat(Accuracy); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Latitude != 0D) { - size += 1 + 8; - } - if (Longitude != 0D) { - size += 1 + 8; - } - if (Altitude != 0D) { - size += 1 + 8; - } - if (Source != global::Chirpstack.Common.LocationSource.Unknown) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); - } - if (Accuracy != 0F) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Location other) { - if (other == null) { - return; - } - if (other.Latitude != 0D) { - Latitude = other.Latitude; - } - if (other.Longitude != 0D) { - Longitude = other.Longitude; - } - if (other.Altitude != 0D) { - Altitude = other.Altitude; - } - if (other.Source != global::Chirpstack.Common.LocationSource.Unknown) { - Source = other.Source; - } - if (other.Accuracy != 0F) { - Accuracy = other.Accuracy; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 9: { - Latitude = input.ReadDouble(); - break; - } - case 17: { - Longitude = input.ReadDouble(); - break; - } - case 25: { - Altitude = input.ReadDouble(); - break; - } - case 32: { - Source = (global::Chirpstack.Common.LocationSource) input.ReadEnum(); - break; - } - case 45: { - Accuracy = input.ReadFloat(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 9: { - Latitude = input.ReadDouble(); - break; - } - case 17: { - Longitude = input.ReadDouble(); - break; - } - case 25: { - Altitude = input.ReadDouble(); - break; - } - case 32: { - Source = (global::Chirpstack.Common.LocationSource) input.ReadEnum(); - break; - } - case 45: { - Accuracy = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - public sealed partial class KeyEnvelope : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeyEnvelope()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Common.CommonReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeyEnvelope() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeyEnvelope(KeyEnvelope other) : this() { - kekLabel_ = other.kekLabel_; - aesKey_ = other.aesKey_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeyEnvelope Clone() { - return new KeyEnvelope(this); - } - - /// Field number for the "kek_label" field. - public const int KekLabelFieldNumber = 1; - private string kekLabel_ = ""; - /// - /// KEK label. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string KekLabel { - get { return kekLabel_; } - set { - kekLabel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "aes_key" field. - public const int AesKeyFieldNumber = 2; - private pb::ByteString aesKey_ = pb::ByteString.Empty; - /// - /// AES key (when the kek_label is set, this value must first be decrypted). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString AesKey { - get { return aesKey_; } - set { - aesKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeyEnvelope); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeyEnvelope other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (KekLabel != other.KekLabel) return false; - if (AesKey != other.AesKey) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (KekLabel.Length != 0) hash ^= KekLabel.GetHashCode(); - if (AesKey.Length != 0) hash ^= AesKey.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (KekLabel.Length != 0) { - output.WriteRawTag(10); - output.WriteString(KekLabel); - } - if (AesKey.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(AesKey); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (KekLabel.Length != 0) { - output.WriteRawTag(10); - output.WriteString(KekLabel); - } - if (AesKey.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(AesKey); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (KekLabel.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(KekLabel); - } - if (AesKey.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(AesKey); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeyEnvelope other) { - if (other == null) { - return; - } - if (other.KekLabel.Length != 0) { - KekLabel = other.KekLabel; - } - if (other.AesKey.Length != 0) { - AesKey = other.AesKey; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - KekLabel = input.ReadString(); - break; - } - case 18: { - AesKey = input.ReadBytes(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - KekLabel = input.ReadString(); - break; - } - case 18: { - AesKey = input.ReadBytes(); - break; - } - } - } - } - #endif - - } - - public sealed partial class Metric : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Metric()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Common.CommonReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Metric() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Metric(Metric other) : this() { - name_ = other.name_; - timestamps_ = other.timestamps_.Clone(); - datasets_ = other.datasets_.Clone(); - kind_ = other.kind_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Metric Clone() { - return new Metric(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// Name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "timestamps" field. - public const int TimestampsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_timestamps_codec - = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Timestamp.Parser); - private readonly pbc::RepeatedField timestamps_ = new pbc::RepeatedField(); - /// - /// Timestamps. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Timestamps { - get { return timestamps_; } - } - - /// Field number for the "datasets" field. - public const int DatasetsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_datasets_codec - = pb::FieldCodec.ForMessage(26, global::Chirpstack.Common.MetricDataset.Parser); - private readonly pbc::RepeatedField datasets_ = new pbc::RepeatedField(); - /// - /// Datasets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Datasets { - get { return datasets_; } - } - - /// Field number for the "kind" field. - public const int KindFieldNumber = 4; - private global::Chirpstack.Common.MetricKind kind_ = global::Chirpstack.Common.MetricKind.Counter; - /// - /// Kind. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.MetricKind Kind { - get { return kind_; } - set { - kind_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Metric); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Metric other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if(!timestamps_.Equals(other.timestamps_)) return false; - if(!datasets_.Equals(other.datasets_)) return false; - if (Kind != other.Kind) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - hash ^= timestamps_.GetHashCode(); - hash ^= datasets_.GetHashCode(); - if (Kind != global::Chirpstack.Common.MetricKind.Counter) hash ^= Kind.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - timestamps_.WriteTo(output, _repeated_timestamps_codec); - datasets_.WriteTo(output, _repeated_datasets_codec); - if (Kind != global::Chirpstack.Common.MetricKind.Counter) { - output.WriteRawTag(32); - output.WriteEnum((int) Kind); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - timestamps_.WriteTo(ref output, _repeated_timestamps_codec); - datasets_.WriteTo(ref output, _repeated_datasets_codec); - if (Kind != global::Chirpstack.Common.MetricKind.Counter) { - output.WriteRawTag(32); - output.WriteEnum((int) Kind); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - size += timestamps_.CalculateSize(_repeated_timestamps_codec); - size += datasets_.CalculateSize(_repeated_datasets_codec); - if (Kind != global::Chirpstack.Common.MetricKind.Counter) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Metric other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - timestamps_.Add(other.timestamps_); - datasets_.Add(other.datasets_); - if (other.Kind != global::Chirpstack.Common.MetricKind.Counter) { - Kind = other.Kind; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 18: { - timestamps_.AddEntriesFrom(input, _repeated_timestamps_codec); - break; - } - case 26: { - datasets_.AddEntriesFrom(input, _repeated_datasets_codec); - break; - } - case 32: { - Kind = (global::Chirpstack.Common.MetricKind) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 18: { - timestamps_.AddEntriesFrom(ref input, _repeated_timestamps_codec); - break; - } - case 26: { - datasets_.AddEntriesFrom(ref input, _repeated_datasets_codec); - break; - } - case 32: { - Kind = (global::Chirpstack.Common.MetricKind) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - public sealed partial class MetricDataset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MetricDataset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Common.CommonReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MetricDataset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MetricDataset(MetricDataset other) : this() { - label_ = other.label_; - data_ = other.data_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MetricDataset Clone() { - return new MetricDataset(this); - } - - /// Field number for the "label" field. - public const int LabelFieldNumber = 1; - private string label_ = ""; - /// - /// Label. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Label { - get { return label_; } - set { - label_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_data_codec - = pb::FieldCodec.ForFloat(18); - private readonly pbc::RepeatedField data_ = new pbc::RepeatedField(); - /// - /// Data. - /// Each value index corresponds with the same timestamp index of the Metric. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Data { - get { return data_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MetricDataset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MetricDataset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Label != other.Label) return false; - if(!data_.Equals(other.data_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Label.Length != 0) hash ^= Label.GetHashCode(); - hash ^= data_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Label.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Label); - } - data_.WriteTo(output, _repeated_data_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Label.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Label); - } - data_.WriteTo(ref output, _repeated_data_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Label.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Label); - } - size += data_.CalculateSize(_repeated_data_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MetricDataset other) { - if (other == null) { - return; - } - if (other.Label.Length != 0) { - Label = other.Label; - } - data_.Add(other.data_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Label = input.ReadString(); - break; - } - case 18: - case 21: { - data_.AddEntriesFrom(input, _repeated_data_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Label = input.ReadString(); - break; - } - case 18: - case 21: { - data_.AddEntriesFrom(ref input, _repeated_data_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Join-Server context. - /// - public sealed partial class JoinServerContext : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JoinServerContext()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser 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[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 JoinServerContext() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public JoinServerContext(JoinServerContext other) : this() { - sessionKeyId_ = other.sessionKeyId_; - 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 JoinServerContext Clone() { - return new JoinServerContext(this); - } - - /// Field number for the "session_key_id" field. - public const int SessionKeyIdFieldNumber = 1; - private string sessionKeyId_ = ""; - /// - /// Session-key ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SessionKeyId { - get { return sessionKeyId_; } - set { - sessionKeyId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "app_s_key" field. - public const int AppSKeyFieldNumber = 2; - private global::Chirpstack.Common.KeyEnvelope appSKey_; - /// - /// AppSKey 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 JoinServerContext); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(JoinServerContext other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (SessionKeyId != other.SessionKeyId) 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 (SessionKeyId.Length != 0) hash ^= SessionKeyId.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 (SessionKeyId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(SessionKeyId); - } - 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 (SessionKeyId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(SessionKeyId); - } - 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 (SessionKeyId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionKeyId); - } - 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(JoinServerContext other) { - if (other == null) { - return; - } - if (other.SessionKeyId.Length != 0) { - SessionKeyId = other.SessionKeyId; - } - 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: { - SessionKeyId = input.ReadString(); - 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: { - SessionKeyId = input.ReadString(); - break; - } - case 18: { - if (appSKey_ == null) { - AppSKey = new global::Chirpstack.Common.KeyEnvelope(); - } - input.ReadMessage(AppSKey); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/api/csharp/Chirpstack/google/api/Annotations.cs b/api/csharp/Chirpstack/google/api/Annotations.cs deleted file mode 100644 index b89a53c6..00000000 --- a/api/csharp/Chirpstack/google/api/Annotations.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/api/annotations.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Api { - - /// Holder for reflection information generated from google/api/annotations.proto - public static partial class AnnotationsReflection { - - #region Descriptor - /// File descriptor for google/api/annotations.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AnnotationsReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Chxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvEgpnb29nbGUuYXBpGhVn", - "b29nbGUvYXBpL2h0dHAucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9kZXNjcmlw", - "dG9yLnByb3RvOkUKBGh0dHASHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0", - "aW9ucxiwyrwiIAEoCzIULmdvb2dsZS5hcGkuSHR0cFJ1bGVCbgoOY29tLmdv", - "b2dsZS5hcGlCEEFubm90YXRpb25zUHJvdG9QAVpBZ29vZ2xlLmdvbGFuZy5v", - "cmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvYW5ub3RhdGlvbnM7YW5ub3Rh", - "dGlvbnOiAgRHQVBJYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.HttpReflection.Descriptor, global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pb::Extension[] { AnnotationsExtensions.Http }, null)); - } - #endregion - - } - /// Holder for extension identifiers generated from the top level of google/api/annotations.proto - public static partial class AnnotationsExtensions { - /// - /// See `HttpRule`. - /// - public static readonly pb::Extension Http = - new pb::Extension(72295728, pb::FieldCodec.ForMessage(578365826, global::Google.Api.HttpRule.Parser)); - } - -} - -#endregion Designer generated code diff --git a/api/csharp/Chirpstack/google/api/Http.cs b/api/csharp/Chirpstack/google/api/Http.cs deleted file mode 100644 index 460f3775..00000000 --- a/api/csharp/Chirpstack/google/api/Http.cs +++ /dev/null @@ -1,1415 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/api/http.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Api { - - /// Holder for reflection information generated from google/api/http.proto - public static partial class HttpReflection { - - #region Descriptor - /// File descriptor for google/api/http.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static HttpReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ChVnb29nbGUvYXBpL2h0dHAucHJvdG8SCmdvb2dsZS5hcGkiVAoESHR0cBIj", - "CgVydWxlcxgBIAMoCzIULmdvb2dsZS5hcGkuSHR0cFJ1bGUSJwofZnVsbHlf", - "ZGVjb2RlX3Jlc2VydmVkX2V4cGFuc2lvbhgCIAEoCCKBAgoISHR0cFJ1bGUS", - "EAoIc2VsZWN0b3IYASABKAkSDQoDZ2V0GAIgASgJSAASDQoDcHV0GAMgASgJ", - "SAASDgoEcG9zdBgEIAEoCUgAEhAKBmRlbGV0ZRgFIAEoCUgAEg8KBXBhdGNo", - "GAYgASgJSAASLwoGY3VzdG9tGAggASgLMh0uZ29vZ2xlLmFwaS5DdXN0b21I", - "dHRwUGF0dGVybkgAEgwKBGJvZHkYByABKAkSFQoNcmVzcG9uc2VfYm9keRgM", - "IAEoCRIxChNhZGRpdGlvbmFsX2JpbmRpbmdzGAsgAygLMhQuZ29vZ2xlLmFw", - "aS5IdHRwUnVsZUIJCgdwYXR0ZXJuIi8KEUN1c3RvbUh0dHBQYXR0ZXJuEgwK", - "BGtpbmQYASABKAkSDAoEcGF0aBgCIAEoCUJqCg5jb20uZ29vZ2xlLmFwaUIJ", - "SHR0cFByb3RvUAFaQWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds", - "ZWFwaXMvYXBpL2Fubm90YXRpb25zO2Fubm90YXRpb25z+AEBogIER0FQSWIG", - "cHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.Http), global::Google.Api.Http.Parser, new[]{ "Rules", "FullyDecodeReservedExpansion" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.HttpRule), global::Google.Api.HttpRule.Parser, new[]{ "Selector", "Get", "Put", "Post", "Delete", "Patch", "Custom", "Body", "ResponseBody", "AdditionalBindings" }, new[]{ "Pattern" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Api.CustomHttpPattern), global::Google.Api.CustomHttpPattern.Parser, new[]{ "Kind", "Path" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Defines the HTTP configuration for an API service. It contains a list of - /// [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method - /// to one or more HTTP REST API methods. - /// - public sealed partial class Http : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Http()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Api.HttpReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Http() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Http(Http other) : this() { - rules_ = other.rules_.Clone(); - fullyDecodeReservedExpansion_ = other.fullyDecodeReservedExpansion_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Http Clone() { - return new Http(this); - } - - /// Field number for the "rules" field. - public const int RulesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_rules_codec - = pb::FieldCodec.ForMessage(10, global::Google.Api.HttpRule.Parser); - private readonly pbc::RepeatedField rules_ = new pbc::RepeatedField(); - /// - /// A list of HTTP configuration rules that apply to individual API methods. - /// - /// **NOTE:** All service configuration rules follow "last one wins" order. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Rules { - get { return rules_; } - } - - /// Field number for the "fully_decode_reserved_expansion" field. - public const int FullyDecodeReservedExpansionFieldNumber = 2; - private bool fullyDecodeReservedExpansion_; - /// - /// When set to true, URL path parameters will be fully URI-decoded except in - /// cases of single segment matches in reserved expansion, where "%2F" will be - /// left encoded. - /// - /// The default behavior is to not decode RFC 6570 reserved characters in multi - /// segment matches. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool FullyDecodeReservedExpansion { - get { return fullyDecodeReservedExpansion_; } - set { - fullyDecodeReservedExpansion_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Http); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Http other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!rules_.Equals(other.rules_)) return false; - if (FullyDecodeReservedExpansion != other.FullyDecodeReservedExpansion) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= rules_.GetHashCode(); - if (FullyDecodeReservedExpansion != false) hash ^= FullyDecodeReservedExpansion.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - rules_.WriteTo(output, _repeated_rules_codec); - if (FullyDecodeReservedExpansion != false) { - output.WriteRawTag(16); - output.WriteBool(FullyDecodeReservedExpansion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - rules_.WriteTo(ref output, _repeated_rules_codec); - if (FullyDecodeReservedExpansion != false) { - output.WriteRawTag(16); - output.WriteBool(FullyDecodeReservedExpansion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += rules_.CalculateSize(_repeated_rules_codec); - if (FullyDecodeReservedExpansion != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Http other) { - if (other == null) { - return; - } - rules_.Add(other.rules_); - if (other.FullyDecodeReservedExpansion != false) { - FullyDecodeReservedExpansion = other.FullyDecodeReservedExpansion; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - rules_.AddEntriesFrom(input, _repeated_rules_codec); - break; - } - case 16: { - FullyDecodeReservedExpansion = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - rules_.AddEntriesFrom(ref input, _repeated_rules_codec); - break; - } - case 16: { - FullyDecodeReservedExpansion = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// # gRPC Transcoding - /// - /// gRPC Transcoding is a feature for mapping between a gRPC method and one or - /// more HTTP REST endpoints. It allows developers to build a single API service - /// that supports both gRPC APIs and REST APIs. Many systems, including [Google - /// APIs](https://github.com/googleapis/googleapis), - /// [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - /// Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - /// and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - /// and use it for large scale production services. - /// - /// `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - /// how different portions of the gRPC request message are mapped to the URL - /// path, URL query parameters, and HTTP request body. It also controls how the - /// gRPC response message is mapped to the HTTP response body. `HttpRule` is - /// typically specified as an `google.api.http` annotation on the gRPC method. - /// - /// Each mapping specifies a URL path template and an HTTP method. The path - /// template may refer to one or more fields in the gRPC request message, as long - /// as each field is a non-repeated field with a primitive (non-message) type. - /// The path template controls how fields of the request message are mapped to - /// the URL path. - /// - /// Example: - /// - /// service Messaging { - /// rpc GetMessage(GetMessageRequest) returns (Message) { - /// option (google.api.http) = { - /// get: "/v1/{name=messages/*}" - /// }; - /// } - /// } - /// message GetMessageRequest { - /// string name = 1; // Mapped to URL path. - /// } - /// message Message { - /// string text = 1; // The resource content. - /// } - /// - /// This enables an HTTP REST to gRPC mapping as below: - /// - /// HTTP | gRPC - /// -----|----- - /// `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - /// - /// Any fields in the request message which are not bound by the path template - /// automatically become HTTP query parameters if there is no HTTP request body. - /// For example: - /// - /// service Messaging { - /// rpc GetMessage(GetMessageRequest) returns (Message) { - /// option (google.api.http) = { - /// get:"/v1/messages/{message_id}" - /// }; - /// } - /// } - /// message GetMessageRequest { - /// message SubMessage { - /// string subfield = 1; - /// } - /// string message_id = 1; // Mapped to URL path. - /// int64 revision = 2; // Mapped to URL query parameter `revision`. - /// SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - /// } - /// - /// This enables a HTTP JSON to RPC mapping as below: - /// - /// HTTP | gRPC - /// -----|----- - /// `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - /// `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - /// "foo"))` - /// - /// Note that fields which are mapped to URL query parameters must have a - /// primitive type or a repeated primitive type or a non-repeated message type. - /// In the case of a repeated type, the parameter can be repeated in the URL - /// as `...?param=A&param=B`. In the case of a message type, each field of the - /// message is mapped to a separate parameter, such as - /// `...?foo.a=A&foo.b=B&foo.c=C`. - /// - /// For HTTP methods that allow a request body, the `body` field - /// specifies the mapping. Consider a REST update method on the - /// message resource collection: - /// - /// service Messaging { - /// rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - /// option (google.api.http) = { - /// patch: "/v1/messages/{message_id}" - /// body: "message" - /// }; - /// } - /// } - /// message UpdateMessageRequest { - /// string message_id = 1; // mapped to the URL - /// Message message = 2; // mapped to the body - /// } - /// - /// The following HTTP JSON to RPC mapping is enabled, where the - /// representation of the JSON in the request body is determined by - /// protos JSON encoding: - /// - /// HTTP | gRPC - /// -----|----- - /// `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - /// "123456" message { text: "Hi!" })` - /// - /// The special name `*` can be used in the body mapping to define that - /// every field not bound by the path template should be mapped to the - /// request body. This enables the following alternative definition of - /// the update method: - /// - /// service Messaging { - /// rpc UpdateMessage(Message) returns (Message) { - /// option (google.api.http) = { - /// patch: "/v1/messages/{message_id}" - /// body: "*" - /// }; - /// } - /// } - /// message Message { - /// string message_id = 1; - /// string text = 2; - /// } - /// - /// The following HTTP JSON to RPC mapping is enabled: - /// - /// HTTP | gRPC - /// -----|----- - /// `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - /// "123456" text: "Hi!")` - /// - /// Note that when using `*` in the body mapping, it is not possible to - /// have HTTP parameters, as all fields not bound by the path end in - /// the body. This makes this option more rarely used in practice when - /// defining REST APIs. The common usage of `*` is in custom methods - /// which don't use the URL at all for transferring data. - /// - /// It is possible to define multiple HTTP methods for one RPC by using - /// the `additional_bindings` option. Example: - /// - /// service Messaging { - /// rpc GetMessage(GetMessageRequest) returns (Message) { - /// option (google.api.http) = { - /// get: "/v1/messages/{message_id}" - /// additional_bindings { - /// get: "/v1/users/{user_id}/messages/{message_id}" - /// } - /// }; - /// } - /// } - /// message GetMessageRequest { - /// string message_id = 1; - /// string user_id = 2; - /// } - /// - /// This enables the following two alternative HTTP JSON to RPC mappings: - /// - /// HTTP | gRPC - /// -----|----- - /// `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - /// `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - /// "123456")` - /// - /// ## Rules for HTTP mapping - /// - /// 1. Leaf request fields (recursive expansion nested messages in the request - /// message) are classified into three categories: - /// - Fields referred by the path template. They are passed via the URL path. - /// - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They - /// are passed via the HTTP - /// request body. - /// - All other fields are passed via the URL query parameters, and the - /// parameter name is the field path in the request message. A repeated - /// field can be represented as multiple query parameters under the same - /// name. - /// 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL - /// query parameter, all fields - /// are passed via URL path and HTTP request body. - /// 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP - /// request body, all - /// fields are passed via URL path and URL query parameters. - /// - /// ### Path template syntax - /// - /// Template = "/" Segments [ Verb ] ; - /// Segments = Segment { "/" Segment } ; - /// Segment = "*" | "**" | LITERAL | Variable ; - /// Variable = "{" FieldPath [ "=" Segments ] "}" ; - /// FieldPath = IDENT { "." IDENT } ; - /// Verb = ":" LITERAL ; - /// - /// The syntax `*` matches a single URL path segment. The syntax `**` matches - /// zero or more URL path segments, which must be the last part of the URL path - /// except the `Verb`. - /// - /// The syntax `Variable` matches part of the URL path as specified by its - /// template. A variable template must not contain other variables. If a variable - /// matches a single path segment, its template may be omitted, e.g. `{var}` - /// is equivalent to `{var=*}`. - /// - /// The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - /// contains any reserved character, such characters should be percent-encoded - /// before the matching. - /// - /// If a variable contains exactly one path segment, such as `"{var}"` or - /// `"{var=*}"`, when such a variable is expanded into a URL path on the client - /// side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - /// server side does the reverse decoding. Such variables show up in the - /// [Discovery - /// Document](https://developers.google.com/discovery/v1/reference/apis) as - /// `{var}`. - /// - /// If a variable contains multiple path segments, such as `"{var=foo/*}"` - /// or `"{var=**}"`, when such a variable is expanded into a URL path on the - /// client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - /// The server side does the reverse decoding, except "%2F" and "%2f" are left - /// unchanged. Such variables show up in the - /// [Discovery - /// Document](https://developers.google.com/discovery/v1/reference/apis) as - /// `{+var}`. - /// - /// ## Using gRPC API Service Configuration - /// - /// gRPC API Service Configuration (service config) is a configuration language - /// for configuring a gRPC service to become a user-facing product. The - /// service config is simply the YAML representation of the `google.api.Service` - /// proto message. - /// - /// As an alternative to annotating your proto file, you can configure gRPC - /// transcoding in your service config YAML files. You do this by specifying a - /// `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - /// effect as the proto annotation. This can be particularly useful if you - /// have a proto that is reused in multiple services. Note that any transcoding - /// specified in the service config will override any matching transcoding - /// configuration in the proto. - /// - /// Example: - /// - /// http: - /// rules: - /// # Selects a gRPC method and applies HttpRule to it. - /// - selector: example.v1.Messaging.GetMessage - /// get: /v1/messages/{message_id}/{sub.subfield} - /// - /// ## Special notes - /// - /// When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - /// proto to JSON conversion must follow the [proto3 - /// specification](https://developers.google.com/protocol-buffers/docs/proto3#json). - /// - /// While the single segment variable follows the semantics of - /// [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - /// Expansion, the multi segment variable **does not** follow RFC 6570 Section - /// 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - /// does not expand special characters like `?` and `#`, which would lead - /// to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - /// for multi segment variables. - /// - /// The path variables **must not** refer to any repeated or mapped field, - /// because client libraries are not capable of handling such variable expansion. - /// - /// The path variables **must not** capture the leading "/" character. The reason - /// is that the most common use case "{var}" does not capture the leading "/" - /// character. For consistency, all path variables must share the same behavior. - /// - /// Repeated message fields must not be mapped to URL query parameters, because - /// no client library can support such complicated mapping. - /// - /// If an API needs to use a JSON array for request or response body, it can map - /// the request or response body to a repeated field. However, some gRPC - /// Transcoding implementations may not support this feature. - /// - public sealed partial class HttpRule : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HttpRule()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Api.HttpReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HttpRule() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HttpRule(HttpRule other) : this() { - selector_ = other.selector_; - body_ = other.body_; - responseBody_ = other.responseBody_; - additionalBindings_ = other.additionalBindings_.Clone(); - switch (other.PatternCase) { - case PatternOneofCase.Get: - Get = other.Get; - break; - case PatternOneofCase.Put: - Put = other.Put; - break; - case PatternOneofCase.Post: - Post = other.Post; - break; - case PatternOneofCase.Delete: - Delete = other.Delete; - break; - case PatternOneofCase.Patch: - Patch = other.Patch; - break; - case PatternOneofCase.Custom: - Custom = other.Custom.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HttpRule Clone() { - return new HttpRule(this); - } - - /// Field number for the "selector" field. - public const int SelectorFieldNumber = 1; - private string selector_ = ""; - /// - /// Selects a method to which this rule applies. - /// - /// Refer to [selector][google.api.DocumentationRule.selector] for syntax - /// details. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Selector { - get { return selector_; } - set { - selector_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "get" field. - public const int GetFieldNumber = 2; - /// - /// Maps to HTTP GET. Used for listing and getting information about - /// resources. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Get { - get { return patternCase_ == PatternOneofCase.Get ? (string) pattern_ : ""; } - set { - pattern_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - patternCase_ = PatternOneofCase.Get; - } - } - - /// Field number for the "put" field. - public const int PutFieldNumber = 3; - /// - /// Maps to HTTP PUT. Used for replacing a resource. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Put { - get { return patternCase_ == PatternOneofCase.Put ? (string) pattern_ : ""; } - set { - pattern_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - patternCase_ = PatternOneofCase.Put; - } - } - - /// Field number for the "post" field. - public const int PostFieldNumber = 4; - /// - /// Maps to HTTP POST. Used for creating a resource or performing an action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Post { - get { return patternCase_ == PatternOneofCase.Post ? (string) pattern_ : ""; } - set { - pattern_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - patternCase_ = PatternOneofCase.Post; - } - } - - /// Field number for the "delete" field. - public const int DeleteFieldNumber = 5; - /// - /// Maps to HTTP DELETE. Used for deleting a resource. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Delete { - get { return patternCase_ == PatternOneofCase.Delete ? (string) pattern_ : ""; } - set { - pattern_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - patternCase_ = PatternOneofCase.Delete; - } - } - - /// Field number for the "patch" field. - public const int PatchFieldNumber = 6; - /// - /// Maps to HTTP PATCH. Used for updating a resource. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Patch { - get { return patternCase_ == PatternOneofCase.Patch ? (string) pattern_ : ""; } - set { - pattern_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - patternCase_ = PatternOneofCase.Patch; - } - } - - /// Field number for the "custom" field. - public const int CustomFieldNumber = 8; - /// - /// The custom pattern is used for specifying an HTTP method that is not - /// included in the `pattern` field, such as HEAD, or "*" to leave the - /// HTTP method unspecified for this rule. The wild-card rule is useful - /// for services that provide content to Web (HTML) clients. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Api.CustomHttpPattern Custom { - get { return patternCase_ == PatternOneofCase.Custom ? (global::Google.Api.CustomHttpPattern) pattern_ : null; } - set { - pattern_ = value; - patternCase_ = value == null ? PatternOneofCase.None : PatternOneofCase.Custom; - } - } - - /// Field number for the "body" field. - public const int BodyFieldNumber = 7; - private string body_ = ""; - /// - /// The name of the request field whose value is mapped to the HTTP request - /// body, or `*` for mapping all request fields not captured by the path - /// pattern to the HTTP body, or omitted for not having any HTTP request body. - /// - /// NOTE: the referred field must be present at the top-level of the request - /// message type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Body { - get { return body_; } - set { - body_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "response_body" field. - public const int ResponseBodyFieldNumber = 12; - private string responseBody_ = ""; - /// - /// Optional. The name of the response field whose value is mapped to the HTTP - /// response body. When omitted, the entire response message will be used - /// as the HTTP response body. - /// - /// NOTE: The referred field must be present at the top-level of the response - /// message type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResponseBody { - get { return responseBody_; } - set { - responseBody_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "additional_bindings" field. - public const int AdditionalBindingsFieldNumber = 11; - private static readonly pb::FieldCodec _repeated_additionalBindings_codec - = pb::FieldCodec.ForMessage(90, global::Google.Api.HttpRule.Parser); - private readonly pbc::RepeatedField additionalBindings_ = new pbc::RepeatedField(); - /// - /// Additional HTTP bindings for the selector. Nested bindings must - /// not contain an `additional_bindings` field themselves (that is, - /// the nesting may only be one level deep). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AdditionalBindings { - get { return additionalBindings_; } - } - - private object pattern_; - /// Enum of possible cases for the "pattern" oneof. - public enum PatternOneofCase { - None = 0, - Get = 2, - Put = 3, - Post = 4, - Delete = 5, - Patch = 6, - Custom = 8, - } - private PatternOneofCase patternCase_ = PatternOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PatternOneofCase PatternCase { - get { return patternCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPattern() { - patternCase_ = PatternOneofCase.None; - pattern_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HttpRule); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HttpRule other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Selector != other.Selector) return false; - if (Get != other.Get) return false; - if (Put != other.Put) return false; - if (Post != other.Post) return false; - if (Delete != other.Delete) return false; - if (Patch != other.Patch) return false; - if (!object.Equals(Custom, other.Custom)) return false; - if (Body != other.Body) return false; - if (ResponseBody != other.ResponseBody) return false; - if(!additionalBindings_.Equals(other.additionalBindings_)) return false; - if (PatternCase != other.PatternCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Selector.Length != 0) hash ^= Selector.GetHashCode(); - if (patternCase_ == PatternOneofCase.Get) hash ^= Get.GetHashCode(); - if (patternCase_ == PatternOneofCase.Put) hash ^= Put.GetHashCode(); - if (patternCase_ == PatternOneofCase.Post) hash ^= Post.GetHashCode(); - if (patternCase_ == PatternOneofCase.Delete) hash ^= Delete.GetHashCode(); - if (patternCase_ == PatternOneofCase.Patch) hash ^= Patch.GetHashCode(); - if (patternCase_ == PatternOneofCase.Custom) hash ^= Custom.GetHashCode(); - if (Body.Length != 0) hash ^= Body.GetHashCode(); - if (ResponseBody.Length != 0) hash ^= ResponseBody.GetHashCode(); - hash ^= additionalBindings_.GetHashCode(); - hash ^= (int) patternCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Selector.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Selector); - } - if (patternCase_ == PatternOneofCase.Get) { - output.WriteRawTag(18); - output.WriteString(Get); - } - if (patternCase_ == PatternOneofCase.Put) { - output.WriteRawTag(26); - output.WriteString(Put); - } - if (patternCase_ == PatternOneofCase.Post) { - output.WriteRawTag(34); - output.WriteString(Post); - } - if (patternCase_ == PatternOneofCase.Delete) { - output.WriteRawTag(42); - output.WriteString(Delete); - } - if (patternCase_ == PatternOneofCase.Patch) { - output.WriteRawTag(50); - output.WriteString(Patch); - } - if (Body.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Body); - } - if (patternCase_ == PatternOneofCase.Custom) { - output.WriteRawTag(66); - output.WriteMessage(Custom); - } - additionalBindings_.WriteTo(output, _repeated_additionalBindings_codec); - if (ResponseBody.Length != 0) { - output.WriteRawTag(98); - output.WriteString(ResponseBody); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Selector.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Selector); - } - if (patternCase_ == PatternOneofCase.Get) { - output.WriteRawTag(18); - output.WriteString(Get); - } - if (patternCase_ == PatternOneofCase.Put) { - output.WriteRawTag(26); - output.WriteString(Put); - } - if (patternCase_ == PatternOneofCase.Post) { - output.WriteRawTag(34); - output.WriteString(Post); - } - if (patternCase_ == PatternOneofCase.Delete) { - output.WriteRawTag(42); - output.WriteString(Delete); - } - if (patternCase_ == PatternOneofCase.Patch) { - output.WriteRawTag(50); - output.WriteString(Patch); - } - if (Body.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Body); - } - if (patternCase_ == PatternOneofCase.Custom) { - output.WriteRawTag(66); - output.WriteMessage(Custom); - } - additionalBindings_.WriteTo(ref output, _repeated_additionalBindings_codec); - if (ResponseBody.Length != 0) { - output.WriteRawTag(98); - output.WriteString(ResponseBody); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Selector.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Selector); - } - if (patternCase_ == PatternOneofCase.Get) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Get); - } - if (patternCase_ == PatternOneofCase.Put) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Put); - } - if (patternCase_ == PatternOneofCase.Post) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Post); - } - if (patternCase_ == PatternOneofCase.Delete) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Delete); - } - if (patternCase_ == PatternOneofCase.Patch) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Patch); - } - if (patternCase_ == PatternOneofCase.Custom) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Custom); - } - if (Body.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Body); - } - if (ResponseBody.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResponseBody); - } - size += additionalBindings_.CalculateSize(_repeated_additionalBindings_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HttpRule other) { - if (other == null) { - return; - } - if (other.Selector.Length != 0) { - Selector = other.Selector; - } - if (other.Body.Length != 0) { - Body = other.Body; - } - if (other.ResponseBody.Length != 0) { - ResponseBody = other.ResponseBody; - } - additionalBindings_.Add(other.additionalBindings_); - switch (other.PatternCase) { - case PatternOneofCase.Get: - Get = other.Get; - break; - case PatternOneofCase.Put: - Put = other.Put; - break; - case PatternOneofCase.Post: - Post = other.Post; - break; - case PatternOneofCase.Delete: - Delete = other.Delete; - break; - case PatternOneofCase.Patch: - Patch = other.Patch; - break; - case PatternOneofCase.Custom: - if (Custom == null) { - Custom = new global::Google.Api.CustomHttpPattern(); - } - Custom.MergeFrom(other.Custom); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Selector = input.ReadString(); - break; - } - case 18: { - Get = input.ReadString(); - break; - } - case 26: { - Put = input.ReadString(); - break; - } - case 34: { - Post = input.ReadString(); - break; - } - case 42: { - Delete = input.ReadString(); - break; - } - case 50: { - Patch = input.ReadString(); - break; - } - case 58: { - Body = input.ReadString(); - break; - } - case 66: { - global::Google.Api.CustomHttpPattern subBuilder = new global::Google.Api.CustomHttpPattern(); - if (patternCase_ == PatternOneofCase.Custom) { - subBuilder.MergeFrom(Custom); - } - input.ReadMessage(subBuilder); - Custom = subBuilder; - break; - } - case 90: { - additionalBindings_.AddEntriesFrom(input, _repeated_additionalBindings_codec); - break; - } - case 98: { - ResponseBody = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Selector = input.ReadString(); - break; - } - case 18: { - Get = input.ReadString(); - break; - } - case 26: { - Put = input.ReadString(); - break; - } - case 34: { - Post = input.ReadString(); - break; - } - case 42: { - Delete = input.ReadString(); - break; - } - case 50: { - Patch = input.ReadString(); - break; - } - case 58: { - Body = input.ReadString(); - break; - } - case 66: { - global::Google.Api.CustomHttpPattern subBuilder = new global::Google.Api.CustomHttpPattern(); - if (patternCase_ == PatternOneofCase.Custom) { - subBuilder.MergeFrom(Custom); - } - input.ReadMessage(subBuilder); - Custom = subBuilder; - break; - } - case 90: { - additionalBindings_.AddEntriesFrom(ref input, _repeated_additionalBindings_codec); - break; - } - case 98: { - ResponseBody = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A custom pattern is used for defining custom HTTP verb. - /// - public sealed partial class CustomHttpPattern : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomHttpPattern()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Api.HttpReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomHttpPattern() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomHttpPattern(CustomHttpPattern other) : this() { - kind_ = other.kind_; - path_ = other.path_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomHttpPattern Clone() { - return new CustomHttpPattern(this); - } - - /// Field number for the "kind" field. - public const int KindFieldNumber = 1; - private string kind_ = ""; - /// - /// The name of this custom HTTP verb. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Kind { - get { return kind_; } - set { - kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "path" field. - public const int PathFieldNumber = 2; - private string path_ = ""; - /// - /// The path matched by this custom verb. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Path { - get { return path_; } - set { - path_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomHttpPattern); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomHttpPattern other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Kind != other.Kind) return false; - if (Path != other.Path) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Kind.Length != 0) hash ^= Kind.GetHashCode(); - if (Path.Length != 0) hash ^= Path.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Kind.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Kind); - } - if (Path.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Path); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Kind.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Kind); - } - if (Path.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Path); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Kind.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind); - } - if (Path.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomHttpPattern other) { - if (other == null) { - return; - } - if (other.Kind.Length != 0) { - Kind = other.Kind; - } - if (other.Path.Length != 0) { - Path = other.Path; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Kind = input.ReadString(); - break; - } - case 18: { - Path = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Kind = input.ReadString(); - break; - } - case 18: { - Path = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/api/csharp/Chirpstack/gw/Gw.cs b/api/csharp/Chirpstack/gw/Gw.cs deleted file mode 100644 index 62e23b74..00000000 --- a/api/csharp/Chirpstack/gw/Gw.cs +++ /dev/null @@ -1,12461 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: gw/gw.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Chirpstack.Gateway { - - /// Holder for reflection information generated from gw/gw.proto - public static partial class GwReflection { - - #region Descriptor - /// File descriptor for gw/gw.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GwReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cgtndy9ndy5wcm90bxICZ3caE2NvbW1vbi9jb21tb24ucHJvdG8aH2dvb2ds", - "ZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8aHmdvb2dsZS9wcm90b2J1Zi9k", - "dXJhdGlvbi5wcm90bxocZ29vZ2xlL3Byb3RvYnVmL3N0cnVjdC5wcm90byKV", - "AQoKTW9kdWxhdGlvbhImCgRsb3JhGAMgASgLMhYuZ3cuTG9yYU1vZHVsYXRp", - "b25JbmZvSAASJAoDZnNrGAQgASgLMhUuZ3cuRnNrTW9kdWxhdGlvbkluZm9I", - "ABIrCgdscl9maHNzGAUgASgLMhguZ3cuTHJGaHNzTW9kdWxhdGlvbkluZm9I", - "AEIMCgpwYXJhbWV0ZXJzIo0CChJVcGxpbmtUeEluZm9MZWdhY3kSEQoJZnJl", - "cXVlbmN5GAEgASgNEiYKCm1vZHVsYXRpb24YAiABKA4yEi5jb21tb24uTW9k", - "dWxhdGlvbhI2ChRsb3JhX21vZHVsYXRpb25faW5mbxgDIAEoCzIWLmd3Lkxv", - "cmFNb2R1bGF0aW9uSW5mb0gAEjQKE2Zza19tb2R1bGF0aW9uX2luZm8YBCAB", - "KAsyFS5ndy5Gc2tNb2R1bGF0aW9uSW5mb0gAEjsKF2xyX2Zoc3NfbW9kdWxh", - "dGlvbl9pbmZvGAUgASgLMhguZ3cuTHJGaHNzTW9kdWxhdGlvbkluZm9IAEIR", - "Cg9tb2R1bGF0aW9uX2luZm8iRQoMVXBsaW5rVHhJbmZvEhEKCWZyZXF1ZW5j", - "eRgBIAEoDRIiCgptb2R1bGF0aW9uGAIgASgLMg4uZ3cuTW9kdWxhdGlvbiK+", - "AQoSTG9yYU1vZHVsYXRpb25JbmZvEhEKCWJhbmR3aWR0aBgBIAEoDRIYChBz", - "cHJlYWRpbmdfZmFjdG9yGAIgASgNEhgKEGNvZGVfcmF0ZV9sZWdhY3kYAyAB", - "KAkSHwoJY29kZV9yYXRlGAUgASgOMgwuZ3cuQ29kZVJhdGUSHgoWcG9sYXJp", - "emF0aW9uX2ludmVyc2lvbhgEIAEoCBIQCghwcmVhbWJsZRgGIAEoDRIOCgZu", - "b19jcmMYByABKAgiQgoRRnNrTW9kdWxhdGlvbkluZm8SGwoTZnJlcXVlbmN5", - "X2RldmlhdGlvbhgBIAEoDRIQCghkYXRhcmF0ZRgCIAEoDSKGAQoUTHJGaHNz", - "TW9kdWxhdGlvbkluZm8SHwoXb3BlcmF0aW5nX2NoYW5uZWxfd2lkdGgYASAB", - "KA0SGAoQY29kZV9yYXRlX2xlZ2FjeRgCIAEoCRIfCgljb2RlX3JhdGUYBCAB", - "KA4yDC5ndy5Db2RlUmF0ZRISCgpncmlkX3N0ZXBzGAMgASgNIlYKFkVuY3J5", - "cHRlZEZpbmVUaW1lc3RhbXASFQoNYWVzX2tleV9pbmRleBgBIAEoDRIUCgxl", - "bmNyeXB0ZWRfbnMYAiABKAwSDwoHZnBnYV9pZBgDIAEoDCI+ChJQbGFpbkZp", - "bmVUaW1lc3RhbXASKAoEdGltZRgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", - "aW1lc3RhbXAikAcKDEdhdGV3YXlTdGF0cxIZChFnYXRld2F5X2lkX2xlZ2Fj", - "eRgBIAEoDBISCgpnYXRld2F5X2lkGBEgASgJEigKBHRpbWUYAiABKAsyGi5n", - "b29nbGUucHJvdG9idWYuVGltZXN0YW1wEiIKCGxvY2F0aW9uGAMgASgLMhAu", - "Y29tbW9uLkxvY2F0aW9uEhYKDmNvbmZpZ192ZXJzaW9uGAQgASgJEhsKE3J4", - "X3BhY2tldHNfcmVjZWl2ZWQYBSABKA0SHgoWcnhfcGFja2V0c19yZWNlaXZl", - "ZF9vaxgGIAEoDRIbChN0eF9wYWNrZXRzX3JlY2VpdmVkGAcgASgNEhoKEnR4", - "X3BhY2tldHNfZW1pdHRlZBgIIAEoDRIwCghtZXRhZGF0YRgKIAMoCzIeLmd3", - "LkdhdGV3YXlTdGF0cy5NZXRhZGF0YUVudHJ5Ek0KGHR4X3BhY2tldHNfcGVy", - "X2ZyZXF1ZW5jeRgMIAMoCzIrLmd3LkdhdGV3YXlTdGF0cy5UeFBhY2tldHNQ", - "ZXJGcmVxdWVuY3lFbnRyeRJNChhyeF9wYWNrZXRzX3Blcl9mcmVxdWVuY3kY", - "DSADKAsyKy5ndy5HYXRld2F5U3RhdHMuUnhQYWNrZXRzUGVyRnJlcXVlbmN5", - "RW50cnkSOQoZdHhfcGFja2V0c19wZXJfbW9kdWxhdGlvbhgOIAMoCzIWLmd3", - "LlBlck1vZHVsYXRpb25Db3VudBI5ChlyeF9wYWNrZXRzX3Blcl9tb2R1bGF0", - "aW9uGA8gAygLMhYuZ3cuUGVyTW9kdWxhdGlvbkNvdW50EkcKFXR4X3BhY2tl", - "dHNfcGVyX3N0YXR1cxgQIAMoCzIoLmd3LkdhdGV3YXlTdGF0cy5UeFBhY2tl", - "dHNQZXJTdGF0dXNFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEo", - "CRINCgV2YWx1ZRgCIAEoCToCOAEaPAoaVHhQYWNrZXRzUGVyRnJlcXVlbmN5", - "RW50cnkSCwoDa2V5GAEgASgNEg0KBXZhbHVlGAIgASgNOgI4ARo8ChpSeFBh", - "Y2tldHNQZXJGcmVxdWVuY3lFbnRyeRILCgNrZXkYASABKA0SDQoFdmFsdWUY", - "AiABKA06AjgBGjkKF1R4UGFja2V0c1BlclN0YXR1c0VudHJ5EgsKA2tleRgB", - "IAEoCRINCgV2YWx1ZRgCIAEoDToCOAEiRwoSUGVyTW9kdWxhdGlvbkNvdW50", - "EiIKCm1vZHVsYXRpb24YASABKAsyDi5ndy5Nb2R1bGF0aW9uEg0KBWNvdW50", - "GAIgASgNIoAFChJVcGxpbmtSeEluZm9MZWdhY3kSEgoKZ2F0ZXdheV9pZBgB", - "IAEoDBIoCgR0aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt", - "cBI3ChR0aW1lX3NpbmNlX2dwc19lcG9jaBgDIAEoCzIZLmdvb2dsZS5wcm90", - "b2J1Zi5EdXJhdGlvbhIMCgRyc3NpGAUgASgFEhAKCGxvcmFfc25yGAYgASgB", - "Eg8KB2NoYW5uZWwYByABKA0SEAoIcmZfY2hhaW4YCCABKA0SDQoFYm9hcmQY", - "CSABKA0SDwoHYW50ZW5uYRgKIAEoDRIiCghsb2NhdGlvbhgLIAEoCzIQLmNv", - "bW1vbi5Mb2NhdGlvbhIyChNmaW5lX3RpbWVzdGFtcF90eXBlGAwgASgOMhUu", - "Z3cuRmluZVRpbWVzdGFtcFR5cGUSPgoYZW5jcnlwdGVkX2ZpbmVfdGltZXN0", - "YW1wGA0gASgLMhouZ3cuRW5jcnlwdGVkRmluZVRpbWVzdGFtcEgAEjYKFHBs", - "YWluX2ZpbmVfdGltZXN0YW1wGA4gASgLMhYuZ3cuUGxhaW5GaW5lVGltZXN0", - "YW1wSAASDwoHY29udGV4dBgPIAEoDBIRCgl1cGxpbmtfaWQYECABKAwSIQoK", - "Y3JjX3N0YXR1cxgRIAEoDjINLmd3LkNSQ1N0YXR1cxI2CghtZXRhZGF0YRgS", - "IAMoCzIkLmd3LlVwbGlua1J4SW5mb0xlZ2FjeS5NZXRhZGF0YUVudHJ5Gi8K", - "DU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4", - "AUIQCg5maW5lX3RpbWVzdGFtcCKfBAoMVXBsaW5rUnhJbmZvEhIKCmdhdGV3", - "YXlfaWQYASABKAkSEQoJdXBsaW5rX2lkGAIgASgNEisKB2d3X3RpbWUYAyAB", - "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEisKB25zX3RpbWUYESAB", - "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjcKFHRpbWVfc2luY2Vf", - "Z3BzX2Vwb2NoGAQgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEjwK", - "GWZpbmVfdGltZV9zaW5jZV9ncHNfZXBvY2gYBSABKAsyGS5nb29nbGUucHJv", - "dG9idWYuRHVyYXRpb24SDAoEcnNzaRgGIAEoBRILCgNzbnIYByABKAISDwoH", - "Y2hhbm5lbBgIIAEoDRIQCghyZl9jaGFpbhgJIAEoDRINCgVib2FyZBgKIAEo", - "DRIPCgdhbnRlbm5hGAsgASgNEiIKCGxvY2F0aW9uGAwgASgLMhAuY29tbW9u", - "LkxvY2F0aW9uEg8KB2NvbnRleHQYDSABKAwSMAoIbWV0YWRhdGEYDyADKAsy", - "Hi5ndy5VcGxpbmtSeEluZm8uTWV0YWRhdGFFbnRyeRIhCgpjcmNfc3RhdHVz", - "GBAgASgOMg0uZ3cuQ1JDU3RhdHVzGi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5", - "GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASKCBAoURG93bmxpbmtUeEluZm9M", - "ZWdhY3kSEgoKZ2F0ZXdheV9pZBgBIAEoDBIRCglmcmVxdWVuY3kYBSABKA0S", - "DQoFcG93ZXIYBiABKAUSJgoKbW9kdWxhdGlvbhgHIAEoDjISLmNvbW1vbi5N", - "b2R1bGF0aW9uEjYKFGxvcmFfbW9kdWxhdGlvbl9pbmZvGAggASgLMhYuZ3cu", - "TG9yYU1vZHVsYXRpb25JbmZvSAASNAoTZnNrX21vZHVsYXRpb25faW5mbxgJ", - "IAEoCzIVLmd3LkZza01vZHVsYXRpb25JbmZvSAASDQoFYm9hcmQYCiABKA0S", - "DwoHYW50ZW5uYRgLIAEoDRIiCgZ0aW1pbmcYDCABKA4yEi5ndy5Eb3dubGlu", - "a1RpbWluZxI8ChdpbW1lZGlhdGVseV90aW1pbmdfaW5mbxgNIAEoCzIZLmd3", - "LkltbWVkaWF0ZWx5VGltaW5nSW5mb0gBEjAKEWRlbGF5X3RpbWluZ19pbmZv", - "GA4gASgLMhMuZ3cuRGVsYXlUaW1pbmdJbmZvSAESNwoVZ3BzX2Vwb2NoX3Rp", - "bWluZ19pbmZvGA8gASgLMhYuZ3cuR1BTRXBvY2hUaW1pbmdJbmZvSAESDwoH", - "Y29udGV4dBgQIAEoDEIRCg9tb2R1bGF0aW9uX2luZm9CDQoLdGltaW5nX2lu", - "Zm8iowEKDkRvd25saW5rVHhJbmZvEhEKCWZyZXF1ZW5jeRgBIAEoDRINCgVw", - "b3dlchgCIAEoBRIiCgptb2R1bGF0aW9uGAMgASgLMg4uZ3cuTW9kdWxhdGlv", - "bhINCgVib2FyZBgEIAEoDRIPCgdhbnRlbm5hGAUgASgNEhoKBnRpbWluZxgG", - "IAEoCzIKLmd3LlRpbWluZxIPCgdjb250ZXh0GAcgASgMIpsBCgZUaW1pbmcS", - "MAoLaW1tZWRpYXRlbHkYASABKAsyGS5ndy5JbW1lZGlhdGVseVRpbWluZ0lu", - "Zm9IABIkCgVkZWxheRgCIAEoCzITLmd3LkRlbGF5VGltaW5nSW5mb0gAEisK", - "CWdwc19lcG9jaBgDIAEoCzIWLmd3LkdQU0Vwb2NoVGltaW5nSW5mb0gAQgwK", - "CnBhcmFtZXRlcnMiFwoVSW1tZWRpYXRlbHlUaW1pbmdJbmZvIjsKD0RlbGF5", - "VGltaW5nSW5mbxIoCgVkZWxheRgBIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5E", - "dXJhdGlvbiJNChJHUFNFcG9jaFRpbWluZ0luZm8SNwoUdGltZV9zaW5jZV9n", - "cHNfZXBvY2gYASABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24iyAEK", - "C1VwbGlua0ZyYW1lEhMKC3BoeV9wYXlsb2FkGAEgASgMEi4KDnR4X2luZm9f", - "bGVnYWN5GAIgASgLMhYuZ3cuVXBsaW5rVHhJbmZvTGVnYWN5Ei4KDnJ4X2lu", - "Zm9fbGVnYWN5GAMgASgLMhYuZ3cuVXBsaW5rUnhJbmZvTGVnYWN5EiEKB3R4", - "X2luZm8YBCABKAsyEC5ndy5VcGxpbmtUeEluZm8SIQoHcnhfaW5mbxgFIAEo", - "CzIQLmd3LlVwbGlua1J4SW5mbyJrCg5VcGxpbmtGcmFtZVNldBITCgtwaHlf", - "cGF5bG9hZBgBIAEoDBIhCgd0eF9pbmZvGAIgASgLMhAuZ3cuVXBsaW5rVHhJ", - "bmZvEiEKB3J4X2luZm8YAyADKAsyEC5ndy5VcGxpbmtSeEluZm8ilQEKDURv", - "d25saW5rRnJhbWUSEwoLZG93bmxpbmtfaWQYAyABKA0SGgoSZG93bmxpbmtf", - "aWRfbGVnYWN5GAQgASgMEiQKBWl0ZW1zGAUgAygLMhUuZ3cuRG93bmxpbmtG", - "cmFtZUl0ZW0SGQoRZ2F0ZXdheV9pZF9sZWdhY3kYBiABKAwSEgoKZ2F0ZXdh", - "eV9pZBgHIAEoCSJ/ChFEb3dubGlua0ZyYW1lSXRlbRITCgtwaHlfcGF5bG9h", - "ZBgBIAEoDBIwCg50eF9pbmZvX2xlZ2FjeRgCIAEoCzIYLmd3LkRvd25saW5r", - "VHhJbmZvTGVnYWN5EiMKB3R4X2luZm8YAyABKAsyEi5ndy5Eb3dubGlua1R4", - "SW5mbyKVAQoNRG93bmxpbmtUeEFjaxIZChFnYXRld2F5X2lkX2xlZ2FjeRgB", - "IAEoDBISCgpnYXRld2F5X2lkGAYgASgJEhMKC2Rvd25saW5rX2lkGAIgASgN", - "EhoKEmRvd25saW5rX2lkX2xlZ2FjeRgEIAEoDBIkCgVpdGVtcxgFIAMoCzIV", - "Lmd3LkRvd25saW5rVHhBY2tJdGVtIjQKEURvd25saW5rVHhBY2tJdGVtEh8K", - "BnN0YXR1cxgBIAEoDjIPLmd3LlR4QWNrU3RhdHVzIrUBChRHYXRld2F5Q29u", - "ZmlndXJhdGlvbhIZChFnYXRld2F5X2lkX2xlZ2FjeRgBIAEoDBISCgpnYXRl", - "d2F5X2lkGAUgASgJEg8KB3ZlcnNpb24YAiABKAkSKgoIY2hhbm5lbHMYAyAD", - "KAsyGC5ndy5DaGFubmVsQ29uZmlndXJhdGlvbhIxCg5zdGF0c19pbnRlcnZh", - "bBgEIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbiKHAgoUQ2hhbm5l", - "bENvbmZpZ3VyYXRpb24SEQoJZnJlcXVlbmN5GAEgASgNEi0KEW1vZHVsYXRp", - "b25fbGVnYWN5GAIgASgOMhIuY29tbW9uLk1vZHVsYXRpb24SOgoWbG9yYV9t", - "b2R1bGF0aW9uX2NvbmZpZxgDIAEoCzIYLmd3LkxvcmFNb2R1bGF0aW9uQ29u", - "ZmlnSAASOAoVZnNrX21vZHVsYXRpb25fY29uZmlnGAQgASgLMhcuZ3cuRnNr", - "TW9kdWxhdGlvbkNvbmZpZ0gAEg0KBWJvYXJkGAUgASgNEhMKC2RlbW9kdWxh", - "dG9yGAYgASgNQhMKEW1vZHVsYXRpb25fY29uZmlnIl4KFExvcmFNb2R1bGF0", - "aW9uQ29uZmlnEhgKEGJhbmR3aWR0aF9sZWdhY3kYASABKA0SEQoJYmFuZHdp", - "ZHRoGAMgASgNEhkKEXNwcmVhZGluZ19mYWN0b3JzGAIgAygNIlMKE0Zza01v", - "ZHVsYXRpb25Db25maWcSGAoQYmFuZHdpZHRoX2xlZ2FjeRgBIAEoDRIRCgli", - "YW5kd2lkdGgYAyABKA0SDwoHYml0cmF0ZRgCIAEoDSL0AQoZR2F0ZXdheUNv", - "bW1hbmRFeGVjUmVxdWVzdBIZChFnYXRld2F5X2lkX2xlZ2FjeRgBIAEoDBIS", - "CgpnYXRld2F5X2lkGAYgASgJEg8KB2NvbW1hbmQYAiABKAkSDwoHZXhlY19p", - "ZBgHIAEoDRINCgVzdGRpbhgEIAEoDBJDCgtlbnZpcm9ubWVudBgFIAMoCzIu", - "Lmd3LkdhdGV3YXlDb21tYW5kRXhlY1JlcXVlc3QuRW52aXJvbm1lbnRFbnRy", - "eRoyChBFbnZpcm9ubWVudEVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgC", - "IAEoCToCOAEiiwEKGkdhdGV3YXlDb21tYW5kRXhlY1Jlc3BvbnNlEhkKEWdh", - "dGV3YXlfaWRfbGVnYWN5GAEgASgMEhIKCmdhdGV3YXlfaWQYBiABKAkSDwoH", - "ZXhlY19pZBgHIAEoDRIOCgZzdGRvdXQYAyABKAwSDgoGc3RkZXJyGAQgASgM", - "Eg0KBWVycm9yGAUgASgJIlkKF1Jhd1BhY2tldEZvcndhcmRlckV2ZW50EhkK", - "EWdhdGV3YXlfaWRfbGVnYWN5GAEgASgMEhIKCmdhdGV3YXlfaWQYBCABKAkS", - "DwoHcGF5bG9hZBgDIAEoDCJbChlSYXdQYWNrZXRGb3J3YXJkZXJDb21tYW5k", - "EhkKEWdhdGV3YXlfaWRfbGVnYWN5GAEgASgMEhIKCmdhdGV3YXlfaWQYBCAB", - "KAkSDwoHcGF5bG9hZBgDIAEoDCKAAQoJQ29ublN0YXRlEhkKEWdhdGV3YXlf", - "aWRfbGVnYWN5GAEgASgMEhIKCmdhdGV3YXlfaWQYAyABKAkSIgoFc3RhdGUY", - "AiABKA4yEy5ndy5Db25uU3RhdGUuU3RhdGUiIAoFU3RhdGUSCwoHT0ZGTElO", - "RRAAEgoKBk9OTElORRABKrUBCghDb2RlUmF0ZRIQCgxDUl9VTkRFRklORUQQ", - "ABIKCgZDUl80XzUQARIKCgZDUl80XzYQAhIKCgZDUl80XzcQAxIKCgZDUl80", - "XzgQBBIKCgZDUl8zXzgQBRIKCgZDUl8yXzYQBhIKCgZDUl8xXzQQBxIKCgZD", - "Ul8xXzYQCBIKCgZDUl81XzYQCRINCglDUl9MSV80XzUQChINCglDUl9MSV80", - "XzYQCxINCglDUl9MSV80XzgQDCo7Cg5Eb3dubGlua1RpbWluZxIPCgtJTU1F", - "RElBVEVMWRAAEgkKBURFTEFZEAESDQoJR1BTX0VQT0NIEAIqNwoRRmluZVRp", - "bWVzdGFtcFR5cGUSCAoETk9ORRAAEg0KCUVOQ1JZUFRFRBABEgkKBVBMQUlO", - "EAIqMAoJQ1JDU3RhdHVzEgoKBk5PX0NSQxAAEgsKB0JBRF9DUkMQARIKCgZD", - "UkNfT0sQAiq8AQoLVHhBY2tTdGF0dXMSCwoHSUdOT1JFRBAAEgYKAk9LEAES", - "DAoIVE9PX0xBVEUQAhINCglUT09fRUFSTFkQAxIUChBDT0xMSVNJT05fUEFD", - "S0VUEAQSFAoQQ09MTElTSU9OX0JFQUNPThAFEgsKB1RYX0ZSRVEQBhIMCghU", - "WF9QT1dFUhAHEhAKDEdQU19VTkxPQ0tFRBAIEg4KClFVRVVFX0ZVTEwQCRIS", - "Cg5JTlRFUk5BTF9FUlJPUhAKQmoKFGlvLmNoaXJwc3RhY2suYXBpLmd3QgxH", - "YXRld2F5UHJvdG9QAVotZ2l0aHViLmNvbS9jaGlycHN0YWNrL2NoaXJwc3Rh", - "Y2svYXBpL2dvL3Y0L2d3qgISQ2hpcnBzdGFjay5HYXRld2F5YgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Chirpstack.Common.CommonReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.Gateway.CodeRate), typeof(global::Chirpstack.Gateway.DownlinkTiming), typeof(global::Chirpstack.Gateway.FineTimestampType), typeof(global::Chirpstack.Gateway.CRCStatus), typeof(global::Chirpstack.Gateway.TxAckStatus), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.Modulation), global::Chirpstack.Gateway.Modulation.Parser, new[]{ "Lora", "Fsk", "LrFhss" }, new[]{ "Parameters" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.UplinkTxInfoLegacy), global::Chirpstack.Gateway.UplinkTxInfoLegacy.Parser, new[]{ "Frequency", "Modulation", "LoraModulationInfo", "FskModulationInfo", "LrFhssModulationInfo" }, new[]{ "ModulationInfo" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.UplinkTxInfo), global::Chirpstack.Gateway.UplinkTxInfo.Parser, new[]{ "Frequency", "Modulation" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.LoraModulationInfo), global::Chirpstack.Gateway.LoraModulationInfo.Parser, new[]{ "Bandwidth", "SpreadingFactor", "CodeRateLegacy", "CodeRate", "PolarizationInversion", "Preamble", "NoCrc" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.FskModulationInfo), global::Chirpstack.Gateway.FskModulationInfo.Parser, new[]{ "FrequencyDeviation", "Datarate" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.LrFhssModulationInfo), global::Chirpstack.Gateway.LrFhssModulationInfo.Parser, new[]{ "OperatingChannelWidth", "CodeRateLegacy", "CodeRate", "GridSteps" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.EncryptedFineTimestamp), global::Chirpstack.Gateway.EncryptedFineTimestamp.Parser, new[]{ "AesKeyIndex", "EncryptedNs", "FpgaId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.PlainFineTimestamp), global::Chirpstack.Gateway.PlainFineTimestamp.Parser, new[]{ "Time" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.GatewayStats), global::Chirpstack.Gateway.GatewayStats.Parser, new[]{ "GatewayIdLegacy", "GatewayId", "Time", "Location", "ConfigVersion", "RxPacketsReceived", "RxPacketsReceivedOk", "TxPacketsReceived", "TxPacketsEmitted", "Metadata", "TxPacketsPerFrequency", "RxPacketsPerFrequency", "TxPacketsPerModulation", "RxPacketsPerModulation", "TxPacketsPerStatus" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.PerModulationCount), global::Chirpstack.Gateway.PerModulationCount.Parser, new[]{ "Modulation", "Count" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.UplinkRxInfoLegacy), global::Chirpstack.Gateway.UplinkRxInfoLegacy.Parser, new[]{ "GatewayId", "Time", "TimeSinceGpsEpoch", "Rssi", "LoraSnr", "Channel", "RfChain", "Board", "Antenna", "Location", "FineTimestampType", "EncryptedFineTimestamp", "PlainFineTimestamp", "Context", "UplinkId", "CrcStatus", "Metadata" }, new[]{ "FineTimestamp" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.UplinkRxInfo), global::Chirpstack.Gateway.UplinkRxInfo.Parser, new[]{ "GatewayId", "UplinkId", "GwTime", "NsTime", "TimeSinceGpsEpoch", "FineTimeSinceGpsEpoch", "Rssi", "Snr", "Channel", "RfChain", "Board", "Antenna", "Location", "Context", "Metadata", "CrcStatus" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.DownlinkTxInfoLegacy), global::Chirpstack.Gateway.DownlinkTxInfoLegacy.Parser, new[]{ "GatewayId", "Frequency", "Power", "Modulation", "LoraModulationInfo", "FskModulationInfo", "Board", "Antenna", "Timing", "ImmediatelyTimingInfo", "DelayTimingInfo", "GpsEpochTimingInfo", "Context" }, new[]{ "ModulationInfo", "TimingInfo" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.DownlinkTxInfo), global::Chirpstack.Gateway.DownlinkTxInfo.Parser, new[]{ "Frequency", "Power", "Modulation", "Board", "Antenna", "Timing", "Context" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.Timing), global::Chirpstack.Gateway.Timing.Parser, new[]{ "Immediately", "Delay", "GpsEpoch" }, new[]{ "Parameters" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.ImmediatelyTimingInfo), global::Chirpstack.Gateway.ImmediatelyTimingInfo.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.DelayTimingInfo), global::Chirpstack.Gateway.DelayTimingInfo.Parser, new[]{ "Delay" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.GPSEpochTimingInfo), global::Chirpstack.Gateway.GPSEpochTimingInfo.Parser, new[]{ "TimeSinceGpsEpoch" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.UplinkFrame), global::Chirpstack.Gateway.UplinkFrame.Parser, new[]{ "PhyPayload", "TxInfoLegacy", "RxInfoLegacy", "TxInfo", "RxInfo" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.UplinkFrameSet), global::Chirpstack.Gateway.UplinkFrameSet.Parser, new[]{ "PhyPayload", "TxInfo", "RxInfo" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.DownlinkFrame), global::Chirpstack.Gateway.DownlinkFrame.Parser, new[]{ "DownlinkId", "DownlinkIdLegacy", "Items", "GatewayIdLegacy", "GatewayId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.DownlinkFrameItem), global::Chirpstack.Gateway.DownlinkFrameItem.Parser, new[]{ "PhyPayload", "TxInfoLegacy", "TxInfo" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.DownlinkTxAck), global::Chirpstack.Gateway.DownlinkTxAck.Parser, new[]{ "GatewayIdLegacy", "GatewayId", "DownlinkId", "DownlinkIdLegacy", "Items" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.DownlinkTxAckItem), global::Chirpstack.Gateway.DownlinkTxAckItem.Parser, new[]{ "Status" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.GatewayConfiguration), global::Chirpstack.Gateway.GatewayConfiguration.Parser, new[]{ "GatewayIdLegacy", "GatewayId", "Version", "Channels", "StatsInterval" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.ChannelConfiguration), global::Chirpstack.Gateway.ChannelConfiguration.Parser, new[]{ "Frequency", "ModulationLegacy", "LoraModulationConfig", "FskModulationConfig", "Board", "Demodulator" }, new[]{ "ModulationConfig" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.LoraModulationConfig), global::Chirpstack.Gateway.LoraModulationConfig.Parser, new[]{ "BandwidthLegacy", "Bandwidth", "SpreadingFactors" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.FskModulationConfig), global::Chirpstack.Gateway.FskModulationConfig.Parser, new[]{ "BandwidthLegacy", "Bandwidth", "Bitrate" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.GatewayCommandExecRequest), global::Chirpstack.Gateway.GatewayCommandExecRequest.Parser, new[]{ "GatewayIdLegacy", "GatewayId", "Command", "ExecId", "Stdin", "Environment" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.GatewayCommandExecResponse), global::Chirpstack.Gateway.GatewayCommandExecResponse.Parser, new[]{ "GatewayIdLegacy", "GatewayId", "ExecId", "Stdout", "Stderr", "Error" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.RawPacketForwarderEvent), global::Chirpstack.Gateway.RawPacketForwarderEvent.Parser, new[]{ "GatewayIdLegacy", "GatewayId", "Payload" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.RawPacketForwarderCommand), global::Chirpstack.Gateway.RawPacketForwarderCommand.Parser, new[]{ "GatewayIdLegacy", "GatewayId", "Payload" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Gateway.ConnState), global::Chirpstack.Gateway.ConnState.Parser, new[]{ "GatewayIdLegacy", "GatewayId", "State" }, null, new[]{ typeof(global::Chirpstack.Gateway.ConnState.Types.State) }, null, null) - })); - } - #endregion - - } - #region Enums - public enum CodeRate { - [pbr::OriginalName("CR_UNDEFINED")] CrUndefined = 0, - /// - /// LoRa - /// - [pbr::OriginalName("CR_4_5")] Cr45 = 1, - [pbr::OriginalName("CR_4_6")] Cr46 = 2, - [pbr::OriginalName("CR_4_7")] Cr47 = 3, - [pbr::OriginalName("CR_4_8")] Cr48 = 4, - /// - /// LR-FHSS - /// - [pbr::OriginalName("CR_3_8")] Cr38 = 5, - [pbr::OriginalName("CR_2_6")] Cr26 = 6, - [pbr::OriginalName("CR_1_4")] Cr14 = 7, - [pbr::OriginalName("CR_1_6")] Cr16 = 8, - [pbr::OriginalName("CR_5_6")] Cr56 = 9, - /// - /// LoRa 2.4 gHz - /// - [pbr::OriginalName("CR_LI_4_5")] CrLi45 = 10, - [pbr::OriginalName("CR_LI_4_6")] CrLi46 = 11, - [pbr::OriginalName("CR_LI_4_8")] CrLi48 = 12, - } - - public enum DownlinkTiming { - /// - /// Send the downlink immediately. - /// - [pbr::OriginalName("IMMEDIATELY")] Immediately = 0, - /// - /// Send downlink at the given delay (based on provided context). - /// - [pbr::OriginalName("DELAY")] Delay = 1, - /// - /// Send at given GPS epoch value. - /// - [pbr::OriginalName("GPS_EPOCH")] GpsEpoch = 2, - } - - public enum FineTimestampType { - /// - /// No fine-timestamp available. - /// - [pbr::OriginalName("NONE")] None = 0, - /// - /// Encrypted fine-timestamp. - /// - [pbr::OriginalName("ENCRYPTED")] Encrypted = 1, - /// - /// Plain fine-timestamp. - /// - [pbr::OriginalName("PLAIN")] Plain = 2, - } - - public enum CRCStatus { - /// - /// No CRC. - /// - [pbr::OriginalName("NO_CRC")] NoCrc = 0, - /// - /// Bad CRC. - /// - [pbr::OriginalName("BAD_CRC")] BadCrc = 1, - /// - /// CRC OK. - /// - [pbr::OriginalName("CRC_OK")] CrcOk = 2, - } - - public enum TxAckStatus { - /// - /// Ignored (when a previous item was already emitted). - /// - [pbr::OriginalName("IGNORED")] Ignored = 0, - /// - /// Packet has been programmed for downlink. - /// - [pbr::OriginalName("OK")] Ok = 1, - /// - /// Rejected because it was already too late to program this packet for - /// downlink. - /// - [pbr::OriginalName("TOO_LATE")] TooLate = 2, - /// - /// Rejected because downlink packet timestamp is too much in advance. - /// - [pbr::OriginalName("TOO_EARLY")] TooEarly = 3, - /// - /// Rejected because there was already a packet programmed in requested - /// timeframe. - /// - [pbr::OriginalName("COLLISION_PACKET")] CollisionPacket = 4, - /// - /// Rejected because there was already a beacon planned in requested timeframe. - /// - [pbr::OriginalName("COLLISION_BEACON")] CollisionBeacon = 5, - /// - /// Rejected because requested frequency is not supported by TX RF chain. - /// - [pbr::OriginalName("TX_FREQ")] TxFreq = 6, - /// - /// Rejected because requested power is not supported by gateway. - /// - [pbr::OriginalName("TX_POWER")] TxPower = 7, - /// - /// Rejected because GPS is unlocked, so GPS timestamp cannot be used. - /// - [pbr::OriginalName("GPS_UNLOCKED")] GpsUnlocked = 8, - /// - /// Downlink queue is full. - /// - [pbr::OriginalName("QUEUE_FULL")] QueueFull = 9, - /// - /// Internal error. - /// - [pbr::OriginalName("INTERNAL_ERROR")] InternalError = 10, - } - - #endregion - - #region Messages - public sealed partial class Modulation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Modulation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Modulation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Modulation(Modulation other) : this() { - switch (other.ParametersCase) { - case ParametersOneofCase.Lora: - Lora = other.Lora.Clone(); - break; - case ParametersOneofCase.Fsk: - Fsk = other.Fsk.Clone(); - break; - case ParametersOneofCase.LrFhss: - LrFhss = other.LrFhss.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Modulation Clone() { - return new Modulation(this); - } - - /// Field number for the "lora" field. - public const int LoraFieldNumber = 3; - /// - /// LoRa modulation information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.LoraModulationInfo Lora { - get { return parametersCase_ == ParametersOneofCase.Lora ? (global::Chirpstack.Gateway.LoraModulationInfo) parameters_ : null; } - set { - parameters_ = value; - parametersCase_ = value == null ? ParametersOneofCase.None : ParametersOneofCase.Lora; - } - } - - /// Field number for the "fsk" field. - public const int FskFieldNumber = 4; - /// - /// FSK modulation information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.FskModulationInfo Fsk { - get { return parametersCase_ == ParametersOneofCase.Fsk ? (global::Chirpstack.Gateway.FskModulationInfo) parameters_ : null; } - set { - parameters_ = value; - parametersCase_ = value == null ? ParametersOneofCase.None : ParametersOneofCase.Fsk; - } - } - - /// Field number for the "lr_fhss" field. - public const int LrFhssFieldNumber = 5; - /// - /// LR-FHSS modulation information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.LrFhssModulationInfo LrFhss { - get { return parametersCase_ == ParametersOneofCase.LrFhss ? (global::Chirpstack.Gateway.LrFhssModulationInfo) parameters_ : null; } - set { - parameters_ = value; - parametersCase_ = value == null ? ParametersOneofCase.None : ParametersOneofCase.LrFhss; - } - } - - private object parameters_; - /// Enum of possible cases for the "parameters" oneof. - public enum ParametersOneofCase { - None = 0, - Lora = 3, - Fsk = 4, - LrFhss = 5, - } - private ParametersOneofCase parametersCase_ = ParametersOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ParametersOneofCase ParametersCase { - get { return parametersCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearParameters() { - parametersCase_ = ParametersOneofCase.None; - parameters_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Modulation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Modulation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Lora, other.Lora)) return false; - if (!object.Equals(Fsk, other.Fsk)) return false; - if (!object.Equals(LrFhss, other.LrFhss)) return false; - if (ParametersCase != other.ParametersCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (parametersCase_ == ParametersOneofCase.Lora) hash ^= Lora.GetHashCode(); - if (parametersCase_ == ParametersOneofCase.Fsk) hash ^= Fsk.GetHashCode(); - if (parametersCase_ == ParametersOneofCase.LrFhss) hash ^= LrFhss.GetHashCode(); - hash ^= (int) parametersCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (parametersCase_ == ParametersOneofCase.Lora) { - output.WriteRawTag(26); - output.WriteMessage(Lora); - } - if (parametersCase_ == ParametersOneofCase.Fsk) { - output.WriteRawTag(34); - output.WriteMessage(Fsk); - } - if (parametersCase_ == ParametersOneofCase.LrFhss) { - output.WriteRawTag(42); - output.WriteMessage(LrFhss); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (parametersCase_ == ParametersOneofCase.Lora) { - output.WriteRawTag(26); - output.WriteMessage(Lora); - } - if (parametersCase_ == ParametersOneofCase.Fsk) { - output.WriteRawTag(34); - output.WriteMessage(Fsk); - } - if (parametersCase_ == ParametersOneofCase.LrFhss) { - output.WriteRawTag(42); - output.WriteMessage(LrFhss); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (parametersCase_ == ParametersOneofCase.Lora) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Lora); - } - if (parametersCase_ == ParametersOneofCase.Fsk) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Fsk); - } - if (parametersCase_ == ParametersOneofCase.LrFhss) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LrFhss); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Modulation other) { - if (other == null) { - return; - } - switch (other.ParametersCase) { - case ParametersOneofCase.Lora: - if (Lora == null) { - Lora = new global::Chirpstack.Gateway.LoraModulationInfo(); - } - Lora.MergeFrom(other.Lora); - break; - case ParametersOneofCase.Fsk: - if (Fsk == null) { - Fsk = new global::Chirpstack.Gateway.FskModulationInfo(); - } - Fsk.MergeFrom(other.Fsk); - break; - case ParametersOneofCase.LrFhss: - if (LrFhss == null) { - LrFhss = new global::Chirpstack.Gateway.LrFhssModulationInfo(); - } - LrFhss.MergeFrom(other.LrFhss); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 26: { - global::Chirpstack.Gateway.LoraModulationInfo subBuilder = new global::Chirpstack.Gateway.LoraModulationInfo(); - if (parametersCase_ == ParametersOneofCase.Lora) { - subBuilder.MergeFrom(Lora); - } - input.ReadMessage(subBuilder); - Lora = subBuilder; - break; - } - case 34: { - global::Chirpstack.Gateway.FskModulationInfo subBuilder = new global::Chirpstack.Gateway.FskModulationInfo(); - if (parametersCase_ == ParametersOneofCase.Fsk) { - subBuilder.MergeFrom(Fsk); - } - input.ReadMessage(subBuilder); - Fsk = subBuilder; - break; - } - case 42: { - global::Chirpstack.Gateway.LrFhssModulationInfo subBuilder = new global::Chirpstack.Gateway.LrFhssModulationInfo(); - if (parametersCase_ == ParametersOneofCase.LrFhss) { - subBuilder.MergeFrom(LrFhss); - } - input.ReadMessage(subBuilder); - LrFhss = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 26: { - global::Chirpstack.Gateway.LoraModulationInfo subBuilder = new global::Chirpstack.Gateway.LoraModulationInfo(); - if (parametersCase_ == ParametersOneofCase.Lora) { - subBuilder.MergeFrom(Lora); - } - input.ReadMessage(subBuilder); - Lora = subBuilder; - break; - } - case 34: { - global::Chirpstack.Gateway.FskModulationInfo subBuilder = new global::Chirpstack.Gateway.FskModulationInfo(); - if (parametersCase_ == ParametersOneofCase.Fsk) { - subBuilder.MergeFrom(Fsk); - } - input.ReadMessage(subBuilder); - Fsk = subBuilder; - break; - } - case 42: { - global::Chirpstack.Gateway.LrFhssModulationInfo subBuilder = new global::Chirpstack.Gateway.LrFhssModulationInfo(); - if (parametersCase_ == ParametersOneofCase.LrFhss) { - subBuilder.MergeFrom(LrFhss); - } - input.ReadMessage(subBuilder); - LrFhss = subBuilder; - break; - } - } - } - } - #endif - - } - - public sealed partial class UplinkTxInfoLegacy : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkTxInfoLegacy()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkTxInfoLegacy() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkTxInfoLegacy(UplinkTxInfoLegacy other) : this() { - frequency_ = other.frequency_; - modulation_ = other.modulation_; - switch (other.ModulationInfoCase) { - case ModulationInfoOneofCase.LoraModulationInfo: - LoraModulationInfo = other.LoraModulationInfo.Clone(); - break; - case ModulationInfoOneofCase.FskModulationInfo: - FskModulationInfo = other.FskModulationInfo.Clone(); - break; - case ModulationInfoOneofCase.LrFhssModulationInfo: - LrFhssModulationInfo = other.LrFhssModulationInfo.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkTxInfoLegacy Clone() { - return new UplinkTxInfoLegacy(this); - } - - /// Field number for the "frequency" field. - public const int FrequencyFieldNumber = 1; - private uint frequency_; - /// - /// Frequency (Hz). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Frequency { - get { return frequency_; } - set { - frequency_ = value; - } - } - - /// Field number for the "modulation" field. - public const int ModulationFieldNumber = 2; - private global::Chirpstack.Common.Modulation modulation_ = global::Chirpstack.Common.Modulation.Lora; - /// - /// Modulation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Modulation Modulation { - get { return modulation_; } - set { - modulation_ = value; - } - } - - /// Field number for the "lora_modulation_info" field. - public const int LoraModulationInfoFieldNumber = 3; - /// - /// LoRa modulation information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.LoraModulationInfo LoraModulationInfo { - get { return modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo ? (global::Chirpstack.Gateway.LoraModulationInfo) modulationInfo_ : null; } - set { - modulationInfo_ = value; - modulationInfoCase_ = value == null ? ModulationInfoOneofCase.None : ModulationInfoOneofCase.LoraModulationInfo; - } - } - - /// Field number for the "fsk_modulation_info" field. - public const int FskModulationInfoFieldNumber = 4; - /// - /// FSK modulation information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.FskModulationInfo FskModulationInfo { - get { return modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo ? (global::Chirpstack.Gateway.FskModulationInfo) modulationInfo_ : null; } - set { - modulationInfo_ = value; - modulationInfoCase_ = value == null ? ModulationInfoOneofCase.None : ModulationInfoOneofCase.FskModulationInfo; - } - } - - /// Field number for the "lr_fhss_modulation_info" field. - public const int LrFhssModulationInfoFieldNumber = 5; - /// - /// LR-FHSS modulation information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.LrFhssModulationInfo LrFhssModulationInfo { - get { return modulationInfoCase_ == ModulationInfoOneofCase.LrFhssModulationInfo ? (global::Chirpstack.Gateway.LrFhssModulationInfo) modulationInfo_ : null; } - set { - modulationInfo_ = value; - modulationInfoCase_ = value == null ? ModulationInfoOneofCase.None : ModulationInfoOneofCase.LrFhssModulationInfo; - } - } - - private object modulationInfo_; - /// Enum of possible cases for the "modulation_info" oneof. - public enum ModulationInfoOneofCase { - None = 0, - LoraModulationInfo = 3, - FskModulationInfo = 4, - LrFhssModulationInfo = 5, - } - private ModulationInfoOneofCase modulationInfoCase_ = ModulationInfoOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ModulationInfoOneofCase ModulationInfoCase { - get { return modulationInfoCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearModulationInfo() { - modulationInfoCase_ = ModulationInfoOneofCase.None; - modulationInfo_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UplinkTxInfoLegacy); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UplinkTxInfoLegacy other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Frequency != other.Frequency) return false; - if (Modulation != other.Modulation) return false; - if (!object.Equals(LoraModulationInfo, other.LoraModulationInfo)) return false; - if (!object.Equals(FskModulationInfo, other.FskModulationInfo)) return false; - if (!object.Equals(LrFhssModulationInfo, other.LrFhssModulationInfo)) return false; - if (ModulationInfoCase != other.ModulationInfoCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Frequency != 0) hash ^= Frequency.GetHashCode(); - if (Modulation != global::Chirpstack.Common.Modulation.Lora) hash ^= Modulation.GetHashCode(); - if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) hash ^= LoraModulationInfo.GetHashCode(); - if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) hash ^= FskModulationInfo.GetHashCode(); - if (modulationInfoCase_ == ModulationInfoOneofCase.LrFhssModulationInfo) hash ^= LrFhssModulationInfo.GetHashCode(); - hash ^= (int) modulationInfoCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Frequency != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Frequency); - } - if (Modulation != global::Chirpstack.Common.Modulation.Lora) { - output.WriteRawTag(16); - output.WriteEnum((int) Modulation); - } - if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { - output.WriteRawTag(26); - output.WriteMessage(LoraModulationInfo); - } - if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { - output.WriteRawTag(34); - output.WriteMessage(FskModulationInfo); - } - if (modulationInfoCase_ == ModulationInfoOneofCase.LrFhssModulationInfo) { - output.WriteRawTag(42); - output.WriteMessage(LrFhssModulationInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Frequency != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Frequency); - } - if (Modulation != global::Chirpstack.Common.Modulation.Lora) { - output.WriteRawTag(16); - output.WriteEnum((int) Modulation); - } - if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { - output.WriteRawTag(26); - output.WriteMessage(LoraModulationInfo); - } - if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { - output.WriteRawTag(34); - output.WriteMessage(FskModulationInfo); - } - if (modulationInfoCase_ == ModulationInfoOneofCase.LrFhssModulationInfo) { - output.WriteRawTag(42); - output.WriteMessage(LrFhssModulationInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Frequency != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); - } - if (Modulation != global::Chirpstack.Common.Modulation.Lora) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Modulation); - } - if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LoraModulationInfo); - } - if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(FskModulationInfo); - } - if (modulationInfoCase_ == ModulationInfoOneofCase.LrFhssModulationInfo) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LrFhssModulationInfo); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UplinkTxInfoLegacy other) { - if (other == null) { - return; - } - if (other.Frequency != 0) { - Frequency = other.Frequency; - } - if (other.Modulation != global::Chirpstack.Common.Modulation.Lora) { - Modulation = other.Modulation; - } - switch (other.ModulationInfoCase) { - case ModulationInfoOneofCase.LoraModulationInfo: - if (LoraModulationInfo == null) { - LoraModulationInfo = new global::Chirpstack.Gateway.LoraModulationInfo(); - } - LoraModulationInfo.MergeFrom(other.LoraModulationInfo); - break; - case ModulationInfoOneofCase.FskModulationInfo: - if (FskModulationInfo == null) { - FskModulationInfo = new global::Chirpstack.Gateway.FskModulationInfo(); - } - FskModulationInfo.MergeFrom(other.FskModulationInfo); - break; - case ModulationInfoOneofCase.LrFhssModulationInfo: - if (LrFhssModulationInfo == null) { - LrFhssModulationInfo = new global::Chirpstack.Gateway.LrFhssModulationInfo(); - } - LrFhssModulationInfo.MergeFrom(other.LrFhssModulationInfo); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Frequency = input.ReadUInt32(); - break; - } - case 16: { - Modulation = (global::Chirpstack.Common.Modulation) input.ReadEnum(); - break; - } - case 26: { - global::Chirpstack.Gateway.LoraModulationInfo subBuilder = new global::Chirpstack.Gateway.LoraModulationInfo(); - if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { - subBuilder.MergeFrom(LoraModulationInfo); - } - input.ReadMessage(subBuilder); - LoraModulationInfo = subBuilder; - break; - } - case 34: { - global::Chirpstack.Gateway.FskModulationInfo subBuilder = new global::Chirpstack.Gateway.FskModulationInfo(); - if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { - subBuilder.MergeFrom(FskModulationInfo); - } - input.ReadMessage(subBuilder); - FskModulationInfo = subBuilder; - break; - } - case 42: { - global::Chirpstack.Gateway.LrFhssModulationInfo subBuilder = new global::Chirpstack.Gateway.LrFhssModulationInfo(); - if (modulationInfoCase_ == ModulationInfoOneofCase.LrFhssModulationInfo) { - subBuilder.MergeFrom(LrFhssModulationInfo); - } - input.ReadMessage(subBuilder); - LrFhssModulationInfo = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Frequency = input.ReadUInt32(); - break; - } - case 16: { - Modulation = (global::Chirpstack.Common.Modulation) input.ReadEnum(); - break; - } - case 26: { - global::Chirpstack.Gateway.LoraModulationInfo subBuilder = new global::Chirpstack.Gateway.LoraModulationInfo(); - if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { - subBuilder.MergeFrom(LoraModulationInfo); - } - input.ReadMessage(subBuilder); - LoraModulationInfo = subBuilder; - break; - } - case 34: { - global::Chirpstack.Gateway.FskModulationInfo subBuilder = new global::Chirpstack.Gateway.FskModulationInfo(); - if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { - subBuilder.MergeFrom(FskModulationInfo); - } - input.ReadMessage(subBuilder); - FskModulationInfo = subBuilder; - break; - } - case 42: { - global::Chirpstack.Gateway.LrFhssModulationInfo subBuilder = new global::Chirpstack.Gateway.LrFhssModulationInfo(); - if (modulationInfoCase_ == ModulationInfoOneofCase.LrFhssModulationInfo) { - subBuilder.MergeFrom(LrFhssModulationInfo); - } - input.ReadMessage(subBuilder); - LrFhssModulationInfo = subBuilder; - break; - } - } - } - } - #endif - - } - - public sealed partial class UplinkTxInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkTxInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkTxInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkTxInfo(UplinkTxInfo other) : this() { - frequency_ = other.frequency_; - modulation_ = other.modulation_ != null ? other.modulation_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkTxInfo Clone() { - return new UplinkTxInfo(this); - } - - /// Field number for the "frequency" field. - public const int FrequencyFieldNumber = 1; - private uint frequency_; - /// - /// Frequency (Hz). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Frequency { - get { return frequency_; } - set { - frequency_ = value; - } - } - - /// Field number for the "modulation" field. - public const int ModulationFieldNumber = 2; - private global::Chirpstack.Gateway.Modulation modulation_; - /// - /// Modulation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.Modulation Modulation { - get { return modulation_; } - set { - modulation_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UplinkTxInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UplinkTxInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Frequency != other.Frequency) return false; - if (!object.Equals(Modulation, other.Modulation)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Frequency != 0) hash ^= Frequency.GetHashCode(); - if (modulation_ != null) hash ^= Modulation.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Frequency != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Frequency); - } - if (modulation_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Modulation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Frequency != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Frequency); - } - if (modulation_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Modulation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Frequency != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); - } - if (modulation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Modulation); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UplinkTxInfo other) { - if (other == null) { - return; - } - if (other.Frequency != 0) { - Frequency = other.Frequency; - } - if (other.modulation_ != null) { - if (modulation_ == null) { - Modulation = new global::Chirpstack.Gateway.Modulation(); - } - Modulation.MergeFrom(other.Modulation); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Frequency = input.ReadUInt32(); - break; - } - case 18: { - if (modulation_ == null) { - Modulation = new global::Chirpstack.Gateway.Modulation(); - } - input.ReadMessage(Modulation); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Frequency = input.ReadUInt32(); - break; - } - case 18: { - if (modulation_ == null) { - Modulation = new global::Chirpstack.Gateway.Modulation(); - } - input.ReadMessage(Modulation); - break; - } - } - } - } - #endif - - } - - public sealed partial class LoraModulationInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoraModulationInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoraModulationInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoraModulationInfo(LoraModulationInfo other) : this() { - bandwidth_ = other.bandwidth_; - spreadingFactor_ = other.spreadingFactor_; - codeRateLegacy_ = other.codeRateLegacy_; - codeRate_ = other.codeRate_; - polarizationInversion_ = other.polarizationInversion_; - preamble_ = other.preamble_; - noCrc_ = other.noCrc_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoraModulationInfo Clone() { - return new LoraModulationInfo(this); - } - - /// Field number for the "bandwidth" field. - public const int BandwidthFieldNumber = 1; - private uint bandwidth_; - /// - /// Bandwidth. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Bandwidth { - get { return bandwidth_; } - set { - bandwidth_ = value; - } - } - - /// Field number for the "spreading_factor" field. - public const int SpreadingFactorFieldNumber = 2; - private uint spreadingFactor_; - /// - /// Speading-factor. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint SpreadingFactor { - get { return spreadingFactor_; } - set { - spreadingFactor_ = value; - } - } - - /// Field number for the "code_rate_legacy" field. - public const int CodeRateLegacyFieldNumber = 3; - private string codeRateLegacy_ = ""; - /// - /// Code-rate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CodeRateLegacy { - get { return codeRateLegacy_; } - set { - codeRateLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "code_rate" field. - public const int CodeRateFieldNumber = 5; - private global::Chirpstack.Gateway.CodeRate codeRate_ = global::Chirpstack.Gateway.CodeRate.CrUndefined; - /// - /// Code-rate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.CodeRate CodeRate { - get { return codeRate_; } - set { - codeRate_ = value; - } - } - - /// Field number for the "polarization_inversion" field. - public const int PolarizationInversionFieldNumber = 4; - private bool polarizationInversion_; - /// - /// Polarization inversion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PolarizationInversion { - get { return polarizationInversion_; } - set { - polarizationInversion_ = value; - } - } - - /// Field number for the "preamble" field. - public const int PreambleFieldNumber = 6; - private uint preamble_; - /// - /// Preamble length (for TX). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Preamble { - get { return preamble_; } - set { - preamble_ = value; - } - } - - /// Field number for the "no_crc" field. - public const int NoCrcFieldNumber = 7; - private bool noCrc_; - /// - /// No CRC (for TX). - /// If true, do not send a CRC in the packet. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool NoCrc { - get { return noCrc_; } - set { - noCrc_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LoraModulationInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LoraModulationInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Bandwidth != other.Bandwidth) return false; - if (SpreadingFactor != other.SpreadingFactor) return false; - if (CodeRateLegacy != other.CodeRateLegacy) return false; - if (CodeRate != other.CodeRate) return false; - if (PolarizationInversion != other.PolarizationInversion) return false; - if (Preamble != other.Preamble) return false; - if (NoCrc != other.NoCrc) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Bandwidth != 0) hash ^= Bandwidth.GetHashCode(); - if (SpreadingFactor != 0) hash ^= SpreadingFactor.GetHashCode(); - if (CodeRateLegacy.Length != 0) hash ^= CodeRateLegacy.GetHashCode(); - if (CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) hash ^= CodeRate.GetHashCode(); - if (PolarizationInversion != false) hash ^= PolarizationInversion.GetHashCode(); - if (Preamble != 0) hash ^= Preamble.GetHashCode(); - if (NoCrc != false) hash ^= NoCrc.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Bandwidth != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Bandwidth); - } - if (SpreadingFactor != 0) { - output.WriteRawTag(16); - output.WriteUInt32(SpreadingFactor); - } - if (CodeRateLegacy.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CodeRateLegacy); - } - if (PolarizationInversion != false) { - output.WriteRawTag(32); - output.WriteBool(PolarizationInversion); - } - if (CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) { - output.WriteRawTag(40); - output.WriteEnum((int) CodeRate); - } - if (Preamble != 0) { - output.WriteRawTag(48); - output.WriteUInt32(Preamble); - } - if (NoCrc != false) { - output.WriteRawTag(56); - output.WriteBool(NoCrc); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Bandwidth != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Bandwidth); - } - if (SpreadingFactor != 0) { - output.WriteRawTag(16); - output.WriteUInt32(SpreadingFactor); - } - if (CodeRateLegacy.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CodeRateLegacy); - } - if (PolarizationInversion != false) { - output.WriteRawTag(32); - output.WriteBool(PolarizationInversion); - } - if (CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) { - output.WriteRawTag(40); - output.WriteEnum((int) CodeRate); - } - if (Preamble != 0) { - output.WriteRawTag(48); - output.WriteUInt32(Preamble); - } - if (NoCrc != false) { - output.WriteRawTag(56); - output.WriteBool(NoCrc); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Bandwidth != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Bandwidth); - } - if (SpreadingFactor != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SpreadingFactor); - } - if (CodeRateLegacy.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CodeRateLegacy); - } - if (CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CodeRate); - } - if (PolarizationInversion != false) { - size += 1 + 1; - } - if (Preamble != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Preamble); - } - if (NoCrc != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LoraModulationInfo other) { - if (other == null) { - return; - } - if (other.Bandwidth != 0) { - Bandwidth = other.Bandwidth; - } - if (other.SpreadingFactor != 0) { - SpreadingFactor = other.SpreadingFactor; - } - if (other.CodeRateLegacy.Length != 0) { - CodeRateLegacy = other.CodeRateLegacy; - } - if (other.CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) { - CodeRate = other.CodeRate; - } - if (other.PolarizationInversion != false) { - PolarizationInversion = other.PolarizationInversion; - } - if (other.Preamble != 0) { - Preamble = other.Preamble; - } - if (other.NoCrc != false) { - NoCrc = other.NoCrc; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Bandwidth = input.ReadUInt32(); - break; - } - case 16: { - SpreadingFactor = input.ReadUInt32(); - break; - } - case 26: { - CodeRateLegacy = input.ReadString(); - break; - } - case 32: { - PolarizationInversion = input.ReadBool(); - break; - } - case 40: { - CodeRate = (global::Chirpstack.Gateway.CodeRate) input.ReadEnum(); - break; - } - case 48: { - Preamble = input.ReadUInt32(); - break; - } - case 56: { - NoCrc = 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: { - CodeRateLegacy = input.ReadString(); - break; - } - case 32: { - PolarizationInversion = input.ReadBool(); - break; - } - case 40: { - CodeRate = (global::Chirpstack.Gateway.CodeRate) input.ReadEnum(); - break; - } - case 48: { - Preamble = input.ReadUInt32(); - break; - } - case 56: { - NoCrc = 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[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FskModulationInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FskModulationInfo(FskModulationInfo other) : this() { - frequencyDeviation_ = other.frequencyDeviation_; - datarate_ = other.datarate_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FskModulationInfo Clone() { - return new FskModulationInfo(this); - } - - /// Field number for the "frequency_deviation" field. - public const int FrequencyDeviationFieldNumber = 1; - private uint frequencyDeviation_; - /// - /// Frequency deviation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint FrequencyDeviation { - get { return frequencyDeviation_; } - set { - frequencyDeviation_ = value; - } - } - - /// Field number for the "datarate" field. - public const int DatarateFieldNumber = 2; - private uint datarate_; - /// - /// FSK datarate (bits / sec). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Datarate { - get { return datarate_; } - set { - datarate_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FskModulationInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FskModulationInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (FrequencyDeviation != other.FrequencyDeviation) return false; - if (Datarate != other.Datarate) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (FrequencyDeviation != 0) hash ^= FrequencyDeviation.GetHashCode(); - if (Datarate != 0) hash ^= Datarate.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (FrequencyDeviation != 0) { - output.WriteRawTag(8); - output.WriteUInt32(FrequencyDeviation); - } - if (Datarate != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Datarate); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (FrequencyDeviation != 0) { - output.WriteRawTag(8); - output.WriteUInt32(FrequencyDeviation); - } - if (Datarate != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Datarate); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (FrequencyDeviation != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FrequencyDeviation); - } - if (Datarate != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Datarate); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FskModulationInfo other) { - if (other == null) { - return; - } - if (other.FrequencyDeviation != 0) { - FrequencyDeviation = other.FrequencyDeviation; - } - if (other.Datarate != 0) { - Datarate = other.Datarate; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - FrequencyDeviation = input.ReadUInt32(); - break; - } - case 16: { - Datarate = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - FrequencyDeviation = input.ReadUInt32(); - break; - } - case 16: { - Datarate = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - public sealed partial class LrFhssModulationInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LrFhssModulationInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LrFhssModulationInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LrFhssModulationInfo(LrFhssModulationInfo other) : this() { - operatingChannelWidth_ = other.operatingChannelWidth_; - codeRateLegacy_ = other.codeRateLegacy_; - codeRate_ = other.codeRate_; - gridSteps_ = other.gridSteps_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LrFhssModulationInfo Clone() { - return new LrFhssModulationInfo(this); - } - - /// Field number for the "operating_channel_width" field. - public const int OperatingChannelWidthFieldNumber = 1; - private uint operatingChannelWidth_; - /// - /// Operating channel width (OCW) in Hz. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint OperatingChannelWidth { - get { return operatingChannelWidth_; } - set { - operatingChannelWidth_ = value; - } - } - - /// Field number for the "code_rate_legacy" field. - public const int CodeRateLegacyFieldNumber = 2; - private string codeRateLegacy_ = ""; - /// - /// Code-rate. - /// Deprecated: use code_rate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CodeRateLegacy { - get { return codeRateLegacy_; } - set { - codeRateLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "code_rate" field. - public const int CodeRateFieldNumber = 4; - private global::Chirpstack.Gateway.CodeRate codeRate_ = global::Chirpstack.Gateway.CodeRate.CrUndefined; - /// - /// Code-rate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.CodeRate CodeRate { - get { return codeRate_; } - set { - codeRate_ = value; - } - } - - /// Field number for the "grid_steps" field. - public const int GridStepsFieldNumber = 3; - private uint gridSteps_; - /// - /// Hopping grid number of steps. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint GridSteps { - get { return gridSteps_; } - set { - gridSteps_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LrFhssModulationInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LrFhssModulationInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (OperatingChannelWidth != other.OperatingChannelWidth) return false; - if (CodeRateLegacy != other.CodeRateLegacy) return false; - if (CodeRate != other.CodeRate) return false; - if (GridSteps != other.GridSteps) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (OperatingChannelWidth != 0) hash ^= OperatingChannelWidth.GetHashCode(); - if (CodeRateLegacy.Length != 0) hash ^= CodeRateLegacy.GetHashCode(); - if (CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) hash ^= CodeRate.GetHashCode(); - if (GridSteps != 0) hash ^= GridSteps.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (OperatingChannelWidth != 0) { - output.WriteRawTag(8); - output.WriteUInt32(OperatingChannelWidth); - } - if (CodeRateLegacy.Length != 0) { - output.WriteRawTag(18); - output.WriteString(CodeRateLegacy); - } - if (GridSteps != 0) { - output.WriteRawTag(24); - output.WriteUInt32(GridSteps); - } - if (CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) { - output.WriteRawTag(32); - output.WriteEnum((int) CodeRate); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (OperatingChannelWidth != 0) { - output.WriteRawTag(8); - output.WriteUInt32(OperatingChannelWidth); - } - if (CodeRateLegacy.Length != 0) { - output.WriteRawTag(18); - output.WriteString(CodeRateLegacy); - } - if (GridSteps != 0) { - output.WriteRawTag(24); - output.WriteUInt32(GridSteps); - } - if (CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) { - output.WriteRawTag(32); - output.WriteEnum((int) CodeRate); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (OperatingChannelWidth != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OperatingChannelWidth); - } - if (CodeRateLegacy.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CodeRateLegacy); - } - if (CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CodeRate); - } - if (GridSteps != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GridSteps); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LrFhssModulationInfo other) { - if (other == null) { - return; - } - if (other.OperatingChannelWidth != 0) { - OperatingChannelWidth = other.OperatingChannelWidth; - } - if (other.CodeRateLegacy.Length != 0) { - CodeRateLegacy = other.CodeRateLegacy; - } - if (other.CodeRate != global::Chirpstack.Gateway.CodeRate.CrUndefined) { - CodeRate = other.CodeRate; - } - if (other.GridSteps != 0) { - GridSteps = other.GridSteps; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - OperatingChannelWidth = input.ReadUInt32(); - break; - } - case 18: { - CodeRateLegacy = input.ReadString(); - break; - } - case 24: { - GridSteps = input.ReadUInt32(); - break; - } - case 32: { - CodeRate = (global::Chirpstack.Gateway.CodeRate) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - OperatingChannelWidth = input.ReadUInt32(); - break; - } - case 18: { - CodeRateLegacy = input.ReadString(); - break; - } - case 24: { - GridSteps = input.ReadUInt32(); - break; - } - case 32: { - CodeRate = (global::Chirpstack.Gateway.CodeRate) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - public sealed partial class EncryptedFineTimestamp : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EncryptedFineTimestamp()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EncryptedFineTimestamp() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EncryptedFineTimestamp(EncryptedFineTimestamp other) : this() { - aesKeyIndex_ = other.aesKeyIndex_; - encryptedNs_ = other.encryptedNs_; - fpgaId_ = other.fpgaId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EncryptedFineTimestamp Clone() { - return new EncryptedFineTimestamp(this); - } - - /// Field number for the "aes_key_index" field. - public const int AesKeyIndexFieldNumber = 1; - private uint aesKeyIndex_; - /// - /// AES key index used for encrypting the fine timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint AesKeyIndex { - get { return aesKeyIndex_; } - set { - aesKeyIndex_ = value; - } - } - - /// Field number for the "encrypted_ns" field. - public const int EncryptedNsFieldNumber = 2; - private pb::ByteString encryptedNs_ = pb::ByteString.Empty; - /// - /// Encrypted 'main' fine-timestamp (ns precision part of the timestamp). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString EncryptedNs { - get { return encryptedNs_; } - set { - encryptedNs_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "fpga_id" field. - public const int FpgaIdFieldNumber = 3; - private pb::ByteString fpgaId_ = pb::ByteString.Empty; - /// - /// FPGA ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString FpgaId { - get { return fpgaId_; } - set { - fpgaId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as EncryptedFineTimestamp); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(EncryptedFineTimestamp other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (AesKeyIndex != other.AesKeyIndex) return false; - if (EncryptedNs != other.EncryptedNs) return false; - if (FpgaId != other.FpgaId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (AesKeyIndex != 0) hash ^= AesKeyIndex.GetHashCode(); - if (EncryptedNs.Length != 0) hash ^= EncryptedNs.GetHashCode(); - if (FpgaId.Length != 0) hash ^= FpgaId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (AesKeyIndex != 0) { - output.WriteRawTag(8); - output.WriteUInt32(AesKeyIndex); - } - if (EncryptedNs.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(EncryptedNs); - } - if (FpgaId.Length != 0) { - output.WriteRawTag(26); - output.WriteBytes(FpgaId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (AesKeyIndex != 0) { - output.WriteRawTag(8); - output.WriteUInt32(AesKeyIndex); - } - if (EncryptedNs.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(EncryptedNs); - } - if (FpgaId.Length != 0) { - output.WriteRawTag(26); - output.WriteBytes(FpgaId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (AesKeyIndex != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AesKeyIndex); - } - if (EncryptedNs.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(EncryptedNs); - } - if (FpgaId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(FpgaId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(EncryptedFineTimestamp other) { - if (other == null) { - return; - } - if (other.AesKeyIndex != 0) { - AesKeyIndex = other.AesKeyIndex; - } - if (other.EncryptedNs.Length != 0) { - EncryptedNs = other.EncryptedNs; - } - if (other.FpgaId.Length != 0) { - FpgaId = other.FpgaId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - AesKeyIndex = input.ReadUInt32(); - break; - } - case 18: { - EncryptedNs = input.ReadBytes(); - break; - } - case 26: { - FpgaId = input.ReadBytes(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - AesKeyIndex = input.ReadUInt32(); - break; - } - case 18: { - EncryptedNs = input.ReadBytes(); - break; - } - case 26: { - FpgaId = input.ReadBytes(); - break; - } - } - } - } - #endif - - } - - public sealed partial class PlainFineTimestamp : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlainFineTimestamp()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlainFineTimestamp() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlainFineTimestamp(PlainFineTimestamp other) : this() { - time_ = other.time_ != null ? other.time_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlainFineTimestamp Clone() { - return new PlainFineTimestamp(this); - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 1; - private global::Google.Protobuf.WellKnownTypes.Timestamp time_; - /// - /// Full timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Time { - get { return time_; } - set { - time_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PlainFineTimestamp); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PlainFineTimestamp other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Time, other.Time)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (time_ != null) hash ^= Time.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (time_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Time); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (time_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Time); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (time_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PlainFineTimestamp other) { - if (other == null) { - return; - } - if (other.time_ != null) { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Time.MergeFrom(other.Time); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - } - } - } - #endif - - } - - public sealed partial class GatewayStats : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GatewayStats()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GatewayStats() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GatewayStats(GatewayStats other) : this() { - gatewayIdLegacy_ = other.gatewayIdLegacy_; - gatewayId_ = other.gatewayId_; - time_ = other.time_ != null ? other.time_.Clone() : null; - location_ = other.location_ != null ? other.location_.Clone() : null; - configVersion_ = other.configVersion_; - rxPacketsReceived_ = other.rxPacketsReceived_; - rxPacketsReceivedOk_ = other.rxPacketsReceivedOk_; - txPacketsReceived_ = other.txPacketsReceived_; - txPacketsEmitted_ = other.txPacketsEmitted_; - metadata_ = other.metadata_.Clone(); - txPacketsPerFrequency_ = other.txPacketsPerFrequency_.Clone(); - rxPacketsPerFrequency_ = other.rxPacketsPerFrequency_.Clone(); - txPacketsPerModulation_ = other.txPacketsPerModulation_.Clone(); - rxPacketsPerModulation_ = other.rxPacketsPerModulation_.Clone(); - txPacketsPerStatus_ = other.txPacketsPerStatus_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GatewayStats Clone() { - return new GatewayStats(this); - } - - /// Field number for the "gateway_id_legacy" field. - public const int GatewayIdLegacyFieldNumber = 1; - private pb::ByteString gatewayIdLegacy_ = pb::ByteString.Empty; - /// - /// Gateway ID. - /// Deprecated: use gateway_id. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString GatewayIdLegacy { - get { return gatewayIdLegacy_; } - set { - gatewayIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 17; - private string gatewayId_ = ""; - /// - /// Gateway ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp time_; - /// - /// Gateway time. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Time { - get { return time_; } - set { - time_ = value; - } - } - - /// Field number for the "location" field. - public const int LocationFieldNumber = 3; - private global::Chirpstack.Common.Location location_; - /// - /// Gateway location. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Location Location { - get { return location_; } - set { - location_ = value; - } - } - - /// Field number for the "config_version" field. - public const int ConfigVersionFieldNumber = 4; - private string configVersion_ = ""; - /// - /// Gateway configuration version (this maps to the config_version sent - /// by ChirpStack to the gateway). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ConfigVersion { - get { return configVersion_; } - set { - configVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "rx_packets_received" field. - public const int RxPacketsReceivedFieldNumber = 5; - private uint rxPacketsReceived_; - /// - /// Number of radio packets received. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RxPacketsReceived { - get { return rxPacketsReceived_; } - set { - rxPacketsReceived_ = value; - } - } - - /// Field number for the "rx_packets_received_ok" field. - public const int RxPacketsReceivedOkFieldNumber = 6; - private uint rxPacketsReceivedOk_; - /// - /// Number of radio packets received with valid PHY CRC. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RxPacketsReceivedOk { - get { return rxPacketsReceivedOk_; } - set { - rxPacketsReceivedOk_ = value; - } - } - - /// Field number for the "tx_packets_received" field. - public const int TxPacketsReceivedFieldNumber = 7; - private uint txPacketsReceived_; - /// - /// Number of downlink packets received for transmission. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TxPacketsReceived { - get { return txPacketsReceived_; } - set { - txPacketsReceived_ = value; - } - } - - /// Field number for the "tx_packets_emitted" field. - public const int TxPacketsEmittedFieldNumber = 8; - private uint txPacketsEmitted_; - /// - /// Number of downlink packets emitted. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TxPacketsEmitted { - get { return txPacketsEmitted_; } - set { - txPacketsEmitted_ = value; - } - } - - /// Field number for the "metadata" field. - public const int MetadataFieldNumber = 10; - private static readonly pbc::MapField.Codec _map_metadata_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 82); - private readonly pbc::MapField metadata_ = new pbc::MapField(); - /// - /// Additional gateway meta-data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Metadata { - get { return metadata_; } - } - - /// Field number for the "tx_packets_per_frequency" field. - public const int TxPacketsPerFrequencyFieldNumber = 12; - private static readonly pbc::MapField.Codec _map_txPacketsPerFrequency_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 98); - private readonly pbc::MapField txPacketsPerFrequency_ = new pbc::MapField(); - /// - /// Tx packets per frequency. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField TxPacketsPerFrequency { - get { return txPacketsPerFrequency_; } - } - - /// Field number for the "rx_packets_per_frequency" field. - public const int RxPacketsPerFrequencyFieldNumber = 13; - private static readonly pbc::MapField.Codec _map_rxPacketsPerFrequency_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 106); - private readonly pbc::MapField rxPacketsPerFrequency_ = new pbc::MapField(); - /// - /// Rx packets per frequency. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField RxPacketsPerFrequency { - get { return rxPacketsPerFrequency_; } - } - - /// Field number for the "tx_packets_per_modulation" field. - public const int TxPacketsPerModulationFieldNumber = 14; - private static readonly pb::FieldCodec _repeated_txPacketsPerModulation_codec - = pb::FieldCodec.ForMessage(114, global::Chirpstack.Gateway.PerModulationCount.Parser); - private readonly pbc::RepeatedField txPacketsPerModulation_ = new pbc::RepeatedField(); - /// - /// Tx packets per modulation parameters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField TxPacketsPerModulation { - get { return txPacketsPerModulation_; } - } - - /// Field number for the "rx_packets_per_modulation" field. - public const int RxPacketsPerModulationFieldNumber = 15; - private static readonly pb::FieldCodec _repeated_rxPacketsPerModulation_codec - = pb::FieldCodec.ForMessage(122, global::Chirpstack.Gateway.PerModulationCount.Parser); - private readonly pbc::RepeatedField rxPacketsPerModulation_ = new pbc::RepeatedField(); - /// - /// Rx packets per modulation parameters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField RxPacketsPerModulation { - get { return rxPacketsPerModulation_; } - } - - /// Field number for the "tx_packets_per_status" field. - public const int TxPacketsPerStatusFieldNumber = 16; - private static readonly pbc::MapField.Codec _map_txPacketsPerStatus_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForUInt32(16, 0), 130); - private readonly pbc::MapField txPacketsPerStatus_ = new pbc::MapField(); - /// - /// Tx packets per status. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField TxPacketsPerStatus { - get { return txPacketsPerStatus_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GatewayStats); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GatewayStats other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GatewayIdLegacy != other.GatewayIdLegacy) return false; - if (GatewayId != other.GatewayId) return false; - if (!object.Equals(Time, other.Time)) return false; - if (!object.Equals(Location, other.Location)) return false; - if (ConfigVersion != other.ConfigVersion) return false; - if (RxPacketsReceived != other.RxPacketsReceived) return false; - if (RxPacketsReceivedOk != other.RxPacketsReceivedOk) return false; - if (TxPacketsReceived != other.TxPacketsReceived) return false; - if (TxPacketsEmitted != other.TxPacketsEmitted) return false; - if (!Metadata.Equals(other.Metadata)) return false; - if (!TxPacketsPerFrequency.Equals(other.TxPacketsPerFrequency)) return false; - if (!RxPacketsPerFrequency.Equals(other.RxPacketsPerFrequency)) return false; - if(!txPacketsPerModulation_.Equals(other.txPacketsPerModulation_)) return false; - if(!rxPacketsPerModulation_.Equals(other.rxPacketsPerModulation_)) return false; - if (!TxPacketsPerStatus.Equals(other.TxPacketsPerStatus)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (GatewayIdLegacy.Length != 0) hash ^= GatewayIdLegacy.GetHashCode(); - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (time_ != null) hash ^= Time.GetHashCode(); - if (location_ != null) hash ^= Location.GetHashCode(); - if (ConfigVersion.Length != 0) hash ^= ConfigVersion.GetHashCode(); - if (RxPacketsReceived != 0) hash ^= RxPacketsReceived.GetHashCode(); - if (RxPacketsReceivedOk != 0) hash ^= RxPacketsReceivedOk.GetHashCode(); - if (TxPacketsReceived != 0) hash ^= TxPacketsReceived.GetHashCode(); - if (TxPacketsEmitted != 0) hash ^= TxPacketsEmitted.GetHashCode(); - hash ^= Metadata.GetHashCode(); - hash ^= TxPacketsPerFrequency.GetHashCode(); - hash ^= RxPacketsPerFrequency.GetHashCode(); - hash ^= txPacketsPerModulation_.GetHashCode(); - hash ^= rxPacketsPerModulation_.GetHashCode(); - hash ^= TxPacketsPerStatus.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (GatewayIdLegacy.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayIdLegacy); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (location_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Location); - } - if (ConfigVersion.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ConfigVersion); - } - if (RxPacketsReceived != 0) { - output.WriteRawTag(40); - output.WriteUInt32(RxPacketsReceived); - } - if (RxPacketsReceivedOk != 0) { - output.WriteRawTag(48); - output.WriteUInt32(RxPacketsReceivedOk); - } - if (TxPacketsReceived != 0) { - output.WriteRawTag(56); - output.WriteUInt32(TxPacketsReceived); - } - if (TxPacketsEmitted != 0) { - output.WriteRawTag(64); - output.WriteUInt32(TxPacketsEmitted); - } - metadata_.WriteTo(output, _map_metadata_codec); - txPacketsPerFrequency_.WriteTo(output, _map_txPacketsPerFrequency_codec); - rxPacketsPerFrequency_.WriteTo(output, _map_rxPacketsPerFrequency_codec); - txPacketsPerModulation_.WriteTo(output, _repeated_txPacketsPerModulation_codec); - rxPacketsPerModulation_.WriteTo(output, _repeated_rxPacketsPerModulation_codec); - txPacketsPerStatus_.WriteTo(output, _map_txPacketsPerStatus_codec); - if (GatewayId.Length != 0) { - output.WriteRawTag(138, 1); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (GatewayIdLegacy.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayIdLegacy); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (location_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Location); - } - if (ConfigVersion.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ConfigVersion); - } - if (RxPacketsReceived != 0) { - output.WriteRawTag(40); - output.WriteUInt32(RxPacketsReceived); - } - if (RxPacketsReceivedOk != 0) { - output.WriteRawTag(48); - output.WriteUInt32(RxPacketsReceivedOk); - } - if (TxPacketsReceived != 0) { - output.WriteRawTag(56); - output.WriteUInt32(TxPacketsReceived); - } - if (TxPacketsEmitted != 0) { - output.WriteRawTag(64); - output.WriteUInt32(TxPacketsEmitted); - } - metadata_.WriteTo(ref output, _map_metadata_codec); - txPacketsPerFrequency_.WriteTo(ref output, _map_txPacketsPerFrequency_codec); - rxPacketsPerFrequency_.WriteTo(ref output, _map_rxPacketsPerFrequency_codec); - txPacketsPerModulation_.WriteTo(ref output, _repeated_txPacketsPerModulation_codec); - rxPacketsPerModulation_.WriteTo(ref output, _repeated_rxPacketsPerModulation_codec); - txPacketsPerStatus_.WriteTo(ref output, _map_txPacketsPerStatus_codec); - if (GatewayId.Length != 0) { - output.WriteRawTag(138, 1); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (GatewayIdLegacy.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayIdLegacy); - } - if (GatewayId.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (time_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); - } - if (location_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); - } - if (ConfigVersion.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ConfigVersion); - } - if (RxPacketsReceived != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RxPacketsReceived); - } - if (RxPacketsReceivedOk != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RxPacketsReceivedOk); - } - if (TxPacketsReceived != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TxPacketsReceived); - } - if (TxPacketsEmitted != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TxPacketsEmitted); - } - size += metadata_.CalculateSize(_map_metadata_codec); - size += txPacketsPerFrequency_.CalculateSize(_map_txPacketsPerFrequency_codec); - size += rxPacketsPerFrequency_.CalculateSize(_map_rxPacketsPerFrequency_codec); - size += txPacketsPerModulation_.CalculateSize(_repeated_txPacketsPerModulation_codec); - size += rxPacketsPerModulation_.CalculateSize(_repeated_rxPacketsPerModulation_codec); - size += txPacketsPerStatus_.CalculateSize(_map_txPacketsPerStatus_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GatewayStats other) { - if (other == null) { - return; - } - if (other.GatewayIdLegacy.Length != 0) { - GatewayIdLegacy = other.GatewayIdLegacy; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - if (other.time_ != null) { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Time.MergeFrom(other.Time); - } - if (other.location_ != null) { - if (location_ == null) { - Location = new global::Chirpstack.Common.Location(); - } - Location.MergeFrom(other.Location); - } - if (other.ConfigVersion.Length != 0) { - ConfigVersion = other.ConfigVersion; - } - if (other.RxPacketsReceived != 0) { - RxPacketsReceived = other.RxPacketsReceived; - } - if (other.RxPacketsReceivedOk != 0) { - RxPacketsReceivedOk = other.RxPacketsReceivedOk; - } - if (other.TxPacketsReceived != 0) { - TxPacketsReceived = other.TxPacketsReceived; - } - if (other.TxPacketsEmitted != 0) { - TxPacketsEmitted = other.TxPacketsEmitted; - } - metadata_.Add(other.metadata_); - txPacketsPerFrequency_.Add(other.txPacketsPerFrequency_); - rxPacketsPerFrequency_.Add(other.rxPacketsPerFrequency_); - txPacketsPerModulation_.Add(other.txPacketsPerModulation_); - rxPacketsPerModulation_.Add(other.rxPacketsPerModulation_); - txPacketsPerStatus_.Add(other.txPacketsPerStatus_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - GatewayIdLegacy = input.ReadBytes(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - if (location_ == null) { - Location = new global::Chirpstack.Common.Location(); - } - input.ReadMessage(Location); - break; - } - case 34: { - ConfigVersion = input.ReadString(); - break; - } - case 40: { - RxPacketsReceived = input.ReadUInt32(); - break; - } - case 48: { - RxPacketsReceivedOk = input.ReadUInt32(); - break; - } - case 56: { - TxPacketsReceived = input.ReadUInt32(); - break; - } - case 64: { - TxPacketsEmitted = input.ReadUInt32(); - break; - } - case 82: { - metadata_.AddEntriesFrom(input, _map_metadata_codec); - break; - } - case 98: { - txPacketsPerFrequency_.AddEntriesFrom(input, _map_txPacketsPerFrequency_codec); - break; - } - case 106: { - rxPacketsPerFrequency_.AddEntriesFrom(input, _map_rxPacketsPerFrequency_codec); - break; - } - case 114: { - txPacketsPerModulation_.AddEntriesFrom(input, _repeated_txPacketsPerModulation_codec); - break; - } - case 122: { - rxPacketsPerModulation_.AddEntriesFrom(input, _repeated_rxPacketsPerModulation_codec); - break; - } - case 130: { - txPacketsPerStatus_.AddEntriesFrom(input, _map_txPacketsPerStatus_codec); - break; - } - case 138: { - GatewayId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - GatewayIdLegacy = input.ReadBytes(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - if (location_ == null) { - Location = new global::Chirpstack.Common.Location(); - } - input.ReadMessage(Location); - break; - } - case 34: { - ConfigVersion = input.ReadString(); - break; - } - case 40: { - RxPacketsReceived = input.ReadUInt32(); - break; - } - case 48: { - RxPacketsReceivedOk = input.ReadUInt32(); - break; - } - case 56: { - TxPacketsReceived = input.ReadUInt32(); - break; - } - case 64: { - TxPacketsEmitted = input.ReadUInt32(); - break; - } - case 82: { - metadata_.AddEntriesFrom(ref input, _map_metadata_codec); - break; - } - case 98: { - txPacketsPerFrequency_.AddEntriesFrom(ref input, _map_txPacketsPerFrequency_codec); - break; - } - case 106: { - rxPacketsPerFrequency_.AddEntriesFrom(ref input, _map_rxPacketsPerFrequency_codec); - break; - } - case 114: { - txPacketsPerModulation_.AddEntriesFrom(ref input, _repeated_txPacketsPerModulation_codec); - break; - } - case 122: { - rxPacketsPerModulation_.AddEntriesFrom(ref input, _repeated_rxPacketsPerModulation_codec); - break; - } - case 130: { - txPacketsPerStatus_.AddEntriesFrom(ref input, _map_txPacketsPerStatus_codec); - break; - } - case 138: { - GatewayId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class PerModulationCount : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PerModulationCount()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PerModulationCount() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PerModulationCount(PerModulationCount other) : this() { - modulation_ = other.modulation_ != null ? other.modulation_.Clone() : null; - count_ = other.count_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PerModulationCount Clone() { - return new PerModulationCount(this); - } - - /// Field number for the "modulation" field. - public const int ModulationFieldNumber = 1; - private global::Chirpstack.Gateway.Modulation modulation_; - /// - /// Modulation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.Modulation Modulation { - get { return modulation_; } - set { - modulation_ = value; - } - } - - /// Field number for the "count" field. - public const int CountFieldNumber = 2; - private uint count_; - /// - /// Count. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Count { - get { return count_; } - set { - count_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PerModulationCount); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PerModulationCount other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Modulation, other.Modulation)) return false; - if (Count != other.Count) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (modulation_ != null) hash ^= Modulation.GetHashCode(); - if (Count != 0) hash ^= Count.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (modulation_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Modulation); - } - if (Count != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Count); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (modulation_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Modulation); - } - if (Count != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Count); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (modulation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Modulation); - } - if (Count != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Count); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PerModulationCount other) { - if (other == null) { - return; - } - if (other.modulation_ != null) { - if (modulation_ == null) { - Modulation = new global::Chirpstack.Gateway.Modulation(); - } - Modulation.MergeFrom(other.Modulation); - } - if (other.Count != 0) { - Count = other.Count; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (modulation_ == null) { - Modulation = new global::Chirpstack.Gateway.Modulation(); - } - input.ReadMessage(Modulation); - break; - } - case 16: { - Count = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (modulation_ == null) { - Modulation = new global::Chirpstack.Gateway.Modulation(); - } - input.ReadMessage(Modulation); - break; - } - case 16: { - Count = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - public sealed partial class UplinkRxInfoLegacy : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkRxInfoLegacy()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkRxInfoLegacy() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkRxInfoLegacy(UplinkRxInfoLegacy other) : this() { - gatewayId_ = other.gatewayId_; - time_ = other.time_ != null ? other.time_.Clone() : null; - timeSinceGpsEpoch_ = other.timeSinceGpsEpoch_ != null ? other.timeSinceGpsEpoch_.Clone() : null; - rssi_ = other.rssi_; - loraSnr_ = other.loraSnr_; - channel_ = other.channel_; - rfChain_ = other.rfChain_; - board_ = other.board_; - antenna_ = other.antenna_; - location_ = other.location_ != null ? other.location_.Clone() : null; - fineTimestampType_ = other.fineTimestampType_; - context_ = other.context_; - uplinkId_ = other.uplinkId_; - crcStatus_ = other.crcStatus_; - metadata_ = other.metadata_.Clone(); - switch (other.FineTimestampCase) { - case FineTimestampOneofCase.EncryptedFineTimestamp: - EncryptedFineTimestamp = other.EncryptedFineTimestamp.Clone(); - break; - case FineTimestampOneofCase.PlainFineTimestamp: - PlainFineTimestamp = other.PlainFineTimestamp.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkRxInfoLegacy Clone() { - return new UplinkRxInfoLegacy(this); - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 1; - private pb::ByteString gatewayId_ = pb::ByteString.Empty; - /// - /// Gateway ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp time_; - /// - /// RX time (only set when the gateway has a GPS module). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Time { - get { return time_; } - set { - time_ = value; - } - } - - /// Field number for the "time_since_gps_epoch" field. - public const int TimeSinceGpsEpochFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Duration timeSinceGpsEpoch_; - /// - /// RX time since GPS epoch (only set when the gateway has a GPS module). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Duration TimeSinceGpsEpoch { - get { return timeSinceGpsEpoch_; } - set { - timeSinceGpsEpoch_ = value; - } - } - - /// Field number for the "rssi" field. - public const int RssiFieldNumber = 5; - private int rssi_; - /// - /// RSSI. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Rssi { - get { return rssi_; } - set { - rssi_ = value; - } - } - - /// Field number for the "lora_snr" field. - public const int LoraSnrFieldNumber = 6; - private double loraSnr_; - /// - /// LoRa SNR. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double LoraSnr { - get { return loraSnr_; } - set { - loraSnr_ = value; - } - } - - /// Field number for the "channel" field. - public const int ChannelFieldNumber = 7; - private uint channel_; - /// - /// Channel. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Channel { - get { return channel_; } - set { - channel_ = value; - } - } - - /// Field number for the "rf_chain" field. - public const int RfChainFieldNumber = 8; - private uint rfChain_; - /// - /// RF Chain. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RfChain { - get { return rfChain_; } - set { - rfChain_ = value; - } - } - - /// Field number for the "board" field. - public const int BoardFieldNumber = 9; - private uint board_; - /// - /// Board. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Board { - get { return board_; } - set { - board_ = value; - } - } - - /// Field number for the "antenna" field. - public const int AntennaFieldNumber = 10; - private uint antenna_; - /// - /// Antenna. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Antenna { - get { return antenna_; } - set { - antenna_ = value; - } - } - - /// Field number for the "location" field. - public const int LocationFieldNumber = 11; - private global::Chirpstack.Common.Location location_; - /// - /// Location. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Location Location { - get { return location_; } - set { - location_ = value; - } - } - - /// Field number for the "fine_timestamp_type" field. - public const int FineTimestampTypeFieldNumber = 12; - private global::Chirpstack.Gateway.FineTimestampType fineTimestampType_ = global::Chirpstack.Gateway.FineTimestampType.None; - /// - /// Fine-timestamp type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.FineTimestampType FineTimestampType { - get { return fineTimestampType_; } - set { - fineTimestampType_ = value; - } - } - - /// Field number for the "encrypted_fine_timestamp" field. - public const int EncryptedFineTimestampFieldNumber = 13; - /// - /// Encrypted fine-timestamp data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.EncryptedFineTimestamp EncryptedFineTimestamp { - get { return fineTimestampCase_ == FineTimestampOneofCase.EncryptedFineTimestamp ? (global::Chirpstack.Gateway.EncryptedFineTimestamp) fineTimestamp_ : null; } - set { - fineTimestamp_ = value; - fineTimestampCase_ = value == null ? FineTimestampOneofCase.None : FineTimestampOneofCase.EncryptedFineTimestamp; - } - } - - /// Field number for the "plain_fine_timestamp" field. - public const int PlainFineTimestampFieldNumber = 14; - /// - /// Plain fine-timestamp data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.PlainFineTimestamp PlainFineTimestamp { - get { return fineTimestampCase_ == FineTimestampOneofCase.PlainFineTimestamp ? (global::Chirpstack.Gateway.PlainFineTimestamp) fineTimestamp_ : null; } - set { - fineTimestamp_ = value; - fineTimestampCase_ = value == null ? FineTimestampOneofCase.None : FineTimestampOneofCase.PlainFineTimestamp; - } - } - - /// Field number for the "context" field. - public const int ContextFieldNumber = 15; - private pb::ByteString context_ = pb::ByteString.Empty; - /// - /// Gateway specific context. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Context { - get { return context_; } - set { - context_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "uplink_id" field. - public const int UplinkIdFieldNumber = 16; - private pb::ByteString uplinkId_ = pb::ByteString.Empty; - /// - /// Uplink ID (UUID bytes). - /// Unique and random ID which can be used to correlate the uplink across - /// multiple logs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString UplinkId { - get { return uplinkId_; } - set { - uplinkId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "crc_status" field. - public const int CrcStatusFieldNumber = 17; - private global::Chirpstack.Gateway.CRCStatus crcStatus_ = global::Chirpstack.Gateway.CRCStatus.NoCrc; - /// - /// CRC status. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.CRCStatus CrcStatus { - get { return crcStatus_; } - set { - crcStatus_ = value; - } - } - - /// Field number for the "metadata" field. - public const int MetadataFieldNumber = 18; - private static readonly pbc::MapField.Codec _map_metadata_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 146); - private readonly pbc::MapField metadata_ = new pbc::MapField(); - /// - /// Optional meta-data map. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Metadata { - get { return metadata_; } - } - - private object fineTimestamp_; - /// Enum of possible cases for the "fine_timestamp" oneof. - public enum FineTimestampOneofCase { - None = 0, - EncryptedFineTimestamp = 13, - PlainFineTimestamp = 14, - } - private FineTimestampOneofCase fineTimestampCase_ = FineTimestampOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FineTimestampOneofCase FineTimestampCase { - get { return fineTimestampCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFineTimestamp() { - fineTimestampCase_ = FineTimestampOneofCase.None; - fineTimestamp_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UplinkRxInfoLegacy); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UplinkRxInfoLegacy other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GatewayId != other.GatewayId) return false; - if (!object.Equals(Time, other.Time)) return false; - if (!object.Equals(TimeSinceGpsEpoch, other.TimeSinceGpsEpoch)) return false; - if (Rssi != other.Rssi) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LoraSnr, other.LoraSnr)) return false; - if (Channel != other.Channel) return false; - if (RfChain != other.RfChain) return false; - if (Board != other.Board) return false; - if (Antenna != other.Antenna) return false; - if (!object.Equals(Location, other.Location)) return false; - if (FineTimestampType != other.FineTimestampType) return false; - if (!object.Equals(EncryptedFineTimestamp, other.EncryptedFineTimestamp)) return false; - if (!object.Equals(PlainFineTimestamp, other.PlainFineTimestamp)) return false; - if (Context != other.Context) return false; - if (UplinkId != other.UplinkId) return false; - if (CrcStatus != other.CrcStatus) return false; - if (!Metadata.Equals(other.Metadata)) return false; - if (FineTimestampCase != other.FineTimestampCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (time_ != null) hash ^= Time.GetHashCode(); - if (timeSinceGpsEpoch_ != null) hash ^= TimeSinceGpsEpoch.GetHashCode(); - if (Rssi != 0) hash ^= Rssi.GetHashCode(); - if (LoraSnr != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LoraSnr); - if (Channel != 0) hash ^= Channel.GetHashCode(); - if (RfChain != 0) hash ^= RfChain.GetHashCode(); - if (Board != 0) hash ^= Board.GetHashCode(); - if (Antenna != 0) hash ^= Antenna.GetHashCode(); - if (location_ != null) hash ^= Location.GetHashCode(); - if (FineTimestampType != global::Chirpstack.Gateway.FineTimestampType.None) hash ^= FineTimestampType.GetHashCode(); - if (fineTimestampCase_ == FineTimestampOneofCase.EncryptedFineTimestamp) hash ^= EncryptedFineTimestamp.GetHashCode(); - if (fineTimestampCase_ == FineTimestampOneofCase.PlainFineTimestamp) hash ^= PlainFineTimestamp.GetHashCode(); - if (Context.Length != 0) hash ^= Context.GetHashCode(); - if (UplinkId.Length != 0) hash ^= UplinkId.GetHashCode(); - if (CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) hash ^= CrcStatus.GetHashCode(); - hash ^= Metadata.GetHashCode(); - hash ^= (int) fineTimestampCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (GatewayId.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayId); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (timeSinceGpsEpoch_ != null) { - output.WriteRawTag(26); - output.WriteMessage(TimeSinceGpsEpoch); - } - if (Rssi != 0) { - output.WriteRawTag(40); - output.WriteInt32(Rssi); - } - if (LoraSnr != 0D) { - output.WriteRawTag(49); - output.WriteDouble(LoraSnr); - } - if (Channel != 0) { - output.WriteRawTag(56); - output.WriteUInt32(Channel); - } - if (RfChain != 0) { - output.WriteRawTag(64); - output.WriteUInt32(RfChain); - } - if (Board != 0) { - output.WriteRawTag(72); - output.WriteUInt32(Board); - } - if (Antenna != 0) { - output.WriteRawTag(80); - output.WriteUInt32(Antenna); - } - if (location_ != null) { - output.WriteRawTag(90); - output.WriteMessage(Location); - } - if (FineTimestampType != global::Chirpstack.Gateway.FineTimestampType.None) { - output.WriteRawTag(96); - output.WriteEnum((int) FineTimestampType); - } - if (fineTimestampCase_ == FineTimestampOneofCase.EncryptedFineTimestamp) { - output.WriteRawTag(106); - output.WriteMessage(EncryptedFineTimestamp); - } - if (fineTimestampCase_ == FineTimestampOneofCase.PlainFineTimestamp) { - output.WriteRawTag(114); - output.WriteMessage(PlainFineTimestamp); - } - if (Context.Length != 0) { - output.WriteRawTag(122); - output.WriteBytes(Context); - } - if (UplinkId.Length != 0) { - output.WriteRawTag(130, 1); - output.WriteBytes(UplinkId); - } - if (CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) { - output.WriteRawTag(136, 1); - output.WriteEnum((int) CrcStatus); - } - metadata_.WriteTo(output, _map_metadata_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (GatewayId.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayId); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (timeSinceGpsEpoch_ != null) { - output.WriteRawTag(26); - output.WriteMessage(TimeSinceGpsEpoch); - } - if (Rssi != 0) { - output.WriteRawTag(40); - output.WriteInt32(Rssi); - } - if (LoraSnr != 0D) { - output.WriteRawTag(49); - output.WriteDouble(LoraSnr); - } - if (Channel != 0) { - output.WriteRawTag(56); - output.WriteUInt32(Channel); - } - if (RfChain != 0) { - output.WriteRawTag(64); - output.WriteUInt32(RfChain); - } - if (Board != 0) { - output.WriteRawTag(72); - output.WriteUInt32(Board); - } - if (Antenna != 0) { - output.WriteRawTag(80); - output.WriteUInt32(Antenna); - } - if (location_ != null) { - output.WriteRawTag(90); - output.WriteMessage(Location); - } - if (FineTimestampType != global::Chirpstack.Gateway.FineTimestampType.None) { - output.WriteRawTag(96); - output.WriteEnum((int) FineTimestampType); - } - if (fineTimestampCase_ == FineTimestampOneofCase.EncryptedFineTimestamp) { - output.WriteRawTag(106); - output.WriteMessage(EncryptedFineTimestamp); - } - if (fineTimestampCase_ == FineTimestampOneofCase.PlainFineTimestamp) { - output.WriteRawTag(114); - output.WriteMessage(PlainFineTimestamp); - } - if (Context.Length != 0) { - output.WriteRawTag(122); - output.WriteBytes(Context); - } - if (UplinkId.Length != 0) { - output.WriteRawTag(130, 1); - output.WriteBytes(UplinkId); - } - if (CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) { - output.WriteRawTag(136, 1); - output.WriteEnum((int) CrcStatus); - } - metadata_.WriteTo(ref output, _map_metadata_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayId); - } - if (time_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); - } - if (timeSinceGpsEpoch_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimeSinceGpsEpoch); - } - if (Rssi != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rssi); - } - if (LoraSnr != 0D) { - size += 1 + 8; - } - if (Channel != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Channel); - } - if (RfChain != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RfChain); - } - if (Board != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Board); - } - if (Antenna != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Antenna); - } - if (location_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); - } - if (FineTimestampType != global::Chirpstack.Gateway.FineTimestampType.None) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FineTimestampType); - } - if (fineTimestampCase_ == FineTimestampOneofCase.EncryptedFineTimestamp) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(EncryptedFineTimestamp); - } - if (fineTimestampCase_ == FineTimestampOneofCase.PlainFineTimestamp) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlainFineTimestamp); - } - if (Context.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Context); - } - if (UplinkId.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeBytesSize(UplinkId); - } - if (CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CrcStatus); - } - size += metadata_.CalculateSize(_map_metadata_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UplinkRxInfoLegacy other) { - if (other == null) { - return; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - if (other.time_ != null) { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Time.MergeFrom(other.Time); - } - if (other.timeSinceGpsEpoch_ != null) { - if (timeSinceGpsEpoch_ == null) { - TimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - TimeSinceGpsEpoch.MergeFrom(other.TimeSinceGpsEpoch); - } - if (other.Rssi != 0) { - Rssi = other.Rssi; - } - if (other.LoraSnr != 0D) { - LoraSnr = other.LoraSnr; - } - if (other.Channel != 0) { - Channel = other.Channel; - } - if (other.RfChain != 0) { - RfChain = other.RfChain; - } - if (other.Board != 0) { - Board = other.Board; - } - if (other.Antenna != 0) { - Antenna = other.Antenna; - } - if (other.location_ != null) { - if (location_ == null) { - Location = new global::Chirpstack.Common.Location(); - } - Location.MergeFrom(other.Location); - } - if (other.FineTimestampType != global::Chirpstack.Gateway.FineTimestampType.None) { - FineTimestampType = other.FineTimestampType; - } - if (other.Context.Length != 0) { - Context = other.Context; - } - if (other.UplinkId.Length != 0) { - UplinkId = other.UplinkId; - } - if (other.CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) { - CrcStatus = other.CrcStatus; - } - metadata_.Add(other.metadata_); - switch (other.FineTimestampCase) { - case FineTimestampOneofCase.EncryptedFineTimestamp: - if (EncryptedFineTimestamp == null) { - EncryptedFineTimestamp = new global::Chirpstack.Gateway.EncryptedFineTimestamp(); - } - EncryptedFineTimestamp.MergeFrom(other.EncryptedFineTimestamp); - break; - case FineTimestampOneofCase.PlainFineTimestamp: - if (PlainFineTimestamp == null) { - PlainFineTimestamp = new global::Chirpstack.Gateway.PlainFineTimestamp(); - } - PlainFineTimestamp.MergeFrom(other.PlainFineTimestamp); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - GatewayId = input.ReadBytes(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - if (timeSinceGpsEpoch_ == null) { - TimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(TimeSinceGpsEpoch); - break; - } - case 40: { - Rssi = input.ReadInt32(); - break; - } - case 49: { - LoraSnr = input.ReadDouble(); - break; - } - case 56: { - Channel = input.ReadUInt32(); - break; - } - case 64: { - RfChain = input.ReadUInt32(); - break; - } - case 72: { - Board = input.ReadUInt32(); - break; - } - case 80: { - Antenna = input.ReadUInt32(); - break; - } - case 90: { - if (location_ == null) { - Location = new global::Chirpstack.Common.Location(); - } - input.ReadMessage(Location); - break; - } - case 96: { - FineTimestampType = (global::Chirpstack.Gateway.FineTimestampType) input.ReadEnum(); - break; - } - case 106: { - global::Chirpstack.Gateway.EncryptedFineTimestamp subBuilder = new global::Chirpstack.Gateway.EncryptedFineTimestamp(); - if (fineTimestampCase_ == FineTimestampOneofCase.EncryptedFineTimestamp) { - subBuilder.MergeFrom(EncryptedFineTimestamp); - } - input.ReadMessage(subBuilder); - EncryptedFineTimestamp = subBuilder; - break; - } - case 114: { - global::Chirpstack.Gateway.PlainFineTimestamp subBuilder = new global::Chirpstack.Gateway.PlainFineTimestamp(); - if (fineTimestampCase_ == FineTimestampOneofCase.PlainFineTimestamp) { - subBuilder.MergeFrom(PlainFineTimestamp); - } - input.ReadMessage(subBuilder); - PlainFineTimestamp = subBuilder; - break; - } - case 122: { - Context = input.ReadBytes(); - break; - } - case 130: { - UplinkId = input.ReadBytes(); - break; - } - case 136: { - CrcStatus = (global::Chirpstack.Gateway.CRCStatus) input.ReadEnum(); - break; - } - case 146: { - metadata_.AddEntriesFrom(input, _map_metadata_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - GatewayId = input.ReadBytes(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - if (timeSinceGpsEpoch_ == null) { - TimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(TimeSinceGpsEpoch); - break; - } - case 40: { - Rssi = input.ReadInt32(); - break; - } - case 49: { - LoraSnr = input.ReadDouble(); - break; - } - case 56: { - Channel = input.ReadUInt32(); - break; - } - case 64: { - RfChain = input.ReadUInt32(); - break; - } - case 72: { - Board = input.ReadUInt32(); - break; - } - case 80: { - Antenna = input.ReadUInt32(); - break; - } - case 90: { - if (location_ == null) { - Location = new global::Chirpstack.Common.Location(); - } - input.ReadMessage(Location); - break; - } - case 96: { - FineTimestampType = (global::Chirpstack.Gateway.FineTimestampType) input.ReadEnum(); - break; - } - case 106: { - global::Chirpstack.Gateway.EncryptedFineTimestamp subBuilder = new global::Chirpstack.Gateway.EncryptedFineTimestamp(); - if (fineTimestampCase_ == FineTimestampOneofCase.EncryptedFineTimestamp) { - subBuilder.MergeFrom(EncryptedFineTimestamp); - } - input.ReadMessage(subBuilder); - EncryptedFineTimestamp = subBuilder; - break; - } - case 114: { - global::Chirpstack.Gateway.PlainFineTimestamp subBuilder = new global::Chirpstack.Gateway.PlainFineTimestamp(); - if (fineTimestampCase_ == FineTimestampOneofCase.PlainFineTimestamp) { - subBuilder.MergeFrom(PlainFineTimestamp); - } - input.ReadMessage(subBuilder); - PlainFineTimestamp = subBuilder; - break; - } - case 122: { - Context = input.ReadBytes(); - break; - } - case 130: { - UplinkId = input.ReadBytes(); - break; - } - case 136: { - CrcStatus = (global::Chirpstack.Gateway.CRCStatus) input.ReadEnum(); - break; - } - case 146: { - metadata_.AddEntriesFrom(ref input, _map_metadata_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class UplinkRxInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkRxInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkRxInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkRxInfo(UplinkRxInfo other) : this() { - gatewayId_ = other.gatewayId_; - uplinkId_ = other.uplinkId_; - gwTime_ = other.gwTime_ != null ? other.gwTime_.Clone() : null; - nsTime_ = other.nsTime_ != null ? other.nsTime_.Clone() : null; - timeSinceGpsEpoch_ = other.timeSinceGpsEpoch_ != null ? other.timeSinceGpsEpoch_.Clone() : null; - fineTimeSinceGpsEpoch_ = other.fineTimeSinceGpsEpoch_ != null ? other.fineTimeSinceGpsEpoch_.Clone() : null; - rssi_ = other.rssi_; - snr_ = other.snr_; - channel_ = other.channel_; - rfChain_ = other.rfChain_; - board_ = other.board_; - antenna_ = other.antenna_; - location_ = other.location_ != null ? other.location_.Clone() : null; - context_ = other.context_; - metadata_ = other.metadata_.Clone(); - crcStatus_ = other.crcStatus_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkRxInfo Clone() { - return new UplinkRxInfo(this); - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 1; - private string gatewayId_ = ""; - /// - /// Gateway ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "uplink_id" field. - public const int UplinkIdFieldNumber = 2; - private uint uplinkId_; - /// - /// Uplink ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint UplinkId { - get { return uplinkId_; } - set { - uplinkId_ = value; - } - } - - /// Field number for the "gw_time" field. - public const int GwTimeFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp gwTime_; - /// - /// Gateway RX time (set if the gateway has a GNSS module). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp GwTime { - get { return gwTime_; } - set { - gwTime_ = value; - } - } - - /// Field number for the "ns_time" field. - public const int NsTimeFieldNumber = 17; - private global::Google.Protobuf.WellKnownTypes.Timestamp nsTime_; - /// - /// Network Server RX time (set by the NS on receiving the uplink). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp NsTime { - get { return nsTime_; } - set { - nsTime_ = value; - } - } - - /// Field number for the "time_since_gps_epoch" field. - public const int TimeSinceGpsEpochFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.Duration timeSinceGpsEpoch_; - /// - /// RX time as time since GPS epoch (set if the gateway has a GNSS module). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Duration TimeSinceGpsEpoch { - get { return timeSinceGpsEpoch_; } - set { - timeSinceGpsEpoch_ = value; - } - } - - /// Field number for the "fine_time_since_gps_epoch" field. - public const int FineTimeSinceGpsEpochFieldNumber = 5; - private global::Google.Protobuf.WellKnownTypes.Duration fineTimeSinceGpsEpoch_; - /// - /// Fine-timestamp. - /// This timestamp can be used for TDOA based geolocation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Duration FineTimeSinceGpsEpoch { - get { return fineTimeSinceGpsEpoch_; } - set { - fineTimeSinceGpsEpoch_ = value; - } - } - - /// Field number for the "rssi" field. - public const int RssiFieldNumber = 6; - private int rssi_; - /// - /// RSSI. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Rssi { - get { return rssi_; } - set { - rssi_ = value; - } - } - - /// Field number for the "snr" field. - public const int SnrFieldNumber = 7; - private float snr_; - /// - /// SNR. - /// Note: only available for LoRa modulation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Snr { - get { return snr_; } - set { - snr_ = value; - } - } - - /// Field number for the "channel" field. - public const int ChannelFieldNumber = 8; - private uint channel_; - /// - /// Channel. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Channel { - get { return channel_; } - set { - channel_ = value; - } - } - - /// Field number for the "rf_chain" field. - public const int RfChainFieldNumber = 9; - private uint rfChain_; - /// - /// RF chain. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RfChain { - get { return rfChain_; } - set { - rfChain_ = value; - } - } - - /// Field number for the "board" field. - public const int BoardFieldNumber = 10; - private uint board_; - /// - /// Board. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Board { - get { return board_; } - set { - board_ = value; - } - } - - /// Field number for the "antenna" field. - public const int AntennaFieldNumber = 11; - private uint antenna_; - /// - /// Antenna. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Antenna { - get { return antenna_; } - set { - antenna_ = value; - } - } - - /// Field number for the "location" field. - public const int LocationFieldNumber = 12; - private global::Chirpstack.Common.Location location_; - /// - /// Location. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Location Location { - get { return location_; } - set { - location_ = value; - } - } - - /// Field number for the "context" field. - public const int ContextFieldNumber = 13; - private pb::ByteString context_ = pb::ByteString.Empty; - /// - /// Gateway specific context. - /// This value must be returned to the gateway on (Class-A) downlink. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Context { - get { return context_; } - set { - context_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "metadata" field. - public const int MetadataFieldNumber = 15; - private static readonly pbc::MapField.Codec _map_metadata_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 122); - private readonly pbc::MapField metadata_ = new pbc::MapField(); - /// - /// Additional gateway meta-data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Metadata { - get { return metadata_; } - } - - /// Field number for the "crc_status" field. - public const int CrcStatusFieldNumber = 16; - private global::Chirpstack.Gateway.CRCStatus crcStatus_ = global::Chirpstack.Gateway.CRCStatus.NoCrc; - /// - /// CRC status. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.CRCStatus CrcStatus { - get { return crcStatus_; } - set { - crcStatus_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UplinkRxInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UplinkRxInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GatewayId != other.GatewayId) return false; - if (UplinkId != other.UplinkId) return false; - if (!object.Equals(GwTime, other.GwTime)) return false; - if (!object.Equals(NsTime, other.NsTime)) return false; - if (!object.Equals(TimeSinceGpsEpoch, other.TimeSinceGpsEpoch)) return false; - if (!object.Equals(FineTimeSinceGpsEpoch, other.FineTimeSinceGpsEpoch)) return false; - if (Rssi != other.Rssi) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Snr, other.Snr)) return false; - if (Channel != other.Channel) return false; - if (RfChain != other.RfChain) return false; - if (Board != other.Board) return false; - if (Antenna != other.Antenna) return false; - if (!object.Equals(Location, other.Location)) return false; - if (Context != other.Context) return false; - if (!Metadata.Equals(other.Metadata)) return false; - if (CrcStatus != other.CrcStatus) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (UplinkId != 0) hash ^= UplinkId.GetHashCode(); - if (gwTime_ != null) hash ^= GwTime.GetHashCode(); - if (nsTime_ != null) hash ^= NsTime.GetHashCode(); - if (timeSinceGpsEpoch_ != null) hash ^= TimeSinceGpsEpoch.GetHashCode(); - if (fineTimeSinceGpsEpoch_ != null) hash ^= FineTimeSinceGpsEpoch.GetHashCode(); - if (Rssi != 0) hash ^= Rssi.GetHashCode(); - if (Snr != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Snr); - if (Channel != 0) hash ^= Channel.GetHashCode(); - if (RfChain != 0) hash ^= RfChain.GetHashCode(); - if (Board != 0) hash ^= Board.GetHashCode(); - if (Antenna != 0) hash ^= Antenna.GetHashCode(); - if (location_ != null) hash ^= Location.GetHashCode(); - if (Context.Length != 0) hash ^= Context.GetHashCode(); - hash ^= Metadata.GetHashCode(); - if (CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) hash ^= CrcStatus.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (GatewayId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(GatewayId); - } - if (UplinkId != 0) { - output.WriteRawTag(16); - output.WriteUInt32(UplinkId); - } - if (gwTime_ != null) { - output.WriteRawTag(26); - output.WriteMessage(GwTime); - } - if (timeSinceGpsEpoch_ != null) { - output.WriteRawTag(34); - output.WriteMessage(TimeSinceGpsEpoch); - } - if (fineTimeSinceGpsEpoch_ != null) { - output.WriteRawTag(42); - output.WriteMessage(FineTimeSinceGpsEpoch); - } - if (Rssi != 0) { - output.WriteRawTag(48); - output.WriteInt32(Rssi); - } - if (Snr != 0F) { - output.WriteRawTag(61); - output.WriteFloat(Snr); - } - if (Channel != 0) { - output.WriteRawTag(64); - output.WriteUInt32(Channel); - } - if (RfChain != 0) { - output.WriteRawTag(72); - output.WriteUInt32(RfChain); - } - if (Board != 0) { - output.WriteRawTag(80); - output.WriteUInt32(Board); - } - if (Antenna != 0) { - output.WriteRawTag(88); - output.WriteUInt32(Antenna); - } - if (location_ != null) { - output.WriteRawTag(98); - output.WriteMessage(Location); - } - if (Context.Length != 0) { - output.WriteRawTag(106); - output.WriteBytes(Context); - } - metadata_.WriteTo(output, _map_metadata_codec); - if (CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) { - output.WriteRawTag(128, 1); - output.WriteEnum((int) CrcStatus); - } - if (nsTime_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(NsTime); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (GatewayId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(GatewayId); - } - if (UplinkId != 0) { - output.WriteRawTag(16); - output.WriteUInt32(UplinkId); - } - if (gwTime_ != null) { - output.WriteRawTag(26); - output.WriteMessage(GwTime); - } - if (timeSinceGpsEpoch_ != null) { - output.WriteRawTag(34); - output.WriteMessage(TimeSinceGpsEpoch); - } - if (fineTimeSinceGpsEpoch_ != null) { - output.WriteRawTag(42); - output.WriteMessage(FineTimeSinceGpsEpoch); - } - if (Rssi != 0) { - output.WriteRawTag(48); - output.WriteInt32(Rssi); - } - if (Snr != 0F) { - output.WriteRawTag(61); - output.WriteFloat(Snr); - } - if (Channel != 0) { - output.WriteRawTag(64); - output.WriteUInt32(Channel); - } - if (RfChain != 0) { - output.WriteRawTag(72); - output.WriteUInt32(RfChain); - } - if (Board != 0) { - output.WriteRawTag(80); - output.WriteUInt32(Board); - } - if (Antenna != 0) { - output.WriteRawTag(88); - output.WriteUInt32(Antenna); - } - if (location_ != null) { - output.WriteRawTag(98); - output.WriteMessage(Location); - } - if (Context.Length != 0) { - output.WriteRawTag(106); - output.WriteBytes(Context); - } - metadata_.WriteTo(ref output, _map_metadata_codec); - if (CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) { - output.WriteRawTag(128, 1); - output.WriteEnum((int) CrcStatus); - } - if (nsTime_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(NsTime); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (UplinkId != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UplinkId); - } - if (gwTime_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GwTime); - } - if (nsTime_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(NsTime); - } - if (timeSinceGpsEpoch_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimeSinceGpsEpoch); - } - if (fineTimeSinceGpsEpoch_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(FineTimeSinceGpsEpoch); - } - if (Rssi != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rssi); - } - if (Snr != 0F) { - size += 1 + 4; - } - if (Channel != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Channel); - } - if (RfChain != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RfChain); - } - if (Board != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Board); - } - if (Antenna != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Antenna); - } - if (location_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); - } - if (Context.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Context); - } - size += metadata_.CalculateSize(_map_metadata_codec); - if (CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CrcStatus); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UplinkRxInfo other) { - if (other == null) { - return; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - if (other.UplinkId != 0) { - UplinkId = other.UplinkId; - } - if (other.gwTime_ != null) { - if (gwTime_ == null) { - GwTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - GwTime.MergeFrom(other.GwTime); - } - if (other.nsTime_ != null) { - if (nsTime_ == null) { - NsTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - NsTime.MergeFrom(other.NsTime); - } - if (other.timeSinceGpsEpoch_ != null) { - if (timeSinceGpsEpoch_ == null) { - TimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - TimeSinceGpsEpoch.MergeFrom(other.TimeSinceGpsEpoch); - } - if (other.fineTimeSinceGpsEpoch_ != null) { - if (fineTimeSinceGpsEpoch_ == null) { - FineTimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - FineTimeSinceGpsEpoch.MergeFrom(other.FineTimeSinceGpsEpoch); - } - if (other.Rssi != 0) { - Rssi = other.Rssi; - } - if (other.Snr != 0F) { - Snr = other.Snr; - } - if (other.Channel != 0) { - Channel = other.Channel; - } - if (other.RfChain != 0) { - RfChain = other.RfChain; - } - if (other.Board != 0) { - Board = other.Board; - } - if (other.Antenna != 0) { - Antenna = other.Antenna; - } - if (other.location_ != null) { - if (location_ == null) { - Location = new global::Chirpstack.Common.Location(); - } - Location.MergeFrom(other.Location); - } - if (other.Context.Length != 0) { - Context = other.Context; - } - metadata_.Add(other.metadata_); - if (other.CrcStatus != global::Chirpstack.Gateway.CRCStatus.NoCrc) { - CrcStatus = other.CrcStatus; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - GatewayId = input.ReadString(); - break; - } - case 16: { - UplinkId = input.ReadUInt32(); - break; - } - case 26: { - if (gwTime_ == null) { - GwTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(GwTime); - break; - } - case 34: { - if (timeSinceGpsEpoch_ == null) { - TimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(TimeSinceGpsEpoch); - break; - } - case 42: { - if (fineTimeSinceGpsEpoch_ == null) { - FineTimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(FineTimeSinceGpsEpoch); - break; - } - case 48: { - Rssi = input.ReadInt32(); - break; - } - case 61: { - Snr = input.ReadFloat(); - break; - } - case 64: { - Channel = input.ReadUInt32(); - break; - } - case 72: { - RfChain = input.ReadUInt32(); - break; - } - case 80: { - Board = input.ReadUInt32(); - break; - } - case 88: { - Antenna = input.ReadUInt32(); - break; - } - case 98: { - if (location_ == null) { - Location = new global::Chirpstack.Common.Location(); - } - input.ReadMessage(Location); - break; - } - case 106: { - Context = input.ReadBytes(); - break; - } - case 122: { - metadata_.AddEntriesFrom(input, _map_metadata_codec); - break; - } - case 128: { - CrcStatus = (global::Chirpstack.Gateway.CRCStatus) input.ReadEnum(); - break; - } - case 138: { - if (nsTime_ == null) { - NsTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(NsTime); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - GatewayId = input.ReadString(); - break; - } - case 16: { - UplinkId = input.ReadUInt32(); - break; - } - case 26: { - if (gwTime_ == null) { - GwTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(GwTime); - break; - } - case 34: { - if (timeSinceGpsEpoch_ == null) { - TimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(TimeSinceGpsEpoch); - break; - } - case 42: { - if (fineTimeSinceGpsEpoch_ == null) { - FineTimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(FineTimeSinceGpsEpoch); - break; - } - case 48: { - Rssi = input.ReadInt32(); - break; - } - case 61: { - Snr = input.ReadFloat(); - break; - } - case 64: { - Channel = input.ReadUInt32(); - break; - } - case 72: { - RfChain = input.ReadUInt32(); - break; - } - case 80: { - Board = input.ReadUInt32(); - break; - } - case 88: { - Antenna = input.ReadUInt32(); - break; - } - case 98: { - if (location_ == null) { - Location = new global::Chirpstack.Common.Location(); - } - input.ReadMessage(Location); - break; - } - case 106: { - Context = input.ReadBytes(); - break; - } - case 122: { - metadata_.AddEntriesFrom(ref input, _map_metadata_codec); - break; - } - case 128: { - CrcStatus = (global::Chirpstack.Gateway.CRCStatus) input.ReadEnum(); - break; - } - case 138: { - if (nsTime_ == null) { - NsTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(NsTime); - break; - } - } - } - } - #endif - - } - - public sealed partial class DownlinkTxInfoLegacy : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DownlinkTxInfoLegacy()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkTxInfoLegacy() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkTxInfoLegacy(DownlinkTxInfoLegacy other) : this() { - gatewayId_ = other.gatewayId_; - frequency_ = other.frequency_; - power_ = other.power_; - modulation_ = other.modulation_; - board_ = other.board_; - antenna_ = other.antenna_; - timing_ = other.timing_; - context_ = other.context_; - switch (other.ModulationInfoCase) { - case ModulationInfoOneofCase.LoraModulationInfo: - LoraModulationInfo = other.LoraModulationInfo.Clone(); - break; - case ModulationInfoOneofCase.FskModulationInfo: - FskModulationInfo = other.FskModulationInfo.Clone(); - break; - } - - switch (other.TimingInfoCase) { - case TimingInfoOneofCase.ImmediatelyTimingInfo: - ImmediatelyTimingInfo = other.ImmediatelyTimingInfo.Clone(); - break; - case TimingInfoOneofCase.DelayTimingInfo: - DelayTimingInfo = other.DelayTimingInfo.Clone(); - break; - case TimingInfoOneofCase.GpsEpochTimingInfo: - GpsEpochTimingInfo = other.GpsEpochTimingInfo.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkTxInfoLegacy Clone() { - return new DownlinkTxInfoLegacy(this); - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 1; - private pb::ByteString gatewayId_ = pb::ByteString.Empty; - /// - /// Gateway ID. - /// Deprecated: replaced by gateway_id in DownlinkFrame. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "frequency" field. - public const int FrequencyFieldNumber = 5; - private uint frequency_; - /// - /// TX frequency (in Hz). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Frequency { - get { return frequency_; } - set { - frequency_ = value; - } - } - - /// Field number for the "power" field. - public const int PowerFieldNumber = 6; - private int power_; - /// - /// TX power (in dBm EIRP). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Power { - get { return power_; } - set { - power_ = value; - } - } - - /// Field number for the "modulation" field. - public const int ModulationFieldNumber = 7; - private global::Chirpstack.Common.Modulation modulation_ = global::Chirpstack.Common.Modulation.Lora; - /// - /// Modulation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Modulation Modulation { - get { return modulation_; } - set { - modulation_ = value; - } - } - - /// Field number for the "lora_modulation_info" field. - public const int LoraModulationInfoFieldNumber = 8; - /// - /// LoRa modulation information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.LoraModulationInfo LoraModulationInfo { - get { return modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo ? (global::Chirpstack.Gateway.LoraModulationInfo) modulationInfo_ : null; } - set { - modulationInfo_ = value; - modulationInfoCase_ = value == null ? ModulationInfoOneofCase.None : ModulationInfoOneofCase.LoraModulationInfo; - } - } - - /// Field number for the "fsk_modulation_info" field. - public const int FskModulationInfoFieldNumber = 9; - /// - /// FSK modulation information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.FskModulationInfo FskModulationInfo { - get { return modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo ? (global::Chirpstack.Gateway.FskModulationInfo) modulationInfo_ : null; } - set { - modulationInfo_ = value; - modulationInfoCase_ = value == null ? ModulationInfoOneofCase.None : ModulationInfoOneofCase.FskModulationInfo; - } - } - - /// Field number for the "board" field. - public const int BoardFieldNumber = 10; - private uint board_; - /// - /// The board identifier for emitting the frame. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Board { - get { return board_; } - set { - board_ = value; - } - } - - /// Field number for the "antenna" field. - public const int AntennaFieldNumber = 11; - private uint antenna_; - /// - /// The antenna identifier for emitting the frame. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Antenna { - get { return antenna_; } - set { - antenna_ = value; - } - } - - /// Field number for the "timing" field. - public const int TimingFieldNumber = 12; - private global::Chirpstack.Gateway.DownlinkTiming timing_ = global::Chirpstack.Gateway.DownlinkTiming.Immediately; - /// - /// Timing defines the downlink timing to use. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.DownlinkTiming Timing { - get { return timing_; } - set { - timing_ = value; - } - } - - /// Field number for the "immediately_timing_info" field. - public const int ImmediatelyTimingInfoFieldNumber = 13; - /// - /// Immediately timing information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.ImmediatelyTimingInfo ImmediatelyTimingInfo { - get { return timingInfoCase_ == TimingInfoOneofCase.ImmediatelyTimingInfo ? (global::Chirpstack.Gateway.ImmediatelyTimingInfo) timingInfo_ : null; } - set { - timingInfo_ = value; - timingInfoCase_ = value == null ? TimingInfoOneofCase.None : TimingInfoOneofCase.ImmediatelyTimingInfo; - } - } - - /// Field number for the "delay_timing_info" field. - public const int DelayTimingInfoFieldNumber = 14; - /// - /// Context based delay timing information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.DelayTimingInfo DelayTimingInfo { - get { return timingInfoCase_ == TimingInfoOneofCase.DelayTimingInfo ? (global::Chirpstack.Gateway.DelayTimingInfo) timingInfo_ : null; } - set { - timingInfo_ = value; - timingInfoCase_ = value == null ? TimingInfoOneofCase.None : TimingInfoOneofCase.DelayTimingInfo; - } - } - - /// Field number for the "gps_epoch_timing_info" field. - public const int GpsEpochTimingInfoFieldNumber = 15; - /// - /// GPS Epoch timing information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.GPSEpochTimingInfo GpsEpochTimingInfo { - get { return timingInfoCase_ == TimingInfoOneofCase.GpsEpochTimingInfo ? (global::Chirpstack.Gateway.GPSEpochTimingInfo) timingInfo_ : null; } - set { - timingInfo_ = value; - timingInfoCase_ = value == null ? TimingInfoOneofCase.None : TimingInfoOneofCase.GpsEpochTimingInfo; - } - } - - /// Field number for the "context" field. - public const int ContextFieldNumber = 16; - private pb::ByteString context_ = pb::ByteString.Empty; - /// - /// Gateway specific context. - /// In case of a Class-A downlink, this contains a copy of the uplink context. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Context { - get { return context_; } - set { - context_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - private object modulationInfo_; - /// Enum of possible cases for the "modulation_info" oneof. - public enum ModulationInfoOneofCase { - None = 0, - LoraModulationInfo = 8, - FskModulationInfo = 9, - } - private ModulationInfoOneofCase modulationInfoCase_ = ModulationInfoOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ModulationInfoOneofCase ModulationInfoCase { - get { return modulationInfoCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearModulationInfo() { - modulationInfoCase_ = ModulationInfoOneofCase.None; - modulationInfo_ = null; - } - - private object timingInfo_; - /// Enum of possible cases for the "timing_info" oneof. - public enum TimingInfoOneofCase { - None = 0, - ImmediatelyTimingInfo = 13, - DelayTimingInfo = 14, - GpsEpochTimingInfo = 15, - } - private TimingInfoOneofCase timingInfoCase_ = TimingInfoOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TimingInfoOneofCase TimingInfoCase { - get { return timingInfoCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTimingInfo() { - timingInfoCase_ = TimingInfoOneofCase.None; - timingInfo_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DownlinkTxInfoLegacy); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DownlinkTxInfoLegacy other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GatewayId != other.GatewayId) return false; - if (Frequency != other.Frequency) return false; - if (Power != other.Power) return false; - if (Modulation != other.Modulation) return false; - if (!object.Equals(LoraModulationInfo, other.LoraModulationInfo)) return false; - if (!object.Equals(FskModulationInfo, other.FskModulationInfo)) return false; - if (Board != other.Board) return false; - if (Antenna != other.Antenna) return false; - if (Timing != other.Timing) return false; - if (!object.Equals(ImmediatelyTimingInfo, other.ImmediatelyTimingInfo)) return false; - if (!object.Equals(DelayTimingInfo, other.DelayTimingInfo)) return false; - if (!object.Equals(GpsEpochTimingInfo, other.GpsEpochTimingInfo)) return false; - if (Context != other.Context) return false; - if (ModulationInfoCase != other.ModulationInfoCase) return false; - if (TimingInfoCase != other.TimingInfoCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (Frequency != 0) hash ^= Frequency.GetHashCode(); - if (Power != 0) hash ^= Power.GetHashCode(); - if (Modulation != global::Chirpstack.Common.Modulation.Lora) hash ^= Modulation.GetHashCode(); - if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) hash ^= LoraModulationInfo.GetHashCode(); - if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) hash ^= FskModulationInfo.GetHashCode(); - if (Board != 0) hash ^= Board.GetHashCode(); - if (Antenna != 0) hash ^= Antenna.GetHashCode(); - if (Timing != global::Chirpstack.Gateway.DownlinkTiming.Immediately) hash ^= Timing.GetHashCode(); - if (timingInfoCase_ == TimingInfoOneofCase.ImmediatelyTimingInfo) hash ^= ImmediatelyTimingInfo.GetHashCode(); - if (timingInfoCase_ == TimingInfoOneofCase.DelayTimingInfo) hash ^= DelayTimingInfo.GetHashCode(); - if (timingInfoCase_ == TimingInfoOneofCase.GpsEpochTimingInfo) hash ^= GpsEpochTimingInfo.GetHashCode(); - if (Context.Length != 0) hash ^= Context.GetHashCode(); - hash ^= (int) modulationInfoCase_; - hash ^= (int) timingInfoCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (GatewayId.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayId); - } - if (Frequency != 0) { - output.WriteRawTag(40); - output.WriteUInt32(Frequency); - } - if (Power != 0) { - output.WriteRawTag(48); - output.WriteInt32(Power); - } - if (Modulation != global::Chirpstack.Common.Modulation.Lora) { - output.WriteRawTag(56); - output.WriteEnum((int) Modulation); - } - if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { - output.WriteRawTag(66); - output.WriteMessage(LoraModulationInfo); - } - if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { - output.WriteRawTag(74); - output.WriteMessage(FskModulationInfo); - } - if (Board != 0) { - output.WriteRawTag(80); - output.WriteUInt32(Board); - } - if (Antenna != 0) { - output.WriteRawTag(88); - output.WriteUInt32(Antenna); - } - if (Timing != global::Chirpstack.Gateway.DownlinkTiming.Immediately) { - output.WriteRawTag(96); - output.WriteEnum((int) Timing); - } - if (timingInfoCase_ == TimingInfoOneofCase.ImmediatelyTimingInfo) { - output.WriteRawTag(106); - output.WriteMessage(ImmediatelyTimingInfo); - } - if (timingInfoCase_ == TimingInfoOneofCase.DelayTimingInfo) { - output.WriteRawTag(114); - output.WriteMessage(DelayTimingInfo); - } - if (timingInfoCase_ == TimingInfoOneofCase.GpsEpochTimingInfo) { - output.WriteRawTag(122); - output.WriteMessage(GpsEpochTimingInfo); - } - if (Context.Length != 0) { - output.WriteRawTag(130, 1); - output.WriteBytes(Context); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (GatewayId.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayId); - } - if (Frequency != 0) { - output.WriteRawTag(40); - output.WriteUInt32(Frequency); - } - if (Power != 0) { - output.WriteRawTag(48); - output.WriteInt32(Power); - } - if (Modulation != global::Chirpstack.Common.Modulation.Lora) { - output.WriteRawTag(56); - output.WriteEnum((int) Modulation); - } - if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { - output.WriteRawTag(66); - output.WriteMessage(LoraModulationInfo); - } - if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { - output.WriteRawTag(74); - output.WriteMessage(FskModulationInfo); - } - if (Board != 0) { - output.WriteRawTag(80); - output.WriteUInt32(Board); - } - if (Antenna != 0) { - output.WriteRawTag(88); - output.WriteUInt32(Antenna); - } - if (Timing != global::Chirpstack.Gateway.DownlinkTiming.Immediately) { - output.WriteRawTag(96); - output.WriteEnum((int) Timing); - } - if (timingInfoCase_ == TimingInfoOneofCase.ImmediatelyTimingInfo) { - output.WriteRawTag(106); - output.WriteMessage(ImmediatelyTimingInfo); - } - if (timingInfoCase_ == TimingInfoOneofCase.DelayTimingInfo) { - output.WriteRawTag(114); - output.WriteMessage(DelayTimingInfo); - } - if (timingInfoCase_ == TimingInfoOneofCase.GpsEpochTimingInfo) { - output.WriteRawTag(122); - output.WriteMessage(GpsEpochTimingInfo); - } - if (Context.Length != 0) { - output.WriteRawTag(130, 1); - output.WriteBytes(Context); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayId); - } - if (Frequency != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); - } - if (Power != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Power); - } - if (Modulation != global::Chirpstack.Common.Modulation.Lora) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Modulation); - } - if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LoraModulationInfo); - } - if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(FskModulationInfo); - } - if (Board != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Board); - } - if (Antenna != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Antenna); - } - if (Timing != global::Chirpstack.Gateway.DownlinkTiming.Immediately) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Timing); - } - if (timingInfoCase_ == TimingInfoOneofCase.ImmediatelyTimingInfo) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ImmediatelyTimingInfo); - } - if (timingInfoCase_ == TimingInfoOneofCase.DelayTimingInfo) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelayTimingInfo); - } - if (timingInfoCase_ == TimingInfoOneofCase.GpsEpochTimingInfo) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GpsEpochTimingInfo); - } - if (Context.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeBytesSize(Context); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DownlinkTxInfoLegacy other) { - if (other == null) { - return; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - if (other.Frequency != 0) { - Frequency = other.Frequency; - } - if (other.Power != 0) { - Power = other.Power; - } - if (other.Modulation != global::Chirpstack.Common.Modulation.Lora) { - Modulation = other.Modulation; - } - if (other.Board != 0) { - Board = other.Board; - } - if (other.Antenna != 0) { - Antenna = other.Antenna; - } - if (other.Timing != global::Chirpstack.Gateway.DownlinkTiming.Immediately) { - Timing = other.Timing; - } - if (other.Context.Length != 0) { - Context = other.Context; - } - switch (other.ModulationInfoCase) { - case ModulationInfoOneofCase.LoraModulationInfo: - if (LoraModulationInfo == null) { - LoraModulationInfo = new global::Chirpstack.Gateway.LoraModulationInfo(); - } - LoraModulationInfo.MergeFrom(other.LoraModulationInfo); - break; - case ModulationInfoOneofCase.FskModulationInfo: - if (FskModulationInfo == null) { - FskModulationInfo = new global::Chirpstack.Gateway.FskModulationInfo(); - } - FskModulationInfo.MergeFrom(other.FskModulationInfo); - break; - } - - switch (other.TimingInfoCase) { - case TimingInfoOneofCase.ImmediatelyTimingInfo: - if (ImmediatelyTimingInfo == null) { - ImmediatelyTimingInfo = new global::Chirpstack.Gateway.ImmediatelyTimingInfo(); - } - ImmediatelyTimingInfo.MergeFrom(other.ImmediatelyTimingInfo); - break; - case TimingInfoOneofCase.DelayTimingInfo: - if (DelayTimingInfo == null) { - DelayTimingInfo = new global::Chirpstack.Gateway.DelayTimingInfo(); - } - DelayTimingInfo.MergeFrom(other.DelayTimingInfo); - break; - case TimingInfoOneofCase.GpsEpochTimingInfo: - if (GpsEpochTimingInfo == null) { - GpsEpochTimingInfo = new global::Chirpstack.Gateway.GPSEpochTimingInfo(); - } - GpsEpochTimingInfo.MergeFrom(other.GpsEpochTimingInfo); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - GatewayId = input.ReadBytes(); - break; - } - case 40: { - Frequency = input.ReadUInt32(); - break; - } - case 48: { - Power = input.ReadInt32(); - break; - } - case 56: { - Modulation = (global::Chirpstack.Common.Modulation) input.ReadEnum(); - break; - } - case 66: { - global::Chirpstack.Gateway.LoraModulationInfo subBuilder = new global::Chirpstack.Gateway.LoraModulationInfo(); - if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { - subBuilder.MergeFrom(LoraModulationInfo); - } - input.ReadMessage(subBuilder); - LoraModulationInfo = subBuilder; - break; - } - case 74: { - global::Chirpstack.Gateway.FskModulationInfo subBuilder = new global::Chirpstack.Gateway.FskModulationInfo(); - if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { - subBuilder.MergeFrom(FskModulationInfo); - } - input.ReadMessage(subBuilder); - FskModulationInfo = subBuilder; - break; - } - case 80: { - Board = input.ReadUInt32(); - break; - } - case 88: { - Antenna = input.ReadUInt32(); - break; - } - case 96: { - Timing = (global::Chirpstack.Gateway.DownlinkTiming) input.ReadEnum(); - break; - } - case 106: { - global::Chirpstack.Gateway.ImmediatelyTimingInfo subBuilder = new global::Chirpstack.Gateway.ImmediatelyTimingInfo(); - if (timingInfoCase_ == TimingInfoOneofCase.ImmediatelyTimingInfo) { - subBuilder.MergeFrom(ImmediatelyTimingInfo); - } - input.ReadMessage(subBuilder); - ImmediatelyTimingInfo = subBuilder; - break; - } - case 114: { - global::Chirpstack.Gateway.DelayTimingInfo subBuilder = new global::Chirpstack.Gateway.DelayTimingInfo(); - if (timingInfoCase_ == TimingInfoOneofCase.DelayTimingInfo) { - subBuilder.MergeFrom(DelayTimingInfo); - } - input.ReadMessage(subBuilder); - DelayTimingInfo = subBuilder; - break; - } - case 122: { - global::Chirpstack.Gateway.GPSEpochTimingInfo subBuilder = new global::Chirpstack.Gateway.GPSEpochTimingInfo(); - if (timingInfoCase_ == TimingInfoOneofCase.GpsEpochTimingInfo) { - subBuilder.MergeFrom(GpsEpochTimingInfo); - } - input.ReadMessage(subBuilder); - GpsEpochTimingInfo = subBuilder; - break; - } - case 130: { - Context = input.ReadBytes(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - GatewayId = input.ReadBytes(); - break; - } - case 40: { - Frequency = input.ReadUInt32(); - break; - } - case 48: { - Power = input.ReadInt32(); - break; - } - case 56: { - Modulation = (global::Chirpstack.Common.Modulation) input.ReadEnum(); - break; - } - case 66: { - global::Chirpstack.Gateway.LoraModulationInfo subBuilder = new global::Chirpstack.Gateway.LoraModulationInfo(); - if (modulationInfoCase_ == ModulationInfoOneofCase.LoraModulationInfo) { - subBuilder.MergeFrom(LoraModulationInfo); - } - input.ReadMessage(subBuilder); - LoraModulationInfo = subBuilder; - break; - } - case 74: { - global::Chirpstack.Gateway.FskModulationInfo subBuilder = new global::Chirpstack.Gateway.FskModulationInfo(); - if (modulationInfoCase_ == ModulationInfoOneofCase.FskModulationInfo) { - subBuilder.MergeFrom(FskModulationInfo); - } - input.ReadMessage(subBuilder); - FskModulationInfo = subBuilder; - break; - } - case 80: { - Board = input.ReadUInt32(); - break; - } - case 88: { - Antenna = input.ReadUInt32(); - break; - } - case 96: { - Timing = (global::Chirpstack.Gateway.DownlinkTiming) input.ReadEnum(); - break; - } - case 106: { - global::Chirpstack.Gateway.ImmediatelyTimingInfo subBuilder = new global::Chirpstack.Gateway.ImmediatelyTimingInfo(); - if (timingInfoCase_ == TimingInfoOneofCase.ImmediatelyTimingInfo) { - subBuilder.MergeFrom(ImmediatelyTimingInfo); - } - input.ReadMessage(subBuilder); - ImmediatelyTimingInfo = subBuilder; - break; - } - case 114: { - global::Chirpstack.Gateway.DelayTimingInfo subBuilder = new global::Chirpstack.Gateway.DelayTimingInfo(); - if (timingInfoCase_ == TimingInfoOneofCase.DelayTimingInfo) { - subBuilder.MergeFrom(DelayTimingInfo); - } - input.ReadMessage(subBuilder); - DelayTimingInfo = subBuilder; - break; - } - case 122: { - global::Chirpstack.Gateway.GPSEpochTimingInfo subBuilder = new global::Chirpstack.Gateway.GPSEpochTimingInfo(); - if (timingInfoCase_ == TimingInfoOneofCase.GpsEpochTimingInfo) { - subBuilder.MergeFrom(GpsEpochTimingInfo); - } - input.ReadMessage(subBuilder); - GpsEpochTimingInfo = subBuilder; - break; - } - case 130: { - Context = input.ReadBytes(); - break; - } - } - } - } - #endif - - } - - public sealed partial class DownlinkTxInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DownlinkTxInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[13]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkTxInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkTxInfo(DownlinkTxInfo other) : this() { - frequency_ = other.frequency_; - power_ = other.power_; - modulation_ = other.modulation_ != null ? other.modulation_.Clone() : null; - board_ = other.board_; - antenna_ = other.antenna_; - timing_ = other.timing_ != null ? other.timing_.Clone() : null; - context_ = other.context_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkTxInfo Clone() { - return new DownlinkTxInfo(this); - } - - /// Field number for the "frequency" field. - public const int FrequencyFieldNumber = 1; - private uint frequency_; - /// - /// TX frequency (in Hz). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Frequency { - get { return frequency_; } - set { - frequency_ = value; - } - } - - /// Field number for the "power" field. - public const int PowerFieldNumber = 2; - private int power_; - /// - /// TX power (in dBm EIRP). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Power { - get { return power_; } - set { - power_ = value; - } - } - - /// Field number for the "modulation" field. - public const int ModulationFieldNumber = 3; - private global::Chirpstack.Gateway.Modulation modulation_; - /// - /// Modulation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.Modulation Modulation { - get { return modulation_; } - set { - modulation_ = value; - } - } - - /// Field number for the "board" field. - public const int BoardFieldNumber = 4; - private uint board_; - /// - /// The board identifier for emitting the frame. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Board { - get { return board_; } - set { - board_ = value; - } - } - - /// Field number for the "antenna" field. - public const int AntennaFieldNumber = 5; - private uint antenna_; - /// - /// The antenna identifier for emitting the frame. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Antenna { - get { return antenna_; } - set { - antenna_ = value; - } - } - - /// Field number for the "timing" field. - public const int TimingFieldNumber = 6; - private global::Chirpstack.Gateway.Timing timing_; - /// - /// Timing. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.Timing Timing { - get { return timing_; } - set { - timing_ = value; - } - } - - /// Field number for the "context" field. - public const int ContextFieldNumber = 7; - private pb::ByteString context_ = pb::ByteString.Empty; - /// - /// Gateway specific context. - /// In case of a Class-A downlink, this contains a copy of the uplink context. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Context { - get { return context_; } - set { - context_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DownlinkTxInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DownlinkTxInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Frequency != other.Frequency) return false; - if (Power != other.Power) return false; - if (!object.Equals(Modulation, other.Modulation)) return false; - if (Board != other.Board) return false; - if (Antenna != other.Antenna) return false; - if (!object.Equals(Timing, other.Timing)) return false; - if (Context != other.Context) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Frequency != 0) hash ^= Frequency.GetHashCode(); - if (Power != 0) hash ^= Power.GetHashCode(); - if (modulation_ != null) hash ^= Modulation.GetHashCode(); - if (Board != 0) hash ^= Board.GetHashCode(); - if (Antenna != 0) hash ^= Antenna.GetHashCode(); - if (timing_ != null) hash ^= Timing.GetHashCode(); - if (Context.Length != 0) hash ^= Context.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Frequency != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Frequency); - } - if (Power != 0) { - output.WriteRawTag(16); - output.WriteInt32(Power); - } - if (modulation_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Modulation); - } - if (Board != 0) { - output.WriteRawTag(32); - output.WriteUInt32(Board); - } - if (Antenna != 0) { - output.WriteRawTag(40); - output.WriteUInt32(Antenna); - } - if (timing_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Timing); - } - if (Context.Length != 0) { - output.WriteRawTag(58); - output.WriteBytes(Context); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Frequency != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Frequency); - } - if (Power != 0) { - output.WriteRawTag(16); - output.WriteInt32(Power); - } - if (modulation_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Modulation); - } - if (Board != 0) { - output.WriteRawTag(32); - output.WriteUInt32(Board); - } - if (Antenna != 0) { - output.WriteRawTag(40); - output.WriteUInt32(Antenna); - } - if (timing_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Timing); - } - if (Context.Length != 0) { - output.WriteRawTag(58); - output.WriteBytes(Context); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Frequency != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); - } - if (Power != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Power); - } - if (modulation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Modulation); - } - if (Board != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Board); - } - if (Antenna != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Antenna); - } - if (timing_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Timing); - } - if (Context.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Context); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DownlinkTxInfo other) { - if (other == null) { - return; - } - if (other.Frequency != 0) { - Frequency = other.Frequency; - } - if (other.Power != 0) { - Power = other.Power; - } - if (other.modulation_ != null) { - if (modulation_ == null) { - Modulation = new global::Chirpstack.Gateway.Modulation(); - } - Modulation.MergeFrom(other.Modulation); - } - if (other.Board != 0) { - Board = other.Board; - } - if (other.Antenna != 0) { - Antenna = other.Antenna; - } - if (other.timing_ != null) { - if (timing_ == null) { - Timing = new global::Chirpstack.Gateway.Timing(); - } - Timing.MergeFrom(other.Timing); - } - if (other.Context.Length != 0) { - Context = other.Context; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Frequency = input.ReadUInt32(); - break; - } - case 16: { - Power = input.ReadInt32(); - break; - } - case 26: { - if (modulation_ == null) { - Modulation = new global::Chirpstack.Gateway.Modulation(); - } - input.ReadMessage(Modulation); - break; - } - case 32: { - Board = input.ReadUInt32(); - break; - } - case 40: { - Antenna = input.ReadUInt32(); - break; - } - case 50: { - if (timing_ == null) { - Timing = new global::Chirpstack.Gateway.Timing(); - } - input.ReadMessage(Timing); - break; - } - case 58: { - Context = input.ReadBytes(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Frequency = input.ReadUInt32(); - break; - } - case 16: { - Power = input.ReadInt32(); - break; - } - case 26: { - if (modulation_ == null) { - Modulation = new global::Chirpstack.Gateway.Modulation(); - } - input.ReadMessage(Modulation); - break; - } - case 32: { - Board = input.ReadUInt32(); - break; - } - case 40: { - Antenna = input.ReadUInt32(); - break; - } - case 50: { - if (timing_ == null) { - Timing = new global::Chirpstack.Gateway.Timing(); - } - input.ReadMessage(Timing); - break; - } - case 58: { - Context = input.ReadBytes(); - break; - } - } - } - } - #endif - - } - - public sealed partial class Timing : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Timing()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[14]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Timing() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Timing(Timing other) : this() { - switch (other.ParametersCase) { - case ParametersOneofCase.Immediately: - Immediately = other.Immediately.Clone(); - break; - case ParametersOneofCase.Delay: - Delay = other.Delay.Clone(); - break; - case ParametersOneofCase.GpsEpoch: - GpsEpoch = other.GpsEpoch.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Timing Clone() { - return new Timing(this); - } - - /// Field number for the "immediately" field. - public const int ImmediatelyFieldNumber = 1; - /// - /// Immediately timing information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.ImmediatelyTimingInfo Immediately { - get { return parametersCase_ == ParametersOneofCase.Immediately ? (global::Chirpstack.Gateway.ImmediatelyTimingInfo) parameters_ : null; } - set { - parameters_ = value; - parametersCase_ = value == null ? ParametersOneofCase.None : ParametersOneofCase.Immediately; - } - } - - /// Field number for the "delay" field. - public const int DelayFieldNumber = 2; - /// - /// Context based delay timing information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.DelayTimingInfo Delay { - get { return parametersCase_ == ParametersOneofCase.Delay ? (global::Chirpstack.Gateway.DelayTimingInfo) parameters_ : null; } - set { - parameters_ = value; - parametersCase_ = value == null ? ParametersOneofCase.None : ParametersOneofCase.Delay; - } - } - - /// Field number for the "gps_epoch" field. - public const int GpsEpochFieldNumber = 3; - /// - /// GPS Epoch timing information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.GPSEpochTimingInfo GpsEpoch { - get { return parametersCase_ == ParametersOneofCase.GpsEpoch ? (global::Chirpstack.Gateway.GPSEpochTimingInfo) parameters_ : null; } - set { - parameters_ = value; - parametersCase_ = value == null ? ParametersOneofCase.None : ParametersOneofCase.GpsEpoch; - } - } - - private object parameters_; - /// Enum of possible cases for the "parameters" oneof. - public enum ParametersOneofCase { - None = 0, - Immediately = 1, - Delay = 2, - GpsEpoch = 3, - } - private ParametersOneofCase parametersCase_ = ParametersOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ParametersOneofCase ParametersCase { - get { return parametersCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearParameters() { - parametersCase_ = ParametersOneofCase.None; - parameters_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Timing); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Timing other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Immediately, other.Immediately)) return false; - if (!object.Equals(Delay, other.Delay)) return false; - if (!object.Equals(GpsEpoch, other.GpsEpoch)) return false; - if (ParametersCase != other.ParametersCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (parametersCase_ == ParametersOneofCase.Immediately) hash ^= Immediately.GetHashCode(); - if (parametersCase_ == ParametersOneofCase.Delay) hash ^= Delay.GetHashCode(); - if (parametersCase_ == ParametersOneofCase.GpsEpoch) hash ^= GpsEpoch.GetHashCode(); - hash ^= (int) parametersCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (parametersCase_ == ParametersOneofCase.Immediately) { - output.WriteRawTag(10); - output.WriteMessage(Immediately); - } - if (parametersCase_ == ParametersOneofCase.Delay) { - output.WriteRawTag(18); - output.WriteMessage(Delay); - } - if (parametersCase_ == ParametersOneofCase.GpsEpoch) { - output.WriteRawTag(26); - output.WriteMessage(GpsEpoch); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (parametersCase_ == ParametersOneofCase.Immediately) { - output.WriteRawTag(10); - output.WriteMessage(Immediately); - } - if (parametersCase_ == ParametersOneofCase.Delay) { - output.WriteRawTag(18); - output.WriteMessage(Delay); - } - if (parametersCase_ == ParametersOneofCase.GpsEpoch) { - output.WriteRawTag(26); - output.WriteMessage(GpsEpoch); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (parametersCase_ == ParametersOneofCase.Immediately) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Immediately); - } - if (parametersCase_ == ParametersOneofCase.Delay) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delay); - } - if (parametersCase_ == ParametersOneofCase.GpsEpoch) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GpsEpoch); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Timing other) { - if (other == null) { - return; - } - switch (other.ParametersCase) { - case ParametersOneofCase.Immediately: - if (Immediately == null) { - Immediately = new global::Chirpstack.Gateway.ImmediatelyTimingInfo(); - } - Immediately.MergeFrom(other.Immediately); - break; - case ParametersOneofCase.Delay: - if (Delay == null) { - Delay = new global::Chirpstack.Gateway.DelayTimingInfo(); - } - Delay.MergeFrom(other.Delay); - break; - case ParametersOneofCase.GpsEpoch: - if (GpsEpoch == null) { - GpsEpoch = new global::Chirpstack.Gateway.GPSEpochTimingInfo(); - } - GpsEpoch.MergeFrom(other.GpsEpoch); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Chirpstack.Gateway.ImmediatelyTimingInfo subBuilder = new global::Chirpstack.Gateway.ImmediatelyTimingInfo(); - if (parametersCase_ == ParametersOneofCase.Immediately) { - subBuilder.MergeFrom(Immediately); - } - input.ReadMessage(subBuilder); - Immediately = subBuilder; - break; - } - case 18: { - global::Chirpstack.Gateway.DelayTimingInfo subBuilder = new global::Chirpstack.Gateway.DelayTimingInfo(); - if (parametersCase_ == ParametersOneofCase.Delay) { - subBuilder.MergeFrom(Delay); - } - input.ReadMessage(subBuilder); - Delay = subBuilder; - break; - } - case 26: { - global::Chirpstack.Gateway.GPSEpochTimingInfo subBuilder = new global::Chirpstack.Gateway.GPSEpochTimingInfo(); - if (parametersCase_ == ParametersOneofCase.GpsEpoch) { - subBuilder.MergeFrom(GpsEpoch); - } - input.ReadMessage(subBuilder); - GpsEpoch = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Chirpstack.Gateway.ImmediatelyTimingInfo subBuilder = new global::Chirpstack.Gateway.ImmediatelyTimingInfo(); - if (parametersCase_ == ParametersOneofCase.Immediately) { - subBuilder.MergeFrom(Immediately); - } - input.ReadMessage(subBuilder); - Immediately = subBuilder; - break; - } - case 18: { - global::Chirpstack.Gateway.DelayTimingInfo subBuilder = new global::Chirpstack.Gateway.DelayTimingInfo(); - if (parametersCase_ == ParametersOneofCase.Delay) { - subBuilder.MergeFrom(Delay); - } - input.ReadMessage(subBuilder); - Delay = subBuilder; - break; - } - case 26: { - global::Chirpstack.Gateway.GPSEpochTimingInfo subBuilder = new global::Chirpstack.Gateway.GPSEpochTimingInfo(); - if (parametersCase_ == ParametersOneofCase.GpsEpoch) { - subBuilder.MergeFrom(GpsEpoch); - } - input.ReadMessage(subBuilder); - GpsEpoch = subBuilder; - break; - } - } - } - } - #endif - - } - - /// - /// Not implemented yet. - /// - public sealed partial class ImmediatelyTimingInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ImmediatelyTimingInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[15]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImmediatelyTimingInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImmediatelyTimingInfo(ImmediatelyTimingInfo other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImmediatelyTimingInfo Clone() { - return new ImmediatelyTimingInfo(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ImmediatelyTimingInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ImmediatelyTimingInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ImmediatelyTimingInfo other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - } - - public sealed partial class DelayTimingInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DelayTimingInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[16]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DelayTimingInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DelayTimingInfo(DelayTimingInfo other) : this() { - delay_ = other.delay_ != null ? other.delay_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DelayTimingInfo Clone() { - return new DelayTimingInfo(this); - } - - /// Field number for the "delay" field. - public const int DelayFieldNumber = 1; - private global::Google.Protobuf.WellKnownTypes.Duration delay_; - /// - /// Delay (duration). - /// The delay will be added to the gateway internal timing, provided by the - /// context object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Duration Delay { - get { return delay_; } - set { - delay_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DelayTimingInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DelayTimingInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Delay, other.Delay)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (delay_ != null) hash ^= Delay.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (delay_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Delay); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (delay_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Delay); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (delay_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delay); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DelayTimingInfo other) { - if (other == null) { - return; - } - if (other.delay_ != null) { - if (delay_ == null) { - Delay = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - Delay.MergeFrom(other.Delay); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (delay_ == null) { - Delay = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(Delay); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (delay_ == null) { - Delay = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(Delay); - break; - } - } - } - } - #endif - - } - - public sealed partial class GPSEpochTimingInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GPSEpochTimingInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[17]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GPSEpochTimingInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GPSEpochTimingInfo(GPSEpochTimingInfo other) : this() { - timeSinceGpsEpoch_ = other.timeSinceGpsEpoch_ != null ? other.timeSinceGpsEpoch_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GPSEpochTimingInfo Clone() { - return new GPSEpochTimingInfo(this); - } - - /// Field number for the "time_since_gps_epoch" field. - public const int TimeSinceGpsEpochFieldNumber = 1; - private global::Google.Protobuf.WellKnownTypes.Duration timeSinceGpsEpoch_; - /// - /// Duration since GPS Epoch. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Duration TimeSinceGpsEpoch { - get { return timeSinceGpsEpoch_; } - set { - timeSinceGpsEpoch_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GPSEpochTimingInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GPSEpochTimingInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(TimeSinceGpsEpoch, other.TimeSinceGpsEpoch)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (timeSinceGpsEpoch_ != null) hash ^= TimeSinceGpsEpoch.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (timeSinceGpsEpoch_ != null) { - output.WriteRawTag(10); - output.WriteMessage(TimeSinceGpsEpoch); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (timeSinceGpsEpoch_ != null) { - output.WriteRawTag(10); - output.WriteMessage(TimeSinceGpsEpoch); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (timeSinceGpsEpoch_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimeSinceGpsEpoch); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GPSEpochTimingInfo other) { - if (other == null) { - return; - } - if (other.timeSinceGpsEpoch_ != null) { - if (timeSinceGpsEpoch_ == null) { - TimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - TimeSinceGpsEpoch.MergeFrom(other.TimeSinceGpsEpoch); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (timeSinceGpsEpoch_ == null) { - TimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(TimeSinceGpsEpoch); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (timeSinceGpsEpoch_ == null) { - TimeSinceGpsEpoch = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(TimeSinceGpsEpoch); - break; - } - } - } - } - #endif - - } - - public sealed partial class UplinkFrame : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkFrame()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[18]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkFrame() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkFrame(UplinkFrame other) : this() { - phyPayload_ = other.phyPayload_; - txInfoLegacy_ = other.txInfoLegacy_ != null ? other.txInfoLegacy_.Clone() : null; - rxInfoLegacy_ = other.rxInfoLegacy_ != null ? other.rxInfoLegacy_.Clone() : null; - txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; - rxInfo_ = other.rxInfo_ != null ? other.rxInfo_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkFrame Clone() { - return new UplinkFrame(this); - } - - /// Field number for the "phy_payload" field. - public const int PhyPayloadFieldNumber = 1; - private pb::ByteString phyPayload_ = pb::ByteString.Empty; - /// - /// PHYPayload. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString PhyPayload { - get { return phyPayload_; } - set { - phyPayload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tx_info_legacy" field. - public const int TxInfoLegacyFieldNumber = 2; - private global::Chirpstack.Gateway.UplinkTxInfoLegacy txInfoLegacy_; - /// - /// TX meta-data (deprecated). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.UplinkTxInfoLegacy TxInfoLegacy { - get { return txInfoLegacy_; } - set { - txInfoLegacy_ = value; - } - } - - /// Field number for the "rx_info_legacy" field. - public const int RxInfoLegacyFieldNumber = 3; - private global::Chirpstack.Gateway.UplinkRxInfoLegacy rxInfoLegacy_; - /// - /// RX meta-data (deprecated). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.UplinkRxInfoLegacy RxInfoLegacy { - get { return rxInfoLegacy_; } - set { - rxInfoLegacy_ = value; - } - } - - /// Field number for the "tx_info" field. - public const int TxInfoFieldNumber = 4; - private global::Chirpstack.Gateway.UplinkTxInfo txInfo_; - /// - /// Tx meta-data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.UplinkTxInfo TxInfo { - get { return txInfo_; } - set { - txInfo_ = value; - } - } - - /// Field number for the "rx_info" field. - public const int RxInfoFieldNumber = 5; - private global::Chirpstack.Gateway.UplinkRxInfo rxInfo_; - /// - /// Rx meta-data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.UplinkRxInfo RxInfo { - get { return rxInfo_; } - set { - rxInfo_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UplinkFrame); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UplinkFrame other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PhyPayload != other.PhyPayload) return false; - if (!object.Equals(TxInfoLegacy, other.TxInfoLegacy)) return false; - if (!object.Equals(RxInfoLegacy, other.RxInfoLegacy)) return false; - if (!object.Equals(TxInfo, other.TxInfo)) return false; - if (!object.Equals(RxInfo, other.RxInfo)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (PhyPayload.Length != 0) hash ^= PhyPayload.GetHashCode(); - if (txInfoLegacy_ != null) hash ^= TxInfoLegacy.GetHashCode(); - if (rxInfoLegacy_ != null) hash ^= RxInfoLegacy.GetHashCode(); - if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); - if (rxInfo_ != null) hash ^= RxInfo.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (PhyPayload.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(PhyPayload); - } - if (txInfoLegacy_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TxInfoLegacy); - } - if (rxInfoLegacy_ != null) { - output.WriteRawTag(26); - output.WriteMessage(RxInfoLegacy); - } - if (txInfo_ != null) { - output.WriteRawTag(34); - output.WriteMessage(TxInfo); - } - if (rxInfo_ != null) { - output.WriteRawTag(42); - output.WriteMessage(RxInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PhyPayload.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(PhyPayload); - } - if (txInfoLegacy_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TxInfoLegacy); - } - if (rxInfoLegacy_ != null) { - output.WriteRawTag(26); - output.WriteMessage(RxInfoLegacy); - } - if (txInfo_ != null) { - output.WriteRawTag(34); - output.WriteMessage(TxInfo); - } - if (rxInfo_ != null) { - output.WriteRawTag(42); - output.WriteMessage(RxInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (PhyPayload.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(PhyPayload); - } - if (txInfoLegacy_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfoLegacy); - } - if (rxInfoLegacy_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RxInfoLegacy); - } - if (txInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); - } - if (rxInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RxInfo); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UplinkFrame other) { - if (other == null) { - return; - } - if (other.PhyPayload.Length != 0) { - PhyPayload = other.PhyPayload; - } - if (other.txInfoLegacy_ != null) { - if (txInfoLegacy_ == null) { - TxInfoLegacy = new global::Chirpstack.Gateway.UplinkTxInfoLegacy(); - } - TxInfoLegacy.MergeFrom(other.TxInfoLegacy); - } - if (other.rxInfoLegacy_ != null) { - if (rxInfoLegacy_ == null) { - RxInfoLegacy = new global::Chirpstack.Gateway.UplinkRxInfoLegacy(); - } - RxInfoLegacy.MergeFrom(other.RxInfoLegacy); - } - if (other.txInfo_ != null) { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); - } - TxInfo.MergeFrom(other.TxInfo); - } - if (other.rxInfo_ != null) { - if (rxInfo_ == null) { - RxInfo = new global::Chirpstack.Gateway.UplinkRxInfo(); - } - RxInfo.MergeFrom(other.RxInfo); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - PhyPayload = input.ReadBytes(); - break; - } - case 18: { - if (txInfoLegacy_ == null) { - TxInfoLegacy = new global::Chirpstack.Gateway.UplinkTxInfoLegacy(); - } - input.ReadMessage(TxInfoLegacy); - break; - } - case 26: { - if (rxInfoLegacy_ == null) { - RxInfoLegacy = new global::Chirpstack.Gateway.UplinkRxInfoLegacy(); - } - input.ReadMessage(RxInfoLegacy); - break; - } - case 34: { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); - } - input.ReadMessage(TxInfo); - break; - } - case 42: { - if (rxInfo_ == null) { - RxInfo = new global::Chirpstack.Gateway.UplinkRxInfo(); - } - input.ReadMessage(RxInfo); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - PhyPayload = input.ReadBytes(); - break; - } - case 18: { - if (txInfoLegacy_ == null) { - TxInfoLegacy = new global::Chirpstack.Gateway.UplinkTxInfoLegacy(); - } - input.ReadMessage(TxInfoLegacy); - break; - } - case 26: { - if (rxInfoLegacy_ == null) { - RxInfoLegacy = new global::Chirpstack.Gateway.UplinkRxInfoLegacy(); - } - input.ReadMessage(RxInfoLegacy); - break; - } - case 34: { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); - } - input.ReadMessage(TxInfo); - break; - } - case 42: { - if (rxInfo_ == null) { - RxInfo = new global::Chirpstack.Gateway.UplinkRxInfo(); - } - input.ReadMessage(RxInfo); - break; - } - } - } - } - #endif - - } - - public sealed partial class UplinkFrameSet : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkFrameSet()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[19]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkFrameSet() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkFrameSet(UplinkFrameSet other) : this() { - phyPayload_ = other.phyPayload_; - txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; - rxInfo_ = other.rxInfo_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkFrameSet Clone() { - return new UplinkFrameSet(this); - } - - /// Field number for the "phy_payload" field. - public const int PhyPayloadFieldNumber = 1; - private pb::ByteString phyPayload_ = pb::ByteString.Empty; - /// - /// PHYPayload. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString PhyPayload { - get { return phyPayload_; } - set { - phyPayload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tx_info" field. - public const int TxInfoFieldNumber = 2; - private global::Chirpstack.Gateway.UplinkTxInfo txInfo_; - /// - /// TX meta-data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.UplinkTxInfo TxInfo { - get { return txInfo_; } - set { - txInfo_ = value; - } - } - - /// Field number for the "rx_info" field. - public const int RxInfoFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_rxInfo_codec - = pb::FieldCodec.ForMessage(26, global::Chirpstack.Gateway.UplinkRxInfo.Parser); - private readonly pbc::RepeatedField rxInfo_ = new pbc::RepeatedField(); - /// - /// RX meta-data set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField RxInfo { - get { return rxInfo_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UplinkFrameSet); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UplinkFrameSet other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PhyPayload != other.PhyPayload) return false; - if (!object.Equals(TxInfo, other.TxInfo)) return false; - if(!rxInfo_.Equals(other.rxInfo_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (PhyPayload.Length != 0) hash ^= PhyPayload.GetHashCode(); - if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); - hash ^= rxInfo_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (PhyPayload.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(PhyPayload); - } - if (txInfo_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TxInfo); - } - rxInfo_.WriteTo(output, _repeated_rxInfo_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PhyPayload.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(PhyPayload); - } - if (txInfo_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TxInfo); - } - rxInfo_.WriteTo(ref output, _repeated_rxInfo_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (PhyPayload.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(PhyPayload); - } - if (txInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); - } - size += rxInfo_.CalculateSize(_repeated_rxInfo_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UplinkFrameSet other) { - if (other == null) { - return; - } - if (other.PhyPayload.Length != 0) { - PhyPayload = other.PhyPayload; - } - if (other.txInfo_ != null) { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); - } - TxInfo.MergeFrom(other.TxInfo); - } - rxInfo_.Add(other.rxInfo_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - PhyPayload = input.ReadBytes(); - break; - } - case 18: { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); - } - input.ReadMessage(TxInfo); - break; - } - case 26: { - rxInfo_.AddEntriesFrom(input, _repeated_rxInfo_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - PhyPayload = input.ReadBytes(); - break; - } - case 18: { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); - } - input.ReadMessage(TxInfo); - break; - } - case 26: { - rxInfo_.AddEntriesFrom(ref input, _repeated_rxInfo_codec); - break; - } - } - } - } - #endif - - } - - public sealed partial class DownlinkFrame : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DownlinkFrame()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[20]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkFrame() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkFrame(DownlinkFrame other) : this() { - downlinkId_ = other.downlinkId_; - downlinkIdLegacy_ = other.downlinkIdLegacy_; - items_ = other.items_.Clone(); - gatewayIdLegacy_ = other.gatewayIdLegacy_; - gatewayId_ = other.gatewayId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkFrame Clone() { - return new DownlinkFrame(this); - } - - /// Field number for the "downlink_id" field. - public const int DownlinkIdFieldNumber = 3; - private uint downlinkId_; - /// - /// Downlink ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint DownlinkId { - get { return downlinkId_; } - set { - downlinkId_ = value; - } - } - - /// Field number for the "downlink_id_legacy" field. - public const int DownlinkIdLegacyFieldNumber = 4; - private pb::ByteString downlinkIdLegacy_ = pb::ByteString.Empty; - /// - /// Downlink ID (UUID). - /// Deprecated: use downlink_id. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString DownlinkIdLegacy { - get { return downlinkIdLegacy_; } - set { - downlinkIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "items" field. - public const int ItemsFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_items_codec - = pb::FieldCodec.ForMessage(42, global::Chirpstack.Gateway.DownlinkFrameItem.Parser); - private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); - /// - /// Downlink frame items. - /// This makes it possible to send multiple downlink opportunities to the - /// gateway at once (e.g. RX1 and RX2 in LoRaWAN). The first item has the - /// highest priority, the last the lowest. The gateway will emit at most - /// one item. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Items { - get { return items_; } - } - - /// Field number for the "gateway_id_legacy" field. - public const int GatewayIdLegacyFieldNumber = 6; - private pb::ByteString gatewayIdLegacy_ = pb::ByteString.Empty; - /// - /// Gateway ID. - /// Deprecated: use gateway_id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString GatewayIdLegacy { - get { return gatewayIdLegacy_; } - set { - gatewayIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 7; - private string gatewayId_ = ""; - /// - /// Gateway ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DownlinkFrame); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DownlinkFrame other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DownlinkId != other.DownlinkId) return false; - if (DownlinkIdLegacy != other.DownlinkIdLegacy) return false; - if(!items_.Equals(other.items_)) return false; - if (GatewayIdLegacy != other.GatewayIdLegacy) return false; - if (GatewayId != other.GatewayId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DownlinkId != 0) hash ^= DownlinkId.GetHashCode(); - if (DownlinkIdLegacy.Length != 0) hash ^= DownlinkIdLegacy.GetHashCode(); - hash ^= items_.GetHashCode(); - if (GatewayIdLegacy.Length != 0) hash ^= GatewayIdLegacy.GetHashCode(); - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DownlinkId != 0) { - output.WriteRawTag(24); - output.WriteUInt32(DownlinkId); - } - if (DownlinkIdLegacy.Length != 0) { - output.WriteRawTag(34); - output.WriteBytes(DownlinkIdLegacy); - } - items_.WriteTo(output, _repeated_items_codec); - if (GatewayIdLegacy.Length != 0) { - output.WriteRawTag(50); - output.WriteBytes(GatewayIdLegacy); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(58); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DownlinkId != 0) { - output.WriteRawTag(24); - output.WriteUInt32(DownlinkId); - } - if (DownlinkIdLegacy.Length != 0) { - output.WriteRawTag(34); - output.WriteBytes(DownlinkIdLegacy); - } - items_.WriteTo(ref output, _repeated_items_codec); - if (GatewayIdLegacy.Length != 0) { - output.WriteRawTag(50); - output.WriteBytes(GatewayIdLegacy); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(58); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DownlinkId != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DownlinkId); - } - if (DownlinkIdLegacy.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(DownlinkIdLegacy); - } - size += items_.CalculateSize(_repeated_items_codec); - if (GatewayIdLegacy.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayIdLegacy); - } - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DownlinkFrame other) { - if (other == null) { - return; - } - if (other.DownlinkId != 0) { - DownlinkId = other.DownlinkId; - } - if (other.DownlinkIdLegacy.Length != 0) { - DownlinkIdLegacy = other.DownlinkIdLegacy; - } - items_.Add(other.items_); - if (other.GatewayIdLegacy.Length != 0) { - GatewayIdLegacy = other.GatewayIdLegacy; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 24: { - DownlinkId = input.ReadUInt32(); - break; - } - case 34: { - DownlinkIdLegacy = input.ReadBytes(); - break; - } - case 42: { - items_.AddEntriesFrom(input, _repeated_items_codec); - break; - } - case 50: { - GatewayIdLegacy = input.ReadBytes(); - break; - } - case 58: { - GatewayId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 24: { - DownlinkId = input.ReadUInt32(); - break; - } - case 34: { - DownlinkIdLegacy = input.ReadBytes(); - break; - } - case 42: { - items_.AddEntriesFrom(ref input, _repeated_items_codec); - break; - } - case 50: { - GatewayIdLegacy = input.ReadBytes(); - break; - } - case 58: { - GatewayId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class DownlinkFrameItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DownlinkFrameItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[21]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkFrameItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkFrameItem(DownlinkFrameItem other) : this() { - phyPayload_ = other.phyPayload_; - txInfoLegacy_ = other.txInfoLegacy_ != null ? other.txInfoLegacy_.Clone() : null; - txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkFrameItem Clone() { - return new DownlinkFrameItem(this); - } - - /// Field number for the "phy_payload" field. - public const int PhyPayloadFieldNumber = 1; - private pb::ByteString phyPayload_ = pb::ByteString.Empty; - /// - /// PHYPayload. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString PhyPayload { - get { return phyPayload_; } - set { - phyPayload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tx_info_legacy" field. - public const int TxInfoLegacyFieldNumber = 2; - private global::Chirpstack.Gateway.DownlinkTxInfoLegacy txInfoLegacy_; - /// - /// TX meta-data (deprecated). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.DownlinkTxInfoLegacy TxInfoLegacy { - get { return txInfoLegacy_; } - set { - txInfoLegacy_ = value; - } - } - - /// Field number for the "tx_info" field. - public const int TxInfoFieldNumber = 3; - private global::Chirpstack.Gateway.DownlinkTxInfo txInfo_; - /// - /// Tx meta-data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.DownlinkTxInfo TxInfo { - get { return txInfo_; } - set { - txInfo_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DownlinkFrameItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DownlinkFrameItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PhyPayload != other.PhyPayload) return false; - if (!object.Equals(TxInfoLegacy, other.TxInfoLegacy)) return false; - if (!object.Equals(TxInfo, other.TxInfo)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (PhyPayload.Length != 0) hash ^= PhyPayload.GetHashCode(); - if (txInfoLegacy_ != null) hash ^= TxInfoLegacy.GetHashCode(); - if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (PhyPayload.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(PhyPayload); - } - if (txInfoLegacy_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TxInfoLegacy); - } - if (txInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(TxInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PhyPayload.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(PhyPayload); - } - if (txInfoLegacy_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TxInfoLegacy); - } - if (txInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(TxInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (PhyPayload.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(PhyPayload); - } - if (txInfoLegacy_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfoLegacy); - } - if (txInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DownlinkFrameItem other) { - if (other == null) { - return; - } - if (other.PhyPayload.Length != 0) { - PhyPayload = other.PhyPayload; - } - if (other.txInfoLegacy_ != null) { - if (txInfoLegacy_ == null) { - TxInfoLegacy = new global::Chirpstack.Gateway.DownlinkTxInfoLegacy(); - } - TxInfoLegacy.MergeFrom(other.TxInfoLegacy); - } - if (other.txInfo_ != null) { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); - } - TxInfo.MergeFrom(other.TxInfo); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - PhyPayload = input.ReadBytes(); - break; - } - case 18: { - if (txInfoLegacy_ == null) { - TxInfoLegacy = new global::Chirpstack.Gateway.DownlinkTxInfoLegacy(); - } - input.ReadMessage(TxInfoLegacy); - break; - } - case 26: { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); - } - input.ReadMessage(TxInfo); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - PhyPayload = input.ReadBytes(); - break; - } - case 18: { - if (txInfoLegacy_ == null) { - TxInfoLegacy = new global::Chirpstack.Gateway.DownlinkTxInfoLegacy(); - } - input.ReadMessage(TxInfoLegacy); - break; - } - case 26: { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); - } - input.ReadMessage(TxInfo); - break; - } - } - } - } - #endif - - } - - public sealed partial class DownlinkTxAck : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DownlinkTxAck()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[22]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkTxAck() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkTxAck(DownlinkTxAck other) : this() { - gatewayIdLegacy_ = other.gatewayIdLegacy_; - gatewayId_ = other.gatewayId_; - downlinkId_ = other.downlinkId_; - downlinkIdLegacy_ = other.downlinkIdLegacy_; - items_ = other.items_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkTxAck Clone() { - return new DownlinkTxAck(this); - } - - /// Field number for the "gateway_id_legacy" field. - public const int GatewayIdLegacyFieldNumber = 1; - private pb::ByteString gatewayIdLegacy_ = pb::ByteString.Empty; - /// - /// Gateway ID (deprecated). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString GatewayIdLegacy { - get { return gatewayIdLegacy_; } - set { - gatewayIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 6; - private string gatewayId_ = ""; - /// - /// Gateway ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "downlink_id" field. - public const int DownlinkIdFieldNumber = 2; - private uint downlinkId_; - /// - /// Downlink ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint DownlinkId { - get { return downlinkId_; } - set { - downlinkId_ = value; - } - } - - /// Field number for the "downlink_id_legacy" field. - public const int DownlinkIdLegacyFieldNumber = 4; - private pb::ByteString downlinkIdLegacy_ = pb::ByteString.Empty; - /// - /// Downlink ID (deprecated). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString DownlinkIdLegacy { - get { return downlinkIdLegacy_; } - set { - downlinkIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "items" field. - public const int ItemsFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_items_codec - = pb::FieldCodec.ForMessage(42, global::Chirpstack.Gateway.DownlinkTxAckItem.Parser); - private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); - /// - /// Downlink frame items. - /// This list has the same length as the request and indicates which - /// downlink frame has been emitted of the requested list (or why it failed). - /// Note that at most one item has a positive acknowledgement. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Items { - get { return items_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DownlinkTxAck); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DownlinkTxAck other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GatewayIdLegacy != other.GatewayIdLegacy) return false; - if (GatewayId != other.GatewayId) return false; - if (DownlinkId != other.DownlinkId) return false; - if (DownlinkIdLegacy != other.DownlinkIdLegacy) return false; - if(!items_.Equals(other.items_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (GatewayIdLegacy.Length != 0) hash ^= GatewayIdLegacy.GetHashCode(); - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (DownlinkId != 0) hash ^= DownlinkId.GetHashCode(); - if (DownlinkIdLegacy.Length != 0) hash ^= DownlinkIdLegacy.GetHashCode(); - hash ^= items_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (GatewayIdLegacy.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayIdLegacy); - } - if (DownlinkId != 0) { - output.WriteRawTag(16); - output.WriteUInt32(DownlinkId); - } - if (DownlinkIdLegacy.Length != 0) { - output.WriteRawTag(34); - output.WriteBytes(DownlinkIdLegacy); - } - items_.WriteTo(output, _repeated_items_codec); - if (GatewayId.Length != 0) { - output.WriteRawTag(50); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (GatewayIdLegacy.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayIdLegacy); - } - if (DownlinkId != 0) { - output.WriteRawTag(16); - output.WriteUInt32(DownlinkId); - } - if (DownlinkIdLegacy.Length != 0) { - output.WriteRawTag(34); - output.WriteBytes(DownlinkIdLegacy); - } - items_.WriteTo(ref output, _repeated_items_codec); - if (GatewayId.Length != 0) { - output.WriteRawTag(50); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (GatewayIdLegacy.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayIdLegacy); - } - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (DownlinkId != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DownlinkId); - } - if (DownlinkIdLegacy.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(DownlinkIdLegacy); - } - size += items_.CalculateSize(_repeated_items_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DownlinkTxAck other) { - if (other == null) { - return; - } - if (other.GatewayIdLegacy.Length != 0) { - GatewayIdLegacy = other.GatewayIdLegacy; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - if (other.DownlinkId != 0) { - DownlinkId = other.DownlinkId; - } - if (other.DownlinkIdLegacy.Length != 0) { - DownlinkIdLegacy = other.DownlinkIdLegacy; - } - items_.Add(other.items_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - GatewayIdLegacy = input.ReadBytes(); - break; - } - case 16: { - DownlinkId = input.ReadUInt32(); - break; - } - case 34: { - DownlinkIdLegacy = input.ReadBytes(); - break; - } - case 42: { - items_.AddEntriesFrom(input, _repeated_items_codec); - break; - } - case 50: { - GatewayId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - GatewayIdLegacy = input.ReadBytes(); - break; - } - case 16: { - DownlinkId = input.ReadUInt32(); - break; - } - case 34: { - DownlinkIdLegacy = input.ReadBytes(); - break; - } - case 42: { - items_.AddEntriesFrom(ref input, _repeated_items_codec); - break; - } - case 50: { - GatewayId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class DownlinkTxAckItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DownlinkTxAckItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[23]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkTxAckItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkTxAckItem(DownlinkTxAckItem other) : this() { - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkTxAckItem Clone() { - return new DownlinkTxAckItem(this); - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 1; - private global::Chirpstack.Gateway.TxAckStatus status_ = global::Chirpstack.Gateway.TxAckStatus.Ignored; - /// - /// The Ack status of this item. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.TxAckStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DownlinkTxAckItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DownlinkTxAckItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Status != global::Chirpstack.Gateway.TxAckStatus.Ignored) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Status != global::Chirpstack.Gateway.TxAckStatus.Ignored) { - output.WriteRawTag(8); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Status != global::Chirpstack.Gateway.TxAckStatus.Ignored) { - output.WriteRawTag(8); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Status != global::Chirpstack.Gateway.TxAckStatus.Ignored) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DownlinkTxAckItem other) { - if (other == null) { - return; - } - if (other.Status != global::Chirpstack.Gateway.TxAckStatus.Ignored) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Status = (global::Chirpstack.Gateway.TxAckStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Status = (global::Chirpstack.Gateway.TxAckStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GatewayConfiguration : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GatewayConfiguration()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[24]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GatewayConfiguration() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GatewayConfiguration(GatewayConfiguration other) : this() { - gatewayIdLegacy_ = other.gatewayIdLegacy_; - gatewayId_ = other.gatewayId_; - version_ = other.version_; - channels_ = other.channels_.Clone(); - statsInterval_ = other.statsInterval_ != null ? other.statsInterval_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GatewayConfiguration Clone() { - return new GatewayConfiguration(this); - } - - /// Field number for the "gateway_id_legacy" field. - public const int GatewayIdLegacyFieldNumber = 1; - private pb::ByteString gatewayIdLegacy_ = pb::ByteString.Empty; - /// - /// Gateway ID. - /// Deprecated: use gateway_id. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString GatewayIdLegacy { - get { return gatewayIdLegacy_; } - set { - gatewayIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 5; - private string gatewayId_ = ""; - /// - /// Gateway ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "version" field. - public const int VersionFieldNumber = 2; - private string version_ = ""; - /// - /// Configuration version. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Version { - get { return version_; } - set { - version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "channels" field. - public const int ChannelsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_channels_codec - = pb::FieldCodec.ForMessage(26, global::Chirpstack.Gateway.ChannelConfiguration.Parser); - private readonly pbc::RepeatedField channels_ = new pbc::RepeatedField(); - /// - /// Channels. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Channels { - get { return channels_; } - } - - /// Field number for the "stats_interval" field. - public const int StatsIntervalFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.Duration statsInterval_; - /// - /// Stats interval. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Duration StatsInterval { - get { return statsInterval_; } - set { - statsInterval_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GatewayConfiguration); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GatewayConfiguration other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GatewayIdLegacy != other.GatewayIdLegacy) return false; - if (GatewayId != other.GatewayId) return false; - if (Version != other.Version) return false; - if(!channels_.Equals(other.channels_)) return false; - if (!object.Equals(StatsInterval, other.StatsInterval)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (GatewayIdLegacy.Length != 0) hash ^= GatewayIdLegacy.GetHashCode(); - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (Version.Length != 0) hash ^= Version.GetHashCode(); - hash ^= channels_.GetHashCode(); - if (statsInterval_ != null) hash ^= StatsInterval.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (GatewayIdLegacy.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayIdLegacy); - } - if (Version.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Version); - } - channels_.WriteTo(output, _repeated_channels_codec); - if (statsInterval_ != null) { - output.WriteRawTag(34); - output.WriteMessage(StatsInterval); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (GatewayIdLegacy.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayIdLegacy); - } - if (Version.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Version); - } - channels_.WriteTo(ref output, _repeated_channels_codec); - if (statsInterval_ != null) { - output.WriteRawTag(34); - output.WriteMessage(StatsInterval); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (GatewayIdLegacy.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayIdLegacy); - } - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (Version.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); - } - size += channels_.CalculateSize(_repeated_channels_codec); - if (statsInterval_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StatsInterval); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GatewayConfiguration other) { - if (other == null) { - return; - } - if (other.GatewayIdLegacy.Length != 0) { - GatewayIdLegacy = other.GatewayIdLegacy; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - if (other.Version.Length != 0) { - Version = other.Version; - } - channels_.Add(other.channels_); - if (other.statsInterval_ != null) { - if (statsInterval_ == null) { - StatsInterval = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - StatsInterval.MergeFrom(other.StatsInterval); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - GatewayIdLegacy = input.ReadBytes(); - break; - } - case 18: { - Version = input.ReadString(); - break; - } - case 26: { - channels_.AddEntriesFrom(input, _repeated_channels_codec); - break; - } - case 34: { - if (statsInterval_ == null) { - StatsInterval = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(StatsInterval); - break; - } - case 42: { - GatewayId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - GatewayIdLegacy = input.ReadBytes(); - break; - } - case 18: { - Version = input.ReadString(); - break; - } - case 26: { - channels_.AddEntriesFrom(ref input, _repeated_channels_codec); - break; - } - case 34: { - if (statsInterval_ == null) { - StatsInterval = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(StatsInterval); - break; - } - case 42: { - GatewayId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - public sealed partial class ChannelConfiguration : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChannelConfiguration()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[25]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChannelConfiguration() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChannelConfiguration(ChannelConfiguration other) : this() { - frequency_ = other.frequency_; - modulationLegacy_ = other.modulationLegacy_; - board_ = other.board_; - demodulator_ = other.demodulator_; - switch (other.ModulationConfigCase) { - case ModulationConfigOneofCase.LoraModulationConfig: - LoraModulationConfig = other.LoraModulationConfig.Clone(); - break; - case ModulationConfigOneofCase.FskModulationConfig: - FskModulationConfig = other.FskModulationConfig.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChannelConfiguration Clone() { - return new ChannelConfiguration(this); - } - - /// Field number for the "frequency" field. - public const int FrequencyFieldNumber = 1; - private uint frequency_; - /// - /// Frequency (Hz). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Frequency { - get { return frequency_; } - set { - frequency_ = value; - } - } - - /// Field number for the "modulation_legacy" field. - public const int ModulationLegacyFieldNumber = 2; - private global::Chirpstack.Common.Modulation modulationLegacy_ = global::Chirpstack.Common.Modulation.Lora; - /// - /// Modulation (deprecated). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Modulation ModulationLegacy { - get { return modulationLegacy_; } - set { - modulationLegacy_ = value; - } - } - - /// Field number for the "lora_modulation_config" field. - public const int LoraModulationConfigFieldNumber = 3; - /// - /// LoRa modulation config. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.LoraModulationConfig LoraModulationConfig { - get { return modulationConfigCase_ == ModulationConfigOneofCase.LoraModulationConfig ? (global::Chirpstack.Gateway.LoraModulationConfig) modulationConfig_ : null; } - set { - modulationConfig_ = value; - modulationConfigCase_ = value == null ? ModulationConfigOneofCase.None : ModulationConfigOneofCase.LoraModulationConfig; - } - } - - /// Field number for the "fsk_modulation_config" field. - public const int FskModulationConfigFieldNumber = 4; - /// - /// FSK modulation config. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.FskModulationConfig FskModulationConfig { - get { return modulationConfigCase_ == ModulationConfigOneofCase.FskModulationConfig ? (global::Chirpstack.Gateway.FskModulationConfig) modulationConfig_ : null; } - set { - modulationConfig_ = value; - modulationConfigCase_ = value == null ? ModulationConfigOneofCase.None : ModulationConfigOneofCase.FskModulationConfig; - } - } - - /// Field number for the "board" field. - public const int BoardFieldNumber = 5; - private uint board_; - /// - /// Board index. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Board { - get { return board_; } - set { - board_ = value; - } - } - - /// Field number for the "demodulator" field. - public const int DemodulatorFieldNumber = 6; - private uint demodulator_; - /// - /// Demodulator index (of the given board). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Demodulator { - get { return demodulator_; } - set { - demodulator_ = value; - } - } - - private object modulationConfig_; - /// Enum of possible cases for the "modulation_config" oneof. - public enum ModulationConfigOneofCase { - None = 0, - LoraModulationConfig = 3, - FskModulationConfig = 4, - } - private ModulationConfigOneofCase modulationConfigCase_ = ModulationConfigOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ModulationConfigOneofCase ModulationConfigCase { - get { return modulationConfigCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearModulationConfig() { - modulationConfigCase_ = ModulationConfigOneofCase.None; - modulationConfig_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ChannelConfiguration); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ChannelConfiguration other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Frequency != other.Frequency) return false; - if (ModulationLegacy != other.ModulationLegacy) return false; - if (!object.Equals(LoraModulationConfig, other.LoraModulationConfig)) return false; - if (!object.Equals(FskModulationConfig, other.FskModulationConfig)) return false; - if (Board != other.Board) return false; - if (Demodulator != other.Demodulator) return false; - if (ModulationConfigCase != other.ModulationConfigCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Frequency != 0) hash ^= Frequency.GetHashCode(); - if (ModulationLegacy != global::Chirpstack.Common.Modulation.Lora) hash ^= ModulationLegacy.GetHashCode(); - if (modulationConfigCase_ == ModulationConfigOneofCase.LoraModulationConfig) hash ^= LoraModulationConfig.GetHashCode(); - if (modulationConfigCase_ == ModulationConfigOneofCase.FskModulationConfig) hash ^= FskModulationConfig.GetHashCode(); - if (Board != 0) hash ^= Board.GetHashCode(); - if (Demodulator != 0) hash ^= Demodulator.GetHashCode(); - hash ^= (int) modulationConfigCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Frequency != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Frequency); - } - if (ModulationLegacy != global::Chirpstack.Common.Modulation.Lora) { - output.WriteRawTag(16); - output.WriteEnum((int) ModulationLegacy); - } - if (modulationConfigCase_ == ModulationConfigOneofCase.LoraModulationConfig) { - output.WriteRawTag(26); - output.WriteMessage(LoraModulationConfig); - } - if (modulationConfigCase_ == ModulationConfigOneofCase.FskModulationConfig) { - output.WriteRawTag(34); - output.WriteMessage(FskModulationConfig); - } - if (Board != 0) { - output.WriteRawTag(40); - output.WriteUInt32(Board); - } - if (Demodulator != 0) { - output.WriteRawTag(48); - output.WriteUInt32(Demodulator); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Frequency != 0) { - output.WriteRawTag(8); - output.WriteUInt32(Frequency); - } - if (ModulationLegacy != global::Chirpstack.Common.Modulation.Lora) { - output.WriteRawTag(16); - output.WriteEnum((int) ModulationLegacy); - } - if (modulationConfigCase_ == ModulationConfigOneofCase.LoraModulationConfig) { - output.WriteRawTag(26); - output.WriteMessage(LoraModulationConfig); - } - if (modulationConfigCase_ == ModulationConfigOneofCase.FskModulationConfig) { - output.WriteRawTag(34); - output.WriteMessage(FskModulationConfig); - } - if (Board != 0) { - output.WriteRawTag(40); - output.WriteUInt32(Board); - } - if (Demodulator != 0) { - output.WriteRawTag(48); - output.WriteUInt32(Demodulator); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Frequency != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); - } - if (ModulationLegacy != global::Chirpstack.Common.Modulation.Lora) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModulationLegacy); - } - if (modulationConfigCase_ == ModulationConfigOneofCase.LoraModulationConfig) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LoraModulationConfig); - } - if (modulationConfigCase_ == ModulationConfigOneofCase.FskModulationConfig) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(FskModulationConfig); - } - if (Board != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Board); - } - if (Demodulator != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Demodulator); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ChannelConfiguration other) { - if (other == null) { - return; - } - if (other.Frequency != 0) { - Frequency = other.Frequency; - } - if (other.ModulationLegacy != global::Chirpstack.Common.Modulation.Lora) { - ModulationLegacy = other.ModulationLegacy; - } - if (other.Board != 0) { - Board = other.Board; - } - if (other.Demodulator != 0) { - Demodulator = other.Demodulator; - } - switch (other.ModulationConfigCase) { - case ModulationConfigOneofCase.LoraModulationConfig: - if (LoraModulationConfig == null) { - LoraModulationConfig = new global::Chirpstack.Gateway.LoraModulationConfig(); - } - LoraModulationConfig.MergeFrom(other.LoraModulationConfig); - break; - case ModulationConfigOneofCase.FskModulationConfig: - if (FskModulationConfig == null) { - FskModulationConfig = new global::Chirpstack.Gateway.FskModulationConfig(); - } - FskModulationConfig.MergeFrom(other.FskModulationConfig); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Frequency = input.ReadUInt32(); - break; - } - case 16: { - ModulationLegacy = (global::Chirpstack.Common.Modulation) input.ReadEnum(); - break; - } - case 26: { - global::Chirpstack.Gateway.LoraModulationConfig subBuilder = new global::Chirpstack.Gateway.LoraModulationConfig(); - if (modulationConfigCase_ == ModulationConfigOneofCase.LoraModulationConfig) { - subBuilder.MergeFrom(LoraModulationConfig); - } - input.ReadMessage(subBuilder); - LoraModulationConfig = subBuilder; - break; - } - case 34: { - global::Chirpstack.Gateway.FskModulationConfig subBuilder = new global::Chirpstack.Gateway.FskModulationConfig(); - if (modulationConfigCase_ == ModulationConfigOneofCase.FskModulationConfig) { - subBuilder.MergeFrom(FskModulationConfig); - } - input.ReadMessage(subBuilder); - FskModulationConfig = subBuilder; - break; - } - case 40: { - Board = input.ReadUInt32(); - break; - } - case 48: { - Demodulator = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Frequency = input.ReadUInt32(); - break; - } - case 16: { - ModulationLegacy = (global::Chirpstack.Common.Modulation) input.ReadEnum(); - break; - } - case 26: { - global::Chirpstack.Gateway.LoraModulationConfig subBuilder = new global::Chirpstack.Gateway.LoraModulationConfig(); - if (modulationConfigCase_ == ModulationConfigOneofCase.LoraModulationConfig) { - subBuilder.MergeFrom(LoraModulationConfig); - } - input.ReadMessage(subBuilder); - LoraModulationConfig = subBuilder; - break; - } - case 34: { - global::Chirpstack.Gateway.FskModulationConfig subBuilder = new global::Chirpstack.Gateway.FskModulationConfig(); - if (modulationConfigCase_ == ModulationConfigOneofCase.FskModulationConfig) { - subBuilder.MergeFrom(FskModulationConfig); - } - input.ReadMessage(subBuilder); - FskModulationConfig = subBuilder; - break; - } - case 40: { - Board = input.ReadUInt32(); - break; - } - case 48: { - Demodulator = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - public sealed partial class LoraModulationConfig : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoraModulationConfig()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[26]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoraModulationConfig() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoraModulationConfig(LoraModulationConfig other) : this() { - bandwidthLegacy_ = other.bandwidthLegacy_; - bandwidth_ = other.bandwidth_; - spreadingFactors_ = other.spreadingFactors_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoraModulationConfig Clone() { - return new LoraModulationConfig(this); - } - - /// Field number for the "bandwidth_legacy" field. - public const int BandwidthLegacyFieldNumber = 1; - private uint bandwidthLegacy_; - /// - /// Bandwidth (kHz). - /// Deprecated: use bandwidth. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint BandwidthLegacy { - get { return bandwidthLegacy_; } - set { - bandwidthLegacy_ = value; - } - } - - /// Field number for the "bandwidth" field. - public const int BandwidthFieldNumber = 3; - private uint bandwidth_; - /// - /// Bandwidth (Hz). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Bandwidth { - get { return bandwidth_; } - set { - bandwidth_ = value; - } - } - - /// Field number for the "spreading_factors" field. - public const int SpreadingFactorsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_spreadingFactors_codec - = pb::FieldCodec.ForUInt32(18); - private readonly pbc::RepeatedField spreadingFactors_ = new pbc::RepeatedField(); - /// - /// Spreading-factors. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SpreadingFactors { - get { return spreadingFactors_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LoraModulationConfig); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LoraModulationConfig other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (BandwidthLegacy != other.BandwidthLegacy) return false; - if (Bandwidth != other.Bandwidth) return false; - if(!spreadingFactors_.Equals(other.spreadingFactors_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (BandwidthLegacy != 0) hash ^= BandwidthLegacy.GetHashCode(); - if (Bandwidth != 0) hash ^= Bandwidth.GetHashCode(); - hash ^= spreadingFactors_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (BandwidthLegacy != 0) { - output.WriteRawTag(8); - output.WriteUInt32(BandwidthLegacy); - } - spreadingFactors_.WriteTo(output, _repeated_spreadingFactors_codec); - if (Bandwidth != 0) { - output.WriteRawTag(24); - output.WriteUInt32(Bandwidth); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (BandwidthLegacy != 0) { - output.WriteRawTag(8); - output.WriteUInt32(BandwidthLegacy); - } - spreadingFactors_.WriteTo(ref output, _repeated_spreadingFactors_codec); - if (Bandwidth != 0) { - output.WriteRawTag(24); - output.WriteUInt32(Bandwidth); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (BandwidthLegacy != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BandwidthLegacy); - } - if (Bandwidth != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Bandwidth); - } - size += spreadingFactors_.CalculateSize(_repeated_spreadingFactors_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LoraModulationConfig other) { - if (other == null) { - return; - } - if (other.BandwidthLegacy != 0) { - BandwidthLegacy = other.BandwidthLegacy; - } - if (other.Bandwidth != 0) { - Bandwidth = other.Bandwidth; - } - spreadingFactors_.Add(other.spreadingFactors_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - BandwidthLegacy = input.ReadUInt32(); - break; - } - case 18: - case 16: { - spreadingFactors_.AddEntriesFrom(input, _repeated_spreadingFactors_codec); - break; - } - case 24: { - Bandwidth = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - BandwidthLegacy = input.ReadUInt32(); - break; - } - case 18: - case 16: { - spreadingFactors_.AddEntriesFrom(ref input, _repeated_spreadingFactors_codec); - break; - } - case 24: { - Bandwidth = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - public sealed partial class FskModulationConfig : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FskModulationConfig()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[27]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FskModulationConfig() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FskModulationConfig(FskModulationConfig other) : this() { - bandwidthLegacy_ = other.bandwidthLegacy_; - bandwidth_ = other.bandwidth_; - bitrate_ = other.bitrate_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FskModulationConfig Clone() { - return new FskModulationConfig(this); - } - - /// Field number for the "bandwidth_legacy" field. - public const int BandwidthLegacyFieldNumber = 1; - private uint bandwidthLegacy_; - /// - /// Bandwidth (kHz). - /// Deprecated: use bandwidth. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint BandwidthLegacy { - get { return bandwidthLegacy_; } - set { - bandwidthLegacy_ = value; - } - } - - /// Field number for the "bandwidth" field. - public const int BandwidthFieldNumber = 3; - private uint bandwidth_; - /// - /// Bandwidth (Hz). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Bandwidth { - get { return bandwidth_; } - set { - bandwidth_ = value; - } - } - - /// Field number for the "bitrate" field. - public const int BitrateFieldNumber = 2; - private uint bitrate_; - /// - /// Bitrate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Bitrate { - get { return bitrate_; } - set { - bitrate_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FskModulationConfig); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FskModulationConfig other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (BandwidthLegacy != other.BandwidthLegacy) return false; - if (Bandwidth != other.Bandwidth) return false; - if (Bitrate != other.Bitrate) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (BandwidthLegacy != 0) hash ^= BandwidthLegacy.GetHashCode(); - if (Bandwidth != 0) hash ^= Bandwidth.GetHashCode(); - if (Bitrate != 0) hash ^= Bitrate.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (BandwidthLegacy != 0) { - output.WriteRawTag(8); - output.WriteUInt32(BandwidthLegacy); - } - if (Bitrate != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Bitrate); - } - if (Bandwidth != 0) { - output.WriteRawTag(24); - output.WriteUInt32(Bandwidth); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (BandwidthLegacy != 0) { - output.WriteRawTag(8); - output.WriteUInt32(BandwidthLegacy); - } - if (Bitrate != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Bitrate); - } - if (Bandwidth != 0) { - output.WriteRawTag(24); - output.WriteUInt32(Bandwidth); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (BandwidthLegacy != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BandwidthLegacy); - } - if (Bandwidth != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Bandwidth); - } - if (Bitrate != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Bitrate); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FskModulationConfig other) { - if (other == null) { - return; - } - if (other.BandwidthLegacy != 0) { - BandwidthLegacy = other.BandwidthLegacy; - } - if (other.Bandwidth != 0) { - Bandwidth = other.Bandwidth; - } - if (other.Bitrate != 0) { - Bitrate = other.Bitrate; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - BandwidthLegacy = input.ReadUInt32(); - break; - } - case 16: { - Bitrate = input.ReadUInt32(); - break; - } - case 24: { - Bandwidth = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - BandwidthLegacy = input.ReadUInt32(); - break; - } - case 16: { - Bitrate = input.ReadUInt32(); - break; - } - case 24: { - Bandwidth = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GatewayCommandExecRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GatewayCommandExecRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[28]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GatewayCommandExecRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GatewayCommandExecRequest(GatewayCommandExecRequest other) : this() { - gatewayIdLegacy_ = other.gatewayIdLegacy_; - gatewayId_ = other.gatewayId_; - command_ = other.command_; - execId_ = other.execId_; - stdin_ = other.stdin_; - environment_ = other.environment_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GatewayCommandExecRequest Clone() { - return new GatewayCommandExecRequest(this); - } - - /// Field number for the "gateway_id_legacy" field. - public const int GatewayIdLegacyFieldNumber = 1; - private pb::ByteString gatewayIdLegacy_ = pb::ByteString.Empty; - /// - /// Gateway ID. - /// Deprecated: use gateway_id. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString GatewayIdLegacy { - get { return gatewayIdLegacy_; } - set { - gatewayIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 6; - private string gatewayId_ = ""; - /// - /// Gateway ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "command" field. - public const int CommandFieldNumber = 2; - private string command_ = ""; - /// - /// Command to execute. - /// This command must be pre-configured in the LoRa Gateway Bridge - /// configuration. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Command { - get { return command_; } - set { - command_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "exec_id" field. - public const int ExecIdFieldNumber = 7; - private uint execId_; - /// - /// Execution request ID. - /// The same will be returned when the execution of the command has - /// completed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ExecId { - get { return execId_; } - set { - execId_ = value; - } - } - - /// Field number for the "stdin" field. - public const int StdinFieldNumber = 4; - private pb::ByteString stdin_ = pb::ByteString.Empty; - /// - /// Standard input. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Stdin { - get { return stdin_; } - set { - stdin_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "environment" field. - public const int EnvironmentFieldNumber = 5; - private static readonly pbc::MapField.Codec _map_environment_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 42); - private readonly pbc::MapField environment_ = new pbc::MapField(); - /// - /// Environment variables. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Environment { - get { return environment_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GatewayCommandExecRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GatewayCommandExecRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GatewayIdLegacy != other.GatewayIdLegacy) return false; - if (GatewayId != other.GatewayId) return false; - if (Command != other.Command) return false; - if (ExecId != other.ExecId) return false; - if (Stdin != other.Stdin) return false; - if (!Environment.Equals(other.Environment)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (GatewayIdLegacy.Length != 0) hash ^= GatewayIdLegacy.GetHashCode(); - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (Command.Length != 0) hash ^= Command.GetHashCode(); - if (ExecId != 0) hash ^= ExecId.GetHashCode(); - if (Stdin.Length != 0) hash ^= Stdin.GetHashCode(); - hash ^= Environment.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (GatewayIdLegacy.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayIdLegacy); - } - if (Command.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Command); - } - if (Stdin.Length != 0) { - output.WriteRawTag(34); - output.WriteBytes(Stdin); - } - environment_.WriteTo(output, _map_environment_codec); - if (GatewayId.Length != 0) { - output.WriteRawTag(50); - output.WriteString(GatewayId); - } - if (ExecId != 0) { - output.WriteRawTag(56); - output.WriteUInt32(ExecId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (GatewayIdLegacy.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayIdLegacy); - } - if (Command.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Command); - } - if (Stdin.Length != 0) { - output.WriteRawTag(34); - output.WriteBytes(Stdin); - } - environment_.WriteTo(ref output, _map_environment_codec); - if (GatewayId.Length != 0) { - output.WriteRawTag(50); - output.WriteString(GatewayId); - } - if (ExecId != 0) { - output.WriteRawTag(56); - output.WriteUInt32(ExecId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (GatewayIdLegacy.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayIdLegacy); - } - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (Command.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Command); - } - if (ExecId != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ExecId); - } - if (Stdin.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Stdin); - } - size += environment_.CalculateSize(_map_environment_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GatewayCommandExecRequest other) { - if (other == null) { - return; - } - if (other.GatewayIdLegacy.Length != 0) { - GatewayIdLegacy = other.GatewayIdLegacy; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - if (other.Command.Length != 0) { - Command = other.Command; - } - if (other.ExecId != 0) { - ExecId = other.ExecId; - } - if (other.Stdin.Length != 0) { - Stdin = other.Stdin; - } - environment_.Add(other.environment_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - GatewayIdLegacy = input.ReadBytes(); - break; - } - case 18: { - Command = input.ReadString(); - break; - } - case 34: { - Stdin = input.ReadBytes(); - break; - } - case 42: { - environment_.AddEntriesFrom(input, _map_environment_codec); - break; - } - case 50: { - GatewayId = input.ReadString(); - break; - } - case 56: { - ExecId = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - GatewayIdLegacy = input.ReadBytes(); - break; - } - case 18: { - Command = input.ReadString(); - break; - } - case 34: { - Stdin = input.ReadBytes(); - break; - } - case 42: { - environment_.AddEntriesFrom(ref input, _map_environment_codec); - break; - } - case 50: { - GatewayId = input.ReadString(); - break; - } - case 56: { - ExecId = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - public sealed partial class GatewayCommandExecResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GatewayCommandExecResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[29]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GatewayCommandExecResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GatewayCommandExecResponse(GatewayCommandExecResponse other) : this() { - gatewayIdLegacy_ = other.gatewayIdLegacy_; - gatewayId_ = other.gatewayId_; - execId_ = other.execId_; - stdout_ = other.stdout_; - stderr_ = other.stderr_; - error_ = other.error_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GatewayCommandExecResponse Clone() { - return new GatewayCommandExecResponse(this); - } - - /// Field number for the "gateway_id_legacy" field. - public const int GatewayIdLegacyFieldNumber = 1; - private pb::ByteString gatewayIdLegacy_ = pb::ByteString.Empty; - /// - /// Gateway ID. - /// Deprecated: use gateway_id. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString GatewayIdLegacy { - get { return gatewayIdLegacy_; } - set { - gatewayIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 6; - private string gatewayId_ = ""; - /// - /// Gateway ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "exec_id" field. - public const int ExecIdFieldNumber = 7; - private uint execId_; - /// - /// Execution request ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ExecId { - get { return execId_; } - set { - execId_ = value; - } - } - - /// Field number for the "stdout" field. - public const int StdoutFieldNumber = 3; - private pb::ByteString stdout_ = pb::ByteString.Empty; - /// - /// Standard output. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Stdout { - get { return stdout_; } - set { - stdout_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "stderr" field. - public const int StderrFieldNumber = 4; - private pb::ByteString stderr_ = pb::ByteString.Empty; - /// - /// Standard error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Stderr { - get { return stderr_; } - set { - stderr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "error" field. - public const int ErrorFieldNumber = 5; - private string error_ = ""; - /// - /// Error message. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Error { - get { return error_; } - set { - error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GatewayCommandExecResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GatewayCommandExecResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GatewayIdLegacy != other.GatewayIdLegacy) return false; - if (GatewayId != other.GatewayId) return false; - if (ExecId != other.ExecId) return false; - if (Stdout != other.Stdout) return false; - if (Stderr != other.Stderr) return false; - if (Error != other.Error) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (GatewayIdLegacy.Length != 0) hash ^= GatewayIdLegacy.GetHashCode(); - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (ExecId != 0) hash ^= ExecId.GetHashCode(); - if (Stdout.Length != 0) hash ^= Stdout.GetHashCode(); - if (Stderr.Length != 0) hash ^= Stderr.GetHashCode(); - if (Error.Length != 0) hash ^= Error.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (GatewayIdLegacy.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayIdLegacy); - } - if (Stdout.Length != 0) { - output.WriteRawTag(26); - output.WriteBytes(Stdout); - } - if (Stderr.Length != 0) { - output.WriteRawTag(34); - output.WriteBytes(Stderr); - } - if (Error.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Error); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(50); - output.WriteString(GatewayId); - } - if (ExecId != 0) { - output.WriteRawTag(56); - output.WriteUInt32(ExecId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (GatewayIdLegacy.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayIdLegacy); - } - if (Stdout.Length != 0) { - output.WriteRawTag(26); - output.WriteBytes(Stdout); - } - if (Stderr.Length != 0) { - output.WriteRawTag(34); - output.WriteBytes(Stderr); - } - if (Error.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Error); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(50); - output.WriteString(GatewayId); - } - if (ExecId != 0) { - output.WriteRawTag(56); - output.WriteUInt32(ExecId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (GatewayIdLegacy.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayIdLegacy); - } - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (ExecId != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ExecId); - } - if (Stdout.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Stdout); - } - if (Stderr.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Stderr); - } - if (Error.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GatewayCommandExecResponse other) { - if (other == null) { - return; - } - if (other.GatewayIdLegacy.Length != 0) { - GatewayIdLegacy = other.GatewayIdLegacy; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - if (other.ExecId != 0) { - ExecId = other.ExecId; - } - if (other.Stdout.Length != 0) { - Stdout = other.Stdout; - } - if (other.Stderr.Length != 0) { - Stderr = other.Stderr; - } - if (other.Error.Length != 0) { - Error = other.Error; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - GatewayIdLegacy = input.ReadBytes(); - break; - } - case 26: { - Stdout = input.ReadBytes(); - break; - } - case 34: { - Stderr = input.ReadBytes(); - break; - } - case 42: { - Error = input.ReadString(); - break; - } - case 50: { - GatewayId = input.ReadString(); - break; - } - case 56: { - ExecId = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - GatewayIdLegacy = input.ReadBytes(); - break; - } - case 26: { - Stdout = input.ReadBytes(); - break; - } - case 34: { - Stderr = input.ReadBytes(); - break; - } - case 42: { - Error = input.ReadString(); - break; - } - case 50: { - GatewayId = input.ReadString(); - break; - } - case 56: { - ExecId = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - /// - /// RawPacketForwarderEvent contains a raw packet-forwarder event. - /// It can be used to access packet-forwarder features that are not (fully) - /// integrated with the ChirpStack Gateway Bridge. - /// - public sealed partial class RawPacketForwarderEvent : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RawPacketForwarderEvent()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[30]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RawPacketForwarderEvent() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RawPacketForwarderEvent(RawPacketForwarderEvent other) : this() { - gatewayIdLegacy_ = other.gatewayIdLegacy_; - gatewayId_ = other.gatewayId_; - payload_ = other.payload_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RawPacketForwarderEvent Clone() { - return new RawPacketForwarderEvent(this); - } - - /// Field number for the "gateway_id_legacy" field. - public const int GatewayIdLegacyFieldNumber = 1; - private pb::ByteString gatewayIdLegacy_ = pb::ByteString.Empty; - /// - /// Gateway ID. - /// Deprecated: use gateway_id. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString GatewayIdLegacy { - get { return gatewayIdLegacy_; } - set { - gatewayIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 4; - private string gatewayId_ = ""; - /// - /// Gateway ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "payload" field. - public const int PayloadFieldNumber = 3; - private pb::ByteString payload_ = pb::ByteString.Empty; - /// - /// Payload contains the raw payload. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Payload { - get { return payload_; } - set { - payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RawPacketForwarderEvent); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RawPacketForwarderEvent other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GatewayIdLegacy != other.GatewayIdLegacy) return false; - if (GatewayId != other.GatewayId) return false; - if (Payload != other.Payload) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (GatewayIdLegacy.Length != 0) hash ^= GatewayIdLegacy.GetHashCode(); - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (Payload.Length != 0) hash ^= Payload.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (GatewayIdLegacy.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayIdLegacy); - } - if (Payload.Length != 0) { - output.WriteRawTag(26); - output.WriteBytes(Payload); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (GatewayIdLegacy.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayIdLegacy); - } - if (Payload.Length != 0) { - output.WriteRawTag(26); - output.WriteBytes(Payload); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (GatewayIdLegacy.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayIdLegacy); - } - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (Payload.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payload); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RawPacketForwarderEvent other) { - if (other == null) { - return; - } - if (other.GatewayIdLegacy.Length != 0) { - GatewayIdLegacy = other.GatewayIdLegacy; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - if (other.Payload.Length != 0) { - Payload = other.Payload; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - GatewayIdLegacy = input.ReadBytes(); - break; - } - case 26: { - Payload = input.ReadBytes(); - break; - } - case 34: { - GatewayId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - GatewayIdLegacy = input.ReadBytes(); - break; - } - case 26: { - Payload = input.ReadBytes(); - break; - } - case 34: { - GatewayId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// RawPacketForwarderEvent contains a raw packet-forwarder command. - /// It can be used to access packet-forwarder features that are not (fully) - /// integrated with the ChirpStack Gateway Bridge. - /// - public sealed partial class RawPacketForwarderCommand : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RawPacketForwarderCommand()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[31]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RawPacketForwarderCommand() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RawPacketForwarderCommand(RawPacketForwarderCommand other) : this() { - gatewayIdLegacy_ = other.gatewayIdLegacy_; - gatewayId_ = other.gatewayId_; - payload_ = other.payload_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RawPacketForwarderCommand Clone() { - return new RawPacketForwarderCommand(this); - } - - /// Field number for the "gateway_id_legacy" field. - public const int GatewayIdLegacyFieldNumber = 1; - private pb::ByteString gatewayIdLegacy_ = pb::ByteString.Empty; - /// - /// Gateway ID. - /// Deprecated: use gateway_id. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString GatewayIdLegacy { - get { return gatewayIdLegacy_; } - set { - gatewayIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 4; - private string gatewayId_ = ""; - /// - /// Gateway ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "payload" field. - public const int PayloadFieldNumber = 3; - private pb::ByteString payload_ = pb::ByteString.Empty; - /// - /// Payload contains the raw payload. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Payload { - get { return payload_; } - set { - payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RawPacketForwarderCommand); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RawPacketForwarderCommand other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GatewayIdLegacy != other.GatewayIdLegacy) return false; - if (GatewayId != other.GatewayId) return false; - if (Payload != other.Payload) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (GatewayIdLegacy.Length != 0) hash ^= GatewayIdLegacy.GetHashCode(); - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (Payload.Length != 0) hash ^= Payload.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (GatewayIdLegacy.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayIdLegacy); - } - if (Payload.Length != 0) { - output.WriteRawTag(26); - output.WriteBytes(Payload); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (GatewayIdLegacy.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayIdLegacy); - } - if (Payload.Length != 0) { - output.WriteRawTag(26); - output.WriteBytes(Payload); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (GatewayIdLegacy.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayIdLegacy); - } - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (Payload.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payload); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RawPacketForwarderCommand other) { - if (other == null) { - return; - } - if (other.GatewayIdLegacy.Length != 0) { - GatewayIdLegacy = other.GatewayIdLegacy; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - if (other.Payload.Length != 0) { - Payload = other.Payload; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - GatewayIdLegacy = input.ReadBytes(); - break; - } - case 26: { - Payload = input.ReadBytes(); - break; - } - case 34: { - GatewayId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - GatewayIdLegacy = input.ReadBytes(); - break; - } - case 26: { - Payload = input.ReadBytes(); - break; - } - case 34: { - GatewayId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// ConnState contains the connection state of a gateway. - /// - public sealed partial class ConnState : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnState()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Gateway.GwReflection.Descriptor.MessageTypes[32]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConnState() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConnState(ConnState other) : this() { - gatewayIdLegacy_ = other.gatewayIdLegacy_; - gatewayId_ = other.gatewayId_; - state_ = other.state_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConnState Clone() { - return new ConnState(this); - } - - /// Field number for the "gateway_id_legacy" field. - public const int GatewayIdLegacyFieldNumber = 1; - private pb::ByteString gatewayIdLegacy_ = pb::ByteString.Empty; - /// - /// Gateway ID. - /// Deprecated: use gateway_id. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString GatewayIdLegacy { - get { return gatewayIdLegacy_; } - set { - gatewayIdLegacy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 3; - private string gatewayId_ = ""; - /// - /// Gateway ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "state" field. - public const int StateFieldNumber = 2; - private global::Chirpstack.Gateway.ConnState.Types.State state_ = global::Chirpstack.Gateway.ConnState.Types.State.Offline; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.ConnState.Types.State State { - get { return state_; } - set { - state_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConnState); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConnState other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GatewayIdLegacy != other.GatewayIdLegacy) return false; - if (GatewayId != other.GatewayId) return false; - if (State != other.State) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (GatewayIdLegacy.Length != 0) hash ^= GatewayIdLegacy.GetHashCode(); - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (State != global::Chirpstack.Gateway.ConnState.Types.State.Offline) hash ^= State.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (GatewayIdLegacy.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayIdLegacy); - } - if (State != global::Chirpstack.Gateway.ConnState.Types.State.Offline) { - output.WriteRawTag(16); - output.WriteEnum((int) State); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (GatewayIdLegacy.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(GatewayIdLegacy); - } - if (State != global::Chirpstack.Gateway.ConnState.Types.State.Offline) { - output.WriteRawTag(16); - output.WriteEnum((int) State); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (GatewayIdLegacy.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(GatewayIdLegacy); - } - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (State != global::Chirpstack.Gateway.ConnState.Types.State.Offline) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConnState other) { - if (other == null) { - return; - } - if (other.GatewayIdLegacy.Length != 0) { - GatewayIdLegacy = other.GatewayIdLegacy; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - if (other.State != global::Chirpstack.Gateway.ConnState.Types.State.Offline) { - State = other.State; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - GatewayIdLegacy = input.ReadBytes(); - break; - } - case 16: { - State = (global::Chirpstack.Gateway.ConnState.Types.State) input.ReadEnum(); - break; - } - case 26: { - GatewayId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - GatewayIdLegacy = input.ReadBytes(); - break; - } - case 16: { - State = (global::Chirpstack.Gateway.ConnState.Types.State) input.ReadEnum(); - break; - } - case 26: { - GatewayId = input.ReadString(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConnState message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - public enum State { - [pbr::OriginalName("OFFLINE")] Offline = 0, - [pbr::OriginalName("ONLINE")] Online = 1, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/api/csharp/Chirpstack/integration/Integration.cs b/api/csharp/Chirpstack/integration/Integration.cs deleted file mode 100644 index 720bf466..00000000 --- a/api/csharp/Chirpstack/integration/Integration.cs +++ /dev/null @@ -1,5274 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: integration/integration.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Chirpstack.Integration { - - /// Holder for reflection information generated from integration/integration.proto - public static partial class IntegrationReflection { - - #region Descriptor - /// File descriptor for integration/integration.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static IntegrationReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ch1pbnRlZ3JhdGlvbi9pbnRlZ3JhdGlvbi5wcm90bxILaW50ZWdyYXRpb24a", - "E2NvbW1vbi9jb21tb24ucHJvdG8aC2d3L2d3LnByb3RvGh9nb29nbGUvcHJv", - "dG9idWYvdGltZXN0YW1wLnByb3RvGhxnb29nbGUvcHJvdG9idWYvc3RydWN0", - "LnByb3RvItUCCgpEZXZpY2VJbmZvEhEKCXRlbmFudF9pZBgBIAEoCRITCgt0", - "ZW5hbnRfbmFtZRgCIAEoCRIWCg5hcHBsaWNhdGlvbl9pZBgDIAEoCRIYChBh", - "cHBsaWNhdGlvbl9uYW1lGAQgASgJEhkKEWRldmljZV9wcm9maWxlX2lkGAUg", - "ASgJEhsKE2RldmljZV9wcm9maWxlX25hbWUYBiABKAkSEwoLZGV2aWNlX25h", - "bWUYByABKAkSDwoHZGV2X2V1aRgIIAEoCRIxChRkZXZpY2VfY2xhc3NfZW5h", - "YmxlZBgKIAEoDjITLmNvbW1vbi5EZXZpY2VDbGFzcxIvCgR0YWdzGAkgAygL", - "MiEuaW50ZWdyYXRpb24uRGV2aWNlSW5mby5UYWdzRW50cnkaKwoJVGFnc0Vu", - "dHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEicwoRVXBsaW5r", - "UmVsYXlSeEluZm8SDwoHZGV2X2V1aRgBIAEoCRIRCglmcmVxdWVuY3kYAiAB", - "KA0SCgoCZHIYAyABKA0SCwoDc25yGAQgASgFEgwKBHJzc2kYBSABKAUSEwoL", - "d29yX2NoYW5uZWwYBiABKA0iyAMKC1VwbGlua0V2ZW50EhgKEGRlZHVwbGlj", - "YXRpb25faWQYASABKAkSKAoEdGltZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1", - "Zi5UaW1lc3RhbXASLAoLZGV2aWNlX2luZm8YAyABKAsyFy5pbnRlZ3JhdGlv", - "bi5EZXZpY2VJbmZvEhAKCGRldl9hZGRyGAQgASgJEgsKA2FkchgFIAEoCBIK", - "CgJkchgGIAEoDRINCgVmX2NudBgHIAEoDRIOCgZmX3BvcnQYCCABKA0SEQoJ", - "Y29uZmlybWVkGAkgASgIEgwKBGRhdGEYCiABKAwSJwoGb2JqZWN0GAsgASgL", - "MhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBIhCgdyeF9pbmZvGAwgAygLMhAu", - "Z3cuVXBsaW5rUnhJbmZvEiEKB3R4X2luZm8YDSABKAsyEC5ndy5VcGxpbmtU", - "eEluZm8SNQoNcmVsYXlfcnhfaW5mbxgOIAEoCzIeLmludGVncmF0aW9uLlVw", - "bGlua1JlbGF5UnhJbmZvEjYKE2pvaW5fc2VydmVyX2NvbnRleHQYDyABKAsy", - "GS5jb21tb24uSm9pblNlcnZlckNvbnRleHQi/gEKCUpvaW5FdmVudBIYChBk", - "ZWR1cGxpY2F0aW9uX2lkGAEgASgJEigKBHRpbWUYAiABKAsyGi5nb29nbGUu", - "cHJvdG9idWYuVGltZXN0YW1wEiwKC2RldmljZV9pbmZvGAMgASgLMhcuaW50", - "ZWdyYXRpb24uRGV2aWNlSW5mbxIQCghkZXZfYWRkchgEIAEoCRI1Cg1yZWxh", - "eV9yeF9pbmZvGAUgASgLMh4uaW50ZWdyYXRpb24uVXBsaW5rUmVsYXlSeElu", - "Zm8SNgoTam9pbl9zZXJ2ZXJfY29udGV4dBgGIAEoCzIZLmNvbW1vbi5Kb2lu", - "U2VydmVyQ29udGV4dCK9AQoIQWNrRXZlbnQSGAoQZGVkdXBsaWNhdGlvbl9p", - "ZBgBIAEoCRIoCgR0aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz", - "dGFtcBIsCgtkZXZpY2VfaW5mbxgDIAEoCzIXLmludGVncmF0aW9uLkRldmlj", - "ZUluZm8SFQoNcXVldWVfaXRlbV9pZBgEIAEoCRIUCgxhY2tub3dsZWRnZWQY", - "BSABKAgSEgoKZl9jbnRfZG93bhgGIAEoDSLdAQoKVHhBY2tFdmVudBITCgtk", - "b3dubGlua19pZBgBIAEoDRIoCgR0aW1lGAIgASgLMhouZ29vZ2xlLnByb3Rv", - "YnVmLlRpbWVzdGFtcBIsCgtkZXZpY2VfaW5mbxgDIAEoCzIXLmludGVncmF0", - "aW9uLkRldmljZUluZm8SFQoNcXVldWVfaXRlbV9pZBgEIAEoCRISCgpmX2Nu", - "dF9kb3duGAUgASgNEhIKCmdhdGV3YXlfaWQYBiABKAkSIwoHdHhfaW5mbxgH", - "IAEoCzISLmd3LkRvd25saW5rVHhJbmZvIqYCCghMb2dFdmVudBIoCgR0aW1l", - "GAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIsCgtkZXZpY2Vf", - "aW5mbxgCIAEoCzIXLmludGVncmF0aW9uLkRldmljZUluZm8SJAoFbGV2ZWwY", - "AyABKA4yFS5pbnRlZ3JhdGlvbi5Mb2dMZXZlbBIiCgRjb2RlGAQgASgOMhQu", - "aW50ZWdyYXRpb24uTG9nQ29kZRITCgtkZXNjcmlwdGlvbhgFIAEoCRIzCgdj", - "b250ZXh0GAYgAygLMiIuaW50ZWdyYXRpb24uTG9nRXZlbnQuQ29udGV4dEVu", - "dHJ5Gi4KDENvbnRleHRFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiAB", - "KAk6AjgBIugBCgtTdGF0dXNFdmVudBIYChBkZWR1cGxpY2F0aW9uX2lkGAEg", - "ASgJEigKBHRpbWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", - "EiwKC2RldmljZV9pbmZvGAMgASgLMhcuaW50ZWdyYXRpb24uRGV2aWNlSW5m", - "bxIOCgZtYXJnaW4YBSABKAUSHQoVZXh0ZXJuYWxfcG93ZXJfc291cmNlGAYg", - "ASgIEiEKGWJhdHRlcnlfbGV2ZWxfdW5hdmFpbGFibGUYByABKAgSFQoNYmF0", - "dGVyeV9sZXZlbBgIIAEoAiKlAQoNTG9jYXRpb25FdmVudBIYChBkZWR1cGxp", - "Y2F0aW9uX2lkGAEgASgJEigKBHRpbWUYAiABKAsyGi5nb29nbGUucHJvdG9i", - "dWYuVGltZXN0YW1wEiwKC2RldmljZV9pbmZvGAMgASgLMhcuaW50ZWdyYXRp", - "b24uRGV2aWNlSW5mbxIiCghsb2NhdGlvbhgEIAEoCzIQLmNvbW1vbi5Mb2Nh", - "dGlvbiLbAQoQSW50ZWdyYXRpb25FdmVudBIYChBkZWR1cGxpY2F0aW9uX2lk", - "GAEgASgJEigKBHRpbWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0", - "YW1wEiwKC2RldmljZV9pbmZvGAMgASgLMhcuaW50ZWdyYXRpb24uRGV2aWNl", - "SW5mbxIYChBpbnRlZ3JhdGlvbl9uYW1lGAQgASgJEhIKCmV2ZW50X3R5cGUY", - "BSABKAkSJwoGb2JqZWN0GAYgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVj", - "dCKIAQoPRG93bmxpbmtDb21tYW5kEgoKAmlkGAEgASgJEg8KB2Rldl9ldWkY", - "AiABKAkSEQoJY29uZmlybWVkGAMgASgIEg4KBmZfcG9ydBgEIAEoDRIMCgRk", - "YXRhGAUgASgMEicKBm9iamVjdBgGIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5T", - "dHJ1Y3QqLAoITG9nTGV2ZWwSCAoESU5GTxAAEgsKB1dBUk5JTkcQARIJCgVF", - "UlJPUhACKuoBCgdMb2dDb2RlEgsKB1VOS05PV04QABIZChVET1dOTElOS19Q", - "QVlMT0FEX1NJWkUQARIQCgxVUExJTktfQ09ERUMQAhISCg5ET1dOTElOS19D", - "T0RFQxADEggKBE9UQUEQBBIWChJVUExJTktfRl9DTlRfUkVTRVQQBRIOCgpV", - "UExJTktfTUlDEAYSHwobVVBMSU5LX0ZfQ05UX1JFVFJBTlNNSVNTSU9OEAcS", - "FAoQRE9XTkxJTktfR0FURVdBWRAIEhgKFFJFTEFZX05FV19FTkRfREVWSUNF", - "EAkSDgoKRl9DTlRfRE9XThAKQoEBCh1pby5jaGlycHN0YWNrLmFwaS5pbnRl", - "Z3JhdGlvbkIQSW50ZWdyYXRpb25Qcm90b1ABWjNnaXRodWIuY29tL2Jyb2Nh", - "YXIvY2hpcnBzdGFjay9hcGkvZ28vdjQvaW50ZWdyYXRpb26qAhZDaGlycHN0", - "YWNrLkludGVncmF0aW9uYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Chirpstack.Common.CommonReflection.Descriptor, global::Chirpstack.Gateway.GwReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chirpstack.Integration.LogLevel), typeof(global::Chirpstack.Integration.LogCode), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.DeviceInfo), global::Chirpstack.Integration.DeviceInfo.Parser, new[]{ "TenantId", "TenantName", "ApplicationId", "ApplicationName", "DeviceProfileId", "DeviceProfileName", "DeviceName", "DevEui", "DeviceClassEnabled", "Tags" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.UplinkRelayRxInfo), global::Chirpstack.Integration.UplinkRelayRxInfo.Parser, new[]{ "DevEui", "Frequency", "Dr", "Snr", "Rssi", "WorChannel" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.UplinkEvent), global::Chirpstack.Integration.UplinkEvent.Parser, new[]{ "DeduplicationId", "Time", "DeviceInfo", "DevAddr", "Adr", "Dr", "FCnt", "FPort", "Confirmed", "Data", "Object", "RxInfo", "TxInfo", "RelayRxInfo", "JoinServerContext" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.JoinEvent), global::Chirpstack.Integration.JoinEvent.Parser, new[]{ "DeduplicationId", "Time", "DeviceInfo", "DevAddr", "RelayRxInfo", "JoinServerContext" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.AckEvent), global::Chirpstack.Integration.AckEvent.Parser, new[]{ "DeduplicationId", "Time", "DeviceInfo", "QueueItemId", "Acknowledged", "FCntDown" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.TxAckEvent), global::Chirpstack.Integration.TxAckEvent.Parser, new[]{ "DownlinkId", "Time", "DeviceInfo", "QueueItemId", "FCntDown", "GatewayId", "TxInfo" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.LogEvent), global::Chirpstack.Integration.LogEvent.Parser, new[]{ "Time", "DeviceInfo", "Level", "Code", "Description", "Context" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.StatusEvent), global::Chirpstack.Integration.StatusEvent.Parser, new[]{ "DeduplicationId", "Time", "DeviceInfo", "Margin", "ExternalPowerSource", "BatteryLevelUnavailable", "BatteryLevel" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.LocationEvent), global::Chirpstack.Integration.LocationEvent.Parser, new[]{ "DeduplicationId", "Time", "DeviceInfo", "Location" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.IntegrationEvent), global::Chirpstack.Integration.IntegrationEvent.Parser, new[]{ "DeduplicationId", "Time", "DeviceInfo", "IntegrationName", "EventType", "Object" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Integration.DownlinkCommand), global::Chirpstack.Integration.DownlinkCommand.Parser, new[]{ "Id", "DevEui", "Confirmed", "FPort", "Data", "Object" }, null, null, null, null) - })); - } - #endregion - - } - #region Enums - public enum LogLevel { - /// - /// Info. - /// - [pbr::OriginalName("INFO")] Info = 0, - /// - /// Warning. - /// - [pbr::OriginalName("WARNING")] Warning = 1, - /// - /// Error. - /// - [pbr::OriginalName("ERROR")] Error = 2, - } - - public enum LogCode { - /// - /// Unknown type. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 0, - /// - /// Error related to the downlink payload size. - /// Usually seen when the payload exceeded the maximum allowed payload size. - /// - [pbr::OriginalName("DOWNLINK_PAYLOAD_SIZE")] DownlinkPayloadSize = 1, - /// - /// Uplink codec error. - /// - [pbr::OriginalName("UPLINK_CODEC")] UplinkCodec = 2, - /// - /// Downlink codec error. - /// - [pbr::OriginalName("DOWNLINK_CODEC")] DownlinkCodec = 3, - /// - /// OTAA error. - /// - [pbr::OriginalName("OTAA")] Otaa = 4, - /// - /// Uplink frame-counter was reset. - /// - [pbr::OriginalName("UPLINK_F_CNT_RESET")] UplinkFCntReset = 5, - /// - /// Uplink MIC error. - /// - [pbr::OriginalName("UPLINK_MIC")] UplinkMic = 6, - /// - /// Uplink frame-counter retransmission. - /// - [pbr::OriginalName("UPLINK_F_CNT_RETRANSMISSION")] UplinkFCntRetransmission = 7, - /// - /// Downlink gateway error. - /// - [pbr::OriginalName("DOWNLINK_GATEWAY")] DownlinkGateway = 8, - /// - /// Relay new end-device. - /// - [pbr::OriginalName("RELAY_NEW_END_DEVICE")] RelayNewEndDevice = 9, - /// - /// Downlink frame-counter. - /// - [pbr::OriginalName("F_CNT_DOWN")] FCntDown = 10, - } - - #endregion - - #region Messages - /// - /// Device information. - /// - public sealed partial class DeviceInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Integration.IntegrationReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceInfo(DeviceInfo other) : this() { - tenantId_ = other.tenantId_; - tenantName_ = other.tenantName_; - applicationId_ = other.applicationId_; - applicationName_ = other.applicationName_; - deviceProfileId_ = other.deviceProfileId_; - deviceProfileName_ = other.deviceProfileName_; - deviceName_ = other.deviceName_; - devEui_ = other.devEui_; - deviceClassEnabled_ = other.deviceClassEnabled_; - tags_ = other.tags_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceInfo Clone() { - return new DeviceInfo(this); - } - - /// Field number for the "tenant_id" field. - public const int TenantIdFieldNumber = 1; - private string tenantId_ = ""; - /// - /// Tenant ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantId { - get { return tenantId_; } - set { - tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tenant_name" field. - public const int TenantNameFieldNumber = 2; - private string tenantName_ = ""; - /// - /// Tenant name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TenantName { - get { return tenantName_; } - set { - tenantName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "application_id" field. - public const int ApplicationIdFieldNumber = 3; - private string applicationId_ = ""; - /// - /// Application ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationId { - get { return applicationId_; } - set { - applicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "application_name" field. - public const int ApplicationNameFieldNumber = 4; - private string applicationName_ = ""; - /// - /// Application name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApplicationName { - get { return applicationName_; } - set { - applicationName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_profile_id" field. - public const int DeviceProfileIdFieldNumber = 5; - private string deviceProfileId_ = ""; - /// - /// Device-profile ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeviceProfileId { - get { return deviceProfileId_; } - set { - deviceProfileId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_profile_name" field. - public const int DeviceProfileNameFieldNumber = 6; - private string deviceProfileName_ = ""; - /// - /// Device-profile name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeviceProfileName { - get { return deviceProfileName_; } - set { - deviceProfileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_name" field. - public const int DeviceNameFieldNumber = 7; - private string deviceName_ = ""; - /// - /// Device name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeviceName { - get { return deviceName_; } - set { - deviceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 8; - private string devEui_ = ""; - /// - /// Device EUI. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_class_enabled" field. - public const int DeviceClassEnabledFieldNumber = 10; - private global::Chirpstack.Common.DeviceClass deviceClassEnabled_ = global::Chirpstack.Common.DeviceClass.ClassA; - /// - /// Device class. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.DeviceClass DeviceClassEnabled { - get { return deviceClassEnabled_; } - set { - deviceClassEnabled_ = value; - } - } - - /// Field number for the "tags" field. - public const int TagsFieldNumber = 9; - private static readonly pbc::MapField.Codec _map_tags_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 74); - private readonly pbc::MapField tags_ = new pbc::MapField(); - /// - /// Device-profile and device tags. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Tags { - get { return tags_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeviceInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeviceInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TenantId != other.TenantId) return false; - if (TenantName != other.TenantName) return false; - if (ApplicationId != other.ApplicationId) return false; - if (ApplicationName != other.ApplicationName) return false; - if (DeviceProfileId != other.DeviceProfileId) return false; - if (DeviceProfileName != other.DeviceProfileName) return false; - if (DeviceName != other.DeviceName) return false; - if (DevEui != other.DevEui) return false; - if (DeviceClassEnabled != other.DeviceClassEnabled) return false; - if (!Tags.Equals(other.Tags)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TenantId.Length != 0) hash ^= TenantId.GetHashCode(); - if (TenantName.Length != 0) hash ^= TenantName.GetHashCode(); - if (ApplicationId.Length != 0) hash ^= ApplicationId.GetHashCode(); - if (ApplicationName.Length != 0) hash ^= ApplicationName.GetHashCode(); - if (DeviceProfileId.Length != 0) hash ^= DeviceProfileId.GetHashCode(); - if (DeviceProfileName.Length != 0) hash ^= DeviceProfileName.GetHashCode(); - if (DeviceName.Length != 0) hash ^= DeviceName.GetHashCode(); - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (DeviceClassEnabled != global::Chirpstack.Common.DeviceClass.ClassA) hash ^= DeviceClassEnabled.GetHashCode(); - hash ^= Tags.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (TenantName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TenantName); - } - if (ApplicationId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ApplicationId); - } - if (ApplicationName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ApplicationName); - } - if (DeviceProfileId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(DeviceProfileId); - } - if (DeviceProfileName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(DeviceProfileName); - } - if (DeviceName.Length != 0) { - output.WriteRawTag(58); - output.WriteString(DeviceName); - } - if (DevEui.Length != 0) { - output.WriteRawTag(66); - output.WriteString(DevEui); - } - tags_.WriteTo(output, _map_tags_codec); - if (DeviceClassEnabled != global::Chirpstack.Common.DeviceClass.ClassA) { - output.WriteRawTag(80); - output.WriteEnum((int) DeviceClassEnabled); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TenantId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TenantId); - } - if (TenantName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TenantName); - } - if (ApplicationId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ApplicationId); - } - if (ApplicationName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ApplicationName); - } - if (DeviceProfileId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(DeviceProfileId); - } - if (DeviceProfileName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(DeviceProfileName); - } - if (DeviceName.Length != 0) { - output.WriteRawTag(58); - output.WriteString(DeviceName); - } - if (DevEui.Length != 0) { - output.WriteRawTag(66); - output.WriteString(DevEui); - } - tags_.WriteTo(ref output, _map_tags_codec); - if (DeviceClassEnabled != global::Chirpstack.Common.DeviceClass.ClassA) { - output.WriteRawTag(80); - output.WriteEnum((int) DeviceClassEnabled); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TenantId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId); - } - if (TenantName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantName); - } - if (ApplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationId); - } - if (ApplicationName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationName); - } - if (DeviceProfileId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceProfileId); - } - if (DeviceProfileName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceProfileName); - } - if (DeviceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceName); - } - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (DeviceClassEnabled != global::Chirpstack.Common.DeviceClass.ClassA) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DeviceClassEnabled); - } - size += tags_.CalculateSize(_map_tags_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeviceInfo other) { - if (other == null) { - return; - } - if (other.TenantId.Length != 0) { - TenantId = other.TenantId; - } - if (other.TenantName.Length != 0) { - TenantName = other.TenantName; - } - if (other.ApplicationId.Length != 0) { - ApplicationId = other.ApplicationId; - } - if (other.ApplicationName.Length != 0) { - ApplicationName = other.ApplicationName; - } - if (other.DeviceProfileId.Length != 0) { - DeviceProfileId = other.DeviceProfileId; - } - if (other.DeviceProfileName.Length != 0) { - DeviceProfileName = other.DeviceProfileName; - } - if (other.DeviceName.Length != 0) { - DeviceName = other.DeviceName; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - if (other.DeviceClassEnabled != global::Chirpstack.Common.DeviceClass.ClassA) { - DeviceClassEnabled = other.DeviceClassEnabled; - } - tags_.Add(other.tags_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - case 18: { - TenantName = input.ReadString(); - break; - } - case 26: { - ApplicationId = input.ReadString(); - break; - } - case 34: { - ApplicationName = input.ReadString(); - break; - } - case 42: { - DeviceProfileId = input.ReadString(); - break; - } - case 50: { - DeviceProfileName = input.ReadString(); - break; - } - case 58: { - DeviceName = input.ReadString(); - break; - } - case 66: { - DevEui = input.ReadString(); - break; - } - case 74: { - tags_.AddEntriesFrom(input, _map_tags_codec); - break; - } - case 80: { - DeviceClassEnabled = (global::Chirpstack.Common.DeviceClass) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - TenantId = input.ReadString(); - break; - } - case 18: { - TenantName = input.ReadString(); - break; - } - case 26: { - ApplicationId = input.ReadString(); - break; - } - case 34: { - ApplicationName = input.ReadString(); - break; - } - case 42: { - DeviceProfileId = input.ReadString(); - break; - } - case 50: { - DeviceProfileName = input.ReadString(); - break; - } - case 58: { - DeviceName = input.ReadString(); - break; - } - case 66: { - DevEui = input.ReadString(); - break; - } - case 74: { - tags_.AddEntriesFrom(ref input, _map_tags_codec); - break; - } - case 80: { - DeviceClassEnabled = (global::Chirpstack.Common.DeviceClass) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Uplink relay RX information. - /// - public sealed partial class UplinkRelayRxInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkRelayRxInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Integration.IntegrationReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkRelayRxInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkRelayRxInfo(UplinkRelayRxInfo other) : this() { - devEui_ = other.devEui_; - frequency_ = other.frequency_; - dr_ = other.dr_; - snr_ = other.snr_; - rssi_ = other.rssi_; - worChannel_ = other.worChannel_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkRelayRxInfo Clone() { - return new UplinkRelayRxInfo(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// Relay DevEUI. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "frequency" field. - public const int FrequencyFieldNumber = 2; - private uint frequency_; - /// - /// Frequency. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Frequency { - get { return frequency_; } - set { - frequency_ = value; - } - } - - /// Field number for the "dr" field. - public const int DrFieldNumber = 3; - private uint dr_; - /// - /// Data-rate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Dr { - get { return dr_; } - set { - dr_ = value; - } - } - - /// Field number for the "snr" field. - public const int SnrFieldNumber = 4; - private int snr_; - /// - /// SNR. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Snr { - get { return snr_; } - set { - snr_ = value; - } - } - - /// Field number for the "rssi" field. - public const int RssiFieldNumber = 5; - private int rssi_; - /// - /// RSSI. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Rssi { - get { return rssi_; } - set { - rssi_ = value; - } - } - - /// Field number for the "wor_channel" field. - public const int WorChannelFieldNumber = 6; - private uint worChannel_; - /// - /// WOR channel. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint WorChannel { - get { return worChannel_; } - set { - worChannel_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UplinkRelayRxInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UplinkRelayRxInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - if (Frequency != other.Frequency) return false; - if (Dr != other.Dr) return false; - if (Snr != other.Snr) return false; - if (Rssi != other.Rssi) return false; - if (WorChannel != other.WorChannel) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (Frequency != 0) hash ^= Frequency.GetHashCode(); - if (Dr != 0) hash ^= Dr.GetHashCode(); - if (Snr != 0) hash ^= Snr.GetHashCode(); - if (Rssi != 0) hash ^= Rssi.GetHashCode(); - if (WorChannel != 0) hash ^= WorChannel.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (Frequency != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Frequency); - } - if (Dr != 0) { - output.WriteRawTag(24); - output.WriteUInt32(Dr); - } - if (Snr != 0) { - output.WriteRawTag(32); - output.WriteInt32(Snr); - } - if (Rssi != 0) { - output.WriteRawTag(40); - output.WriteInt32(Rssi); - } - if (WorChannel != 0) { - output.WriteRawTag(48); - output.WriteUInt32(WorChannel); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (Frequency != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Frequency); - } - if (Dr != 0) { - output.WriteRawTag(24); - output.WriteUInt32(Dr); - } - if (Snr != 0) { - output.WriteRawTag(32); - output.WriteInt32(Snr); - } - if (Rssi != 0) { - output.WriteRawTag(40); - output.WriteInt32(Rssi); - } - if (WorChannel != 0) { - output.WriteRawTag(48); - output.WriteUInt32(WorChannel); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (Frequency != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frequency); - } - if (Dr != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Dr); - } - if (Snr != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Snr); - } - if (Rssi != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rssi); - } - if (WorChannel != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WorChannel); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UplinkRelayRxInfo other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - if (other.Frequency != 0) { - Frequency = other.Frequency; - } - if (other.Dr != 0) { - Dr = other.Dr; - } - if (other.Snr != 0) { - Snr = other.Snr; - } - if (other.Rssi != 0) { - Rssi = other.Rssi; - } - if (other.WorChannel != 0) { - WorChannel = other.WorChannel; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 16: { - Frequency = input.ReadUInt32(); - break; - } - case 24: { - Dr = input.ReadUInt32(); - break; - } - case 32: { - Snr = input.ReadInt32(); - break; - } - case 40: { - Rssi = input.ReadInt32(); - break; - } - case 48: { - WorChannel = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 16: { - Frequency = input.ReadUInt32(); - break; - } - case 24: { - Dr = input.ReadUInt32(); - break; - } - case 32: { - Snr = input.ReadInt32(); - break; - } - case 40: { - Rssi = input.ReadInt32(); - break; - } - case 48: { - WorChannel = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - /// - /// UplinkEvent is the message sent when an uplink payload has been received. - /// - public sealed partial class UplinkEvent : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkEvent()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Integration.IntegrationReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkEvent() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkEvent(UplinkEvent other) : this() { - deduplicationId_ = other.deduplicationId_; - time_ = other.time_ != null ? other.time_.Clone() : null; - deviceInfo_ = other.deviceInfo_ != null ? other.deviceInfo_.Clone() : null; - devAddr_ = other.devAddr_; - adr_ = other.adr_; - dr_ = other.dr_; - fCnt_ = other.fCnt_; - fPort_ = other.fPort_; - confirmed_ = other.confirmed_; - data_ = other.data_; - object_ = other.object_ != null ? other.object_.Clone() : null; - rxInfo_ = other.rxInfo_.Clone(); - txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; - relayRxInfo_ = other.relayRxInfo_ != null ? other.relayRxInfo_.Clone() : null; - joinServerContext_ = other.joinServerContext_ != null ? other.joinServerContext_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkEvent Clone() { - return new UplinkEvent(this); - } - - /// Field number for the "deduplication_id" field. - public const int DeduplicationIdFieldNumber = 1; - private string deduplicationId_ = ""; - /// - /// Deduplication ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeduplicationId { - get { return deduplicationId_; } - set { - deduplicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp time_; - /// - /// Timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Time { - get { return time_; } - set { - time_ = value; - } - } - - /// Field number for the "device_info" field. - public const int DeviceInfoFieldNumber = 3; - private global::Chirpstack.Integration.DeviceInfo deviceInfo_; - /// - /// Device information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Integration.DeviceInfo DeviceInfo { - get { return deviceInfo_; } - set { - deviceInfo_ = value; - } - } - - /// Field number for the "dev_addr" field. - public const int DevAddrFieldNumber = 4; - private string devAddr_ = ""; - /// - /// Device address. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevAddr { - get { return devAddr_; } - set { - devAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "adr" field. - public const int AdrFieldNumber = 5; - private bool adr_; - /// - /// Device has ADR bit set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Adr { - get { return adr_; } - set { - adr_ = value; - } - } - - /// Field number for the "dr" field. - public const int DrFieldNumber = 6; - private uint dr_; - /// - /// Data-rate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Dr { - get { return dr_; } - set { - dr_ = value; - } - } - - /// Field number for the "f_cnt" field. - public const int FCntFieldNumber = 7; - private uint fCnt_; - /// - /// Frame counter. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint FCnt { - get { return fCnt_; } - set { - fCnt_ = value; - } - } - - /// Field number for the "f_port" field. - public const int FPortFieldNumber = 8; - private uint fPort_; - /// - /// Frame port. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint FPort { - get { return fPort_; } - set { - fPort_ = value; - } - } - - /// Field number for the "confirmed" field. - public const int ConfirmedFieldNumber = 9; - private bool confirmed_; - /// - /// Uplink was of type confirmed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Confirmed { - get { return confirmed_; } - set { - confirmed_ = value; - } - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 10; - private pb::ByteString data_ = pb::ByteString.Empty; - /// - /// FRMPayload data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Data { - get { return data_; } - set { - data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "object" field. - public const int ObjectFieldNumber = 11; - private global::Google.Protobuf.WellKnownTypes.Struct object_; - /// - /// Note that this is only set when a codec is configured in the Device - /// Profile. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Struct Object { - get { return object_; } - set { - object_ = value; - } - } - - /// Field number for the "rx_info" field. - public const int RxInfoFieldNumber = 12; - private static readonly pb::FieldCodec _repeated_rxInfo_codec - = pb::FieldCodec.ForMessage(98, global::Chirpstack.Gateway.UplinkRxInfo.Parser); - private readonly pbc::RepeatedField rxInfo_ = new pbc::RepeatedField(); - /// - /// Receiving gateway RX info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField RxInfo { - get { return rxInfo_; } - } - - /// Field number for the "tx_info" field. - public const int TxInfoFieldNumber = 13; - private global::Chirpstack.Gateway.UplinkTxInfo txInfo_; - /// - /// TX info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.UplinkTxInfo TxInfo { - get { return txInfo_; } - set { - txInfo_ = value; - } - } - - /// Field number for the "relay_rx_info" field. - public const int RelayRxInfoFieldNumber = 14; - private global::Chirpstack.Integration.UplinkRelayRxInfo relayRxInfo_; - /// - /// Relay info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Integration.UplinkRelayRxInfo RelayRxInfo { - get { return relayRxInfo_; } - set { - relayRxInfo_ = value; - } - } - - /// Field number for the "join_server_context" field. - public const int JoinServerContextFieldNumber = 15; - private global::Chirpstack.Common.JoinServerContext joinServerContext_; - /// - /// Join-Server context. - /// A non-empty value indicatest that ChirpStack does not have access to - /// the AppSKey and that the encryption / decryption of the payloads is - /// the responsibility of the end-application. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.JoinServerContext JoinServerContext { - get { return joinServerContext_; } - set { - joinServerContext_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UplinkEvent); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UplinkEvent other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DeduplicationId != other.DeduplicationId) return false; - if (!object.Equals(Time, other.Time)) return false; - if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; - if (DevAddr != other.DevAddr) return false; - if (Adr != other.Adr) return false; - if (Dr != other.Dr) return false; - if (FCnt != other.FCnt) return false; - if (FPort != other.FPort) return false; - if (Confirmed != other.Confirmed) return false; - if (Data != other.Data) return false; - if (!object.Equals(Object, other.Object)) return false; - if(!rxInfo_.Equals(other.rxInfo_)) return false; - if (!object.Equals(TxInfo, other.TxInfo)) return false; - if (!object.Equals(RelayRxInfo, other.RelayRxInfo)) return false; - if (!object.Equals(JoinServerContext, other.JoinServerContext)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DeduplicationId.Length != 0) hash ^= DeduplicationId.GetHashCode(); - if (time_ != null) hash ^= Time.GetHashCode(); - if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); - if (DevAddr.Length != 0) hash ^= DevAddr.GetHashCode(); - if (Adr != false) hash ^= Adr.GetHashCode(); - if (Dr != 0) hash ^= Dr.GetHashCode(); - if (FCnt != 0) hash ^= FCnt.GetHashCode(); - if (FPort != 0) hash ^= FPort.GetHashCode(); - if (Confirmed != false) hash ^= Confirmed.GetHashCode(); - if (Data.Length != 0) hash ^= Data.GetHashCode(); - if (object_ != null) hash ^= Object.GetHashCode(); - hash ^= rxInfo_.GetHashCode(); - if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); - if (relayRxInfo_ != null) hash ^= RelayRxInfo.GetHashCode(); - if (joinServerContext_ != null) hash ^= JoinServerContext.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DeduplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DeduplicationId); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (deviceInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(DeviceInfo); - } - if (DevAddr.Length != 0) { - output.WriteRawTag(34); - output.WriteString(DevAddr); - } - if (Adr != false) { - output.WriteRawTag(40); - output.WriteBool(Adr); - } - if (Dr != 0) { - output.WriteRawTag(48); - output.WriteUInt32(Dr); - } - if (FCnt != 0) { - output.WriteRawTag(56); - output.WriteUInt32(FCnt); - } - if (FPort != 0) { - output.WriteRawTag(64); - output.WriteUInt32(FPort); - } - if (Confirmed != false) { - output.WriteRawTag(72); - output.WriteBool(Confirmed); - } - if (Data.Length != 0) { - output.WriteRawTag(82); - output.WriteBytes(Data); - } - if (object_ != null) { - output.WriteRawTag(90); - output.WriteMessage(Object); - } - rxInfo_.WriteTo(output, _repeated_rxInfo_codec); - if (txInfo_ != null) { - output.WriteRawTag(106); - output.WriteMessage(TxInfo); - } - if (relayRxInfo_ != null) { - output.WriteRawTag(114); - output.WriteMessage(RelayRxInfo); - } - if (joinServerContext_ != null) { - output.WriteRawTag(122); - output.WriteMessage(JoinServerContext); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DeduplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DeduplicationId); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (deviceInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(DeviceInfo); - } - if (DevAddr.Length != 0) { - output.WriteRawTag(34); - output.WriteString(DevAddr); - } - if (Adr != false) { - output.WriteRawTag(40); - output.WriteBool(Adr); - } - if (Dr != 0) { - output.WriteRawTag(48); - output.WriteUInt32(Dr); - } - if (FCnt != 0) { - output.WriteRawTag(56); - output.WriteUInt32(FCnt); - } - if (FPort != 0) { - output.WriteRawTag(64); - output.WriteUInt32(FPort); - } - if (Confirmed != false) { - output.WriteRawTag(72); - output.WriteBool(Confirmed); - } - if (Data.Length != 0) { - output.WriteRawTag(82); - output.WriteBytes(Data); - } - if (object_ != null) { - output.WriteRawTag(90); - output.WriteMessage(Object); - } - rxInfo_.WriteTo(ref output, _repeated_rxInfo_codec); - if (txInfo_ != null) { - output.WriteRawTag(106); - output.WriteMessage(TxInfo); - } - if (relayRxInfo_ != null) { - output.WriteRawTag(114); - output.WriteMessage(RelayRxInfo); - } - if (joinServerContext_ != null) { - output.WriteRawTag(122); - output.WriteMessage(JoinServerContext); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DeduplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeduplicationId); - } - if (time_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); - } - if (deviceInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); - } - if (DevAddr.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevAddr); - } - if (Adr != false) { - size += 1 + 1; - } - if (Dr != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Dr); - } - if (FCnt != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCnt); - } - if (FPort != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FPort); - } - if (Confirmed != false) { - size += 1 + 1; - } - if (Data.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); - } - if (object_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Object); - } - size += rxInfo_.CalculateSize(_repeated_rxInfo_codec); - if (txInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); - } - if (relayRxInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RelayRxInfo); - } - if (joinServerContext_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(JoinServerContext); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UplinkEvent other) { - if (other == null) { - return; - } - if (other.DeduplicationId.Length != 0) { - DeduplicationId = other.DeduplicationId; - } - if (other.time_ != null) { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Time.MergeFrom(other.Time); - } - if (other.deviceInfo_ != null) { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - DeviceInfo.MergeFrom(other.DeviceInfo); - } - if (other.DevAddr.Length != 0) { - DevAddr = other.DevAddr; - } - if (other.Adr != false) { - Adr = other.Adr; - } - if (other.Dr != 0) { - Dr = other.Dr; - } - if (other.FCnt != 0) { - FCnt = other.FCnt; - } - if (other.FPort != 0) { - FPort = other.FPort; - } - if (other.Confirmed != false) { - Confirmed = other.Confirmed; - } - if (other.Data.Length != 0) { - Data = other.Data; - } - if (other.object_ != null) { - if (object_ == null) { - Object = new global::Google.Protobuf.WellKnownTypes.Struct(); - } - Object.MergeFrom(other.Object); - } - rxInfo_.Add(other.rxInfo_); - if (other.txInfo_ != null) { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); - } - TxInfo.MergeFrom(other.TxInfo); - } - if (other.relayRxInfo_ != null) { - if (relayRxInfo_ == null) { - RelayRxInfo = new global::Chirpstack.Integration.UplinkRelayRxInfo(); - } - RelayRxInfo.MergeFrom(other.RelayRxInfo); - } - if (other.joinServerContext_ != null) { - if (joinServerContext_ == null) { - JoinServerContext = new global::Chirpstack.Common.JoinServerContext(); - } - JoinServerContext.MergeFrom(other.JoinServerContext); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DeduplicationId = input.ReadString(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - input.ReadMessage(DeviceInfo); - break; - } - case 34: { - DevAddr = input.ReadString(); - break; - } - case 40: { - Adr = input.ReadBool(); - break; - } - case 48: { - Dr = input.ReadUInt32(); - break; - } - case 56: { - FCnt = input.ReadUInt32(); - break; - } - case 64: { - FPort = input.ReadUInt32(); - break; - } - case 72: { - Confirmed = input.ReadBool(); - break; - } - case 82: { - Data = input.ReadBytes(); - break; - } - case 90: { - if (object_ == null) { - Object = new global::Google.Protobuf.WellKnownTypes.Struct(); - } - input.ReadMessage(Object); - break; - } - case 98: { - rxInfo_.AddEntriesFrom(input, _repeated_rxInfo_codec); - break; - } - case 106: { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); - } - input.ReadMessage(TxInfo); - break; - } - case 114: { - if (relayRxInfo_ == null) { - RelayRxInfo = new global::Chirpstack.Integration.UplinkRelayRxInfo(); - } - input.ReadMessage(RelayRxInfo); - break; - } - case 122: { - if (joinServerContext_ == null) { - JoinServerContext = new global::Chirpstack.Common.JoinServerContext(); - } - input.ReadMessage(JoinServerContext); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DeduplicationId = input.ReadString(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - input.ReadMessage(DeviceInfo); - break; - } - case 34: { - DevAddr = input.ReadString(); - break; - } - case 40: { - Adr = input.ReadBool(); - break; - } - case 48: { - Dr = input.ReadUInt32(); - break; - } - case 56: { - FCnt = input.ReadUInt32(); - break; - } - case 64: { - FPort = input.ReadUInt32(); - break; - } - case 72: { - Confirmed = input.ReadBool(); - break; - } - case 82: { - Data = input.ReadBytes(); - break; - } - case 90: { - if (object_ == null) { - Object = new global::Google.Protobuf.WellKnownTypes.Struct(); - } - input.ReadMessage(Object); - break; - } - case 98: { - rxInfo_.AddEntriesFrom(ref input, _repeated_rxInfo_codec); - break; - } - case 106: { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); - } - input.ReadMessage(TxInfo); - break; - } - case 114: { - if (relayRxInfo_ == null) { - RelayRxInfo = new global::Chirpstack.Integration.UplinkRelayRxInfo(); - } - input.ReadMessage(RelayRxInfo); - break; - } - case 122: { - if (joinServerContext_ == null) { - JoinServerContext = new global::Chirpstack.Common.JoinServerContext(); - } - input.ReadMessage(JoinServerContext); - break; - } - } - } - } - #endif - - } - - /// - /// JoinEvent is the message sent when a device joined the network. - /// Note: this event is sent at the first uplink after OTAA. - /// - public sealed partial class JoinEvent : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JoinEvent()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Integration.IntegrationReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public JoinEvent() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public JoinEvent(JoinEvent other) : this() { - deduplicationId_ = other.deduplicationId_; - time_ = other.time_ != null ? other.time_.Clone() : null; - deviceInfo_ = other.deviceInfo_ != null ? other.deviceInfo_.Clone() : null; - devAddr_ = other.devAddr_; - relayRxInfo_ = other.relayRxInfo_ != null ? other.relayRxInfo_.Clone() : null; - joinServerContext_ = other.joinServerContext_ != null ? other.joinServerContext_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public JoinEvent Clone() { - return new JoinEvent(this); - } - - /// Field number for the "deduplication_id" field. - public const int DeduplicationIdFieldNumber = 1; - private string deduplicationId_ = ""; - /// - /// Deduplication ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeduplicationId { - get { return deduplicationId_; } - set { - deduplicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp time_; - /// - /// Timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Time { - get { return time_; } - set { - time_ = value; - } - } - - /// Field number for the "device_info" field. - public const int DeviceInfoFieldNumber = 3; - private global::Chirpstack.Integration.DeviceInfo deviceInfo_; - /// - /// Device info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Integration.DeviceInfo DeviceInfo { - get { return deviceInfo_; } - set { - deviceInfo_ = value; - } - } - - /// Field number for the "dev_addr" field. - public const int DevAddrFieldNumber = 4; - private string devAddr_ = ""; - /// - /// Device address. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevAddr { - get { return devAddr_; } - set { - devAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "relay_rx_info" field. - public const int RelayRxInfoFieldNumber = 5; - private global::Chirpstack.Integration.UplinkRelayRxInfo relayRxInfo_; - /// - /// Relay info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Integration.UplinkRelayRxInfo RelayRxInfo { - get { return relayRxInfo_; } - set { - relayRxInfo_ = value; - } - } - - /// Field number for the "join_server_context" field. - public const int JoinServerContextFieldNumber = 6; - private global::Chirpstack.Common.JoinServerContext joinServerContext_; - /// - /// Join-Server context. - /// A non-empty value indicatest that ChirpStack does not have access to - /// the AppSKey and that the encryption / decryption of the payloads is - /// the responsibility of the end-application. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.JoinServerContext JoinServerContext { - get { return joinServerContext_; } - set { - joinServerContext_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as JoinEvent); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(JoinEvent other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DeduplicationId != other.DeduplicationId) return false; - if (!object.Equals(Time, other.Time)) return false; - if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; - if (DevAddr != other.DevAddr) return false; - if (!object.Equals(RelayRxInfo, other.RelayRxInfo)) return false; - if (!object.Equals(JoinServerContext, other.JoinServerContext)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DeduplicationId.Length != 0) hash ^= DeduplicationId.GetHashCode(); - if (time_ != null) hash ^= Time.GetHashCode(); - if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); - if (DevAddr.Length != 0) hash ^= DevAddr.GetHashCode(); - if (relayRxInfo_ != null) hash ^= RelayRxInfo.GetHashCode(); - if (joinServerContext_ != null) hash ^= JoinServerContext.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DeduplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DeduplicationId); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (deviceInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(DeviceInfo); - } - if (DevAddr.Length != 0) { - output.WriteRawTag(34); - output.WriteString(DevAddr); - } - if (relayRxInfo_ != null) { - output.WriteRawTag(42); - output.WriteMessage(RelayRxInfo); - } - if (joinServerContext_ != null) { - output.WriteRawTag(50); - output.WriteMessage(JoinServerContext); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DeduplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DeduplicationId); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (deviceInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(DeviceInfo); - } - if (DevAddr.Length != 0) { - output.WriteRawTag(34); - output.WriteString(DevAddr); - } - if (relayRxInfo_ != null) { - output.WriteRawTag(42); - output.WriteMessage(RelayRxInfo); - } - if (joinServerContext_ != null) { - output.WriteRawTag(50); - output.WriteMessage(JoinServerContext); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DeduplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeduplicationId); - } - if (time_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); - } - if (deviceInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); - } - if (DevAddr.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevAddr); - } - if (relayRxInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RelayRxInfo); - } - if (joinServerContext_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(JoinServerContext); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(JoinEvent other) { - if (other == null) { - return; - } - if (other.DeduplicationId.Length != 0) { - DeduplicationId = other.DeduplicationId; - } - if (other.time_ != null) { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Time.MergeFrom(other.Time); - } - if (other.deviceInfo_ != null) { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - DeviceInfo.MergeFrom(other.DeviceInfo); - } - if (other.DevAddr.Length != 0) { - DevAddr = other.DevAddr; - } - if (other.relayRxInfo_ != null) { - if (relayRxInfo_ == null) { - RelayRxInfo = new global::Chirpstack.Integration.UplinkRelayRxInfo(); - } - RelayRxInfo.MergeFrom(other.RelayRxInfo); - } - if (other.joinServerContext_ != null) { - if (joinServerContext_ == null) { - JoinServerContext = new global::Chirpstack.Common.JoinServerContext(); - } - JoinServerContext.MergeFrom(other.JoinServerContext); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DeduplicationId = input.ReadString(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - input.ReadMessage(DeviceInfo); - break; - } - case 34: { - DevAddr = input.ReadString(); - break; - } - case 42: { - if (relayRxInfo_ == null) { - RelayRxInfo = new global::Chirpstack.Integration.UplinkRelayRxInfo(); - } - input.ReadMessage(RelayRxInfo); - break; - } - case 50: { - if (joinServerContext_ == null) { - JoinServerContext = new global::Chirpstack.Common.JoinServerContext(); - } - input.ReadMessage(JoinServerContext); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DeduplicationId = input.ReadString(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - input.ReadMessage(DeviceInfo); - break; - } - case 34: { - DevAddr = input.ReadString(); - break; - } - case 42: { - if (relayRxInfo_ == null) { - RelayRxInfo = new global::Chirpstack.Integration.UplinkRelayRxInfo(); - } - input.ReadMessage(RelayRxInfo); - break; - } - case 50: { - if (joinServerContext_ == null) { - JoinServerContext = new global::Chirpstack.Common.JoinServerContext(); - } - input.ReadMessage(JoinServerContext); - break; - } - } - } - } - #endif - - } - - /// - /// AckEvent is the message sent when a confirmation on a confirmed downlink - /// has been received -or- when the downlink timed out. - /// - public sealed partial class AckEvent : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AckEvent()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Integration.IntegrationReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AckEvent() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AckEvent(AckEvent other) : this() { - deduplicationId_ = other.deduplicationId_; - time_ = other.time_ != null ? other.time_.Clone() : null; - deviceInfo_ = other.deviceInfo_ != null ? other.deviceInfo_.Clone() : null; - queueItemId_ = other.queueItemId_; - acknowledged_ = other.acknowledged_; - fCntDown_ = other.fCntDown_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AckEvent Clone() { - return new AckEvent(this); - } - - /// Field number for the "deduplication_id" field. - public const int DeduplicationIdFieldNumber = 1; - private string deduplicationId_ = ""; - /// - /// Deduplication ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeduplicationId { - get { return deduplicationId_; } - set { - deduplicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp time_; - /// - /// Timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Time { - get { return time_; } - set { - time_ = value; - } - } - - /// Field number for the "device_info" field. - public const int DeviceInfoFieldNumber = 3; - private global::Chirpstack.Integration.DeviceInfo deviceInfo_; - /// - /// Device info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Integration.DeviceInfo DeviceInfo { - get { return deviceInfo_; } - set { - deviceInfo_ = value; - } - } - - /// Field number for the "queue_item_id" field. - public const int QueueItemIdFieldNumber = 4; - private string queueItemId_ = ""; - /// - /// Downlink queue item ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string QueueItemId { - get { return queueItemId_; } - set { - queueItemId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "acknowledged" field. - public const int AcknowledgedFieldNumber = 5; - private bool acknowledged_; - /// - /// Frame was acknowledged. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Acknowledged { - get { return acknowledged_; } - set { - acknowledged_ = value; - } - } - - /// Field number for the "f_cnt_down" field. - public const int FCntDownFieldNumber = 6; - private uint fCntDown_; - /// - /// Downlink frame counter to which the acknowledgement relates. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint FCntDown { - get { return fCntDown_; } - set { - fCntDown_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AckEvent); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AckEvent other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DeduplicationId != other.DeduplicationId) return false; - if (!object.Equals(Time, other.Time)) return false; - if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; - if (QueueItemId != other.QueueItemId) return false; - if (Acknowledged != other.Acknowledged) return false; - if (FCntDown != other.FCntDown) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DeduplicationId.Length != 0) hash ^= DeduplicationId.GetHashCode(); - if (time_ != null) hash ^= Time.GetHashCode(); - if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); - if (QueueItemId.Length != 0) hash ^= QueueItemId.GetHashCode(); - if (Acknowledged != false) hash ^= Acknowledged.GetHashCode(); - if (FCntDown != 0) hash ^= FCntDown.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DeduplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DeduplicationId); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (deviceInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(DeviceInfo); - } - if (QueueItemId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(QueueItemId); - } - if (Acknowledged != false) { - output.WriteRawTag(40); - output.WriteBool(Acknowledged); - } - if (FCntDown != 0) { - output.WriteRawTag(48); - output.WriteUInt32(FCntDown); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DeduplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DeduplicationId); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (deviceInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(DeviceInfo); - } - if (QueueItemId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(QueueItemId); - } - if (Acknowledged != false) { - output.WriteRawTag(40); - output.WriteBool(Acknowledged); - } - if (FCntDown != 0) { - output.WriteRawTag(48); - output.WriteUInt32(FCntDown); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DeduplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeduplicationId); - } - if (time_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); - } - if (deviceInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); - } - if (QueueItemId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(QueueItemId); - } - if (Acknowledged != false) { - size += 1 + 1; - } - if (FCntDown != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCntDown); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AckEvent other) { - if (other == null) { - return; - } - if (other.DeduplicationId.Length != 0) { - DeduplicationId = other.DeduplicationId; - } - if (other.time_ != null) { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Time.MergeFrom(other.Time); - } - if (other.deviceInfo_ != null) { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - DeviceInfo.MergeFrom(other.DeviceInfo); - } - if (other.QueueItemId.Length != 0) { - QueueItemId = other.QueueItemId; - } - if (other.Acknowledged != false) { - Acknowledged = other.Acknowledged; - } - if (other.FCntDown != 0) { - FCntDown = other.FCntDown; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DeduplicationId = input.ReadString(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - input.ReadMessage(DeviceInfo); - break; - } - case 34: { - QueueItemId = input.ReadString(); - break; - } - case 40: { - Acknowledged = input.ReadBool(); - break; - } - case 48: { - FCntDown = input.ReadUInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DeduplicationId = input.ReadString(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - input.ReadMessage(DeviceInfo); - break; - } - case 34: { - QueueItemId = input.ReadString(); - break; - } - case 40: { - Acknowledged = input.ReadBool(); - break; - } - case 48: { - FCntDown = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - /// - /// TxAckEvent is the message sent when a downlink was acknowledged by the - /// gateway for transmission. As a downlink can be scheduled in the future, this - /// event does not confirm that the message has already been transmitted. - /// - public sealed partial class TxAckEvent : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TxAckEvent()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Integration.IntegrationReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TxAckEvent() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TxAckEvent(TxAckEvent other) : this() { - downlinkId_ = other.downlinkId_; - time_ = other.time_ != null ? other.time_.Clone() : null; - deviceInfo_ = other.deviceInfo_ != null ? other.deviceInfo_.Clone() : null; - queueItemId_ = other.queueItemId_; - fCntDown_ = other.fCntDown_; - gatewayId_ = other.gatewayId_; - txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TxAckEvent Clone() { - return new TxAckEvent(this); - } - - /// Field number for the "downlink_id" field. - public const int DownlinkIdFieldNumber = 1; - private uint downlinkId_; - /// - /// Downlink ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint DownlinkId { - get { return downlinkId_; } - set { - downlinkId_ = value; - } - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp time_; - /// - /// Timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Time { - get { return time_; } - set { - time_ = value; - } - } - - /// Field number for the "device_info" field. - public const int DeviceInfoFieldNumber = 3; - private global::Chirpstack.Integration.DeviceInfo deviceInfo_; - /// - /// Device info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Integration.DeviceInfo DeviceInfo { - get { return deviceInfo_; } - set { - deviceInfo_ = value; - } - } - - /// Field number for the "queue_item_id" field. - public const int QueueItemIdFieldNumber = 4; - private string queueItemId_ = ""; - /// - /// Downlink queue item ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string QueueItemId { - get { return queueItemId_; } - set { - queueItemId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "f_cnt_down" field. - public const int FCntDownFieldNumber = 5; - private uint fCntDown_; - /// - /// Downlink frame-counter. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint FCntDown { - get { return fCntDown_; } - set { - fCntDown_ = value; - } - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 6; - private string gatewayId_ = ""; - /// - /// Gateway ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tx_info" field. - public const int TxInfoFieldNumber = 7; - private global::Chirpstack.Gateway.DownlinkTxInfo txInfo_; - /// - /// TX info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.DownlinkTxInfo TxInfo { - get { return txInfo_; } - set { - txInfo_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TxAckEvent); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TxAckEvent other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DownlinkId != other.DownlinkId) return false; - if (!object.Equals(Time, other.Time)) return false; - if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; - if (QueueItemId != other.QueueItemId) return false; - if (FCntDown != other.FCntDown) return false; - if (GatewayId != other.GatewayId) return false; - if (!object.Equals(TxInfo, other.TxInfo)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DownlinkId != 0) hash ^= DownlinkId.GetHashCode(); - if (time_ != null) hash ^= Time.GetHashCode(); - if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); - if (QueueItemId.Length != 0) hash ^= QueueItemId.GetHashCode(); - if (FCntDown != 0) hash ^= FCntDown.GetHashCode(); - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DownlinkId != 0) { - output.WriteRawTag(8); - output.WriteUInt32(DownlinkId); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (deviceInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(DeviceInfo); - } - if (QueueItemId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(QueueItemId); - } - if (FCntDown != 0) { - output.WriteRawTag(40); - output.WriteUInt32(FCntDown); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(50); - output.WriteString(GatewayId); - } - if (txInfo_ != null) { - output.WriteRawTag(58); - output.WriteMessage(TxInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DownlinkId != 0) { - output.WriteRawTag(8); - output.WriteUInt32(DownlinkId); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (deviceInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(DeviceInfo); - } - if (QueueItemId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(QueueItemId); - } - if (FCntDown != 0) { - output.WriteRawTag(40); - output.WriteUInt32(FCntDown); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(50); - output.WriteString(GatewayId); - } - if (txInfo_ != null) { - output.WriteRawTag(58); - output.WriteMessage(TxInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DownlinkId != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DownlinkId); - } - if (time_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); - } - if (deviceInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); - } - if (QueueItemId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(QueueItemId); - } - if (FCntDown != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FCntDown); - } - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (txInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TxAckEvent other) { - if (other == null) { - return; - } - if (other.DownlinkId != 0) { - DownlinkId = other.DownlinkId; - } - if (other.time_ != null) { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Time.MergeFrom(other.Time); - } - if (other.deviceInfo_ != null) { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - DeviceInfo.MergeFrom(other.DeviceInfo); - } - if (other.QueueItemId.Length != 0) { - QueueItemId = other.QueueItemId; - } - if (other.FCntDown != 0) { - FCntDown = other.FCntDown; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - if (other.txInfo_ != null) { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); - } - TxInfo.MergeFrom(other.TxInfo); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - DownlinkId = input.ReadUInt32(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - input.ReadMessage(DeviceInfo); - break; - } - case 34: { - QueueItemId = input.ReadString(); - break; - } - case 40: { - FCntDown = input.ReadUInt32(); - break; - } - case 50: { - GatewayId = input.ReadString(); - break; - } - case 58: { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); - } - input.ReadMessage(TxInfo); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - DownlinkId = input.ReadUInt32(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - input.ReadMessage(DeviceInfo); - break; - } - case 34: { - QueueItemId = input.ReadString(); - break; - } - case 40: { - FCntDown = input.ReadUInt32(); - break; - } - case 50: { - GatewayId = input.ReadString(); - break; - } - case 58: { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); - } - input.ReadMessage(TxInfo); - break; - } - } - } - } - #endif - - } - - /// - /// LogEvent is the message sent when a device-related log was sent. - /// - public sealed partial class LogEvent : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LogEvent()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Integration.IntegrationReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LogEvent() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LogEvent(LogEvent other) : this() { - time_ = other.time_ != null ? other.time_.Clone() : null; - deviceInfo_ = other.deviceInfo_ != null ? other.deviceInfo_.Clone() : null; - level_ = other.level_; - code_ = other.code_; - description_ = other.description_; - context_ = other.context_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LogEvent Clone() { - return new LogEvent(this); - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 1; - private global::Google.Protobuf.WellKnownTypes.Timestamp time_; - /// - /// Timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Time { - get { return time_; } - set { - time_ = value; - } - } - - /// Field number for the "device_info" field. - public const int DeviceInfoFieldNumber = 2; - private global::Chirpstack.Integration.DeviceInfo deviceInfo_; - /// - /// Device info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Integration.DeviceInfo DeviceInfo { - get { return deviceInfo_; } - set { - deviceInfo_ = value; - } - } - - /// Field number for the "level" field. - public const int LevelFieldNumber = 3; - private global::Chirpstack.Integration.LogLevel level_ = global::Chirpstack.Integration.LogLevel.Info; - /// - /// Log level. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Integration.LogLevel Level { - get { return level_; } - set { - level_ = value; - } - } - - /// Field number for the "code" field. - public const int CodeFieldNumber = 4; - private global::Chirpstack.Integration.LogCode code_ = global::Chirpstack.Integration.LogCode.Unknown; - /// - /// Log code. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Integration.LogCode Code { - get { return code_; } - set { - code_ = value; - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 5; - private string description_ = ""; - /// - /// Description message. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "context" field. - public const int ContextFieldNumber = 6; - private static readonly pbc::MapField.Codec _map_context_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 50); - private readonly pbc::MapField context_ = new pbc::MapField(); - /// - /// Context map. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Context { - get { return context_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LogEvent); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LogEvent other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Time, other.Time)) return false; - if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; - if (Level != other.Level) return false; - if (Code != other.Code) return false; - if (Description != other.Description) return false; - if (!Context.Equals(other.Context)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (time_ != null) hash ^= Time.GetHashCode(); - if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); - if (Level != global::Chirpstack.Integration.LogLevel.Info) hash ^= Level.GetHashCode(); - if (Code != global::Chirpstack.Integration.LogCode.Unknown) hash ^= Code.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - hash ^= Context.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (time_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Time); - } - if (deviceInfo_ != null) { - output.WriteRawTag(18); - output.WriteMessage(DeviceInfo); - } - if (Level != global::Chirpstack.Integration.LogLevel.Info) { - output.WriteRawTag(24); - output.WriteEnum((int) Level); - } - if (Code != global::Chirpstack.Integration.LogCode.Unknown) { - output.WriteRawTag(32); - output.WriteEnum((int) Code); - } - if (Description.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Description); - } - context_.WriteTo(output, _map_context_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (time_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Time); - } - if (deviceInfo_ != null) { - output.WriteRawTag(18); - output.WriteMessage(DeviceInfo); - } - if (Level != global::Chirpstack.Integration.LogLevel.Info) { - output.WriteRawTag(24); - output.WriteEnum((int) Level); - } - if (Code != global::Chirpstack.Integration.LogCode.Unknown) { - output.WriteRawTag(32); - output.WriteEnum((int) Code); - } - if (Description.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Description); - } - context_.WriteTo(ref output, _map_context_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (time_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); - } - if (deviceInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); - } - if (Level != global::Chirpstack.Integration.LogLevel.Info) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Level); - } - if (Code != global::Chirpstack.Integration.LogCode.Unknown) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Code); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - size += context_.CalculateSize(_map_context_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LogEvent other) { - if (other == null) { - return; - } - if (other.time_ != null) { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Time.MergeFrom(other.Time); - } - if (other.deviceInfo_ != null) { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - DeviceInfo.MergeFrom(other.DeviceInfo); - } - if (other.Level != global::Chirpstack.Integration.LogLevel.Info) { - Level = other.Level; - } - if (other.Code != global::Chirpstack.Integration.LogCode.Unknown) { - Code = other.Code; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - context_.Add(other.context_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 18: { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - input.ReadMessage(DeviceInfo); - break; - } - case 24: { - Level = (global::Chirpstack.Integration.LogLevel) input.ReadEnum(); - break; - } - case 32: { - Code = (global::Chirpstack.Integration.LogCode) input.ReadEnum(); - break; - } - case 42: { - Description = input.ReadString(); - break; - } - case 50: { - context_.AddEntriesFrom(input, _map_context_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 18: { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - input.ReadMessage(DeviceInfo); - break; - } - case 24: { - Level = (global::Chirpstack.Integration.LogLevel) input.ReadEnum(); - break; - } - case 32: { - Code = (global::Chirpstack.Integration.LogCode) input.ReadEnum(); - break; - } - case 42: { - Description = input.ReadString(); - break; - } - case 50: { - context_.AddEntriesFrom(ref input, _map_context_codec); - break; - } - } - } - } - #endif - - } - - /// - /// StatusEvent is the message sent when a device-status mac-command was sent - /// by the device. - /// - public sealed partial class StatusEvent : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StatusEvent()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Integration.IntegrationReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StatusEvent() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StatusEvent(StatusEvent other) : this() { - deduplicationId_ = other.deduplicationId_; - time_ = other.time_ != null ? other.time_.Clone() : null; - deviceInfo_ = other.deviceInfo_ != null ? other.deviceInfo_.Clone() : null; - margin_ = other.margin_; - externalPowerSource_ = other.externalPowerSource_; - batteryLevelUnavailable_ = other.batteryLevelUnavailable_; - batteryLevel_ = other.batteryLevel_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StatusEvent Clone() { - return new StatusEvent(this); - } - - /// Field number for the "deduplication_id" field. - public const int DeduplicationIdFieldNumber = 1; - private string deduplicationId_ = ""; - /// - /// Deduplication ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeduplicationId { - get { return deduplicationId_; } - set { - deduplicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp time_; - /// - /// Timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Time { - get { return time_; } - set { - time_ = value; - } - } - - /// Field number for the "device_info" field. - public const int DeviceInfoFieldNumber = 3; - private global::Chirpstack.Integration.DeviceInfo deviceInfo_; - /// - /// Device info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Integration.DeviceInfo DeviceInfo { - get { return deviceInfo_; } - set { - deviceInfo_ = value; - } - } - - /// Field number for the "margin" field. - public const int MarginFieldNumber = 5; - private int margin_; - /// - /// The demodulation signal-to-noise ratio in dB for the last successfully - /// received device-status request by the Network Server. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Margin { - get { return margin_; } - set { - margin_ = value; - } - } - - /// Field number for the "external_power_source" field. - public const int ExternalPowerSourceFieldNumber = 6; - private bool externalPowerSource_; - /// - /// Device is connected to an external power source. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ExternalPowerSource { - get { return externalPowerSource_; } - set { - externalPowerSource_ = value; - } - } - - /// Field number for the "battery_level_unavailable" field. - public const int BatteryLevelUnavailableFieldNumber = 7; - private bool batteryLevelUnavailable_; - /// - /// Battery level is not available. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool BatteryLevelUnavailable { - get { return batteryLevelUnavailable_; } - set { - batteryLevelUnavailable_ = value; - } - } - - /// Field number for the "battery_level" field. - public const int BatteryLevelFieldNumber = 8; - private float batteryLevel_; - /// - /// Battery level. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float BatteryLevel { - get { return batteryLevel_; } - set { - batteryLevel_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StatusEvent); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StatusEvent other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DeduplicationId != other.DeduplicationId) return false; - if (!object.Equals(Time, other.Time)) return false; - if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; - if (Margin != other.Margin) return false; - if (ExternalPowerSource != other.ExternalPowerSource) return false; - if (BatteryLevelUnavailable != other.BatteryLevelUnavailable) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(BatteryLevel, other.BatteryLevel)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DeduplicationId.Length != 0) hash ^= DeduplicationId.GetHashCode(); - if (time_ != null) hash ^= Time.GetHashCode(); - if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); - if (Margin != 0) hash ^= Margin.GetHashCode(); - if (ExternalPowerSource != false) hash ^= ExternalPowerSource.GetHashCode(); - if (BatteryLevelUnavailable != false) hash ^= BatteryLevelUnavailable.GetHashCode(); - if (BatteryLevel != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(BatteryLevel); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DeduplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DeduplicationId); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (deviceInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(DeviceInfo); - } - if (Margin != 0) { - output.WriteRawTag(40); - output.WriteInt32(Margin); - } - if (ExternalPowerSource != false) { - output.WriteRawTag(48); - output.WriteBool(ExternalPowerSource); - } - if (BatteryLevelUnavailable != false) { - output.WriteRawTag(56); - output.WriteBool(BatteryLevelUnavailable); - } - if (BatteryLevel != 0F) { - output.WriteRawTag(69); - output.WriteFloat(BatteryLevel); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DeduplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DeduplicationId); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (deviceInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(DeviceInfo); - } - if (Margin != 0) { - output.WriteRawTag(40); - output.WriteInt32(Margin); - } - if (ExternalPowerSource != false) { - output.WriteRawTag(48); - output.WriteBool(ExternalPowerSource); - } - if (BatteryLevelUnavailable != false) { - output.WriteRawTag(56); - output.WriteBool(BatteryLevelUnavailable); - } - if (BatteryLevel != 0F) { - output.WriteRawTag(69); - output.WriteFloat(BatteryLevel); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DeduplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeduplicationId); - } - if (time_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); - } - if (deviceInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); - } - if (Margin != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Margin); - } - if (ExternalPowerSource != false) { - size += 1 + 1; - } - if (BatteryLevelUnavailable != false) { - size += 1 + 1; - } - if (BatteryLevel != 0F) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StatusEvent other) { - if (other == null) { - return; - } - if (other.DeduplicationId.Length != 0) { - DeduplicationId = other.DeduplicationId; - } - if (other.time_ != null) { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Time.MergeFrom(other.Time); - } - if (other.deviceInfo_ != null) { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - DeviceInfo.MergeFrom(other.DeviceInfo); - } - if (other.Margin != 0) { - Margin = other.Margin; - } - if (other.ExternalPowerSource != false) { - ExternalPowerSource = other.ExternalPowerSource; - } - if (other.BatteryLevelUnavailable != false) { - BatteryLevelUnavailable = other.BatteryLevelUnavailable; - } - if (other.BatteryLevel != 0F) { - BatteryLevel = other.BatteryLevel; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DeduplicationId = input.ReadString(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - input.ReadMessage(DeviceInfo); - break; - } - case 40: { - Margin = input.ReadInt32(); - break; - } - case 48: { - ExternalPowerSource = input.ReadBool(); - break; - } - case 56: { - BatteryLevelUnavailable = input.ReadBool(); - break; - } - case 69: { - BatteryLevel = input.ReadFloat(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DeduplicationId = input.ReadString(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - input.ReadMessage(DeviceInfo); - break; - } - case 40: { - Margin = input.ReadInt32(); - break; - } - case 48: { - ExternalPowerSource = input.ReadBool(); - break; - } - case 56: { - BatteryLevelUnavailable = input.ReadBool(); - break; - } - case 69: { - BatteryLevel = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - /// - /// LocationEvent is the message sent when a geolocation resolve was returned. - /// - public sealed partial class LocationEvent : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocationEvent()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Integration.IntegrationReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationEvent() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationEvent(LocationEvent other) : this() { - deduplicationId_ = other.deduplicationId_; - time_ = other.time_ != null ? other.time_.Clone() : null; - deviceInfo_ = other.deviceInfo_ != null ? other.deviceInfo_.Clone() : null; - location_ = other.location_ != null ? other.location_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationEvent Clone() { - return new LocationEvent(this); - } - - /// Field number for the "deduplication_id" field. - public const int DeduplicationIdFieldNumber = 1; - private string deduplicationId_ = ""; - /// - /// Deduplication ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeduplicationId { - get { return deduplicationId_; } - set { - deduplicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp time_; - /// - /// Timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Time { - get { return time_; } - set { - time_ = value; - } - } - - /// Field number for the "device_info" field. - public const int DeviceInfoFieldNumber = 3; - private global::Chirpstack.Integration.DeviceInfo deviceInfo_; - /// - /// Device info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Integration.DeviceInfo DeviceInfo { - get { return deviceInfo_; } - set { - deviceInfo_ = value; - } - } - - /// Field number for the "location" field. - public const int LocationFieldNumber = 4; - private global::Chirpstack.Common.Location location_; - /// - /// Location. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.Location Location { - get { return location_; } - set { - location_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LocationEvent); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LocationEvent other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DeduplicationId != other.DeduplicationId) return false; - if (!object.Equals(Time, other.Time)) return false; - if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; - if (!object.Equals(Location, other.Location)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DeduplicationId.Length != 0) hash ^= DeduplicationId.GetHashCode(); - if (time_ != null) hash ^= Time.GetHashCode(); - if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); - if (location_ != null) hash ^= Location.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DeduplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DeduplicationId); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (deviceInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(DeviceInfo); - } - if (location_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Location); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DeduplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DeduplicationId); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (deviceInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(DeviceInfo); - } - if (location_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Location); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DeduplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeduplicationId); - } - if (time_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); - } - if (deviceInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); - } - if (location_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LocationEvent other) { - if (other == null) { - return; - } - if (other.DeduplicationId.Length != 0) { - DeduplicationId = other.DeduplicationId; - } - if (other.time_ != null) { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Time.MergeFrom(other.Time); - } - if (other.deviceInfo_ != null) { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - DeviceInfo.MergeFrom(other.DeviceInfo); - } - if (other.location_ != null) { - if (location_ == null) { - Location = new global::Chirpstack.Common.Location(); - } - Location.MergeFrom(other.Location); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DeduplicationId = input.ReadString(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - input.ReadMessage(DeviceInfo); - break; - } - case 34: { - if (location_ == null) { - Location = new global::Chirpstack.Common.Location(); - } - input.ReadMessage(Location); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DeduplicationId = input.ReadString(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - input.ReadMessage(DeviceInfo); - break; - } - case 34: { - if (location_ == null) { - Location = new global::Chirpstack.Common.Location(); - } - input.ReadMessage(Location); - break; - } - } - } - } - #endif - - } - - /// - /// IntegrationEvent is the message that can be sent by an integration. - /// It allows for sending events which are provided by an external integration - /// which are "not native" to ChirpStack. - /// - public sealed partial class IntegrationEvent : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IntegrationEvent()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Integration.IntegrationReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IntegrationEvent() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IntegrationEvent(IntegrationEvent other) : this() { - deduplicationId_ = other.deduplicationId_; - time_ = other.time_ != null ? other.time_.Clone() : null; - deviceInfo_ = other.deviceInfo_ != null ? other.deviceInfo_.Clone() : null; - integrationName_ = other.integrationName_; - eventType_ = other.eventType_; - object_ = other.object_ != null ? other.object_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IntegrationEvent Clone() { - return new IntegrationEvent(this); - } - - /// Field number for the "deduplication_id" field. - public const int DeduplicationIdFieldNumber = 1; - private string deduplicationId_ = ""; - /// - /// Deduplication ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeduplicationId { - get { return deduplicationId_; } - set { - deduplicationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp time_; - /// - /// Timestamp. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Time { - get { return time_; } - set { - time_ = value; - } - } - - /// Field number for the "device_info" field. - public const int DeviceInfoFieldNumber = 3; - private global::Chirpstack.Integration.DeviceInfo deviceInfo_; - /// - /// Device info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Integration.DeviceInfo DeviceInfo { - get { return deviceInfo_; } - set { - deviceInfo_ = value; - } - } - - /// Field number for the "integration_name" field. - public const int IntegrationNameFieldNumber = 4; - private string integrationName_ = ""; - /// - /// Integration name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string IntegrationName { - get { return integrationName_; } - set { - integrationName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "event_type" field. - public const int EventTypeFieldNumber = 5; - private string eventType_ = ""; - /// - /// Event type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EventType { - get { return eventType_; } - set { - eventType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "object" field. - public const int ObjectFieldNumber = 6; - private global::Google.Protobuf.WellKnownTypes.Struct object_; - /// - /// Struct containing the event object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Struct Object { - get { return object_; } - set { - object_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as IntegrationEvent); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(IntegrationEvent other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DeduplicationId != other.DeduplicationId) return false; - if (!object.Equals(Time, other.Time)) return false; - if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; - if (IntegrationName != other.IntegrationName) return false; - if (EventType != other.EventType) return false; - if (!object.Equals(Object, other.Object)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DeduplicationId.Length != 0) hash ^= DeduplicationId.GetHashCode(); - if (time_ != null) hash ^= Time.GetHashCode(); - if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); - if (IntegrationName.Length != 0) hash ^= IntegrationName.GetHashCode(); - if (EventType.Length != 0) hash ^= EventType.GetHashCode(); - if (object_ != null) hash ^= Object.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DeduplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DeduplicationId); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (deviceInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(DeviceInfo); - } - if (IntegrationName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(IntegrationName); - } - if (EventType.Length != 0) { - output.WriteRawTag(42); - output.WriteString(EventType); - } - if (object_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Object); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DeduplicationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DeduplicationId); - } - if (time_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Time); - } - if (deviceInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(DeviceInfo); - } - if (IntegrationName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(IntegrationName); - } - if (EventType.Length != 0) { - output.WriteRawTag(42); - output.WriteString(EventType); - } - if (object_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Object); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DeduplicationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeduplicationId); - } - if (time_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); - } - if (deviceInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); - } - if (IntegrationName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(IntegrationName); - } - if (EventType.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EventType); - } - if (object_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Object); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(IntegrationEvent other) { - if (other == null) { - return; - } - if (other.DeduplicationId.Length != 0) { - DeduplicationId = other.DeduplicationId; - } - if (other.time_ != null) { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Time.MergeFrom(other.Time); - } - if (other.deviceInfo_ != null) { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - DeviceInfo.MergeFrom(other.DeviceInfo); - } - if (other.IntegrationName.Length != 0) { - IntegrationName = other.IntegrationName; - } - if (other.EventType.Length != 0) { - EventType = other.EventType; - } - if (other.object_ != null) { - if (object_ == null) { - Object = new global::Google.Protobuf.WellKnownTypes.Struct(); - } - Object.MergeFrom(other.Object); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DeduplicationId = input.ReadString(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - input.ReadMessage(DeviceInfo); - break; - } - case 34: { - IntegrationName = input.ReadString(); - break; - } - case 42: { - EventType = input.ReadString(); - break; - } - case 50: { - if (object_ == null) { - Object = new global::Google.Protobuf.WellKnownTypes.Struct(); - } - input.ReadMessage(Object); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DeduplicationId = input.ReadString(); - break; - } - case 18: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 26: { - if (deviceInfo_ == null) { - DeviceInfo = new global::Chirpstack.Integration.DeviceInfo(); - } - input.ReadMessage(DeviceInfo); - break; - } - case 34: { - IntegrationName = input.ReadString(); - break; - } - case 42: { - EventType = input.ReadString(); - break; - } - case 50: { - if (object_ == null) { - Object = new global::Google.Protobuf.WellKnownTypes.Struct(); - } - input.ReadMessage(Object); - break; - } - } - } - } - #endif - - } - - /// - /// DownlinkCommand is the command to enqueue a downlink payload for the given - /// device. - /// - public sealed partial class DownlinkCommand : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DownlinkCommand()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Integration.IntegrationReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkCommand() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkCommand(DownlinkCommand other) : this() { - id_ = other.id_; - devEui_ = other.devEui_; - confirmed_ = other.confirmed_; - fPort_ = other.fPort_; - data_ = other.data_; - object_ = other.object_ != null ? other.object_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkCommand Clone() { - return new DownlinkCommand(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// ID (UUID). - /// If left blank, a random UUID will be generated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 2; - private string devEui_ = ""; - /// - /// Device EUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "confirmed" field. - public const int ConfirmedFieldNumber = 3; - private bool confirmed_; - /// - /// Confirmed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Confirmed { - get { return confirmed_; } - set { - confirmed_ = value; - } - } - - /// Field number for the "f_port" field. - public const int FPortFieldNumber = 4; - private uint fPort_; - /// - /// FPort (must be > 0). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint FPort { - get { return fPort_; } - set { - fPort_ = value; - } - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 5; - private pb::ByteString data_ = pb::ByteString.Empty; - /// - /// Data. - /// Or use the json_object field when a codec has been configured. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Data { - get { return data_; } - set { - data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "object" field. - public const int ObjectFieldNumber = 6; - private global::Google.Protobuf.WellKnownTypes.Struct object_; - /// - /// Only use this when a codec has been configured that can encode this - /// object to bytes. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Struct Object { - get { return object_; } - set { - object_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DownlinkCommand); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DownlinkCommand other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (DevEui != other.DevEui) return false; - if (Confirmed != other.Confirmed) return false; - if (FPort != other.FPort) return false; - if (Data != other.Data) return false; - if (!object.Equals(Object, other.Object)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (Confirmed != false) hash ^= Confirmed.GetHashCode(); - if (FPort != 0) hash ^= FPort.GetHashCode(); - if (Data.Length != 0) hash ^= Data.GetHashCode(); - if (object_ != null) hash ^= Object.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (DevEui.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DevEui); - } - if (Confirmed != false) { - output.WriteRawTag(24); - output.WriteBool(Confirmed); - } - if (FPort != 0) { - output.WriteRawTag(32); - output.WriteUInt32(FPort); - } - if (Data.Length != 0) { - output.WriteRawTag(42); - output.WriteBytes(Data); - } - if (object_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Object); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (DevEui.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DevEui); - } - if (Confirmed != false) { - output.WriteRawTag(24); - output.WriteBool(Confirmed); - } - if (FPort != 0) { - output.WriteRawTag(32); - output.WriteUInt32(FPort); - } - if (Data.Length != 0) { - output.WriteRawTag(42); - output.WriteBytes(Data); - } - if (object_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Object); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (Confirmed != false) { - size += 1 + 1; - } - if (FPort != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FPort); - } - if (Data.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); - } - if (object_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Object); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DownlinkCommand other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - if (other.Confirmed != false) { - Confirmed = other.Confirmed; - } - if (other.FPort != 0) { - FPort = other.FPort; - } - if (other.Data.Length != 0) { - Data = other.Data; - } - if (other.object_ != null) { - if (object_ == null) { - Object = new global::Google.Protobuf.WellKnownTypes.Struct(); - } - Object.MergeFrom(other.Object); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - DevEui = input.ReadString(); - break; - } - case 24: { - Confirmed = input.ReadBool(); - break; - } - case 32: { - FPort = input.ReadUInt32(); - break; - } - case 42: { - Data = input.ReadBytes(); - break; - } - case 50: { - if (object_ == null) { - Object = new global::Google.Protobuf.WellKnownTypes.Struct(); - } - input.ReadMessage(Object); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - DevEui = input.ReadString(); - break; - } - case 24: { - Confirmed = input.ReadBool(); - break; - } - case 32: { - FPort = input.ReadUInt32(); - break; - } - case 42: { - Data = input.ReadBytes(); - break; - } - case 50: { - if (object_ == null) { - Object = new global::Google.Protobuf.WellKnownTypes.Struct(); - } - input.ReadMessage(Object); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/api/csharp/Chirpstack/stream/ApiRequest.cs b/api/csharp/Chirpstack/stream/ApiRequest.cs deleted file mode 100644 index 501d8213..00000000 --- a/api/csharp/Chirpstack/stream/ApiRequest.cs +++ /dev/null @@ -1,311 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stream/api_request.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.Stream { - - /// Holder for reflection information generated from stream/api_request.proto - public static partial class ApiRequestReflection { - - #region Descriptor - /// File descriptor for stream/api_request.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ApiRequestReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ChhzdHJlYW0vYXBpX3JlcXVlc3QucHJvdG8SBnN0cmVhbRofZ29vZ2xlL3By", - "b3RvYnVmL3RpbWVzdGFtcC5wcm90bxoTY29tbW9uL2NvbW1vbi5wcm90bxoL", - "Z3cvZ3cucHJvdG8imAEKDUFwaVJlcXVlc3RMb2cSDwoHc2VydmljZRgBIAEo", - "CRIOCgZtZXRob2QYAiABKAkSNQoIbWV0YWRhdGEYAyADKAsyIy5zdHJlYW0u", - "QXBpUmVxdWVzdExvZy5NZXRhZGF0YUVudHJ5Gi8KDU1ldGFkYXRhRW50cnkS", - "CwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4AUJ0Chhpby5jaGlycHN0", - "YWNrLmFwaS5zdHJlYW1CD0FwaVJlcXVlc3RQcm90b1ABWjFnaXRodWIuY29t", - "L2NoaXJwc3RhY2svY2hpcnBzdGFjay9hcGkvZ28vdjQvc3RyZWFtqgIRQ2hp", - "cnBzdGFjay5TdHJlYW1iBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, global::Chirpstack.Gateway.GwReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Stream.ApiRequestLog), global::Chirpstack.Stream.ApiRequestLog.Parser, new[]{ "Service", "Method", "Metadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) - })); - } - #endregion - - } - #region Messages - public sealed partial class ApiRequestLog : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApiRequestLog()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Stream.ApiRequestReflection.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 ApiRequestLog() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ApiRequestLog(ApiRequestLog other) : this() { - service_ = other.service_; - method_ = other.method_; - metadata_ = other.metadata_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ApiRequestLog Clone() { - return new ApiRequestLog(this); - } - - /// Field number for the "service" field. - public const int ServiceFieldNumber = 1; - private string service_ = ""; - /// - /// API service name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Service { - get { return service_; } - set { - service_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "method" field. - public const int MethodFieldNumber = 2; - private string method_ = ""; - /// - /// API method name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Method { - get { return method_; } - set { - method_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "metadata" field. - public const int MetadataFieldNumber = 3; - private static readonly pbc::MapField.Codec _map_metadata_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 26); - private readonly pbc::MapField metadata_ = new pbc::MapField(); - /// - /// Metadata. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Metadata { - get { return metadata_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ApiRequestLog); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ApiRequestLog other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Service != other.Service) return false; - if (Method != other.Method) return false; - if (!Metadata.Equals(other.Metadata)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Service.Length != 0) hash ^= Service.GetHashCode(); - if (Method.Length != 0) hash ^= Method.GetHashCode(); - hash ^= Metadata.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Service.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Service); - } - if (Method.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Method); - } - metadata_.WriteTo(output, _map_metadata_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Service.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Service); - } - if (Method.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Method); - } - metadata_.WriteTo(ref output, _map_metadata_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Service.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Service); - } - if (Method.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Method); - } - size += metadata_.CalculateSize(_map_metadata_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ApiRequestLog other) { - if (other == null) { - return; - } - if (other.Service.Length != 0) { - Service = other.Service; - } - if (other.Method.Length != 0) { - Method = other.Method; - } - metadata_.Add(other.metadata_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Service = input.ReadString(); - break; - } - case 18: { - Method = input.ReadString(); - break; - } - case 26: { - metadata_.AddEntriesFrom(input, _map_metadata_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Service = input.ReadString(); - break; - } - case 18: { - Method = input.ReadString(); - break; - } - case 26: { - metadata_.AddEntriesFrom(ref input, _map_metadata_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/api/csharp/Chirpstack/stream/BackendInterfaces.cs b/api/csharp/Chirpstack/stream/BackendInterfaces.cs deleted file mode 100644 index 972a6f6b..00000000 --- a/api/csharp/Chirpstack/stream/BackendInterfaces.cs +++ /dev/null @@ -1,573 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stream/backend_interfaces.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.Stream { - - /// Holder for reflection information generated from stream/backend_interfaces.proto - public static partial class BackendInterfacesReflection { - - #region Descriptor - /// File descriptor for stream/backend_interfaces.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BackendInterfacesReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ch9zdHJlYW0vYmFja2VuZF9pbnRlcmZhY2VzLnByb3RvEgZzdHJlYW0aH2dv", - "b2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8i8wEKGEJhY2tlbmRJbnRl", - "cmZhY2VzUmVxdWVzdBIRCglzZW5kZXJfaWQYASABKAkSEwoLcmVjZWl2ZXJf", - "aWQYAiABKAkSKAoEdGltZRgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l", - "c3RhbXASFgoOdHJhbnNhY3Rpb25faWQYBCABKA0SFAoMbWVzc2FnZV90eXBl", - "GAUgASgJEhMKC3Jlc3VsdF9jb2RlGAYgASgJEhQKDHJlcXVlc3RfYm9keRgH", - "IAEoCRIVCg1yZXF1ZXN0X2Vycm9yGAggASgJEhUKDXJlc3BvbnNlX2JvZHkY", - "CSABKAlCewoYaW8uY2hpcnBzdGFjay5hcGkuc3RyZWFtQhZCYWNrZW5kSW50", - "ZXJmYWNlc1Byb3RvUAFaMWdpdGh1Yi5jb20vY2hpcnBzdGFjay9jaGlycHN0", - "YWNrL2FwaS9nby92NC9zdHJlYW2qAhFDaGlycHN0YWNrLlN0cmVhbWIGcHJv", - "dG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Stream.BackendInterfacesRequest), global::Chirpstack.Stream.BackendInterfacesRequest.Parser, new[]{ "SenderId", "ReceiverId", "Time", "TransactionId", "MessageType", "ResultCode", "RequestBody", "RequestError", "ResponseBody" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - public sealed partial class BackendInterfacesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BackendInterfacesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Stream.BackendInterfacesReflection.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 BackendInterfacesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BackendInterfacesRequest(BackendInterfacesRequest other) : this() { - senderId_ = other.senderId_; - receiverId_ = other.receiverId_; - time_ = other.time_ != null ? other.time_.Clone() : null; - transactionId_ = other.transactionId_; - messageType_ = other.messageType_; - resultCode_ = other.resultCode_; - requestBody_ = other.requestBody_; - requestError_ = other.requestError_; - responseBody_ = other.responseBody_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BackendInterfacesRequest Clone() { - return new BackendInterfacesRequest(this); - } - - /// Field number for the "sender_id" field. - public const int SenderIdFieldNumber = 1; - private string senderId_ = ""; - /// - /// Sender ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SenderId { - get { return senderId_; } - set { - senderId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "receiver_id" field. - public const int ReceiverIdFieldNumber = 2; - private string receiverId_ = ""; - /// - /// Receiver ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ReceiverId { - get { return receiverId_; } - set { - receiverId_ = 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 "transaction_id" field. - public const int TransactionIdFieldNumber = 4; - private uint transactionId_; - /// - /// Transaction ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TransactionId { - get { return transactionId_; } - set { - transactionId_ = value; - } - } - - /// Field number for the "message_type" field. - public const int MessageTypeFieldNumber = 5; - private string messageType_ = ""; - /// - /// Message-type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MessageType { - get { return messageType_; } - set { - messageType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "result_code" field. - public const int ResultCodeFieldNumber = 6; - private string resultCode_ = ""; - /// - /// Result code. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResultCode { - get { return resultCode_; } - set { - resultCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "request_body" field. - public const int RequestBodyFieldNumber = 7; - private string requestBody_ = ""; - /// - /// Request body. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RequestBody { - get { return requestBody_; } - set { - requestBody_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "request_error" field. - public const int RequestErrorFieldNumber = 8; - private string requestError_ = ""; - /// - /// Request error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RequestError { - get { return requestError_; } - set { - requestError_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "response_body" field. - public const int ResponseBodyFieldNumber = 9; - private string responseBody_ = ""; - /// - /// Response body. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResponseBody { - get { return responseBody_; } - set { - responseBody_ = 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 BackendInterfacesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BackendInterfacesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (SenderId != other.SenderId) return false; - if (ReceiverId != other.ReceiverId) return false; - if (!object.Equals(Time, other.Time)) return false; - if (TransactionId != other.TransactionId) return false; - if (MessageType != other.MessageType) return false; - if (ResultCode != other.ResultCode) return false; - if (RequestBody != other.RequestBody) return false; - if (RequestError != other.RequestError) return false; - if (ResponseBody != other.ResponseBody) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (SenderId.Length != 0) hash ^= SenderId.GetHashCode(); - if (ReceiverId.Length != 0) hash ^= ReceiverId.GetHashCode(); - if (time_ != null) hash ^= Time.GetHashCode(); - if (TransactionId != 0) hash ^= TransactionId.GetHashCode(); - if (MessageType.Length != 0) hash ^= MessageType.GetHashCode(); - if (ResultCode.Length != 0) hash ^= ResultCode.GetHashCode(); - if (RequestBody.Length != 0) hash ^= RequestBody.GetHashCode(); - if (RequestError.Length != 0) hash ^= RequestError.GetHashCode(); - if (ResponseBody.Length != 0) hash ^= ResponseBody.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (SenderId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(SenderId); - } - if (ReceiverId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ReceiverId); - } - if (time_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Time); - } - if (TransactionId != 0) { - output.WriteRawTag(32); - output.WriteUInt32(TransactionId); - } - if (MessageType.Length != 0) { - output.WriteRawTag(42); - output.WriteString(MessageType); - } - if (ResultCode.Length != 0) { - output.WriteRawTag(50); - output.WriteString(ResultCode); - } - if (RequestBody.Length != 0) { - output.WriteRawTag(58); - output.WriteString(RequestBody); - } - if (RequestError.Length != 0) { - output.WriteRawTag(66); - output.WriteString(RequestError); - } - if (ResponseBody.Length != 0) { - output.WriteRawTag(74); - 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 (SenderId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(SenderId); - } - if (ReceiverId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ReceiverId); - } - if (time_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Time); - } - if (TransactionId != 0) { - output.WriteRawTag(32); - output.WriteUInt32(TransactionId); - } - if (MessageType.Length != 0) { - output.WriteRawTag(42); - output.WriteString(MessageType); - } - if (ResultCode.Length != 0) { - output.WriteRawTag(50); - output.WriteString(ResultCode); - } - if (RequestBody.Length != 0) { - output.WriteRawTag(58); - output.WriteString(RequestBody); - } - if (RequestError.Length != 0) { - output.WriteRawTag(66); - output.WriteString(RequestError); - } - if (ResponseBody.Length != 0) { - output.WriteRawTag(74); - 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 (SenderId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SenderId); - } - if (ReceiverId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ReceiverId); - } - if (time_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); - } - if (TransactionId != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TransactionId); - } - if (MessageType.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MessageType); - } - if (ResultCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResultCode); - } - if (RequestBody.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestBody); - } - if (RequestError.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestError); - } - if (ResponseBody.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResponseBody); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BackendInterfacesRequest other) { - if (other == null) { - return; - } - if (other.SenderId.Length != 0) { - SenderId = other.SenderId; - } - if (other.ReceiverId.Length != 0) { - ReceiverId = other.ReceiverId; - } - if (other.time_ != null) { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Time.MergeFrom(other.Time); - } - if (other.TransactionId != 0) { - TransactionId = other.TransactionId; - } - if (other.MessageType.Length != 0) { - MessageType = other.MessageType; - } - if (other.ResultCode.Length != 0) { - ResultCode = other.ResultCode; - } - if (other.RequestBody.Length != 0) { - RequestBody = other.RequestBody; - } - if (other.RequestError.Length != 0) { - RequestError = other.RequestError; - } - if (other.ResponseBody.Length != 0) { - ResponseBody = other.ResponseBody; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - SenderId = input.ReadString(); - break; - } - case 18: { - ReceiverId = input.ReadString(); - break; - } - case 26: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 32: { - TransactionId = input.ReadUInt32(); - break; - } - case 42: { - MessageType = input.ReadString(); - break; - } - case 50: { - ResultCode = input.ReadString(); - break; - } - case 58: { - RequestBody = input.ReadString(); - break; - } - case 66: { - RequestError = input.ReadString(); - break; - } - case 74: { - 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: { - SenderId = input.ReadString(); - break; - } - case 18: { - ReceiverId = input.ReadString(); - break; - } - case 26: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 32: { - TransactionId = input.ReadUInt32(); - break; - } - case 42: { - MessageType = input.ReadString(); - break; - } - case 50: { - ResultCode = input.ReadString(); - break; - } - case 58: { - RequestBody = input.ReadString(); - break; - } - case 66: { - RequestError = input.ReadString(); - break; - } - case 74: { - ResponseBody = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/api/csharp/Chirpstack/stream/Frame.cs b/api/csharp/Chirpstack/stream/Frame.cs deleted file mode 100644 index 212769e8..00000000 --- a/api/csharp/Chirpstack/stream/Frame.cs +++ /dev/null @@ -1,1149 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stream/frame.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.Stream { - - /// Holder for reflection information generated from stream/frame.proto - public static partial class FrameReflection { - - #region Descriptor - /// File descriptor for stream/frame.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FrameReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ChJzdHJlYW0vZnJhbWUucHJvdG8SBnN0cmVhbRofZ29vZ2xlL3Byb3RvYnVm", - "L3RpbWVzdGFtcC5wcm90bxoTY29tbW9uL2NvbW1vbi5wcm90bxoLZ3cvZ3cu", - "cHJvdG8ikAIKDlVwbGlua0ZyYW1lTG9nEhMKC3BoeV9wYXlsb2FkGAEgASgM", - "EiEKB3R4X2luZm8YAiABKAsyEC5ndy5VcGxpbmtUeEluZm8SIQoHcnhfaW5m", - "bxgDIAMoCzIQLmd3LlVwbGlua1J4SW5mbxIdCgZtX3R5cGUYBCABKA4yDS5j", - "b21tb24uTVR5cGUSEAoIZGV2X2FkZHIYBSABKAkSDwoHZGV2X2V1aRgGIAEo", - "CRIoCgR0aW1lGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIY", - "ChBwbGFpbnRleHRfZl9vcHRzGAggASgIEh0KFXBsYWludGV4dF9mcm1fcGF5", - "bG9hZBgJIAEoCCKaAgoQRG93bmxpbmtGcmFtZUxvZxIoCgR0aW1lGAEgASgL", - "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBITCgtwaHlfcGF5bG9hZBgC", - "IAEoDBIjCgd0eF9pbmZvGAMgASgLMhIuZ3cuRG93bmxpbmtUeEluZm8SEwoL", - "ZG93bmxpbmtfaWQYBCABKA0SEgoKZ2F0ZXdheV9pZBgFIAEoCRIdCgZtX3R5", - "cGUYBiABKA4yDS5jb21tb24uTVR5cGUSEAoIZGV2X2FkZHIYByABKAkSDwoH", - "ZGV2X2V1aRgIIAEoCRIYChBwbGFpbnRleHRfZl9vcHRzGAkgASgIEh0KFXBs", - "YWludGV4dF9mcm1fcGF5bG9hZBgKIAEoCEJvChhpby5jaGlycHN0YWNrLmFw", - "aS5zdHJlYW1CCkZyYW1lUHJvdG9QAVoxZ2l0aHViLmNvbS9jaGlycHN0YWNr", - "L2NoaXJwc3RhY2svYXBpL2dvL3Y0L3N0cmVhbaoCEUNoaXJwc3RhY2suU3Ry", - "ZWFtYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Chirpstack.Common.CommonReflection.Descriptor, global::Chirpstack.Gateway.GwReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Stream.UplinkFrameLog), global::Chirpstack.Stream.UplinkFrameLog.Parser, new[]{ "PhyPayload", "TxInfo", "RxInfo", "MType", "DevAddr", "DevEui", "Time", "PlaintextFOpts", "PlaintextFrmPayload" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Stream.DownlinkFrameLog), global::Chirpstack.Stream.DownlinkFrameLog.Parser, new[]{ "Time", "PhyPayload", "TxInfo", "DownlinkId", "GatewayId", "MType", "DevAddr", "DevEui", "PlaintextFOpts", "PlaintextFrmPayload" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - public sealed partial class UplinkFrameLog : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkFrameLog()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Stream.FrameReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkFrameLog() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkFrameLog(UplinkFrameLog other) : this() { - phyPayload_ = other.phyPayload_; - txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; - rxInfo_ = other.rxInfo_.Clone(); - mType_ = other.mType_; - devAddr_ = other.devAddr_; - devEui_ = other.devEui_; - time_ = other.time_ != null ? other.time_.Clone() : null; - plaintextFOpts_ = other.plaintextFOpts_; - plaintextFrmPayload_ = other.plaintextFrmPayload_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkFrameLog Clone() { - return new UplinkFrameLog(this); - } - - /// Field number for the "phy_payload" field. - public const int PhyPayloadFieldNumber = 1; - private pb::ByteString phyPayload_ = pb::ByteString.Empty; - /// - /// PHYPayload. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString PhyPayload { - get { return phyPayload_; } - set { - phyPayload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tx_info" field. - public const int TxInfoFieldNumber = 2; - private global::Chirpstack.Gateway.UplinkTxInfo txInfo_; - /// - /// TX meta-data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.UplinkTxInfo TxInfo { - get { return txInfo_; } - set { - txInfo_ = value; - } - } - - /// Field number for the "rx_info" field. - public const int RxInfoFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_rxInfo_codec - = pb::FieldCodec.ForMessage(26, global::Chirpstack.Gateway.UplinkRxInfo.Parser); - private readonly pbc::RepeatedField rxInfo_ = new pbc::RepeatedField(); - /// - /// RX meta-data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField RxInfo { - get { return rxInfo_; } - } - - /// Field number for the "m_type" field. - public const int MTypeFieldNumber = 4; - private global::Chirpstack.Common.MType mType_ = global::Chirpstack.Common.MType.JoinRequest; - /// - /// Message type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.MType MType { - get { return mType_; } - set { - mType_ = value; - } - } - - /// Field number for the "dev_addr" field. - public const int DevAddrFieldNumber = 5; - private string devAddr_ = ""; - /// - /// Device address (optional). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevAddr { - get { return devAddr_; } - set { - devAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 6; - private string devEui_ = ""; - /// - /// Device EUI (optional). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 7; - private global::Google.Protobuf.WellKnownTypes.Timestamp time_; - /// - /// Time. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Time { - get { return time_; } - set { - time_ = value; - } - } - - /// Field number for the "plaintext_f_opts" field. - public const int PlaintextFOptsFieldNumber = 8; - private bool plaintextFOpts_; - /// - /// Plaintext f_opts mac-commands. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PlaintextFOpts { - get { return plaintextFOpts_; } - set { - plaintextFOpts_ = value; - } - } - - /// Field number for the "plaintext_frm_payload" field. - public const int PlaintextFrmPayloadFieldNumber = 9; - private bool plaintextFrmPayload_; - /// - /// Plaintext frm_payload. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PlaintextFrmPayload { - get { return plaintextFrmPayload_; } - set { - plaintextFrmPayload_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UplinkFrameLog); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UplinkFrameLog other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PhyPayload != other.PhyPayload) return false; - if (!object.Equals(TxInfo, other.TxInfo)) return false; - if(!rxInfo_.Equals(other.rxInfo_)) return false; - if (MType != other.MType) return false; - if (DevAddr != other.DevAddr) return false; - if (DevEui != other.DevEui) return false; - if (!object.Equals(Time, other.Time)) return false; - if (PlaintextFOpts != other.PlaintextFOpts) return false; - if (PlaintextFrmPayload != other.PlaintextFrmPayload) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (PhyPayload.Length != 0) hash ^= PhyPayload.GetHashCode(); - if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); - hash ^= rxInfo_.GetHashCode(); - if (MType != global::Chirpstack.Common.MType.JoinRequest) hash ^= MType.GetHashCode(); - if (DevAddr.Length != 0) hash ^= DevAddr.GetHashCode(); - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (time_ != null) hash ^= Time.GetHashCode(); - if (PlaintextFOpts != false) hash ^= PlaintextFOpts.GetHashCode(); - if (PlaintextFrmPayload != false) hash ^= PlaintextFrmPayload.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (PhyPayload.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(PhyPayload); - } - if (txInfo_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TxInfo); - } - rxInfo_.WriteTo(output, _repeated_rxInfo_codec); - if (MType != global::Chirpstack.Common.MType.JoinRequest) { - output.WriteRawTag(32); - output.WriteEnum((int) MType); - } - if (DevAddr.Length != 0) { - output.WriteRawTag(42); - output.WriteString(DevAddr); - } - if (DevEui.Length != 0) { - output.WriteRawTag(50); - output.WriteString(DevEui); - } - if (time_ != null) { - output.WriteRawTag(58); - output.WriteMessage(Time); - } - if (PlaintextFOpts != false) { - output.WriteRawTag(64); - output.WriteBool(PlaintextFOpts); - } - if (PlaintextFrmPayload != false) { - output.WriteRawTag(72); - output.WriteBool(PlaintextFrmPayload); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PhyPayload.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(PhyPayload); - } - if (txInfo_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TxInfo); - } - rxInfo_.WriteTo(ref output, _repeated_rxInfo_codec); - if (MType != global::Chirpstack.Common.MType.JoinRequest) { - output.WriteRawTag(32); - output.WriteEnum((int) MType); - } - if (DevAddr.Length != 0) { - output.WriteRawTag(42); - output.WriteString(DevAddr); - } - if (DevEui.Length != 0) { - output.WriteRawTag(50); - output.WriteString(DevEui); - } - if (time_ != null) { - output.WriteRawTag(58); - output.WriteMessage(Time); - } - if (PlaintextFOpts != false) { - output.WriteRawTag(64); - output.WriteBool(PlaintextFOpts); - } - if (PlaintextFrmPayload != false) { - output.WriteRawTag(72); - output.WriteBool(PlaintextFrmPayload); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (PhyPayload.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(PhyPayload); - } - if (txInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); - } - size += rxInfo_.CalculateSize(_repeated_rxInfo_codec); - if (MType != global::Chirpstack.Common.MType.JoinRequest) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MType); - } - if (DevAddr.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevAddr); - } - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (time_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); - } - if (PlaintextFOpts != false) { - size += 1 + 1; - } - if (PlaintextFrmPayload != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UplinkFrameLog other) { - if (other == null) { - return; - } - if (other.PhyPayload.Length != 0) { - PhyPayload = other.PhyPayload; - } - if (other.txInfo_ != null) { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); - } - TxInfo.MergeFrom(other.TxInfo); - } - rxInfo_.Add(other.rxInfo_); - if (other.MType != global::Chirpstack.Common.MType.JoinRequest) { - MType = other.MType; - } - if (other.DevAddr.Length != 0) { - DevAddr = other.DevAddr; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - if (other.time_ != null) { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Time.MergeFrom(other.Time); - } - if (other.PlaintextFOpts != false) { - PlaintextFOpts = other.PlaintextFOpts; - } - if (other.PlaintextFrmPayload != false) { - PlaintextFrmPayload = other.PlaintextFrmPayload; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - PhyPayload = input.ReadBytes(); - break; - } - case 18: { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); - } - input.ReadMessage(TxInfo); - break; - } - case 26: { - rxInfo_.AddEntriesFrom(input, _repeated_rxInfo_codec); - break; - } - case 32: { - MType = (global::Chirpstack.Common.MType) input.ReadEnum(); - break; - } - case 42: { - DevAddr = input.ReadString(); - break; - } - case 50: { - DevEui = input.ReadString(); - break; - } - case 58: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 64: { - PlaintextFOpts = input.ReadBool(); - break; - } - case 72: { - PlaintextFrmPayload = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - PhyPayload = input.ReadBytes(); - break; - } - case 18: { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); - } - input.ReadMessage(TxInfo); - break; - } - case 26: { - rxInfo_.AddEntriesFrom(ref input, _repeated_rxInfo_codec); - break; - } - case 32: { - MType = (global::Chirpstack.Common.MType) input.ReadEnum(); - break; - } - case 42: { - DevAddr = input.ReadString(); - break; - } - case 50: { - DevEui = input.ReadString(); - break; - } - case 58: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 64: { - PlaintextFOpts = input.ReadBool(); - break; - } - case 72: { - PlaintextFrmPayload = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - public sealed partial class DownlinkFrameLog : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DownlinkFrameLog()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Stream.FrameReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkFrameLog() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkFrameLog(DownlinkFrameLog other) : this() { - time_ = other.time_ != null ? other.time_.Clone() : null; - phyPayload_ = other.phyPayload_; - txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; - downlinkId_ = other.downlinkId_; - gatewayId_ = other.gatewayId_; - mType_ = other.mType_; - devAddr_ = other.devAddr_; - devEui_ = other.devEui_; - plaintextFOpts_ = other.plaintextFOpts_; - plaintextFrmPayload_ = other.plaintextFrmPayload_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkFrameLog Clone() { - return new DownlinkFrameLog(this); - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 1; - private global::Google.Protobuf.WellKnownTypes.Timestamp time_; - /// - /// Time. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp Time { - get { return time_; } - set { - time_ = value; - } - } - - /// Field number for the "phy_payload" field. - public const int PhyPayloadFieldNumber = 2; - private pb::ByteString phyPayload_ = pb::ByteString.Empty; - /// - /// PHYPayload. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString PhyPayload { - get { return phyPayload_; } - set { - phyPayload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tx_info" field. - public const int TxInfoFieldNumber = 3; - private global::Chirpstack.Gateway.DownlinkTxInfo txInfo_; - /// - /// TX meta-data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.DownlinkTxInfo TxInfo { - get { return txInfo_; } - set { - txInfo_ = value; - } - } - - /// Field number for the "downlink_id" field. - public const int DownlinkIdFieldNumber = 4; - private uint downlinkId_; - /// - /// Downlink ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint DownlinkId { - get { return downlinkId_; } - set { - downlinkId_ = value; - } - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 5; - private string gatewayId_ = ""; - /// - /// Gateway ID (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "m_type" field. - public const int MTypeFieldNumber = 6; - private global::Chirpstack.Common.MType mType_ = global::Chirpstack.Common.MType.JoinRequest; - /// - /// Message type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.MType MType { - get { return mType_; } - set { - mType_ = value; - } - } - - /// Field number for the "dev_addr" field. - public const int DevAddrFieldNumber = 7; - private string devAddr_ = ""; - /// - /// Device address (optional). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevAddr { - get { return devAddr_; } - set { - devAddr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 8; - private string devEui_ = ""; - /// - /// Device EUI (optional). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "plaintext_f_opts" field. - public const int PlaintextFOptsFieldNumber = 9; - private bool plaintextFOpts_; - /// - /// Plaintext f_opts mac-commands. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PlaintextFOpts { - get { return plaintextFOpts_; } - set { - plaintextFOpts_ = value; - } - } - - /// Field number for the "plaintext_frm_payload" field. - public const int PlaintextFrmPayloadFieldNumber = 10; - private bool plaintextFrmPayload_; - /// - /// Plaintext frm_payload. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PlaintextFrmPayload { - get { return plaintextFrmPayload_; } - set { - plaintextFrmPayload_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DownlinkFrameLog); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DownlinkFrameLog other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Time, other.Time)) return false; - if (PhyPayload != other.PhyPayload) return false; - if (!object.Equals(TxInfo, other.TxInfo)) return false; - if (DownlinkId != other.DownlinkId) return false; - if (GatewayId != other.GatewayId) return false; - if (MType != other.MType) return false; - if (DevAddr != other.DevAddr) return false; - if (DevEui != other.DevEui) return false; - if (PlaintextFOpts != other.PlaintextFOpts) return false; - if (PlaintextFrmPayload != other.PlaintextFrmPayload) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (time_ != null) hash ^= Time.GetHashCode(); - if (PhyPayload.Length != 0) hash ^= PhyPayload.GetHashCode(); - if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); - if (DownlinkId != 0) hash ^= DownlinkId.GetHashCode(); - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (MType != global::Chirpstack.Common.MType.JoinRequest) hash ^= MType.GetHashCode(); - if (DevAddr.Length != 0) hash ^= DevAddr.GetHashCode(); - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (PlaintextFOpts != false) hash ^= PlaintextFOpts.GetHashCode(); - if (PlaintextFrmPayload != false) hash ^= PlaintextFrmPayload.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (time_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Time); - } - if (PhyPayload.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(PhyPayload); - } - if (txInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(TxInfo); - } - if (DownlinkId != 0) { - output.WriteRawTag(32); - output.WriteUInt32(DownlinkId); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(GatewayId); - } - if (MType != global::Chirpstack.Common.MType.JoinRequest) { - output.WriteRawTag(48); - output.WriteEnum((int) MType); - } - if (DevAddr.Length != 0) { - output.WriteRawTag(58); - output.WriteString(DevAddr); - } - if (DevEui.Length != 0) { - output.WriteRawTag(66); - output.WriteString(DevEui); - } - if (PlaintextFOpts != false) { - output.WriteRawTag(72); - output.WriteBool(PlaintextFOpts); - } - if (PlaintextFrmPayload != false) { - output.WriteRawTag(80); - output.WriteBool(PlaintextFrmPayload); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (time_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Time); - } - if (PhyPayload.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(PhyPayload); - } - if (txInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(TxInfo); - } - if (DownlinkId != 0) { - output.WriteRawTag(32); - output.WriteUInt32(DownlinkId); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(GatewayId); - } - if (MType != global::Chirpstack.Common.MType.JoinRequest) { - output.WriteRawTag(48); - output.WriteEnum((int) MType); - } - if (DevAddr.Length != 0) { - output.WriteRawTag(58); - output.WriteString(DevAddr); - } - if (DevEui.Length != 0) { - output.WriteRawTag(66); - output.WriteString(DevEui); - } - if (PlaintextFOpts != false) { - output.WriteRawTag(72); - output.WriteBool(PlaintextFOpts); - } - if (PlaintextFrmPayload != false) { - output.WriteRawTag(80); - output.WriteBool(PlaintextFrmPayload); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (time_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); - } - if (PhyPayload.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(PhyPayload); - } - if (txInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); - } - if (DownlinkId != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DownlinkId); - } - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (MType != global::Chirpstack.Common.MType.JoinRequest) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MType); - } - if (DevAddr.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevAddr); - } - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (PlaintextFOpts != false) { - size += 1 + 1; - } - if (PlaintextFrmPayload != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DownlinkFrameLog other) { - if (other == null) { - return; - } - if (other.time_ != null) { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - Time.MergeFrom(other.Time); - } - if (other.PhyPayload.Length != 0) { - PhyPayload = other.PhyPayload; - } - if (other.txInfo_ != null) { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); - } - TxInfo.MergeFrom(other.TxInfo); - } - if (other.DownlinkId != 0) { - DownlinkId = other.DownlinkId; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - if (other.MType != global::Chirpstack.Common.MType.JoinRequest) { - MType = other.MType; - } - if (other.DevAddr.Length != 0) { - DevAddr = other.DevAddr; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - if (other.PlaintextFOpts != false) { - PlaintextFOpts = other.PlaintextFOpts; - } - if (other.PlaintextFrmPayload != false) { - PlaintextFrmPayload = other.PlaintextFrmPayload; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 18: { - PhyPayload = input.ReadBytes(); - break; - } - case 26: { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); - } - input.ReadMessage(TxInfo); - break; - } - case 32: { - DownlinkId = input.ReadUInt32(); - break; - } - case 42: { - GatewayId = input.ReadString(); - break; - } - case 48: { - MType = (global::Chirpstack.Common.MType) input.ReadEnum(); - break; - } - case 58: { - DevAddr = input.ReadString(); - break; - } - case 66: { - DevEui = input.ReadString(); - break; - } - case 72: { - PlaintextFOpts = input.ReadBool(); - break; - } - case 80: { - PlaintextFrmPayload = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (time_ == null) { - Time = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(Time); - break; - } - case 18: { - PhyPayload = input.ReadBytes(); - break; - } - case 26: { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); - } - input.ReadMessage(TxInfo); - break; - } - case 32: { - DownlinkId = input.ReadUInt32(); - break; - } - case 42: { - GatewayId = input.ReadString(); - break; - } - case 48: { - MType = (global::Chirpstack.Common.MType) input.ReadEnum(); - break; - } - case 58: { - DevAddr = input.ReadString(); - break; - } - case 66: { - DevEui = input.ReadString(); - break; - } - case 72: { - PlaintextFOpts = input.ReadBool(); - break; - } - case 80: { - PlaintextFrmPayload = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/api/csharp/Chirpstack/stream/Meta.cs b/api/csharp/Chirpstack/stream/Meta.cs deleted file mode 100644 index 97375dfc..00000000 --- a/api/csharp/Chirpstack/stream/Meta.cs +++ /dev/null @@ -1,969 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stream/meta.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Chirpstack.Stream { - - /// Holder for reflection information generated from stream/meta.proto - public static partial class MetaReflection { - - #region Descriptor - /// File descriptor for stream/meta.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static MetaReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ChFzdHJlYW0vbWV0YS5wcm90bxIGc3RyZWFtGhNjb21tb24vY29tbW9uLnBy", - "b3RvGgtndy9ndy5wcm90byLwAQoKVXBsaW5rTWV0YRIPCgdkZXZfZXVpGAEg", - "ASgJEiEKB3R4X2luZm8YAiABKAsyEC5ndy5VcGxpbmtUeEluZm8SIQoHcnhf", - "aW5mbxgDIAMoCzIQLmd3LlVwbGlua1J4SW5mbxIeChZwaHlfcGF5bG9hZF9i", - "eXRlX2NvdW50GAQgASgNEh4KFm1hY19jb21tYW5kX2J5dGVfY291bnQYBSAB", - "KA0SJgoeYXBwbGljYXRpb25fcGF5bG9hZF9ieXRlX2NvdW50GAYgASgNEiMK", - "DG1lc3NhZ2VfdHlwZRgHIAEoDjINLmNvbW1vbi5NVHlwZSKBAgoMRG93bmxp", - "bmtNZXRhEg8KB2Rldl9ldWkYASABKAkSGgoSbXVsdGljYXN0X2dyb3VwX2lk", - "GAIgASgJEiMKB3R4X2luZm8YAyABKAsyEi5ndy5Eb3dubGlua1R4SW5mbxIe", - "ChZwaHlfcGF5bG9hZF9ieXRlX2NvdW50GAQgASgNEh4KFm1hY19jb21tYW5k", - "X2J5dGVfY291bnQYBSABKA0SJgoeYXBwbGljYXRpb25fcGF5bG9hZF9ieXRl", - "X2NvdW50GAYgASgNEiMKDG1lc3NhZ2VfdHlwZRgHIAEoDjINLmNvbW1vbi5N", - "VHlwZRISCgpnYXRld2F5X2lkGAggASgJQm4KGGlvLmNoaXJwc3RhY2suYXBp", - "LnN0cmVhbUIJTWV0YVByb3RvUAFaMWdpdGh1Yi5jb20vY2hpcnBzdGFjay9j", - "aGlycHN0YWNrL2FwaS9nby92NC9zdHJlYW2qAhFDaGlycHN0YWNrLlN0cmVh", - "bWIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Chirpstack.Common.CommonReflection.Descriptor, global::Chirpstack.Gateway.GwReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Stream.UplinkMeta), global::Chirpstack.Stream.UplinkMeta.Parser, new[]{ "DevEui", "TxInfo", "RxInfo", "PhyPayloadByteCount", "MacCommandByteCount", "ApplicationPayloadByteCount", "MessageType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Stream.DownlinkMeta), global::Chirpstack.Stream.DownlinkMeta.Parser, new[]{ "DevEui", "MulticastGroupId", "TxInfo", "PhyPayloadByteCount", "MacCommandByteCount", "ApplicationPayloadByteCount", "MessageType", "GatewayId" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - public sealed partial class UplinkMeta : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UplinkMeta()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Stream.MetaReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkMeta() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkMeta(UplinkMeta other) : this() { - devEui_ = other.devEui_; - txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; - rxInfo_ = other.rxInfo_.Clone(); - phyPayloadByteCount_ = other.phyPayloadByteCount_; - macCommandByteCount_ = other.macCommandByteCount_; - applicationPayloadByteCount_ = other.applicationPayloadByteCount_; - messageType_ = other.messageType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UplinkMeta Clone() { - return new UplinkMeta(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// Device EUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tx_info" field. - public const int TxInfoFieldNumber = 2; - private global::Chirpstack.Gateway.UplinkTxInfo txInfo_; - /// - /// TX meta-data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.UplinkTxInfo TxInfo { - get { return txInfo_; } - set { - txInfo_ = value; - } - } - - /// Field number for the "rx_info" field. - public const int RxInfoFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_rxInfo_codec - = pb::FieldCodec.ForMessage(26, global::Chirpstack.Gateway.UplinkRxInfo.Parser); - private readonly pbc::RepeatedField rxInfo_ = new pbc::RepeatedField(); - /// - /// RX meta-data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField RxInfo { - get { return rxInfo_; } - } - - /// Field number for the "phy_payload_byte_count" field. - public const int PhyPayloadByteCountFieldNumber = 4; - private uint phyPayloadByteCount_; - /// - /// PHYPayload byte count. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint PhyPayloadByteCount { - get { return phyPayloadByteCount_; } - set { - phyPayloadByteCount_ = value; - } - } - - /// Field number for the "mac_command_byte_count" field. - public const int MacCommandByteCountFieldNumber = 5; - private uint macCommandByteCount_; - /// - /// MAC-Command byte count. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint MacCommandByteCount { - get { return macCommandByteCount_; } - set { - macCommandByteCount_ = value; - } - } - - /// Field number for the "application_payload_byte_count" field. - public const int ApplicationPayloadByteCountFieldNumber = 6; - private uint applicationPayloadByteCount_; - /// - /// Application payload byte count. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ApplicationPayloadByteCount { - get { return applicationPayloadByteCount_; } - set { - applicationPayloadByteCount_ = value; - } - } - - /// Field number for the "message_type" field. - public const int MessageTypeFieldNumber = 7; - private global::Chirpstack.Common.MType messageType_ = global::Chirpstack.Common.MType.JoinRequest; - /// - /// Message type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.MType MessageType { - get { return messageType_; } - set { - messageType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UplinkMeta); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UplinkMeta other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - if (!object.Equals(TxInfo, other.TxInfo)) return false; - if(!rxInfo_.Equals(other.rxInfo_)) return false; - if (PhyPayloadByteCount != other.PhyPayloadByteCount) return false; - if (MacCommandByteCount != other.MacCommandByteCount) return false; - if (ApplicationPayloadByteCount != other.ApplicationPayloadByteCount) return false; - if (MessageType != other.MessageType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); - hash ^= rxInfo_.GetHashCode(); - if (PhyPayloadByteCount != 0) hash ^= PhyPayloadByteCount.GetHashCode(); - if (MacCommandByteCount != 0) hash ^= MacCommandByteCount.GetHashCode(); - if (ApplicationPayloadByteCount != 0) hash ^= ApplicationPayloadByteCount.GetHashCode(); - if (MessageType != global::Chirpstack.Common.MType.JoinRequest) hash ^= MessageType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (txInfo_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TxInfo); - } - rxInfo_.WriteTo(output, _repeated_rxInfo_codec); - if (PhyPayloadByteCount != 0) { - output.WriteRawTag(32); - output.WriteUInt32(PhyPayloadByteCount); - } - if (MacCommandByteCount != 0) { - output.WriteRawTag(40); - output.WriteUInt32(MacCommandByteCount); - } - if (ApplicationPayloadByteCount != 0) { - output.WriteRawTag(48); - output.WriteUInt32(ApplicationPayloadByteCount); - } - if (MessageType != global::Chirpstack.Common.MType.JoinRequest) { - output.WriteRawTag(56); - output.WriteEnum((int) MessageType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (txInfo_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TxInfo); - } - rxInfo_.WriteTo(ref output, _repeated_rxInfo_codec); - if (PhyPayloadByteCount != 0) { - output.WriteRawTag(32); - output.WriteUInt32(PhyPayloadByteCount); - } - if (MacCommandByteCount != 0) { - output.WriteRawTag(40); - output.WriteUInt32(MacCommandByteCount); - } - if (ApplicationPayloadByteCount != 0) { - output.WriteRawTag(48); - output.WriteUInt32(ApplicationPayloadByteCount); - } - if (MessageType != global::Chirpstack.Common.MType.JoinRequest) { - output.WriteRawTag(56); - output.WriteEnum((int) MessageType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (txInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); - } - size += rxInfo_.CalculateSize(_repeated_rxInfo_codec); - if (PhyPayloadByteCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PhyPayloadByteCount); - } - if (MacCommandByteCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MacCommandByteCount); - } - if (ApplicationPayloadByteCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ApplicationPayloadByteCount); - } - if (MessageType != global::Chirpstack.Common.MType.JoinRequest) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MessageType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UplinkMeta other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - if (other.txInfo_ != null) { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); - } - TxInfo.MergeFrom(other.TxInfo); - } - rxInfo_.Add(other.rxInfo_); - if (other.PhyPayloadByteCount != 0) { - PhyPayloadByteCount = other.PhyPayloadByteCount; - } - if (other.MacCommandByteCount != 0) { - MacCommandByteCount = other.MacCommandByteCount; - } - if (other.ApplicationPayloadByteCount != 0) { - ApplicationPayloadByteCount = other.ApplicationPayloadByteCount; - } - if (other.MessageType != global::Chirpstack.Common.MType.JoinRequest) { - MessageType = other.MessageType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 18: { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); - } - input.ReadMessage(TxInfo); - break; - } - case 26: { - rxInfo_.AddEntriesFrom(input, _repeated_rxInfo_codec); - break; - } - case 32: { - PhyPayloadByteCount = input.ReadUInt32(); - break; - } - case 40: { - MacCommandByteCount = input.ReadUInt32(); - break; - } - case 48: { - ApplicationPayloadByteCount = input.ReadUInt32(); - break; - } - case 56: { - MessageType = (global::Chirpstack.Common.MType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 18: { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.UplinkTxInfo(); - } - input.ReadMessage(TxInfo); - break; - } - case 26: { - rxInfo_.AddEntriesFrom(ref input, _repeated_rxInfo_codec); - break; - } - case 32: { - PhyPayloadByteCount = input.ReadUInt32(); - break; - } - case 40: { - MacCommandByteCount = input.ReadUInt32(); - break; - } - case 48: { - ApplicationPayloadByteCount = input.ReadUInt32(); - break; - } - case 56: { - MessageType = (global::Chirpstack.Common.MType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - public sealed partial class DownlinkMeta : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DownlinkMeta()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Chirpstack.Stream.MetaReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkMeta() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkMeta(DownlinkMeta other) : this() { - devEui_ = other.devEui_; - multicastGroupId_ = other.multicastGroupId_; - txInfo_ = other.txInfo_ != null ? other.txInfo_.Clone() : null; - phyPayloadByteCount_ = other.phyPayloadByteCount_; - macCommandByteCount_ = other.macCommandByteCount_; - applicationPayloadByteCount_ = other.applicationPayloadByteCount_; - messageType_ = other.messageType_; - gatewayId_ = other.gatewayId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DownlinkMeta Clone() { - return new DownlinkMeta(this); - } - - /// Field number for the "dev_eui" field. - public const int DevEuiFieldNumber = 1; - private string devEui_ = ""; - /// - /// Device EUI (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DevEui { - get { return devEui_; } - set { - devEui_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "multicast_group_id" field. - public const int MulticastGroupIdFieldNumber = 2; - private string multicastGroupId_ = ""; - /// - /// Multicast Group ID (UUID). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MulticastGroupId { - get { return multicastGroupId_; } - set { - multicastGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tx_info" field. - public const int TxInfoFieldNumber = 3; - private global::Chirpstack.Gateway.DownlinkTxInfo txInfo_; - /// - /// TX meta-data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Gateway.DownlinkTxInfo TxInfo { - get { return txInfo_; } - set { - txInfo_ = value; - } - } - - /// Field number for the "phy_payload_byte_count" field. - public const int PhyPayloadByteCountFieldNumber = 4; - private uint phyPayloadByteCount_; - /// - /// PHYPayload byte count. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint PhyPayloadByteCount { - get { return phyPayloadByteCount_; } - set { - phyPayloadByteCount_ = value; - } - } - - /// Field number for the "mac_command_byte_count" field. - public const int MacCommandByteCountFieldNumber = 5; - private uint macCommandByteCount_; - /// - /// MAC-Command byte count. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint MacCommandByteCount { - get { return macCommandByteCount_; } - set { - macCommandByteCount_ = value; - } - } - - /// Field number for the "application_payload_byte_count" field. - public const int ApplicationPayloadByteCountFieldNumber = 6; - private uint applicationPayloadByteCount_; - /// - /// Application payload byte count. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ApplicationPayloadByteCount { - get { return applicationPayloadByteCount_; } - set { - applicationPayloadByteCount_ = value; - } - } - - /// Field number for the "message_type" field. - public const int MessageTypeFieldNumber = 7; - private global::Chirpstack.Common.MType messageType_ = global::Chirpstack.Common.MType.JoinRequest; - /// - /// Message type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Chirpstack.Common.MType MessageType { - get { return messageType_; } - set { - messageType_ = value; - } - } - - /// Field number for the "gateway_id" field. - public const int GatewayIdFieldNumber = 8; - private string gatewayId_ = ""; - /// - /// Gateway ID (EUI64). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayId { - get { return gatewayId_; } - set { - gatewayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DownlinkMeta); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DownlinkMeta other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DevEui != other.DevEui) return false; - if (MulticastGroupId != other.MulticastGroupId) return false; - if (!object.Equals(TxInfo, other.TxInfo)) return false; - if (PhyPayloadByteCount != other.PhyPayloadByteCount) return false; - if (MacCommandByteCount != other.MacCommandByteCount) return false; - if (ApplicationPayloadByteCount != other.ApplicationPayloadByteCount) return false; - if (MessageType != other.MessageType) return false; - if (GatewayId != other.GatewayId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DevEui.Length != 0) hash ^= DevEui.GetHashCode(); - if (MulticastGroupId.Length != 0) hash ^= MulticastGroupId.GetHashCode(); - if (txInfo_ != null) hash ^= TxInfo.GetHashCode(); - if (PhyPayloadByteCount != 0) hash ^= PhyPayloadByteCount.GetHashCode(); - if (MacCommandByteCount != 0) hash ^= MacCommandByteCount.GetHashCode(); - if (ApplicationPayloadByteCount != 0) hash ^= ApplicationPayloadByteCount.GetHashCode(); - if (MessageType != global::Chirpstack.Common.MType.JoinRequest) hash ^= MessageType.GetHashCode(); - if (GatewayId.Length != 0) hash ^= GatewayId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(MulticastGroupId); - } - if (txInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(TxInfo); - } - if (PhyPayloadByteCount != 0) { - output.WriteRawTag(32); - output.WriteUInt32(PhyPayloadByteCount); - } - if (MacCommandByteCount != 0) { - output.WriteRawTag(40); - output.WriteUInt32(MacCommandByteCount); - } - if (ApplicationPayloadByteCount != 0) { - output.WriteRawTag(48); - output.WriteUInt32(ApplicationPayloadByteCount); - } - if (MessageType != global::Chirpstack.Common.MType.JoinRequest) { - output.WriteRawTag(56); - output.WriteEnum((int) MessageType); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(66); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DevEui.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DevEui); - } - if (MulticastGroupId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(MulticastGroupId); - } - if (txInfo_ != null) { - output.WriteRawTag(26); - output.WriteMessage(TxInfo); - } - if (PhyPayloadByteCount != 0) { - output.WriteRawTag(32); - output.WriteUInt32(PhyPayloadByteCount); - } - if (MacCommandByteCount != 0) { - output.WriteRawTag(40); - output.WriteUInt32(MacCommandByteCount); - } - if (ApplicationPayloadByteCount != 0) { - output.WriteRawTag(48); - output.WriteUInt32(ApplicationPayloadByteCount); - } - if (MessageType != global::Chirpstack.Common.MType.JoinRequest) { - output.WriteRawTag(56); - output.WriteEnum((int) MessageType); - } - if (GatewayId.Length != 0) { - output.WriteRawTag(66); - output.WriteString(GatewayId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DevEui.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DevEui); - } - if (MulticastGroupId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MulticastGroupId); - } - if (txInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TxInfo); - } - if (PhyPayloadByteCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PhyPayloadByteCount); - } - if (MacCommandByteCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MacCommandByteCount); - } - if (ApplicationPayloadByteCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ApplicationPayloadByteCount); - } - if (MessageType != global::Chirpstack.Common.MType.JoinRequest) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MessageType); - } - if (GatewayId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DownlinkMeta other) { - if (other == null) { - return; - } - if (other.DevEui.Length != 0) { - DevEui = other.DevEui; - } - if (other.MulticastGroupId.Length != 0) { - MulticastGroupId = other.MulticastGroupId; - } - if (other.txInfo_ != null) { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); - } - TxInfo.MergeFrom(other.TxInfo); - } - if (other.PhyPayloadByteCount != 0) { - PhyPayloadByteCount = other.PhyPayloadByteCount; - } - if (other.MacCommandByteCount != 0) { - MacCommandByteCount = other.MacCommandByteCount; - } - if (other.ApplicationPayloadByteCount != 0) { - ApplicationPayloadByteCount = other.ApplicationPayloadByteCount; - } - if (other.MessageType != global::Chirpstack.Common.MType.JoinRequest) { - MessageType = other.MessageType; - } - if (other.GatewayId.Length != 0) { - GatewayId = other.GatewayId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 18: { - MulticastGroupId = input.ReadString(); - break; - } - case 26: { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); - } - input.ReadMessage(TxInfo); - break; - } - case 32: { - PhyPayloadByteCount = input.ReadUInt32(); - break; - } - case 40: { - MacCommandByteCount = input.ReadUInt32(); - break; - } - case 48: { - ApplicationPayloadByteCount = input.ReadUInt32(); - break; - } - case 56: { - MessageType = (global::Chirpstack.Common.MType) input.ReadEnum(); - break; - } - case 66: { - GatewayId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DevEui = input.ReadString(); - break; - } - case 18: { - MulticastGroupId = input.ReadString(); - break; - } - case 26: { - if (txInfo_ == null) { - TxInfo = new global::Chirpstack.Gateway.DownlinkTxInfo(); - } - input.ReadMessage(TxInfo); - break; - } - case 32: { - PhyPayloadByteCount = input.ReadUInt32(); - break; - } - case 40: { - MacCommandByteCount = input.ReadUInt32(); - break; - } - case 48: { - ApplicationPayloadByteCount = input.ReadUInt32(); - break; - } - case 56: { - MessageType = (global::Chirpstack.Common.MType) input.ReadEnum(); - break; - } - case 66: { - GatewayId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/api/grpc-web/.gitignore b/api/grpc-web/.gitignore new file mode 100644 index 00000000..f39b35e5 --- /dev/null +++ b/api/grpc-web/.gitignore @@ -0,0 +1,4 @@ +*.ts +*.js +/node_modules +*.log diff --git a/api/grpc-web/api/application_grpc_web_pb.d.ts b/api/grpc-web/api/application_grpc_web_pb.d.ts deleted file mode 100644 index 7772604b..00000000 --- a/api/grpc-web/api/application_grpc_web_pb.d.ts +++ /dev/null @@ -1,584 +0,0 @@ -import * as grpcWeb from 'grpc-web'; - -import * as api_application_pb from '../api/application_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; - - -export class ApplicationServiceClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - create( - request: api_application_pb.CreateApplicationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_application_pb.CreateApplicationResponse) => void - ): grpcWeb.ClientReadableStream; - - get( - request: api_application_pb.GetApplicationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_application_pb.GetApplicationResponse) => void - ): grpcWeb.ClientReadableStream; - - update( - request: api_application_pb.UpdateApplicationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - delete( - request: api_application_pb.DeleteApplicationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - list( - request: api_application_pb.ListApplicationsRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_application_pb.ListApplicationsResponse) => void - ): grpcWeb.ClientReadableStream; - - listIntegrations( - request: api_application_pb.ListIntegrationsRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_application_pb.ListIntegrationsResponse) => void - ): grpcWeb.ClientReadableStream; - - createHttpIntegration( - request: api_application_pb.CreateHttpIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getHttpIntegration( - request: api_application_pb.GetHttpIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_application_pb.GetHttpIntegrationResponse) => void - ): grpcWeb.ClientReadableStream; - - updateHttpIntegration( - request: api_application_pb.UpdateHttpIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - deleteHttpIntegration( - request: api_application_pb.DeleteHttpIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - createInfluxDbIntegration( - request: api_application_pb.CreateInfluxDbIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getInfluxDbIntegration( - request: api_application_pb.GetInfluxDbIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_application_pb.GetInfluxDbIntegrationResponse) => void - ): grpcWeb.ClientReadableStream; - - updateInfluxDbIntegration( - request: api_application_pb.UpdateInfluxDbIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - deleteInfluxDbIntegration( - request: api_application_pb.DeleteInfluxDbIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - createThingsBoardIntegration( - request: api_application_pb.CreateThingsBoardIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getThingsBoardIntegration( - request: api_application_pb.GetThingsBoardIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_application_pb.GetThingsBoardIntegrationResponse) => void - ): grpcWeb.ClientReadableStream; - - updateThingsBoardIntegration( - request: api_application_pb.UpdateThingsBoardIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - deleteThingsBoardIntegration( - request: api_application_pb.DeleteThingsBoardIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - createMyDevicesIntegration( - request: api_application_pb.CreateMyDevicesIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getMyDevicesIntegration( - request: api_application_pb.GetMyDevicesIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_application_pb.GetMyDevicesIntegrationResponse) => void - ): grpcWeb.ClientReadableStream; - - updateMyDevicesIntegration( - request: api_application_pb.UpdateMyDevicesIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - deleteMyDevicesIntegration( - request: api_application_pb.DeleteMyDevicesIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - createLoraCloudIntegration( - request: api_application_pb.CreateLoraCloudIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getLoraCloudIntegration( - request: api_application_pb.GetLoraCloudIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_application_pb.GetLoraCloudIntegrationResponse) => void - ): grpcWeb.ClientReadableStream; - - updateLoraCloudIntegration( - request: api_application_pb.UpdateLoraCloudIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - deleteLoraCloudIntegration( - request: api_application_pb.DeleteLoraCloudIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - createGcpPubSubIntegration( - request: api_application_pb.CreateGcpPubSubIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getGcpPubSubIntegration( - request: api_application_pb.GetGcpPubSubIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_application_pb.GetGcpPubSubIntegrationResponse) => void - ): grpcWeb.ClientReadableStream; - - updateGcpPubSubIntegration( - request: api_application_pb.UpdateGcpPubSubIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - deleteGcpPubSubIntegration( - request: api_application_pb.DeleteGcpPubSubIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - createAwsSnsIntegration( - request: api_application_pb.CreateAwsSnsIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getAwsSnsIntegration( - request: api_application_pb.GetAwsSnsIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_application_pb.GetAwsSnsIntegrationResponse) => void - ): grpcWeb.ClientReadableStream; - - updateAwsSnsIntegration( - request: api_application_pb.UpdateAwsSnsIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - deleteAwsSnsIntegration( - request: api_application_pb.DeleteAwsSnsIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - createAzureServiceBusIntegration( - request: api_application_pb.CreateAzureServiceBusIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getAzureServiceBusIntegration( - request: api_application_pb.GetAzureServiceBusIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_application_pb.GetAzureServiceBusIntegrationResponse) => void - ): grpcWeb.ClientReadableStream; - - updateAzureServiceBusIntegration( - request: api_application_pb.UpdateAzureServiceBusIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - deleteAzureServiceBusIntegration( - request: api_application_pb.DeleteAzureServiceBusIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - createPilotThingsIntegration( - request: api_application_pb.CreatePilotThingsIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getPilotThingsIntegration( - request: api_application_pb.GetPilotThingsIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_application_pb.GetPilotThingsIntegrationResponse) => void - ): grpcWeb.ClientReadableStream; - - updatePilotThingsIntegration( - request: api_application_pb.UpdatePilotThingsIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - deletePilotThingsIntegration( - request: api_application_pb.DeletePilotThingsIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - createIftttIntegration( - request: api_application_pb.CreateIftttIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getIftttIntegration( - request: api_application_pb.GetIftttIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_application_pb.GetIftttIntegrationResponse) => void - ): grpcWeb.ClientReadableStream; - - updateIftttIntegration( - request: api_application_pb.UpdateIftttIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - deleteIftttIntegration( - request: api_application_pb.DeleteIftttIntegrationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - generateMqttIntegrationClientCertificate( - request: api_application_pb.GenerateMqttIntegrationClientCertificateRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_application_pb.GenerateMqttIntegrationClientCertificateResponse) => void - ): grpcWeb.ClientReadableStream; - -} - -export class ApplicationServicePromiseClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - create( - request: api_application_pb.CreateApplicationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - get( - request: api_application_pb.GetApplicationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - update( - request: api_application_pb.UpdateApplicationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - delete( - request: api_application_pb.DeleteApplicationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - list( - request: api_application_pb.ListApplicationsRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - listIntegrations( - request: api_application_pb.ListIntegrationsRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - createHttpIntegration( - request: api_application_pb.CreateHttpIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getHttpIntegration( - request: api_application_pb.GetHttpIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - updateHttpIntegration( - request: api_application_pb.UpdateHttpIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - deleteHttpIntegration( - request: api_application_pb.DeleteHttpIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - createInfluxDbIntegration( - request: api_application_pb.CreateInfluxDbIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getInfluxDbIntegration( - request: api_application_pb.GetInfluxDbIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - updateInfluxDbIntegration( - request: api_application_pb.UpdateInfluxDbIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - deleteInfluxDbIntegration( - request: api_application_pb.DeleteInfluxDbIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - createThingsBoardIntegration( - request: api_application_pb.CreateThingsBoardIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getThingsBoardIntegration( - request: api_application_pb.GetThingsBoardIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - updateThingsBoardIntegration( - request: api_application_pb.UpdateThingsBoardIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - deleteThingsBoardIntegration( - request: api_application_pb.DeleteThingsBoardIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - createMyDevicesIntegration( - request: api_application_pb.CreateMyDevicesIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getMyDevicesIntegration( - request: api_application_pb.GetMyDevicesIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - updateMyDevicesIntegration( - request: api_application_pb.UpdateMyDevicesIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - deleteMyDevicesIntegration( - request: api_application_pb.DeleteMyDevicesIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - createLoraCloudIntegration( - request: api_application_pb.CreateLoraCloudIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getLoraCloudIntegration( - request: api_application_pb.GetLoraCloudIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - updateLoraCloudIntegration( - request: api_application_pb.UpdateLoraCloudIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - deleteLoraCloudIntegration( - request: api_application_pb.DeleteLoraCloudIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - createGcpPubSubIntegration( - request: api_application_pb.CreateGcpPubSubIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getGcpPubSubIntegration( - request: api_application_pb.GetGcpPubSubIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - updateGcpPubSubIntegration( - request: api_application_pb.UpdateGcpPubSubIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - deleteGcpPubSubIntegration( - request: api_application_pb.DeleteGcpPubSubIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - createAwsSnsIntegration( - request: api_application_pb.CreateAwsSnsIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getAwsSnsIntegration( - request: api_application_pb.GetAwsSnsIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - updateAwsSnsIntegration( - request: api_application_pb.UpdateAwsSnsIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - deleteAwsSnsIntegration( - request: api_application_pb.DeleteAwsSnsIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - createAzureServiceBusIntegration( - request: api_application_pb.CreateAzureServiceBusIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getAzureServiceBusIntegration( - request: api_application_pb.GetAzureServiceBusIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - updateAzureServiceBusIntegration( - request: api_application_pb.UpdateAzureServiceBusIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - deleteAzureServiceBusIntegration( - request: api_application_pb.DeleteAzureServiceBusIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - createPilotThingsIntegration( - request: api_application_pb.CreatePilotThingsIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getPilotThingsIntegration( - request: api_application_pb.GetPilotThingsIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - updatePilotThingsIntegration( - request: api_application_pb.UpdatePilotThingsIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - deletePilotThingsIntegration( - request: api_application_pb.DeletePilotThingsIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - createIftttIntegration( - request: api_application_pb.CreateIftttIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getIftttIntegration( - request: api_application_pb.GetIftttIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - updateIftttIntegration( - request: api_application_pb.UpdateIftttIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - deleteIftttIntegration( - request: api_application_pb.DeleteIftttIntegrationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - generateMqttIntegrationClientCertificate( - request: api_application_pb.GenerateMqttIntegrationClientCertificateRequest, - metadata?: grpcWeb.Metadata - ): Promise; - -} - diff --git a/api/grpc-web/api/application_grpc_web_pb.js b/api/grpc-web/api/application_grpc_web_pb.js deleted file mode 100644 index 7b89bb92..00000000 --- a/api/grpc-web/api/application_grpc_web_pb.js +++ /dev/null @@ -1,2951 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for api - * @enhanceable - * @public - */ - -// Code generated by protoc-gen-grpc-web. DO NOT EDIT. -// versions: -// protoc-gen-grpc-web v1.4.2 -// protoc v3.12.4 -// source: api/application.proto - - -/* eslint-disable */ -// @ts-nocheck - - - -const grpc = {}; -grpc.web = require('grpc-web'); - - -var google_api_annotations_pb = require('../google/api/annotations_pb.js') - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js') - -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js') -const proto = {}; -proto.api = require('./application_pb.js'); - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.ApplicationServiceClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.ApplicationServicePromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateApplicationRequest, - * !proto.api.CreateApplicationResponse>} - */ -const methodDescriptor_ApplicationService_Create = new grpc.web.MethodDescriptor( - '/api.ApplicationService/Create', - grpc.web.MethodType.UNARY, - proto.api.CreateApplicationRequest, - proto.api.CreateApplicationResponse, - /** - * @param {!proto.api.CreateApplicationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.CreateApplicationResponse.deserializeBinary -); - - -/** - * @param {!proto.api.CreateApplicationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.CreateApplicationResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.create = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/Create', - request, - metadata || {}, - methodDescriptor_ApplicationService_Create, - callback); -}; - - -/** - * @param {!proto.api.CreateApplicationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.create = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/Create', - request, - metadata || {}, - methodDescriptor_ApplicationService_Create); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetApplicationRequest, - * !proto.api.GetApplicationResponse>} - */ -const methodDescriptor_ApplicationService_Get = new grpc.web.MethodDescriptor( - '/api.ApplicationService/Get', - grpc.web.MethodType.UNARY, - proto.api.GetApplicationRequest, - proto.api.GetApplicationResponse, - /** - * @param {!proto.api.GetApplicationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetApplicationResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetApplicationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetApplicationResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.get = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/Get', - request, - metadata || {}, - methodDescriptor_ApplicationService_Get, - callback); -}; - - -/** - * @param {!proto.api.GetApplicationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.get = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/Get', - request, - metadata || {}, - methodDescriptor_ApplicationService_Get); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateApplicationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_Update = new grpc.web.MethodDescriptor( - '/api.ApplicationService/Update', - grpc.web.MethodType.UNARY, - proto.api.UpdateApplicationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateApplicationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateApplicationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.update = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/Update', - request, - metadata || {}, - methodDescriptor_ApplicationService_Update, - callback); -}; - - -/** - * @param {!proto.api.UpdateApplicationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.update = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/Update', - request, - metadata || {}, - methodDescriptor_ApplicationService_Update); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteApplicationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_Delete = new grpc.web.MethodDescriptor( - '/api.ApplicationService/Delete', - grpc.web.MethodType.UNARY, - proto.api.DeleteApplicationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteApplicationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteApplicationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.delete = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/Delete', - request, - metadata || {}, - methodDescriptor_ApplicationService_Delete, - callback); -}; - - -/** - * @param {!proto.api.DeleteApplicationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.delete = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/Delete', - request, - metadata || {}, - methodDescriptor_ApplicationService_Delete); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.ListApplicationsRequest, - * !proto.api.ListApplicationsResponse>} - */ -const methodDescriptor_ApplicationService_List = new grpc.web.MethodDescriptor( - '/api.ApplicationService/List', - grpc.web.MethodType.UNARY, - proto.api.ListApplicationsRequest, - proto.api.ListApplicationsResponse, - /** - * @param {!proto.api.ListApplicationsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.ListApplicationsResponse.deserializeBinary -); - - -/** - * @param {!proto.api.ListApplicationsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.ListApplicationsResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.list = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/List', - request, - metadata || {}, - methodDescriptor_ApplicationService_List, - callback); -}; - - -/** - * @param {!proto.api.ListApplicationsRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.list = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/List', - request, - metadata || {}, - methodDescriptor_ApplicationService_List); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.ListIntegrationsRequest, - * !proto.api.ListIntegrationsResponse>} - */ -const methodDescriptor_ApplicationService_ListIntegrations = new grpc.web.MethodDescriptor( - '/api.ApplicationService/ListIntegrations', - grpc.web.MethodType.UNARY, - proto.api.ListIntegrationsRequest, - proto.api.ListIntegrationsResponse, - /** - * @param {!proto.api.ListIntegrationsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.ListIntegrationsResponse.deserializeBinary -); - - -/** - * @param {!proto.api.ListIntegrationsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.ListIntegrationsResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.listIntegrations = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/ListIntegrations', - request, - metadata || {}, - methodDescriptor_ApplicationService_ListIntegrations, - callback); -}; - - -/** - * @param {!proto.api.ListIntegrationsRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.listIntegrations = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/ListIntegrations', - request, - metadata || {}, - methodDescriptor_ApplicationService_ListIntegrations); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateHttpIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_CreateHttpIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/CreateHttpIntegration', - grpc.web.MethodType.UNARY, - proto.api.CreateHttpIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.CreateHttpIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.CreateHttpIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.createHttpIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/CreateHttpIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreateHttpIntegration, - callback); -}; - - -/** - * @param {!proto.api.CreateHttpIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.createHttpIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/CreateHttpIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreateHttpIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetHttpIntegrationRequest, - * !proto.api.GetHttpIntegrationResponse>} - */ -const methodDescriptor_ApplicationService_GetHttpIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/GetHttpIntegration', - grpc.web.MethodType.UNARY, - proto.api.GetHttpIntegrationRequest, - proto.api.GetHttpIntegrationResponse, - /** - * @param {!proto.api.GetHttpIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetHttpIntegrationResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetHttpIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetHttpIntegrationResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.getHttpIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/GetHttpIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetHttpIntegration, - callback); -}; - - -/** - * @param {!proto.api.GetHttpIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.getHttpIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/GetHttpIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetHttpIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateHttpIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_UpdateHttpIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/UpdateHttpIntegration', - grpc.web.MethodType.UNARY, - proto.api.UpdateHttpIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateHttpIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateHttpIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.updateHttpIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/UpdateHttpIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdateHttpIntegration, - callback); -}; - - -/** - * @param {!proto.api.UpdateHttpIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.updateHttpIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/UpdateHttpIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdateHttpIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteHttpIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_DeleteHttpIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/DeleteHttpIntegration', - grpc.web.MethodType.UNARY, - proto.api.DeleteHttpIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteHttpIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteHttpIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.deleteHttpIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/DeleteHttpIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeleteHttpIntegration, - callback); -}; - - -/** - * @param {!proto.api.DeleteHttpIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.deleteHttpIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/DeleteHttpIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeleteHttpIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateInfluxDbIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_CreateInfluxDbIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/CreateInfluxDbIntegration', - grpc.web.MethodType.UNARY, - proto.api.CreateInfluxDbIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.CreateInfluxDbIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.CreateInfluxDbIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.createInfluxDbIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/CreateInfluxDbIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreateInfluxDbIntegration, - callback); -}; - - -/** - * @param {!proto.api.CreateInfluxDbIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.createInfluxDbIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/CreateInfluxDbIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreateInfluxDbIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetInfluxDbIntegrationRequest, - * !proto.api.GetInfluxDbIntegrationResponse>} - */ -const methodDescriptor_ApplicationService_GetInfluxDbIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/GetInfluxDbIntegration', - grpc.web.MethodType.UNARY, - proto.api.GetInfluxDbIntegrationRequest, - proto.api.GetInfluxDbIntegrationResponse, - /** - * @param {!proto.api.GetInfluxDbIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetInfluxDbIntegrationResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetInfluxDbIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetInfluxDbIntegrationResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.getInfluxDbIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/GetInfluxDbIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetInfluxDbIntegration, - callback); -}; - - -/** - * @param {!proto.api.GetInfluxDbIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.getInfluxDbIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/GetInfluxDbIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetInfluxDbIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateInfluxDbIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_UpdateInfluxDbIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/UpdateInfluxDbIntegration', - grpc.web.MethodType.UNARY, - proto.api.UpdateInfluxDbIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateInfluxDbIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateInfluxDbIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.updateInfluxDbIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/UpdateInfluxDbIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdateInfluxDbIntegration, - callback); -}; - - -/** - * @param {!proto.api.UpdateInfluxDbIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.updateInfluxDbIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/UpdateInfluxDbIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdateInfluxDbIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteInfluxDbIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_DeleteInfluxDbIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/DeleteInfluxDbIntegration', - grpc.web.MethodType.UNARY, - proto.api.DeleteInfluxDbIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteInfluxDbIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteInfluxDbIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.deleteInfluxDbIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/DeleteInfluxDbIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeleteInfluxDbIntegration, - callback); -}; - - -/** - * @param {!proto.api.DeleteInfluxDbIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.deleteInfluxDbIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/DeleteInfluxDbIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeleteInfluxDbIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateThingsBoardIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_CreateThingsBoardIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/CreateThingsBoardIntegration', - grpc.web.MethodType.UNARY, - proto.api.CreateThingsBoardIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.CreateThingsBoardIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.CreateThingsBoardIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.createThingsBoardIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/CreateThingsBoardIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreateThingsBoardIntegration, - callback); -}; - - -/** - * @param {!proto.api.CreateThingsBoardIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.createThingsBoardIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/CreateThingsBoardIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreateThingsBoardIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetThingsBoardIntegrationRequest, - * !proto.api.GetThingsBoardIntegrationResponse>} - */ -const methodDescriptor_ApplicationService_GetThingsBoardIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/GetThingsBoardIntegration', - grpc.web.MethodType.UNARY, - proto.api.GetThingsBoardIntegrationRequest, - proto.api.GetThingsBoardIntegrationResponse, - /** - * @param {!proto.api.GetThingsBoardIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetThingsBoardIntegrationResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetThingsBoardIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetThingsBoardIntegrationResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.getThingsBoardIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/GetThingsBoardIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetThingsBoardIntegration, - callback); -}; - - -/** - * @param {!proto.api.GetThingsBoardIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.getThingsBoardIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/GetThingsBoardIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetThingsBoardIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateThingsBoardIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_UpdateThingsBoardIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/UpdateThingsBoardIntegration', - grpc.web.MethodType.UNARY, - proto.api.UpdateThingsBoardIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateThingsBoardIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateThingsBoardIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.updateThingsBoardIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/UpdateThingsBoardIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdateThingsBoardIntegration, - callback); -}; - - -/** - * @param {!proto.api.UpdateThingsBoardIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.updateThingsBoardIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/UpdateThingsBoardIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdateThingsBoardIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteThingsBoardIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_DeleteThingsBoardIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/DeleteThingsBoardIntegration', - grpc.web.MethodType.UNARY, - proto.api.DeleteThingsBoardIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteThingsBoardIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteThingsBoardIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.deleteThingsBoardIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/DeleteThingsBoardIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeleteThingsBoardIntegration, - callback); -}; - - -/** - * @param {!proto.api.DeleteThingsBoardIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.deleteThingsBoardIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/DeleteThingsBoardIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeleteThingsBoardIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateMyDevicesIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_CreateMyDevicesIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/CreateMyDevicesIntegration', - grpc.web.MethodType.UNARY, - proto.api.CreateMyDevicesIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.CreateMyDevicesIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.CreateMyDevicesIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.createMyDevicesIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/CreateMyDevicesIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreateMyDevicesIntegration, - callback); -}; - - -/** - * @param {!proto.api.CreateMyDevicesIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.createMyDevicesIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/CreateMyDevicesIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreateMyDevicesIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetMyDevicesIntegrationRequest, - * !proto.api.GetMyDevicesIntegrationResponse>} - */ -const methodDescriptor_ApplicationService_GetMyDevicesIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/GetMyDevicesIntegration', - grpc.web.MethodType.UNARY, - proto.api.GetMyDevicesIntegrationRequest, - proto.api.GetMyDevicesIntegrationResponse, - /** - * @param {!proto.api.GetMyDevicesIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetMyDevicesIntegrationResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetMyDevicesIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetMyDevicesIntegrationResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.getMyDevicesIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/GetMyDevicesIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetMyDevicesIntegration, - callback); -}; - - -/** - * @param {!proto.api.GetMyDevicesIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.getMyDevicesIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/GetMyDevicesIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetMyDevicesIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateMyDevicesIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_UpdateMyDevicesIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/UpdateMyDevicesIntegration', - grpc.web.MethodType.UNARY, - proto.api.UpdateMyDevicesIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateMyDevicesIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateMyDevicesIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.updateMyDevicesIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/UpdateMyDevicesIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdateMyDevicesIntegration, - callback); -}; - - -/** - * @param {!proto.api.UpdateMyDevicesIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.updateMyDevicesIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/UpdateMyDevicesIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdateMyDevicesIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteMyDevicesIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_DeleteMyDevicesIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/DeleteMyDevicesIntegration', - grpc.web.MethodType.UNARY, - proto.api.DeleteMyDevicesIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteMyDevicesIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteMyDevicesIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.deleteMyDevicesIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/DeleteMyDevicesIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeleteMyDevicesIntegration, - callback); -}; - - -/** - * @param {!proto.api.DeleteMyDevicesIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.deleteMyDevicesIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/DeleteMyDevicesIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeleteMyDevicesIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateLoraCloudIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_CreateLoraCloudIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/CreateLoraCloudIntegration', - grpc.web.MethodType.UNARY, - proto.api.CreateLoraCloudIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.CreateLoraCloudIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.CreateLoraCloudIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.createLoraCloudIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/CreateLoraCloudIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreateLoraCloudIntegration, - callback); -}; - - -/** - * @param {!proto.api.CreateLoraCloudIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.createLoraCloudIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/CreateLoraCloudIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreateLoraCloudIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetLoraCloudIntegrationRequest, - * !proto.api.GetLoraCloudIntegrationResponse>} - */ -const methodDescriptor_ApplicationService_GetLoraCloudIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/GetLoraCloudIntegration', - grpc.web.MethodType.UNARY, - proto.api.GetLoraCloudIntegrationRequest, - proto.api.GetLoraCloudIntegrationResponse, - /** - * @param {!proto.api.GetLoraCloudIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetLoraCloudIntegrationResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetLoraCloudIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetLoraCloudIntegrationResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.getLoraCloudIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/GetLoraCloudIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetLoraCloudIntegration, - callback); -}; - - -/** - * @param {!proto.api.GetLoraCloudIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.getLoraCloudIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/GetLoraCloudIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetLoraCloudIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateLoraCloudIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_UpdateLoraCloudIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/UpdateLoraCloudIntegration', - grpc.web.MethodType.UNARY, - proto.api.UpdateLoraCloudIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateLoraCloudIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateLoraCloudIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.updateLoraCloudIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/UpdateLoraCloudIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdateLoraCloudIntegration, - callback); -}; - - -/** - * @param {!proto.api.UpdateLoraCloudIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.updateLoraCloudIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/UpdateLoraCloudIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdateLoraCloudIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteLoraCloudIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_DeleteLoraCloudIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/DeleteLoraCloudIntegration', - grpc.web.MethodType.UNARY, - proto.api.DeleteLoraCloudIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteLoraCloudIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteLoraCloudIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.deleteLoraCloudIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/DeleteLoraCloudIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeleteLoraCloudIntegration, - callback); -}; - - -/** - * @param {!proto.api.DeleteLoraCloudIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.deleteLoraCloudIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/DeleteLoraCloudIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeleteLoraCloudIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateGcpPubSubIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_CreateGcpPubSubIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/CreateGcpPubSubIntegration', - grpc.web.MethodType.UNARY, - proto.api.CreateGcpPubSubIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.CreateGcpPubSubIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.CreateGcpPubSubIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.createGcpPubSubIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/CreateGcpPubSubIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreateGcpPubSubIntegration, - callback); -}; - - -/** - * @param {!proto.api.CreateGcpPubSubIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.createGcpPubSubIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/CreateGcpPubSubIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreateGcpPubSubIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetGcpPubSubIntegrationRequest, - * !proto.api.GetGcpPubSubIntegrationResponse>} - */ -const methodDescriptor_ApplicationService_GetGcpPubSubIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/GetGcpPubSubIntegration', - grpc.web.MethodType.UNARY, - proto.api.GetGcpPubSubIntegrationRequest, - proto.api.GetGcpPubSubIntegrationResponse, - /** - * @param {!proto.api.GetGcpPubSubIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetGcpPubSubIntegrationResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetGcpPubSubIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetGcpPubSubIntegrationResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.getGcpPubSubIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/GetGcpPubSubIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetGcpPubSubIntegration, - callback); -}; - - -/** - * @param {!proto.api.GetGcpPubSubIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.getGcpPubSubIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/GetGcpPubSubIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetGcpPubSubIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateGcpPubSubIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_UpdateGcpPubSubIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/UpdateGcpPubSubIntegration', - grpc.web.MethodType.UNARY, - proto.api.UpdateGcpPubSubIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateGcpPubSubIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateGcpPubSubIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.updateGcpPubSubIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/UpdateGcpPubSubIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdateGcpPubSubIntegration, - callback); -}; - - -/** - * @param {!proto.api.UpdateGcpPubSubIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.updateGcpPubSubIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/UpdateGcpPubSubIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdateGcpPubSubIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteGcpPubSubIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_DeleteGcpPubSubIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/DeleteGcpPubSubIntegration', - grpc.web.MethodType.UNARY, - proto.api.DeleteGcpPubSubIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteGcpPubSubIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteGcpPubSubIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.deleteGcpPubSubIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/DeleteGcpPubSubIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeleteGcpPubSubIntegration, - callback); -}; - - -/** - * @param {!proto.api.DeleteGcpPubSubIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.deleteGcpPubSubIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/DeleteGcpPubSubIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeleteGcpPubSubIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateAwsSnsIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_CreateAwsSnsIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/CreateAwsSnsIntegration', - grpc.web.MethodType.UNARY, - proto.api.CreateAwsSnsIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.CreateAwsSnsIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.CreateAwsSnsIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.createAwsSnsIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/CreateAwsSnsIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreateAwsSnsIntegration, - callback); -}; - - -/** - * @param {!proto.api.CreateAwsSnsIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.createAwsSnsIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/CreateAwsSnsIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreateAwsSnsIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetAwsSnsIntegrationRequest, - * !proto.api.GetAwsSnsIntegrationResponse>} - */ -const methodDescriptor_ApplicationService_GetAwsSnsIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/GetAwsSnsIntegration', - grpc.web.MethodType.UNARY, - proto.api.GetAwsSnsIntegrationRequest, - proto.api.GetAwsSnsIntegrationResponse, - /** - * @param {!proto.api.GetAwsSnsIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetAwsSnsIntegrationResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetAwsSnsIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetAwsSnsIntegrationResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.getAwsSnsIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/GetAwsSnsIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetAwsSnsIntegration, - callback); -}; - - -/** - * @param {!proto.api.GetAwsSnsIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.getAwsSnsIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/GetAwsSnsIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetAwsSnsIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateAwsSnsIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_UpdateAwsSnsIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/UpdateAwsSnsIntegration', - grpc.web.MethodType.UNARY, - proto.api.UpdateAwsSnsIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateAwsSnsIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateAwsSnsIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.updateAwsSnsIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/UpdateAwsSnsIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdateAwsSnsIntegration, - callback); -}; - - -/** - * @param {!proto.api.UpdateAwsSnsIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.updateAwsSnsIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/UpdateAwsSnsIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdateAwsSnsIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteAwsSnsIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_DeleteAwsSnsIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/DeleteAwsSnsIntegration', - grpc.web.MethodType.UNARY, - proto.api.DeleteAwsSnsIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteAwsSnsIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteAwsSnsIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.deleteAwsSnsIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/DeleteAwsSnsIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeleteAwsSnsIntegration, - callback); -}; - - -/** - * @param {!proto.api.DeleteAwsSnsIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.deleteAwsSnsIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/DeleteAwsSnsIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeleteAwsSnsIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateAzureServiceBusIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_CreateAzureServiceBusIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/CreateAzureServiceBusIntegration', - grpc.web.MethodType.UNARY, - proto.api.CreateAzureServiceBusIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.CreateAzureServiceBusIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.CreateAzureServiceBusIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.createAzureServiceBusIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/CreateAzureServiceBusIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreateAzureServiceBusIntegration, - callback); -}; - - -/** - * @param {!proto.api.CreateAzureServiceBusIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.createAzureServiceBusIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/CreateAzureServiceBusIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreateAzureServiceBusIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetAzureServiceBusIntegrationRequest, - * !proto.api.GetAzureServiceBusIntegrationResponse>} - */ -const methodDescriptor_ApplicationService_GetAzureServiceBusIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/GetAzureServiceBusIntegration', - grpc.web.MethodType.UNARY, - proto.api.GetAzureServiceBusIntegrationRequest, - proto.api.GetAzureServiceBusIntegrationResponse, - /** - * @param {!proto.api.GetAzureServiceBusIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetAzureServiceBusIntegrationResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetAzureServiceBusIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetAzureServiceBusIntegrationResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.getAzureServiceBusIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/GetAzureServiceBusIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetAzureServiceBusIntegration, - callback); -}; - - -/** - * @param {!proto.api.GetAzureServiceBusIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.getAzureServiceBusIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/GetAzureServiceBusIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetAzureServiceBusIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateAzureServiceBusIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_UpdateAzureServiceBusIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/UpdateAzureServiceBusIntegration', - grpc.web.MethodType.UNARY, - proto.api.UpdateAzureServiceBusIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateAzureServiceBusIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateAzureServiceBusIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.updateAzureServiceBusIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/UpdateAzureServiceBusIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdateAzureServiceBusIntegration, - callback); -}; - - -/** - * @param {!proto.api.UpdateAzureServiceBusIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.updateAzureServiceBusIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/UpdateAzureServiceBusIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdateAzureServiceBusIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteAzureServiceBusIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_DeleteAzureServiceBusIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/DeleteAzureServiceBusIntegration', - grpc.web.MethodType.UNARY, - proto.api.DeleteAzureServiceBusIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteAzureServiceBusIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteAzureServiceBusIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.deleteAzureServiceBusIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/DeleteAzureServiceBusIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeleteAzureServiceBusIntegration, - callback); -}; - - -/** - * @param {!proto.api.DeleteAzureServiceBusIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.deleteAzureServiceBusIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/DeleteAzureServiceBusIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeleteAzureServiceBusIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreatePilotThingsIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_CreatePilotThingsIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/CreatePilotThingsIntegration', - grpc.web.MethodType.UNARY, - proto.api.CreatePilotThingsIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.CreatePilotThingsIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.CreatePilotThingsIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.createPilotThingsIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/CreatePilotThingsIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreatePilotThingsIntegration, - callback); -}; - - -/** - * @param {!proto.api.CreatePilotThingsIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.createPilotThingsIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/CreatePilotThingsIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreatePilotThingsIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetPilotThingsIntegrationRequest, - * !proto.api.GetPilotThingsIntegrationResponse>} - */ -const methodDescriptor_ApplicationService_GetPilotThingsIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/GetPilotThingsIntegration', - grpc.web.MethodType.UNARY, - proto.api.GetPilotThingsIntegrationRequest, - proto.api.GetPilotThingsIntegrationResponse, - /** - * @param {!proto.api.GetPilotThingsIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetPilotThingsIntegrationResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetPilotThingsIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetPilotThingsIntegrationResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.getPilotThingsIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/GetPilotThingsIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetPilotThingsIntegration, - callback); -}; - - -/** - * @param {!proto.api.GetPilotThingsIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.getPilotThingsIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/GetPilotThingsIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetPilotThingsIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdatePilotThingsIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_UpdatePilotThingsIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/UpdatePilotThingsIntegration', - grpc.web.MethodType.UNARY, - proto.api.UpdatePilotThingsIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdatePilotThingsIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdatePilotThingsIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.updatePilotThingsIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/UpdatePilotThingsIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdatePilotThingsIntegration, - callback); -}; - - -/** - * @param {!proto.api.UpdatePilotThingsIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.updatePilotThingsIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/UpdatePilotThingsIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdatePilotThingsIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeletePilotThingsIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_DeletePilotThingsIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/DeletePilotThingsIntegration', - grpc.web.MethodType.UNARY, - proto.api.DeletePilotThingsIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeletePilotThingsIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeletePilotThingsIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.deletePilotThingsIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/DeletePilotThingsIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeletePilotThingsIntegration, - callback); -}; - - -/** - * @param {!proto.api.DeletePilotThingsIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.deletePilotThingsIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/DeletePilotThingsIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeletePilotThingsIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateIftttIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_CreateIftttIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/CreateIftttIntegration', - grpc.web.MethodType.UNARY, - proto.api.CreateIftttIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.CreateIftttIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.CreateIftttIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.createIftttIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/CreateIftttIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreateIftttIntegration, - callback); -}; - - -/** - * @param {!proto.api.CreateIftttIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.createIftttIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/CreateIftttIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_CreateIftttIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetIftttIntegrationRequest, - * !proto.api.GetIftttIntegrationResponse>} - */ -const methodDescriptor_ApplicationService_GetIftttIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/GetIftttIntegration', - grpc.web.MethodType.UNARY, - proto.api.GetIftttIntegrationRequest, - proto.api.GetIftttIntegrationResponse, - /** - * @param {!proto.api.GetIftttIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetIftttIntegrationResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetIftttIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetIftttIntegrationResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.getIftttIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/GetIftttIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetIftttIntegration, - callback); -}; - - -/** - * @param {!proto.api.GetIftttIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.getIftttIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/GetIftttIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_GetIftttIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateIftttIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_UpdateIftttIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/UpdateIftttIntegration', - grpc.web.MethodType.UNARY, - proto.api.UpdateIftttIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateIftttIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateIftttIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.updateIftttIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/UpdateIftttIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdateIftttIntegration, - callback); -}; - - -/** - * @param {!proto.api.UpdateIftttIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.updateIftttIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/UpdateIftttIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_UpdateIftttIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteIftttIntegrationRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_ApplicationService_DeleteIftttIntegration = new grpc.web.MethodDescriptor( - '/api.ApplicationService/DeleteIftttIntegration', - grpc.web.MethodType.UNARY, - proto.api.DeleteIftttIntegrationRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteIftttIntegrationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteIftttIntegrationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.deleteIftttIntegration = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/DeleteIftttIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeleteIftttIntegration, - callback); -}; - - -/** - * @param {!proto.api.DeleteIftttIntegrationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.deleteIftttIntegration = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/DeleteIftttIntegration', - request, - metadata || {}, - methodDescriptor_ApplicationService_DeleteIftttIntegration); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GenerateMqttIntegrationClientCertificateRequest, - * !proto.api.GenerateMqttIntegrationClientCertificateResponse>} - */ -const methodDescriptor_ApplicationService_GenerateMqttIntegrationClientCertificate = new grpc.web.MethodDescriptor( - '/api.ApplicationService/GenerateMqttIntegrationClientCertificate', - grpc.web.MethodType.UNARY, - proto.api.GenerateMqttIntegrationClientCertificateRequest, - proto.api.GenerateMqttIntegrationClientCertificateResponse, - /** - * @param {!proto.api.GenerateMqttIntegrationClientCertificateRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GenerateMqttIntegrationClientCertificateResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GenerateMqttIntegrationClientCertificateRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GenerateMqttIntegrationClientCertificateResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.ApplicationServiceClient.prototype.generateMqttIntegrationClientCertificate = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.ApplicationService/GenerateMqttIntegrationClientCertificate', - request, - metadata || {}, - methodDescriptor_ApplicationService_GenerateMqttIntegrationClientCertificate, - callback); -}; - - -/** - * @param {!proto.api.GenerateMqttIntegrationClientCertificateRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.ApplicationServicePromiseClient.prototype.generateMqttIntegrationClientCertificate = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.ApplicationService/GenerateMqttIntegrationClientCertificate', - request, - metadata || {}, - methodDescriptor_ApplicationService_GenerateMqttIntegrationClientCertificate); -}; - - -module.exports = proto.api; - diff --git a/api/grpc-web/api/application_pb.d.ts b/api/grpc-web/api/application_pb.d.ts deleted file mode 100644 index 3fe8d914..00000000 --- a/api/grpc-web/api/application_pb.d.ts +++ /dev/null @@ -1,1760 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_api_annotations_pb from '../google/api/annotations_pb'; -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; - - -export class Application extends jspb.Message { - getId(): string; - setId(value: string): Application; - - getName(): string; - setName(value: string): Application; - - getDescription(): string; - setDescription(value: string): Application; - - getTenantId(): string; - setTenantId(value: string): Application; - - getTagsMap(): jspb.Map; - clearTagsMap(): Application; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Application.AsObject; - static toObject(includeInstance: boolean, msg: Application): Application.AsObject; - static serializeBinaryToWriter(message: Application, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Application; - static deserializeBinaryFromReader(message: Application, reader: jspb.BinaryReader): Application; -} - -export namespace Application { - export type AsObject = { - id: string, - name: string, - description: string, - tenantId: string, - tagsMap: Array<[string, string]>, - } -} - -export class ApplicationListItem extends jspb.Message { - getId(): string; - setId(value: string): ApplicationListItem; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): ApplicationListItem; - hasCreatedAt(): boolean; - clearCreatedAt(): ApplicationListItem; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): ApplicationListItem; - hasUpdatedAt(): boolean; - clearUpdatedAt(): ApplicationListItem; - - getName(): string; - setName(value: string): ApplicationListItem; - - getDescription(): string; - setDescription(value: string): ApplicationListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ApplicationListItem.AsObject; - static toObject(includeInstance: boolean, msg: ApplicationListItem): ApplicationListItem.AsObject; - static serializeBinaryToWriter(message: ApplicationListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ApplicationListItem; - static deserializeBinaryFromReader(message: ApplicationListItem, reader: jspb.BinaryReader): ApplicationListItem; -} - -export namespace ApplicationListItem { - export type AsObject = { - id: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - name: string, - description: string, - } -} - -export class CreateApplicationRequest extends jspb.Message { - getApplication(): Application | undefined; - setApplication(value?: Application): CreateApplicationRequest; - hasApplication(): boolean; - clearApplication(): CreateApplicationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateApplicationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateApplicationRequest): CreateApplicationRequest.AsObject; - static serializeBinaryToWriter(message: CreateApplicationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateApplicationRequest; - static deserializeBinaryFromReader(message: CreateApplicationRequest, reader: jspb.BinaryReader): CreateApplicationRequest; -} - -export namespace CreateApplicationRequest { - export type AsObject = { - application?: Application.AsObject, - } -} - -export class CreateApplicationResponse extends jspb.Message { - getId(): string; - setId(value: string): CreateApplicationResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateApplicationResponse.AsObject; - static toObject(includeInstance: boolean, msg: CreateApplicationResponse): CreateApplicationResponse.AsObject; - static serializeBinaryToWriter(message: CreateApplicationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateApplicationResponse; - static deserializeBinaryFromReader(message: CreateApplicationResponse, reader: jspb.BinaryReader): CreateApplicationResponse; -} - -export namespace CreateApplicationResponse { - export type AsObject = { - id: string, - } -} - -export class GetApplicationRequest extends jspb.Message { - getId(): string; - setId(value: string): GetApplicationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetApplicationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetApplicationRequest): GetApplicationRequest.AsObject; - static serializeBinaryToWriter(message: GetApplicationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetApplicationRequest; - static deserializeBinaryFromReader(message: GetApplicationRequest, reader: jspb.BinaryReader): GetApplicationRequest; -} - -export namespace GetApplicationRequest { - export type AsObject = { - id: string, - } -} - -export class GetApplicationResponse extends jspb.Message { - getApplication(): Application | undefined; - setApplication(value?: Application): GetApplicationResponse; - hasApplication(): boolean; - clearApplication(): GetApplicationResponse; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetApplicationResponse; - hasCreatedAt(): boolean; - clearCreatedAt(): GetApplicationResponse; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetApplicationResponse; - hasUpdatedAt(): boolean; - clearUpdatedAt(): GetApplicationResponse; - - getMeasurementKeysList(): Array; - setMeasurementKeysList(value: Array): GetApplicationResponse; - clearMeasurementKeysList(): GetApplicationResponse; - addMeasurementKeys(value: string, index?: number): GetApplicationResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetApplicationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetApplicationResponse): GetApplicationResponse.AsObject; - static serializeBinaryToWriter(message: GetApplicationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetApplicationResponse; - static deserializeBinaryFromReader(message: GetApplicationResponse, reader: jspb.BinaryReader): GetApplicationResponse; -} - -export namespace GetApplicationResponse { - export type AsObject = { - application?: Application.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - measurementKeysList: Array, - } -} - -export class UpdateApplicationRequest extends jspb.Message { - getApplication(): Application | undefined; - setApplication(value?: Application): UpdateApplicationRequest; - hasApplication(): boolean; - clearApplication(): UpdateApplicationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateApplicationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateApplicationRequest): UpdateApplicationRequest.AsObject; - static serializeBinaryToWriter(message: UpdateApplicationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateApplicationRequest; - static deserializeBinaryFromReader(message: UpdateApplicationRequest, reader: jspb.BinaryReader): UpdateApplicationRequest; -} - -export namespace UpdateApplicationRequest { - export type AsObject = { - application?: Application.AsObject, - } -} - -export class DeleteApplicationRequest extends jspb.Message { - getId(): string; - setId(value: string): DeleteApplicationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteApplicationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteApplicationRequest): DeleteApplicationRequest.AsObject; - static serializeBinaryToWriter(message: DeleteApplicationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteApplicationRequest; - static deserializeBinaryFromReader(message: DeleteApplicationRequest, reader: jspb.BinaryReader): DeleteApplicationRequest; -} - -export namespace DeleteApplicationRequest { - export type AsObject = { - id: string, - } -} - -export class ListApplicationsRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): ListApplicationsRequest; - - getOffset(): number; - setOffset(value: number): ListApplicationsRequest; - - getSearch(): string; - setSearch(value: string): ListApplicationsRequest; - - getTenantId(): string; - setTenantId(value: string): ListApplicationsRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListApplicationsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListApplicationsRequest): ListApplicationsRequest.AsObject; - static serializeBinaryToWriter(message: ListApplicationsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListApplicationsRequest; - static deserializeBinaryFromReader(message: ListApplicationsRequest, reader: jspb.BinaryReader): ListApplicationsRequest; -} - -export namespace ListApplicationsRequest { - export type AsObject = { - limit: number, - offset: number, - search: string, - tenantId: string, - } -} - -export class ListApplicationsResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): ListApplicationsResponse; - - getResultList(): Array; - setResultList(value: Array): ListApplicationsResponse; - clearResultList(): ListApplicationsResponse; - addResult(value?: ApplicationListItem, index?: number): ApplicationListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListApplicationsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListApplicationsResponse): ListApplicationsResponse.AsObject; - static serializeBinaryToWriter(message: ListApplicationsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListApplicationsResponse; - static deserializeBinaryFromReader(message: ListApplicationsResponse, reader: jspb.BinaryReader): ListApplicationsResponse; -} - -export namespace ListApplicationsResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class ListIntegrationsRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): ListIntegrationsRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListIntegrationsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListIntegrationsRequest): ListIntegrationsRequest.AsObject; - static serializeBinaryToWriter(message: ListIntegrationsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListIntegrationsRequest; - static deserializeBinaryFromReader(message: ListIntegrationsRequest, reader: jspb.BinaryReader): ListIntegrationsRequest; -} - -export namespace ListIntegrationsRequest { - export type AsObject = { - applicationId: string, - } -} - -export class IntegrationListItem extends jspb.Message { - getKind(): IntegrationKind; - setKind(value: IntegrationKind): IntegrationListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): IntegrationListItem.AsObject; - static toObject(includeInstance: boolean, msg: IntegrationListItem): IntegrationListItem.AsObject; - static serializeBinaryToWriter(message: IntegrationListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): IntegrationListItem; - static deserializeBinaryFromReader(message: IntegrationListItem, reader: jspb.BinaryReader): IntegrationListItem; -} - -export namespace IntegrationListItem { - export type AsObject = { - kind: IntegrationKind, - } -} - -export class ListIntegrationsResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): ListIntegrationsResponse; - - getResultList(): Array; - setResultList(value: Array): ListIntegrationsResponse; - clearResultList(): ListIntegrationsResponse; - addResult(value?: IntegrationListItem, index?: number): IntegrationListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListIntegrationsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListIntegrationsResponse): ListIntegrationsResponse.AsObject; - static serializeBinaryToWriter(message: ListIntegrationsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListIntegrationsResponse; - static deserializeBinaryFromReader(message: ListIntegrationsResponse, reader: jspb.BinaryReader): ListIntegrationsResponse; -} - -export namespace ListIntegrationsResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class HttpIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): HttpIntegration; - - getHeadersMap(): jspb.Map; - clearHeadersMap(): HttpIntegration; - - getEncoding(): Encoding; - setEncoding(value: Encoding): HttpIntegration; - - getEventEndpointUrl(): string; - setEventEndpointUrl(value: string): HttpIntegration; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HttpIntegration.AsObject; - static toObject(includeInstance: boolean, msg: HttpIntegration): HttpIntegration.AsObject; - static serializeBinaryToWriter(message: HttpIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HttpIntegration; - static deserializeBinaryFromReader(message: HttpIntegration, reader: jspb.BinaryReader): HttpIntegration; -} - -export namespace HttpIntegration { - export type AsObject = { - applicationId: string, - headersMap: Array<[string, string]>, - encoding: Encoding, - eventEndpointUrl: string, - } -} - -export class CreateHttpIntegrationRequest extends jspb.Message { - getIntegration(): HttpIntegration | undefined; - setIntegration(value?: HttpIntegration): CreateHttpIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): CreateHttpIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateHttpIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateHttpIntegrationRequest): CreateHttpIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: CreateHttpIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateHttpIntegrationRequest; - static deserializeBinaryFromReader(message: CreateHttpIntegrationRequest, reader: jspb.BinaryReader): CreateHttpIntegrationRequest; -} - -export namespace CreateHttpIntegrationRequest { - export type AsObject = { - integration?: HttpIntegration.AsObject, - } -} - -export class GetHttpIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): GetHttpIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetHttpIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetHttpIntegrationRequest): GetHttpIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: GetHttpIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetHttpIntegrationRequest; - static deserializeBinaryFromReader(message: GetHttpIntegrationRequest, reader: jspb.BinaryReader): GetHttpIntegrationRequest; -} - -export namespace GetHttpIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetHttpIntegrationResponse extends jspb.Message { - getIntegration(): HttpIntegration | undefined; - setIntegration(value?: HttpIntegration): GetHttpIntegrationResponse; - hasIntegration(): boolean; - clearIntegration(): GetHttpIntegrationResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetHttpIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetHttpIntegrationResponse): GetHttpIntegrationResponse.AsObject; - static serializeBinaryToWriter(message: GetHttpIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetHttpIntegrationResponse; - static deserializeBinaryFromReader(message: GetHttpIntegrationResponse, reader: jspb.BinaryReader): GetHttpIntegrationResponse; -} - -export namespace GetHttpIntegrationResponse { - export type AsObject = { - integration?: HttpIntegration.AsObject, - } -} - -export class UpdateHttpIntegrationRequest extends jspb.Message { - getIntegration(): HttpIntegration | undefined; - setIntegration(value?: HttpIntegration): UpdateHttpIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): UpdateHttpIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateHttpIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateHttpIntegrationRequest): UpdateHttpIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: UpdateHttpIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateHttpIntegrationRequest; - static deserializeBinaryFromReader(message: UpdateHttpIntegrationRequest, reader: jspb.BinaryReader): UpdateHttpIntegrationRequest; -} - -export namespace UpdateHttpIntegrationRequest { - export type AsObject = { - integration?: HttpIntegration.AsObject, - } -} - -export class DeleteHttpIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): DeleteHttpIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteHttpIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteHttpIntegrationRequest): DeleteHttpIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: DeleteHttpIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteHttpIntegrationRequest; - static deserializeBinaryFromReader(message: DeleteHttpIntegrationRequest, reader: jspb.BinaryReader): DeleteHttpIntegrationRequest; -} - -export namespace DeleteHttpIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class InfluxDbIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): InfluxDbIntegration; - - getEndpoint(): string; - setEndpoint(value: string): InfluxDbIntegration; - - getDb(): string; - setDb(value: string): InfluxDbIntegration; - - getUsername(): string; - setUsername(value: string): InfluxDbIntegration; - - getPassword(): string; - setPassword(value: string): InfluxDbIntegration; - - getRetentionPolicyName(): string; - setRetentionPolicyName(value: string): InfluxDbIntegration; - - getPrecision(): InfluxDbPrecision; - setPrecision(value: InfluxDbPrecision): InfluxDbIntegration; - - getVersion(): InfluxDbVersion; - setVersion(value: InfluxDbVersion): InfluxDbIntegration; - - getToken(): string; - setToken(value: string): InfluxDbIntegration; - - getOrganization(): string; - setOrganization(value: string): InfluxDbIntegration; - - getBucket(): string; - setBucket(value: string): InfluxDbIntegration; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InfluxDbIntegration.AsObject; - static toObject(includeInstance: boolean, msg: InfluxDbIntegration): InfluxDbIntegration.AsObject; - static serializeBinaryToWriter(message: InfluxDbIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InfluxDbIntegration; - static deserializeBinaryFromReader(message: InfluxDbIntegration, reader: jspb.BinaryReader): InfluxDbIntegration; -} - -export namespace InfluxDbIntegration { - export type AsObject = { - applicationId: string, - endpoint: string, - db: string, - username: string, - password: string, - retentionPolicyName: string, - precision: InfluxDbPrecision, - version: InfluxDbVersion, - token: string, - organization: string, - bucket: string, - } -} - -export class CreateInfluxDbIntegrationRequest extends jspb.Message { - getIntegration(): InfluxDbIntegration | undefined; - setIntegration(value?: InfluxDbIntegration): CreateInfluxDbIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): CreateInfluxDbIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateInfluxDbIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateInfluxDbIntegrationRequest): CreateInfluxDbIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: CreateInfluxDbIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateInfluxDbIntegrationRequest; - static deserializeBinaryFromReader(message: CreateInfluxDbIntegrationRequest, reader: jspb.BinaryReader): CreateInfluxDbIntegrationRequest; -} - -export namespace CreateInfluxDbIntegrationRequest { - export type AsObject = { - integration?: InfluxDbIntegration.AsObject, - } -} - -export class GetInfluxDbIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): GetInfluxDbIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetInfluxDbIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetInfluxDbIntegrationRequest): GetInfluxDbIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: GetInfluxDbIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetInfluxDbIntegrationRequest; - static deserializeBinaryFromReader(message: GetInfluxDbIntegrationRequest, reader: jspb.BinaryReader): GetInfluxDbIntegrationRequest; -} - -export namespace GetInfluxDbIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetInfluxDbIntegrationResponse extends jspb.Message { - getIntegration(): InfluxDbIntegration | undefined; - setIntegration(value?: InfluxDbIntegration): GetInfluxDbIntegrationResponse; - hasIntegration(): boolean; - clearIntegration(): GetInfluxDbIntegrationResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetInfluxDbIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetInfluxDbIntegrationResponse): GetInfluxDbIntegrationResponse.AsObject; - static serializeBinaryToWriter(message: GetInfluxDbIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetInfluxDbIntegrationResponse; - static deserializeBinaryFromReader(message: GetInfluxDbIntegrationResponse, reader: jspb.BinaryReader): GetInfluxDbIntegrationResponse; -} - -export namespace GetInfluxDbIntegrationResponse { - export type AsObject = { - integration?: InfluxDbIntegration.AsObject, - } -} - -export class UpdateInfluxDbIntegrationRequest extends jspb.Message { - getIntegration(): InfluxDbIntegration | undefined; - setIntegration(value?: InfluxDbIntegration): UpdateInfluxDbIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): UpdateInfluxDbIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateInfluxDbIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateInfluxDbIntegrationRequest): UpdateInfluxDbIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: UpdateInfluxDbIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateInfluxDbIntegrationRequest; - static deserializeBinaryFromReader(message: UpdateInfluxDbIntegrationRequest, reader: jspb.BinaryReader): UpdateInfluxDbIntegrationRequest; -} - -export namespace UpdateInfluxDbIntegrationRequest { - export type AsObject = { - integration?: InfluxDbIntegration.AsObject, - } -} - -export class DeleteInfluxDbIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): DeleteInfluxDbIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteInfluxDbIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteInfluxDbIntegrationRequest): DeleteInfluxDbIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: DeleteInfluxDbIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteInfluxDbIntegrationRequest; - static deserializeBinaryFromReader(message: DeleteInfluxDbIntegrationRequest, reader: jspb.BinaryReader): DeleteInfluxDbIntegrationRequest; -} - -export namespace DeleteInfluxDbIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class ThingsBoardIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): ThingsBoardIntegration; - - getServer(): string; - setServer(value: string): ThingsBoardIntegration; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ThingsBoardIntegration.AsObject; - static toObject(includeInstance: boolean, msg: ThingsBoardIntegration): ThingsBoardIntegration.AsObject; - static serializeBinaryToWriter(message: ThingsBoardIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ThingsBoardIntegration; - static deserializeBinaryFromReader(message: ThingsBoardIntegration, reader: jspb.BinaryReader): ThingsBoardIntegration; -} - -export namespace ThingsBoardIntegration { - export type AsObject = { - applicationId: string, - server: string, - } -} - -export class CreateThingsBoardIntegrationRequest extends jspb.Message { - getIntegration(): ThingsBoardIntegration | undefined; - setIntegration(value?: ThingsBoardIntegration): CreateThingsBoardIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): CreateThingsBoardIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateThingsBoardIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateThingsBoardIntegrationRequest): CreateThingsBoardIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: CreateThingsBoardIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateThingsBoardIntegrationRequest; - static deserializeBinaryFromReader(message: CreateThingsBoardIntegrationRequest, reader: jspb.BinaryReader): CreateThingsBoardIntegrationRequest; -} - -export namespace CreateThingsBoardIntegrationRequest { - export type AsObject = { - integration?: ThingsBoardIntegration.AsObject, - } -} - -export class GetThingsBoardIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): GetThingsBoardIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetThingsBoardIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetThingsBoardIntegrationRequest): GetThingsBoardIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: GetThingsBoardIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetThingsBoardIntegrationRequest; - static deserializeBinaryFromReader(message: GetThingsBoardIntegrationRequest, reader: jspb.BinaryReader): GetThingsBoardIntegrationRequest; -} - -export namespace GetThingsBoardIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetThingsBoardIntegrationResponse extends jspb.Message { - getIntegration(): ThingsBoardIntegration | undefined; - setIntegration(value?: ThingsBoardIntegration): GetThingsBoardIntegrationResponse; - hasIntegration(): boolean; - clearIntegration(): GetThingsBoardIntegrationResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetThingsBoardIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetThingsBoardIntegrationResponse): GetThingsBoardIntegrationResponse.AsObject; - static serializeBinaryToWriter(message: GetThingsBoardIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetThingsBoardIntegrationResponse; - static deserializeBinaryFromReader(message: GetThingsBoardIntegrationResponse, reader: jspb.BinaryReader): GetThingsBoardIntegrationResponse; -} - -export namespace GetThingsBoardIntegrationResponse { - export type AsObject = { - integration?: ThingsBoardIntegration.AsObject, - } -} - -export class UpdateThingsBoardIntegrationRequest extends jspb.Message { - getIntegration(): ThingsBoardIntegration | undefined; - setIntegration(value?: ThingsBoardIntegration): UpdateThingsBoardIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): UpdateThingsBoardIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateThingsBoardIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateThingsBoardIntegrationRequest): UpdateThingsBoardIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: UpdateThingsBoardIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateThingsBoardIntegrationRequest; - static deserializeBinaryFromReader(message: UpdateThingsBoardIntegrationRequest, reader: jspb.BinaryReader): UpdateThingsBoardIntegrationRequest; -} - -export namespace UpdateThingsBoardIntegrationRequest { - export type AsObject = { - integration?: ThingsBoardIntegration.AsObject, - } -} - -export class DeleteThingsBoardIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): DeleteThingsBoardIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteThingsBoardIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteThingsBoardIntegrationRequest): DeleteThingsBoardIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: DeleteThingsBoardIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteThingsBoardIntegrationRequest; - static deserializeBinaryFromReader(message: DeleteThingsBoardIntegrationRequest, reader: jspb.BinaryReader): DeleteThingsBoardIntegrationRequest; -} - -export namespace DeleteThingsBoardIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class MyDevicesIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): MyDevicesIntegration; - - getEndpoint(): string; - setEndpoint(value: string): MyDevicesIntegration; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MyDevicesIntegration.AsObject; - static toObject(includeInstance: boolean, msg: MyDevicesIntegration): MyDevicesIntegration.AsObject; - static serializeBinaryToWriter(message: MyDevicesIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MyDevicesIntegration; - static deserializeBinaryFromReader(message: MyDevicesIntegration, reader: jspb.BinaryReader): MyDevicesIntegration; -} - -export namespace MyDevicesIntegration { - export type AsObject = { - applicationId: string, - endpoint: string, - } -} - -export class CreateMyDevicesIntegrationRequest extends jspb.Message { - getIntegration(): MyDevicesIntegration | undefined; - setIntegration(value?: MyDevicesIntegration): CreateMyDevicesIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): CreateMyDevicesIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateMyDevicesIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateMyDevicesIntegrationRequest): CreateMyDevicesIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: CreateMyDevicesIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateMyDevicesIntegrationRequest; - static deserializeBinaryFromReader(message: CreateMyDevicesIntegrationRequest, reader: jspb.BinaryReader): CreateMyDevicesIntegrationRequest; -} - -export namespace CreateMyDevicesIntegrationRequest { - export type AsObject = { - integration?: MyDevicesIntegration.AsObject, - } -} - -export class GetMyDevicesIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): GetMyDevicesIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetMyDevicesIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetMyDevicesIntegrationRequest): GetMyDevicesIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: GetMyDevicesIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetMyDevicesIntegrationRequest; - static deserializeBinaryFromReader(message: GetMyDevicesIntegrationRequest, reader: jspb.BinaryReader): GetMyDevicesIntegrationRequest; -} - -export namespace GetMyDevicesIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetMyDevicesIntegrationResponse extends jspb.Message { - getIntegration(): MyDevicesIntegration | undefined; - setIntegration(value?: MyDevicesIntegration): GetMyDevicesIntegrationResponse; - hasIntegration(): boolean; - clearIntegration(): GetMyDevicesIntegrationResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetMyDevicesIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetMyDevicesIntegrationResponse): GetMyDevicesIntegrationResponse.AsObject; - static serializeBinaryToWriter(message: GetMyDevicesIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetMyDevicesIntegrationResponse; - static deserializeBinaryFromReader(message: GetMyDevicesIntegrationResponse, reader: jspb.BinaryReader): GetMyDevicesIntegrationResponse; -} - -export namespace GetMyDevicesIntegrationResponse { - export type AsObject = { - integration?: MyDevicesIntegration.AsObject, - } -} - -export class UpdateMyDevicesIntegrationRequest extends jspb.Message { - getIntegration(): MyDevicesIntegration | undefined; - setIntegration(value?: MyDevicesIntegration): UpdateMyDevicesIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): UpdateMyDevicesIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateMyDevicesIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateMyDevicesIntegrationRequest): UpdateMyDevicesIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: UpdateMyDevicesIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateMyDevicesIntegrationRequest; - static deserializeBinaryFromReader(message: UpdateMyDevicesIntegrationRequest, reader: jspb.BinaryReader): UpdateMyDevicesIntegrationRequest; -} - -export namespace UpdateMyDevicesIntegrationRequest { - export type AsObject = { - integration?: MyDevicesIntegration.AsObject, - } -} - -export class DeleteMyDevicesIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): DeleteMyDevicesIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteMyDevicesIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteMyDevicesIntegrationRequest): DeleteMyDevicesIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: DeleteMyDevicesIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteMyDevicesIntegrationRequest; - static deserializeBinaryFromReader(message: DeleteMyDevicesIntegrationRequest, reader: jspb.BinaryReader): DeleteMyDevicesIntegrationRequest; -} - -export namespace DeleteMyDevicesIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class LoraCloudIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): LoraCloudIntegration; - - getModemGeolocationServices(): LoraCloudModemGeolocationServices | undefined; - setModemGeolocationServices(value?: LoraCloudModemGeolocationServices): LoraCloudIntegration; - hasModemGeolocationServices(): boolean; - clearModemGeolocationServices(): LoraCloudIntegration; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoraCloudIntegration.AsObject; - static toObject(includeInstance: boolean, msg: LoraCloudIntegration): LoraCloudIntegration.AsObject; - static serializeBinaryToWriter(message: LoraCloudIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoraCloudIntegration; - static deserializeBinaryFromReader(message: LoraCloudIntegration, reader: jspb.BinaryReader): LoraCloudIntegration; -} - -export namespace LoraCloudIntegration { - export type AsObject = { - applicationId: string, - modemGeolocationServices?: LoraCloudModemGeolocationServices.AsObject, - } -} - -export class LoraCloudModemGeolocationServices extends jspb.Message { - getToken(): string; - setToken(value: string): LoraCloudModemGeolocationServices; - - getModemEnabled(): boolean; - setModemEnabled(value: boolean): LoraCloudModemGeolocationServices; - - getForwardFPortsList(): Array; - setForwardFPortsList(value: Array): LoraCloudModemGeolocationServices; - clearForwardFPortsList(): LoraCloudModemGeolocationServices; - addForwardFPorts(value: number, index?: number): LoraCloudModemGeolocationServices; - - getGnssUseRxTime(): boolean; - setGnssUseRxTime(value: boolean): LoraCloudModemGeolocationServices; - - getGnssUseGatewayLocation(): boolean; - setGnssUseGatewayLocation(value: boolean): LoraCloudModemGeolocationServices; - - getParseTlv(): boolean; - setParseTlv(value: boolean): LoraCloudModemGeolocationServices; - - getGeolocationBufferTtl(): number; - setGeolocationBufferTtl(value: number): LoraCloudModemGeolocationServices; - - getGeolocationMinBufferSize(): number; - setGeolocationMinBufferSize(value: number): LoraCloudModemGeolocationServices; - - getGeolocationTdoa(): boolean; - setGeolocationTdoa(value: boolean): LoraCloudModemGeolocationServices; - - getGeolocationRssi(): boolean; - setGeolocationRssi(value: boolean): LoraCloudModemGeolocationServices; - - getGeolocationGnss(): boolean; - setGeolocationGnss(value: boolean): LoraCloudModemGeolocationServices; - - getGeolocationGnssPayloadField(): string; - setGeolocationGnssPayloadField(value: string): LoraCloudModemGeolocationServices; - - getGeolocationGnssUseRxTime(): boolean; - setGeolocationGnssUseRxTime(value: boolean): LoraCloudModemGeolocationServices; - - getGeolocationWifi(): boolean; - setGeolocationWifi(value: boolean): LoraCloudModemGeolocationServices; - - getGeolocationWifiPayloadField(): string; - setGeolocationWifiPayloadField(value: string): LoraCloudModemGeolocationServices; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoraCloudModemGeolocationServices.AsObject; - static toObject(includeInstance: boolean, msg: LoraCloudModemGeolocationServices): LoraCloudModemGeolocationServices.AsObject; - static serializeBinaryToWriter(message: LoraCloudModemGeolocationServices, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoraCloudModemGeolocationServices; - static deserializeBinaryFromReader(message: LoraCloudModemGeolocationServices, reader: jspb.BinaryReader): LoraCloudModemGeolocationServices; -} - -export namespace LoraCloudModemGeolocationServices { - export type AsObject = { - token: string, - modemEnabled: boolean, - forwardFPortsList: Array, - gnssUseRxTime: boolean, - gnssUseGatewayLocation: boolean, - parseTlv: boolean, - geolocationBufferTtl: number, - geolocationMinBufferSize: number, - geolocationTdoa: boolean, - geolocationRssi: boolean, - geolocationGnss: boolean, - geolocationGnssPayloadField: string, - geolocationGnssUseRxTime: boolean, - geolocationWifi: boolean, - geolocationWifiPayloadField: string, - } -} - -export class CreateLoraCloudIntegrationRequest extends jspb.Message { - getIntegration(): LoraCloudIntegration | undefined; - setIntegration(value?: LoraCloudIntegration): CreateLoraCloudIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): CreateLoraCloudIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateLoraCloudIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateLoraCloudIntegrationRequest): CreateLoraCloudIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: CreateLoraCloudIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateLoraCloudIntegrationRequest; - static deserializeBinaryFromReader(message: CreateLoraCloudIntegrationRequest, reader: jspb.BinaryReader): CreateLoraCloudIntegrationRequest; -} - -export namespace CreateLoraCloudIntegrationRequest { - export type AsObject = { - integration?: LoraCloudIntegration.AsObject, - } -} - -export class GetLoraCloudIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): GetLoraCloudIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetLoraCloudIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetLoraCloudIntegrationRequest): GetLoraCloudIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: GetLoraCloudIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetLoraCloudIntegrationRequest; - static deserializeBinaryFromReader(message: GetLoraCloudIntegrationRequest, reader: jspb.BinaryReader): GetLoraCloudIntegrationRequest; -} - -export namespace GetLoraCloudIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetLoraCloudIntegrationResponse extends jspb.Message { - getIntegration(): LoraCloudIntegration | undefined; - setIntegration(value?: LoraCloudIntegration): GetLoraCloudIntegrationResponse; - hasIntegration(): boolean; - clearIntegration(): GetLoraCloudIntegrationResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetLoraCloudIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetLoraCloudIntegrationResponse): GetLoraCloudIntegrationResponse.AsObject; - static serializeBinaryToWriter(message: GetLoraCloudIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetLoraCloudIntegrationResponse; - static deserializeBinaryFromReader(message: GetLoraCloudIntegrationResponse, reader: jspb.BinaryReader): GetLoraCloudIntegrationResponse; -} - -export namespace GetLoraCloudIntegrationResponse { - export type AsObject = { - integration?: LoraCloudIntegration.AsObject, - } -} - -export class UpdateLoraCloudIntegrationRequest extends jspb.Message { - getIntegration(): LoraCloudIntegration | undefined; - setIntegration(value?: LoraCloudIntegration): UpdateLoraCloudIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): UpdateLoraCloudIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateLoraCloudIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateLoraCloudIntegrationRequest): UpdateLoraCloudIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: UpdateLoraCloudIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateLoraCloudIntegrationRequest; - static deserializeBinaryFromReader(message: UpdateLoraCloudIntegrationRequest, reader: jspb.BinaryReader): UpdateLoraCloudIntegrationRequest; -} - -export namespace UpdateLoraCloudIntegrationRequest { - export type AsObject = { - integration?: LoraCloudIntegration.AsObject, - } -} - -export class DeleteLoraCloudIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): DeleteLoraCloudIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteLoraCloudIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteLoraCloudIntegrationRequest): DeleteLoraCloudIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: DeleteLoraCloudIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteLoraCloudIntegrationRequest; - static deserializeBinaryFromReader(message: DeleteLoraCloudIntegrationRequest, reader: jspb.BinaryReader): DeleteLoraCloudIntegrationRequest; -} - -export namespace DeleteLoraCloudIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GcpPubSubIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): GcpPubSubIntegration; - - getEncoding(): Encoding; - setEncoding(value: Encoding): GcpPubSubIntegration; - - getCredentialsFile(): string; - setCredentialsFile(value: string): GcpPubSubIntegration; - - getProjectId(): string; - setProjectId(value: string): GcpPubSubIntegration; - - getTopicName(): string; - setTopicName(value: string): GcpPubSubIntegration; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GcpPubSubIntegration.AsObject; - static toObject(includeInstance: boolean, msg: GcpPubSubIntegration): GcpPubSubIntegration.AsObject; - static serializeBinaryToWriter(message: GcpPubSubIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GcpPubSubIntegration; - static deserializeBinaryFromReader(message: GcpPubSubIntegration, reader: jspb.BinaryReader): GcpPubSubIntegration; -} - -export namespace GcpPubSubIntegration { - export type AsObject = { - applicationId: string, - encoding: Encoding, - credentialsFile: string, - projectId: string, - topicName: string, - } -} - -export class CreateGcpPubSubIntegrationRequest extends jspb.Message { - getIntegration(): GcpPubSubIntegration | undefined; - setIntegration(value?: GcpPubSubIntegration): CreateGcpPubSubIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): CreateGcpPubSubIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateGcpPubSubIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateGcpPubSubIntegrationRequest): CreateGcpPubSubIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: CreateGcpPubSubIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateGcpPubSubIntegrationRequest; - static deserializeBinaryFromReader(message: CreateGcpPubSubIntegrationRequest, reader: jspb.BinaryReader): CreateGcpPubSubIntegrationRequest; -} - -export namespace CreateGcpPubSubIntegrationRequest { - export type AsObject = { - integration?: GcpPubSubIntegration.AsObject, - } -} - -export class GetGcpPubSubIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): GetGcpPubSubIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetGcpPubSubIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetGcpPubSubIntegrationRequest): GetGcpPubSubIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: GetGcpPubSubIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetGcpPubSubIntegrationRequest; - static deserializeBinaryFromReader(message: GetGcpPubSubIntegrationRequest, reader: jspb.BinaryReader): GetGcpPubSubIntegrationRequest; -} - -export namespace GetGcpPubSubIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetGcpPubSubIntegrationResponse extends jspb.Message { - getIntegration(): GcpPubSubIntegration | undefined; - setIntegration(value?: GcpPubSubIntegration): GetGcpPubSubIntegrationResponse; - hasIntegration(): boolean; - clearIntegration(): GetGcpPubSubIntegrationResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetGcpPubSubIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetGcpPubSubIntegrationResponse): GetGcpPubSubIntegrationResponse.AsObject; - static serializeBinaryToWriter(message: GetGcpPubSubIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetGcpPubSubIntegrationResponse; - static deserializeBinaryFromReader(message: GetGcpPubSubIntegrationResponse, reader: jspb.BinaryReader): GetGcpPubSubIntegrationResponse; -} - -export namespace GetGcpPubSubIntegrationResponse { - export type AsObject = { - integration?: GcpPubSubIntegration.AsObject, - } -} - -export class UpdateGcpPubSubIntegrationRequest extends jspb.Message { - getIntegration(): GcpPubSubIntegration | undefined; - setIntegration(value?: GcpPubSubIntegration): UpdateGcpPubSubIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): UpdateGcpPubSubIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateGcpPubSubIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateGcpPubSubIntegrationRequest): UpdateGcpPubSubIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: UpdateGcpPubSubIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateGcpPubSubIntegrationRequest; - static deserializeBinaryFromReader(message: UpdateGcpPubSubIntegrationRequest, reader: jspb.BinaryReader): UpdateGcpPubSubIntegrationRequest; -} - -export namespace UpdateGcpPubSubIntegrationRequest { - export type AsObject = { - integration?: GcpPubSubIntegration.AsObject, - } -} - -export class DeleteGcpPubSubIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): DeleteGcpPubSubIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteGcpPubSubIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteGcpPubSubIntegrationRequest): DeleteGcpPubSubIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: DeleteGcpPubSubIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteGcpPubSubIntegrationRequest; - static deserializeBinaryFromReader(message: DeleteGcpPubSubIntegrationRequest, reader: jspb.BinaryReader): DeleteGcpPubSubIntegrationRequest; -} - -export namespace DeleteGcpPubSubIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class AwsSnsIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): AwsSnsIntegration; - - getEncoding(): Encoding; - setEncoding(value: Encoding): AwsSnsIntegration; - - getRegion(): string; - setRegion(value: string): AwsSnsIntegration; - - getAccessKeyId(): string; - setAccessKeyId(value: string): AwsSnsIntegration; - - getSecretAccessKey(): string; - setSecretAccessKey(value: string): AwsSnsIntegration; - - getTopicArn(): string; - setTopicArn(value: string): AwsSnsIntegration; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AwsSnsIntegration.AsObject; - static toObject(includeInstance: boolean, msg: AwsSnsIntegration): AwsSnsIntegration.AsObject; - static serializeBinaryToWriter(message: AwsSnsIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AwsSnsIntegration; - static deserializeBinaryFromReader(message: AwsSnsIntegration, reader: jspb.BinaryReader): AwsSnsIntegration; -} - -export namespace AwsSnsIntegration { - export type AsObject = { - applicationId: string, - encoding: Encoding, - region: string, - accessKeyId: string, - secretAccessKey: string, - topicArn: string, - } -} - -export class CreateAwsSnsIntegrationRequest extends jspb.Message { - getIntegration(): AwsSnsIntegration | undefined; - setIntegration(value?: AwsSnsIntegration): CreateAwsSnsIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): CreateAwsSnsIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateAwsSnsIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateAwsSnsIntegrationRequest): CreateAwsSnsIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: CreateAwsSnsIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateAwsSnsIntegrationRequest; - static deserializeBinaryFromReader(message: CreateAwsSnsIntegrationRequest, reader: jspb.BinaryReader): CreateAwsSnsIntegrationRequest; -} - -export namespace CreateAwsSnsIntegrationRequest { - export type AsObject = { - integration?: AwsSnsIntegration.AsObject, - } -} - -export class GetAwsSnsIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): GetAwsSnsIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAwsSnsIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAwsSnsIntegrationRequest): GetAwsSnsIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: GetAwsSnsIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAwsSnsIntegrationRequest; - static deserializeBinaryFromReader(message: GetAwsSnsIntegrationRequest, reader: jspb.BinaryReader): GetAwsSnsIntegrationRequest; -} - -export namespace GetAwsSnsIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetAwsSnsIntegrationResponse extends jspb.Message { - getIntegration(): AwsSnsIntegration | undefined; - setIntegration(value?: AwsSnsIntegration): GetAwsSnsIntegrationResponse; - hasIntegration(): boolean; - clearIntegration(): GetAwsSnsIntegrationResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAwsSnsIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetAwsSnsIntegrationResponse): GetAwsSnsIntegrationResponse.AsObject; - static serializeBinaryToWriter(message: GetAwsSnsIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAwsSnsIntegrationResponse; - static deserializeBinaryFromReader(message: GetAwsSnsIntegrationResponse, reader: jspb.BinaryReader): GetAwsSnsIntegrationResponse; -} - -export namespace GetAwsSnsIntegrationResponse { - export type AsObject = { - integration?: AwsSnsIntegration.AsObject, - } -} - -export class UpdateAwsSnsIntegrationRequest extends jspb.Message { - getIntegration(): AwsSnsIntegration | undefined; - setIntegration(value?: AwsSnsIntegration): UpdateAwsSnsIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): UpdateAwsSnsIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateAwsSnsIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateAwsSnsIntegrationRequest): UpdateAwsSnsIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: UpdateAwsSnsIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateAwsSnsIntegrationRequest; - static deserializeBinaryFromReader(message: UpdateAwsSnsIntegrationRequest, reader: jspb.BinaryReader): UpdateAwsSnsIntegrationRequest; -} - -export namespace UpdateAwsSnsIntegrationRequest { - export type AsObject = { - integration?: AwsSnsIntegration.AsObject, - } -} - -export class DeleteAwsSnsIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): DeleteAwsSnsIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteAwsSnsIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteAwsSnsIntegrationRequest): DeleteAwsSnsIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: DeleteAwsSnsIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteAwsSnsIntegrationRequest; - static deserializeBinaryFromReader(message: DeleteAwsSnsIntegrationRequest, reader: jspb.BinaryReader): DeleteAwsSnsIntegrationRequest; -} - -export namespace DeleteAwsSnsIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class AzureServiceBusIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): AzureServiceBusIntegration; - - getEncoding(): Encoding; - setEncoding(value: Encoding): AzureServiceBusIntegration; - - getConnectionString(): string; - setConnectionString(value: string): AzureServiceBusIntegration; - - getPublishName(): string; - setPublishName(value: string): AzureServiceBusIntegration; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AzureServiceBusIntegration.AsObject; - static toObject(includeInstance: boolean, msg: AzureServiceBusIntegration): AzureServiceBusIntegration.AsObject; - static serializeBinaryToWriter(message: AzureServiceBusIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AzureServiceBusIntegration; - static deserializeBinaryFromReader(message: AzureServiceBusIntegration, reader: jspb.BinaryReader): AzureServiceBusIntegration; -} - -export namespace AzureServiceBusIntegration { - export type AsObject = { - applicationId: string, - encoding: Encoding, - connectionString: string, - publishName: string, - } -} - -export class CreateAzureServiceBusIntegrationRequest extends jspb.Message { - getIntegration(): AzureServiceBusIntegration | undefined; - setIntegration(value?: AzureServiceBusIntegration): CreateAzureServiceBusIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): CreateAzureServiceBusIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateAzureServiceBusIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateAzureServiceBusIntegrationRequest): CreateAzureServiceBusIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: CreateAzureServiceBusIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateAzureServiceBusIntegrationRequest; - static deserializeBinaryFromReader(message: CreateAzureServiceBusIntegrationRequest, reader: jspb.BinaryReader): CreateAzureServiceBusIntegrationRequest; -} - -export namespace CreateAzureServiceBusIntegrationRequest { - export type AsObject = { - integration?: AzureServiceBusIntegration.AsObject, - } -} - -export class GetAzureServiceBusIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): GetAzureServiceBusIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAzureServiceBusIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAzureServiceBusIntegrationRequest): GetAzureServiceBusIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: GetAzureServiceBusIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAzureServiceBusIntegrationRequest; - static deserializeBinaryFromReader(message: GetAzureServiceBusIntegrationRequest, reader: jspb.BinaryReader): GetAzureServiceBusIntegrationRequest; -} - -export namespace GetAzureServiceBusIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetAzureServiceBusIntegrationResponse extends jspb.Message { - getIntegration(): AzureServiceBusIntegration | undefined; - setIntegration(value?: AzureServiceBusIntegration): GetAzureServiceBusIntegrationResponse; - hasIntegration(): boolean; - clearIntegration(): GetAzureServiceBusIntegrationResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAzureServiceBusIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetAzureServiceBusIntegrationResponse): GetAzureServiceBusIntegrationResponse.AsObject; - static serializeBinaryToWriter(message: GetAzureServiceBusIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAzureServiceBusIntegrationResponse; - static deserializeBinaryFromReader(message: GetAzureServiceBusIntegrationResponse, reader: jspb.BinaryReader): GetAzureServiceBusIntegrationResponse; -} - -export namespace GetAzureServiceBusIntegrationResponse { - export type AsObject = { - integration?: AzureServiceBusIntegration.AsObject, - } -} - -export class UpdateAzureServiceBusIntegrationRequest extends jspb.Message { - getIntegration(): AzureServiceBusIntegration | undefined; - setIntegration(value?: AzureServiceBusIntegration): UpdateAzureServiceBusIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): UpdateAzureServiceBusIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateAzureServiceBusIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateAzureServiceBusIntegrationRequest): UpdateAzureServiceBusIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: UpdateAzureServiceBusIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateAzureServiceBusIntegrationRequest; - static deserializeBinaryFromReader(message: UpdateAzureServiceBusIntegrationRequest, reader: jspb.BinaryReader): UpdateAzureServiceBusIntegrationRequest; -} - -export namespace UpdateAzureServiceBusIntegrationRequest { - export type AsObject = { - integration?: AzureServiceBusIntegration.AsObject, - } -} - -export class DeleteAzureServiceBusIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): DeleteAzureServiceBusIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteAzureServiceBusIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteAzureServiceBusIntegrationRequest): DeleteAzureServiceBusIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: DeleteAzureServiceBusIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteAzureServiceBusIntegrationRequest; - static deserializeBinaryFromReader(message: DeleteAzureServiceBusIntegrationRequest, reader: jspb.BinaryReader): DeleteAzureServiceBusIntegrationRequest; -} - -export namespace DeleteAzureServiceBusIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class PilotThingsIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): PilotThingsIntegration; - - getServer(): string; - setServer(value: string): PilotThingsIntegration; - - getToken(): string; - setToken(value: string): PilotThingsIntegration; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PilotThingsIntegration.AsObject; - static toObject(includeInstance: boolean, msg: PilotThingsIntegration): PilotThingsIntegration.AsObject; - static serializeBinaryToWriter(message: PilotThingsIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PilotThingsIntegration; - static deserializeBinaryFromReader(message: PilotThingsIntegration, reader: jspb.BinaryReader): PilotThingsIntegration; -} - -export namespace PilotThingsIntegration { - export type AsObject = { - applicationId: string, - server: string, - token: string, - } -} - -export class CreatePilotThingsIntegrationRequest extends jspb.Message { - getIntegration(): PilotThingsIntegration | undefined; - setIntegration(value?: PilotThingsIntegration): CreatePilotThingsIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): CreatePilotThingsIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreatePilotThingsIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreatePilotThingsIntegrationRequest): CreatePilotThingsIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: CreatePilotThingsIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreatePilotThingsIntegrationRequest; - static deserializeBinaryFromReader(message: CreatePilotThingsIntegrationRequest, reader: jspb.BinaryReader): CreatePilotThingsIntegrationRequest; -} - -export namespace CreatePilotThingsIntegrationRequest { - export type AsObject = { - integration?: PilotThingsIntegration.AsObject, - } -} - -export class GetPilotThingsIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): GetPilotThingsIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetPilotThingsIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetPilotThingsIntegrationRequest): GetPilotThingsIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: GetPilotThingsIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetPilotThingsIntegrationRequest; - static deserializeBinaryFromReader(message: GetPilotThingsIntegrationRequest, reader: jspb.BinaryReader): GetPilotThingsIntegrationRequest; -} - -export namespace GetPilotThingsIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetPilotThingsIntegrationResponse extends jspb.Message { - getIntegration(): PilotThingsIntegration | undefined; - setIntegration(value?: PilotThingsIntegration): GetPilotThingsIntegrationResponse; - hasIntegration(): boolean; - clearIntegration(): GetPilotThingsIntegrationResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetPilotThingsIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetPilotThingsIntegrationResponse): GetPilotThingsIntegrationResponse.AsObject; - static serializeBinaryToWriter(message: GetPilotThingsIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetPilotThingsIntegrationResponse; - static deserializeBinaryFromReader(message: GetPilotThingsIntegrationResponse, reader: jspb.BinaryReader): GetPilotThingsIntegrationResponse; -} - -export namespace GetPilotThingsIntegrationResponse { - export type AsObject = { - integration?: PilotThingsIntegration.AsObject, - } -} - -export class UpdatePilotThingsIntegrationRequest extends jspb.Message { - getIntegration(): PilotThingsIntegration | undefined; - setIntegration(value?: PilotThingsIntegration): UpdatePilotThingsIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): UpdatePilotThingsIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdatePilotThingsIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdatePilotThingsIntegrationRequest): UpdatePilotThingsIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: UpdatePilotThingsIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdatePilotThingsIntegrationRequest; - static deserializeBinaryFromReader(message: UpdatePilotThingsIntegrationRequest, reader: jspb.BinaryReader): UpdatePilotThingsIntegrationRequest; -} - -export namespace UpdatePilotThingsIntegrationRequest { - export type AsObject = { - integration?: PilotThingsIntegration.AsObject, - } -} - -export class DeletePilotThingsIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): DeletePilotThingsIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeletePilotThingsIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeletePilotThingsIntegrationRequest): DeletePilotThingsIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: DeletePilotThingsIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeletePilotThingsIntegrationRequest; - static deserializeBinaryFromReader(message: DeletePilotThingsIntegrationRequest, reader: jspb.BinaryReader): DeletePilotThingsIntegrationRequest; -} - -export namespace DeletePilotThingsIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class IftttIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): IftttIntegration; - - getKey(): string; - setKey(value: string): IftttIntegration; - - getUplinkValuesList(): Array; - setUplinkValuesList(value: Array): IftttIntegration; - clearUplinkValuesList(): IftttIntegration; - addUplinkValues(value: string, index?: number): IftttIntegration; - - getArbitraryJson(): boolean; - setArbitraryJson(value: boolean): IftttIntegration; - - getEventPrefix(): string; - setEventPrefix(value: string): IftttIntegration; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): IftttIntegration.AsObject; - static toObject(includeInstance: boolean, msg: IftttIntegration): IftttIntegration.AsObject; - static serializeBinaryToWriter(message: IftttIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): IftttIntegration; - static deserializeBinaryFromReader(message: IftttIntegration, reader: jspb.BinaryReader): IftttIntegration; -} - -export namespace IftttIntegration { - export type AsObject = { - applicationId: string, - key: string, - uplinkValuesList: Array, - arbitraryJson: boolean, - eventPrefix: string, - } -} - -export class CreateIftttIntegrationRequest extends jspb.Message { - getIntegration(): IftttIntegration | undefined; - setIntegration(value?: IftttIntegration): CreateIftttIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): CreateIftttIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateIftttIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateIftttIntegrationRequest): CreateIftttIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: CreateIftttIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateIftttIntegrationRequest; - static deserializeBinaryFromReader(message: CreateIftttIntegrationRequest, reader: jspb.BinaryReader): CreateIftttIntegrationRequest; -} - -export namespace CreateIftttIntegrationRequest { - export type AsObject = { - integration?: IftttIntegration.AsObject, - } -} - -export class GetIftttIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): GetIftttIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetIftttIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetIftttIntegrationRequest): GetIftttIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: GetIftttIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetIftttIntegrationRequest; - static deserializeBinaryFromReader(message: GetIftttIntegrationRequest, reader: jspb.BinaryReader): GetIftttIntegrationRequest; -} - -export namespace GetIftttIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetIftttIntegrationResponse extends jspb.Message { - getIntegration(): IftttIntegration | undefined; - setIntegration(value?: IftttIntegration): GetIftttIntegrationResponse; - hasIntegration(): boolean; - clearIntegration(): GetIftttIntegrationResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetIftttIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetIftttIntegrationResponse): GetIftttIntegrationResponse.AsObject; - static serializeBinaryToWriter(message: GetIftttIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetIftttIntegrationResponse; - static deserializeBinaryFromReader(message: GetIftttIntegrationResponse, reader: jspb.BinaryReader): GetIftttIntegrationResponse; -} - -export namespace GetIftttIntegrationResponse { - export type AsObject = { - integration?: IftttIntegration.AsObject, - } -} - -export class UpdateIftttIntegrationRequest extends jspb.Message { - getIntegration(): IftttIntegration | undefined; - setIntegration(value?: IftttIntegration): UpdateIftttIntegrationRequest; - hasIntegration(): boolean; - clearIntegration(): UpdateIftttIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateIftttIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateIftttIntegrationRequest): UpdateIftttIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: UpdateIftttIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateIftttIntegrationRequest; - static deserializeBinaryFromReader(message: UpdateIftttIntegrationRequest, reader: jspb.BinaryReader): UpdateIftttIntegrationRequest; -} - -export namespace UpdateIftttIntegrationRequest { - export type AsObject = { - integration?: IftttIntegration.AsObject, - } -} - -export class DeleteIftttIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): DeleteIftttIntegrationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteIftttIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteIftttIntegrationRequest): DeleteIftttIntegrationRequest.AsObject; - static serializeBinaryToWriter(message: DeleteIftttIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteIftttIntegrationRequest; - static deserializeBinaryFromReader(message: DeleteIftttIntegrationRequest, reader: jspb.BinaryReader): DeleteIftttIntegrationRequest; -} - -export namespace DeleteIftttIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GenerateMqttIntegrationClientCertificateRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): GenerateMqttIntegrationClientCertificateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenerateMqttIntegrationClientCertificateRequest.AsObject; - static toObject(includeInstance: boolean, msg: GenerateMqttIntegrationClientCertificateRequest): GenerateMqttIntegrationClientCertificateRequest.AsObject; - static serializeBinaryToWriter(message: GenerateMqttIntegrationClientCertificateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenerateMqttIntegrationClientCertificateRequest; - static deserializeBinaryFromReader(message: GenerateMqttIntegrationClientCertificateRequest, reader: jspb.BinaryReader): GenerateMqttIntegrationClientCertificateRequest; -} - -export namespace GenerateMqttIntegrationClientCertificateRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GenerateMqttIntegrationClientCertificateResponse extends jspb.Message { - getTlsCert(): string; - setTlsCert(value: string): GenerateMqttIntegrationClientCertificateResponse; - - getTlsKey(): string; - setTlsKey(value: string): GenerateMqttIntegrationClientCertificateResponse; - - getCaCert(): string; - setCaCert(value: string): GenerateMqttIntegrationClientCertificateResponse; - - getExpiresAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setExpiresAt(value?: google_protobuf_timestamp_pb.Timestamp): GenerateMqttIntegrationClientCertificateResponse; - hasExpiresAt(): boolean; - clearExpiresAt(): GenerateMqttIntegrationClientCertificateResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenerateMqttIntegrationClientCertificateResponse.AsObject; - static toObject(includeInstance: boolean, msg: GenerateMqttIntegrationClientCertificateResponse): GenerateMqttIntegrationClientCertificateResponse.AsObject; - static serializeBinaryToWriter(message: GenerateMqttIntegrationClientCertificateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenerateMqttIntegrationClientCertificateResponse; - static deserializeBinaryFromReader(message: GenerateMqttIntegrationClientCertificateResponse, reader: jspb.BinaryReader): GenerateMqttIntegrationClientCertificateResponse; -} - -export namespace GenerateMqttIntegrationClientCertificateResponse { - export type AsObject = { - tlsCert: string, - tlsKey: string, - caCert: string, - expiresAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export enum Encoding { - JSON = 0, - PROTOBUF = 1, -} -export enum IntegrationKind { - HTTP = 0, - INFLUX_DB = 1, - THINGS_BOARD = 2, - MY_DEVICES = 3, - LORA_CLOUD = 4, - GCP_PUB_SUB = 5, - AWS_SNS = 6, - AZURE_SERVICE_BUS = 7, - PILOT_THINGS = 8, - MQTT_GLOBAL = 9, - IFTTT = 10, -} -export enum InfluxDbPrecision { - NS = 0, - U = 1, - MS = 2, - S = 3, - M = 4, - H = 5, -} -export enum InfluxDbVersion { - INFLUXDB_1 = 0, - INFLUXDB_2 = 1, -} diff --git a/api/grpc-web/api/application_pb.js b/api/grpc-web/api/application_pb.js deleted file mode 100644 index f6d4de0c..00000000 --- a/api/grpc-web/api/application_pb.js +++ /dev/null @@ -1,14595 +0,0 @@ -// source: api/application.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -goog.exportSymbol('proto.api.Application', null, global); -goog.exportSymbol('proto.api.ApplicationListItem', null, global); -goog.exportSymbol('proto.api.AwsSnsIntegration', null, global); -goog.exportSymbol('proto.api.AzureServiceBusIntegration', null, global); -goog.exportSymbol('proto.api.CreateApplicationRequest', null, global); -goog.exportSymbol('proto.api.CreateApplicationResponse', null, global); -goog.exportSymbol('proto.api.CreateAwsSnsIntegrationRequest', null, global); -goog.exportSymbol('proto.api.CreateAzureServiceBusIntegrationRequest', null, global); -goog.exportSymbol('proto.api.CreateGcpPubSubIntegrationRequest', null, global); -goog.exportSymbol('proto.api.CreateHttpIntegrationRequest', null, global); -goog.exportSymbol('proto.api.CreateIftttIntegrationRequest', null, global); -goog.exportSymbol('proto.api.CreateInfluxDbIntegrationRequest', null, global); -goog.exportSymbol('proto.api.CreateLoraCloudIntegrationRequest', null, global); -goog.exportSymbol('proto.api.CreateMyDevicesIntegrationRequest', null, global); -goog.exportSymbol('proto.api.CreatePilotThingsIntegrationRequest', null, global); -goog.exportSymbol('proto.api.CreateThingsBoardIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeleteApplicationRequest', null, global); -goog.exportSymbol('proto.api.DeleteAwsSnsIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeleteAzureServiceBusIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeleteGcpPubSubIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeleteHttpIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeleteIftttIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeleteInfluxDbIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeleteLoraCloudIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeleteMyDevicesIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeletePilotThingsIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeleteThingsBoardIntegrationRequest', null, global); -goog.exportSymbol('proto.api.Encoding', null, global); -goog.exportSymbol('proto.api.GcpPubSubIntegration', null, global); -goog.exportSymbol('proto.api.GenerateMqttIntegrationClientCertificateRequest', null, global); -goog.exportSymbol('proto.api.GenerateMqttIntegrationClientCertificateResponse', null, global); -goog.exportSymbol('proto.api.GetApplicationRequest', null, global); -goog.exportSymbol('proto.api.GetApplicationResponse', null, global); -goog.exportSymbol('proto.api.GetAwsSnsIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetAwsSnsIntegrationResponse', null, global); -goog.exportSymbol('proto.api.GetAzureServiceBusIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetAzureServiceBusIntegrationResponse', null, global); -goog.exportSymbol('proto.api.GetGcpPubSubIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetGcpPubSubIntegrationResponse', null, global); -goog.exportSymbol('proto.api.GetHttpIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetHttpIntegrationResponse', null, global); -goog.exportSymbol('proto.api.GetIftttIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetIftttIntegrationResponse', null, global); -goog.exportSymbol('proto.api.GetInfluxDbIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetInfluxDbIntegrationResponse', null, global); -goog.exportSymbol('proto.api.GetLoraCloudIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetLoraCloudIntegrationResponse', null, global); -goog.exportSymbol('proto.api.GetMyDevicesIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetMyDevicesIntegrationResponse', null, global); -goog.exportSymbol('proto.api.GetPilotThingsIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetPilotThingsIntegrationResponse', null, global); -goog.exportSymbol('proto.api.GetThingsBoardIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetThingsBoardIntegrationResponse', null, global); -goog.exportSymbol('proto.api.HttpIntegration', null, global); -goog.exportSymbol('proto.api.IftttIntegration', null, global); -goog.exportSymbol('proto.api.InfluxDbIntegration', null, global); -goog.exportSymbol('proto.api.InfluxDbPrecision', null, global); -goog.exportSymbol('proto.api.InfluxDbVersion', null, global); -goog.exportSymbol('proto.api.IntegrationKind', null, global); -goog.exportSymbol('proto.api.IntegrationListItem', null, global); -goog.exportSymbol('proto.api.ListApplicationsRequest', null, global); -goog.exportSymbol('proto.api.ListApplicationsResponse', null, global); -goog.exportSymbol('proto.api.ListIntegrationsRequest', null, global); -goog.exportSymbol('proto.api.ListIntegrationsResponse', null, global); -goog.exportSymbol('proto.api.LoraCloudIntegration', null, global); -goog.exportSymbol('proto.api.LoraCloudModemGeolocationServices', null, global); -goog.exportSymbol('proto.api.MyDevicesIntegration', null, global); -goog.exportSymbol('proto.api.PilotThingsIntegration', null, global); -goog.exportSymbol('proto.api.ThingsBoardIntegration', null, global); -goog.exportSymbol('proto.api.UpdateApplicationRequest', null, global); -goog.exportSymbol('proto.api.UpdateAwsSnsIntegrationRequest', null, global); -goog.exportSymbol('proto.api.UpdateAzureServiceBusIntegrationRequest', null, global); -goog.exportSymbol('proto.api.UpdateGcpPubSubIntegrationRequest', null, global); -goog.exportSymbol('proto.api.UpdateHttpIntegrationRequest', null, global); -goog.exportSymbol('proto.api.UpdateIftttIntegrationRequest', null, global); -goog.exportSymbol('proto.api.UpdateInfluxDbIntegrationRequest', null, global); -goog.exportSymbol('proto.api.UpdateLoraCloudIntegrationRequest', null, global); -goog.exportSymbol('proto.api.UpdateMyDevicesIntegrationRequest', null, global); -goog.exportSymbol('proto.api.UpdatePilotThingsIntegrationRequest', null, global); -goog.exportSymbol('proto.api.UpdateThingsBoardIntegrationRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.Application = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.Application, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.Application.displayName = 'proto.api.Application'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ApplicationListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ApplicationListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ApplicationListItem.displayName = 'proto.api.ApplicationListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateApplicationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateApplicationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateApplicationRequest.displayName = 'proto.api.CreateApplicationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateApplicationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateApplicationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateApplicationResponse.displayName = 'proto.api.CreateApplicationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetApplicationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetApplicationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetApplicationRequest.displayName = 'proto.api.GetApplicationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetApplicationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.GetApplicationResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.GetApplicationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetApplicationResponse.displayName = 'proto.api.GetApplicationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateApplicationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateApplicationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateApplicationRequest.displayName = 'proto.api.UpdateApplicationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteApplicationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteApplicationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteApplicationRequest.displayName = 'proto.api.DeleteApplicationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListApplicationsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListApplicationsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListApplicationsRequest.displayName = 'proto.api.ListApplicationsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListApplicationsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListApplicationsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListApplicationsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListApplicationsResponse.displayName = 'proto.api.ListApplicationsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListIntegrationsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListIntegrationsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListIntegrationsRequest.displayName = 'proto.api.ListIntegrationsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.IntegrationListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.IntegrationListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.IntegrationListItem.displayName = 'proto.api.IntegrationListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListIntegrationsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListIntegrationsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListIntegrationsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListIntegrationsResponse.displayName = 'proto.api.ListIntegrationsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.HttpIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.HttpIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.HttpIntegration.displayName = 'proto.api.HttpIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateHttpIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateHttpIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateHttpIntegrationRequest.displayName = 'proto.api.CreateHttpIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetHttpIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetHttpIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetHttpIntegrationRequest.displayName = 'proto.api.GetHttpIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetHttpIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetHttpIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetHttpIntegrationResponse.displayName = 'proto.api.GetHttpIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateHttpIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateHttpIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateHttpIntegrationRequest.displayName = 'proto.api.UpdateHttpIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteHttpIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteHttpIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteHttpIntegrationRequest.displayName = 'proto.api.DeleteHttpIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.InfluxDbIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.InfluxDbIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.InfluxDbIntegration.displayName = 'proto.api.InfluxDbIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateInfluxDbIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateInfluxDbIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateInfluxDbIntegrationRequest.displayName = 'proto.api.CreateInfluxDbIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetInfluxDbIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetInfluxDbIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetInfluxDbIntegrationRequest.displayName = 'proto.api.GetInfluxDbIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetInfluxDbIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetInfluxDbIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetInfluxDbIntegrationResponse.displayName = 'proto.api.GetInfluxDbIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateInfluxDbIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateInfluxDbIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateInfluxDbIntegrationRequest.displayName = 'proto.api.UpdateInfluxDbIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteInfluxDbIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteInfluxDbIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteInfluxDbIntegrationRequest.displayName = 'proto.api.DeleteInfluxDbIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ThingsBoardIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ThingsBoardIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ThingsBoardIntegration.displayName = 'proto.api.ThingsBoardIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateThingsBoardIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateThingsBoardIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateThingsBoardIntegrationRequest.displayName = 'proto.api.CreateThingsBoardIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetThingsBoardIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetThingsBoardIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetThingsBoardIntegrationRequest.displayName = 'proto.api.GetThingsBoardIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetThingsBoardIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetThingsBoardIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetThingsBoardIntegrationResponse.displayName = 'proto.api.GetThingsBoardIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateThingsBoardIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateThingsBoardIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateThingsBoardIntegrationRequest.displayName = 'proto.api.UpdateThingsBoardIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteThingsBoardIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteThingsBoardIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteThingsBoardIntegrationRequest.displayName = 'proto.api.DeleteThingsBoardIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.MyDevicesIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.MyDevicesIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.MyDevicesIntegration.displayName = 'proto.api.MyDevicesIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateMyDevicesIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateMyDevicesIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateMyDevicesIntegrationRequest.displayName = 'proto.api.CreateMyDevicesIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetMyDevicesIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetMyDevicesIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetMyDevicesIntegrationRequest.displayName = 'proto.api.GetMyDevicesIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetMyDevicesIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetMyDevicesIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetMyDevicesIntegrationResponse.displayName = 'proto.api.GetMyDevicesIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateMyDevicesIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateMyDevicesIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateMyDevicesIntegrationRequest.displayName = 'proto.api.UpdateMyDevicesIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteMyDevicesIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteMyDevicesIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteMyDevicesIntegrationRequest.displayName = 'proto.api.DeleteMyDevicesIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.LoraCloudIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.LoraCloudIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.LoraCloudIntegration.displayName = 'proto.api.LoraCloudIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.LoraCloudModemGeolocationServices = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.LoraCloudModemGeolocationServices.repeatedFields_, null); -}; -goog.inherits(proto.api.LoraCloudModemGeolocationServices, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.LoraCloudModemGeolocationServices.displayName = 'proto.api.LoraCloudModemGeolocationServices'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateLoraCloudIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateLoraCloudIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateLoraCloudIntegrationRequest.displayName = 'proto.api.CreateLoraCloudIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetLoraCloudIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetLoraCloudIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetLoraCloudIntegrationRequest.displayName = 'proto.api.GetLoraCloudIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetLoraCloudIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetLoraCloudIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetLoraCloudIntegrationResponse.displayName = 'proto.api.GetLoraCloudIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateLoraCloudIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateLoraCloudIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateLoraCloudIntegrationRequest.displayName = 'proto.api.UpdateLoraCloudIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteLoraCloudIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteLoraCloudIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteLoraCloudIntegrationRequest.displayName = 'proto.api.DeleteLoraCloudIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GcpPubSubIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GcpPubSubIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GcpPubSubIntegration.displayName = 'proto.api.GcpPubSubIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateGcpPubSubIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateGcpPubSubIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateGcpPubSubIntegrationRequest.displayName = 'proto.api.CreateGcpPubSubIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetGcpPubSubIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetGcpPubSubIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetGcpPubSubIntegrationRequest.displayName = 'proto.api.GetGcpPubSubIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetGcpPubSubIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetGcpPubSubIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetGcpPubSubIntegrationResponse.displayName = 'proto.api.GetGcpPubSubIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateGcpPubSubIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateGcpPubSubIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateGcpPubSubIntegrationRequest.displayName = 'proto.api.UpdateGcpPubSubIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteGcpPubSubIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteGcpPubSubIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteGcpPubSubIntegrationRequest.displayName = 'proto.api.DeleteGcpPubSubIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.AwsSnsIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.AwsSnsIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.AwsSnsIntegration.displayName = 'proto.api.AwsSnsIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateAwsSnsIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateAwsSnsIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateAwsSnsIntegrationRequest.displayName = 'proto.api.CreateAwsSnsIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetAwsSnsIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetAwsSnsIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetAwsSnsIntegrationRequest.displayName = 'proto.api.GetAwsSnsIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetAwsSnsIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetAwsSnsIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetAwsSnsIntegrationResponse.displayName = 'proto.api.GetAwsSnsIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateAwsSnsIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateAwsSnsIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateAwsSnsIntegrationRequest.displayName = 'proto.api.UpdateAwsSnsIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteAwsSnsIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteAwsSnsIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteAwsSnsIntegrationRequest.displayName = 'proto.api.DeleteAwsSnsIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.AzureServiceBusIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.AzureServiceBusIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.AzureServiceBusIntegration.displayName = 'proto.api.AzureServiceBusIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateAzureServiceBusIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateAzureServiceBusIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateAzureServiceBusIntegrationRequest.displayName = 'proto.api.CreateAzureServiceBusIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetAzureServiceBusIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetAzureServiceBusIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetAzureServiceBusIntegrationRequest.displayName = 'proto.api.GetAzureServiceBusIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetAzureServiceBusIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetAzureServiceBusIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetAzureServiceBusIntegrationResponse.displayName = 'proto.api.GetAzureServiceBusIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateAzureServiceBusIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateAzureServiceBusIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateAzureServiceBusIntegrationRequest.displayName = 'proto.api.UpdateAzureServiceBusIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteAzureServiceBusIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteAzureServiceBusIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteAzureServiceBusIntegrationRequest.displayName = 'proto.api.DeleteAzureServiceBusIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.PilotThingsIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.PilotThingsIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.PilotThingsIntegration.displayName = 'proto.api.PilotThingsIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreatePilotThingsIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreatePilotThingsIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreatePilotThingsIntegrationRequest.displayName = 'proto.api.CreatePilotThingsIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetPilotThingsIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetPilotThingsIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetPilotThingsIntegrationRequest.displayName = 'proto.api.GetPilotThingsIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetPilotThingsIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetPilotThingsIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetPilotThingsIntegrationResponse.displayName = 'proto.api.GetPilotThingsIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdatePilotThingsIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdatePilotThingsIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdatePilotThingsIntegrationRequest.displayName = 'proto.api.UpdatePilotThingsIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeletePilotThingsIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeletePilotThingsIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeletePilotThingsIntegrationRequest.displayName = 'proto.api.DeletePilotThingsIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.IftttIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.IftttIntegration.repeatedFields_, null); -}; -goog.inherits(proto.api.IftttIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.IftttIntegration.displayName = 'proto.api.IftttIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateIftttIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateIftttIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateIftttIntegrationRequest.displayName = 'proto.api.CreateIftttIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetIftttIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetIftttIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetIftttIntegrationRequest.displayName = 'proto.api.GetIftttIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetIftttIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetIftttIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetIftttIntegrationResponse.displayName = 'proto.api.GetIftttIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateIftttIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateIftttIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateIftttIntegrationRequest.displayName = 'proto.api.UpdateIftttIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteIftttIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteIftttIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteIftttIntegrationRequest.displayName = 'proto.api.DeleteIftttIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GenerateMqttIntegrationClientCertificateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GenerateMqttIntegrationClientCertificateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GenerateMqttIntegrationClientCertificateRequest.displayName = 'proto.api.GenerateMqttIntegrationClientCertificateRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GenerateMqttIntegrationClientCertificateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GenerateMqttIntegrationClientCertificateResponse.displayName = 'proto.api.GenerateMqttIntegrationClientCertificateResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.Application.prototype.toObject = function(opt_includeInstance) { - return proto.api.Application.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.Application} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Application.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - tenantId: jspb.Message.getFieldWithDefault(msg, 4, ""), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.Application} - */ -proto.api.Application.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.Application; - return proto.api.Application.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.Application} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.Application} - */ -proto.api.Application.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 5: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.Application.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.Application.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.Application} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Application.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.Application.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Application} returns this - */ -proto.api.Application.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.Application.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Application} returns this - */ -proto.api.Application.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.api.Application.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Application} returns this - */ -proto.api.Application.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string tenant_id = 4; - * @return {string} - */ -proto.api.Application.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Application} returns this - */ -proto.api.Application.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * map tags = 5; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.Application.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 5, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.Application} returns this - */ -proto.api.Application.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ApplicationListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.ApplicationListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ApplicationListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ApplicationListItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 4, ""), - description: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ApplicationListItem} - */ -proto.api.ApplicationListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ApplicationListItem; - return proto.api.ApplicationListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ApplicationListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ApplicationListItem} - */ -proto.api.ApplicationListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ApplicationListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ApplicationListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ApplicationListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ApplicationListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.ApplicationListItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ApplicationListItem} returns this - */ -proto.api.ApplicationListItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.ApplicationListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.ApplicationListItem} returns this -*/ -proto.api.ApplicationListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.ApplicationListItem} returns this - */ -proto.api.ApplicationListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.ApplicationListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.ApplicationListItem.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.ApplicationListItem} returns this -*/ -proto.api.ApplicationListItem.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.ApplicationListItem} returns this - */ -proto.api.ApplicationListItem.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.ApplicationListItem.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string name = 4; - * @return {string} - */ -proto.api.ApplicationListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ApplicationListItem} returns this - */ -proto.api.ApplicationListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string description = 5; - * @return {string} - */ -proto.api.ApplicationListItem.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ApplicationListItem} returns this - */ -proto.api.ApplicationListItem.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateApplicationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateApplicationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateApplicationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateApplicationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - application: (f = msg.getApplication()) && proto.api.Application.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateApplicationRequest} - */ -proto.api.CreateApplicationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateApplicationRequest; - return proto.api.CreateApplicationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateApplicationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateApplicationRequest} - */ -proto.api.CreateApplicationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Application; - reader.readMessage(value,proto.api.Application.deserializeBinaryFromReader); - msg.setApplication(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateApplicationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateApplicationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateApplicationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateApplicationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplication(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Application.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Application application = 1; - * @return {?proto.api.Application} - */ -proto.api.CreateApplicationRequest.prototype.getApplication = function() { - return /** @type{?proto.api.Application} */ ( - jspb.Message.getWrapperField(this, proto.api.Application, 1)); -}; - - -/** - * @param {?proto.api.Application|undefined} value - * @return {!proto.api.CreateApplicationRequest} returns this -*/ -proto.api.CreateApplicationRequest.prototype.setApplication = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateApplicationRequest} returns this - */ -proto.api.CreateApplicationRequest.prototype.clearApplication = function() { - return this.setApplication(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateApplicationRequest.prototype.hasApplication = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateApplicationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateApplicationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateApplicationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateApplicationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateApplicationResponse} - */ -proto.api.CreateApplicationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateApplicationResponse; - return proto.api.CreateApplicationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateApplicationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateApplicationResponse} - */ -proto.api.CreateApplicationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateApplicationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateApplicationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateApplicationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateApplicationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.CreateApplicationResponse.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.CreateApplicationResponse} returns this - */ -proto.api.CreateApplicationResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetApplicationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetApplicationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetApplicationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetApplicationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetApplicationRequest} - */ -proto.api.GetApplicationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetApplicationRequest; - return proto.api.GetApplicationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetApplicationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetApplicationRequest} - */ -proto.api.GetApplicationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetApplicationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetApplicationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetApplicationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetApplicationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.GetApplicationRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetApplicationRequest} returns this - */ -proto.api.GetApplicationRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.GetApplicationResponse.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetApplicationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetApplicationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetApplicationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetApplicationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - application: (f = msg.getApplication()) && proto.api.Application.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - measurementKeysList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetApplicationResponse} - */ -proto.api.GetApplicationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetApplicationResponse; - return proto.api.GetApplicationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetApplicationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetApplicationResponse} - */ -proto.api.GetApplicationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Application; - reader.readMessage(value,proto.api.Application.deserializeBinaryFromReader); - msg.setApplication(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addMeasurementKeys(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetApplicationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetApplicationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetApplicationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetApplicationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplication(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Application.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getMeasurementKeysList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } -}; - - -/** - * optional Application application = 1; - * @return {?proto.api.Application} - */ -proto.api.GetApplicationResponse.prototype.getApplication = function() { - return /** @type{?proto.api.Application} */ ( - jspb.Message.getWrapperField(this, proto.api.Application, 1)); -}; - - -/** - * @param {?proto.api.Application|undefined} value - * @return {!proto.api.GetApplicationResponse} returns this -*/ -proto.api.GetApplicationResponse.prototype.setApplication = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetApplicationResponse} returns this - */ -proto.api.GetApplicationResponse.prototype.clearApplication = function() { - return this.setApplication(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetApplicationResponse.prototype.hasApplication = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetApplicationResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetApplicationResponse} returns this -*/ -proto.api.GetApplicationResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetApplicationResponse} returns this - */ -proto.api.GetApplicationResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetApplicationResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetApplicationResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetApplicationResponse} returns this -*/ -proto.api.GetApplicationResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetApplicationResponse} returns this - */ -proto.api.GetApplicationResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetApplicationResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * repeated string measurement_keys = 4; - * @return {!Array} - */ -proto.api.GetApplicationResponse.prototype.getMeasurementKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.GetApplicationResponse} returns this - */ -proto.api.GetApplicationResponse.prototype.setMeasurementKeysList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.api.GetApplicationResponse} returns this - */ -proto.api.GetApplicationResponse.prototype.addMeasurementKeys = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.GetApplicationResponse} returns this - */ -proto.api.GetApplicationResponse.prototype.clearMeasurementKeysList = function() { - return this.setMeasurementKeysList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateApplicationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateApplicationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateApplicationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateApplicationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - application: (f = msg.getApplication()) && proto.api.Application.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateApplicationRequest} - */ -proto.api.UpdateApplicationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateApplicationRequest; - return proto.api.UpdateApplicationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateApplicationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateApplicationRequest} - */ -proto.api.UpdateApplicationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Application; - reader.readMessage(value,proto.api.Application.deserializeBinaryFromReader); - msg.setApplication(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateApplicationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateApplicationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateApplicationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateApplicationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplication(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Application.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Application application = 1; - * @return {?proto.api.Application} - */ -proto.api.UpdateApplicationRequest.prototype.getApplication = function() { - return /** @type{?proto.api.Application} */ ( - jspb.Message.getWrapperField(this, proto.api.Application, 1)); -}; - - -/** - * @param {?proto.api.Application|undefined} value - * @return {!proto.api.UpdateApplicationRequest} returns this -*/ -proto.api.UpdateApplicationRequest.prototype.setApplication = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateApplicationRequest} returns this - */ -proto.api.UpdateApplicationRequest.prototype.clearApplication = function() { - return this.setApplication(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateApplicationRequest.prototype.hasApplication = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteApplicationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteApplicationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteApplicationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteApplicationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteApplicationRequest} - */ -proto.api.DeleteApplicationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteApplicationRequest; - return proto.api.DeleteApplicationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteApplicationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteApplicationRequest} - */ -proto.api.DeleteApplicationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteApplicationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteApplicationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteApplicationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteApplicationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeleteApplicationRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteApplicationRequest} returns this - */ -proto.api.DeleteApplicationRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListApplicationsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListApplicationsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListApplicationsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListApplicationsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - search: jspb.Message.getFieldWithDefault(msg, 3, ""), - tenantId: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListApplicationsRequest} - */ -proto.api.ListApplicationsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListApplicationsRequest; - return proto.api.ListApplicationsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListApplicationsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListApplicationsRequest} - */ -proto.api.ListApplicationsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSearch(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListApplicationsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListApplicationsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListApplicationsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListApplicationsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getSearch(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListApplicationsRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListApplicationsRequest} returns this - */ -proto.api.ListApplicationsRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListApplicationsRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListApplicationsRequest} returns this - */ -proto.api.ListApplicationsRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string search = 3; - * @return {string} - */ -proto.api.ListApplicationsRequest.prototype.getSearch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListApplicationsRequest} returns this - */ -proto.api.ListApplicationsRequest.prototype.setSearch = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string tenant_id = 4; - * @return {string} - */ -proto.api.ListApplicationsRequest.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListApplicationsRequest} returns this - */ -proto.api.ListApplicationsRequest.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListApplicationsResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListApplicationsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListApplicationsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListApplicationsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListApplicationsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.ApplicationListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListApplicationsResponse} - */ -proto.api.ListApplicationsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListApplicationsResponse; - return proto.api.ListApplicationsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListApplicationsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListApplicationsResponse} - */ -proto.api.ListApplicationsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.ApplicationListItem; - reader.readMessage(value,proto.api.ApplicationListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListApplicationsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListApplicationsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListApplicationsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListApplicationsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.ApplicationListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListApplicationsResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListApplicationsResponse} returns this - */ -proto.api.ListApplicationsResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated ApplicationListItem result = 2; - * @return {!Array} - */ -proto.api.ListApplicationsResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.ApplicationListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListApplicationsResponse} returns this -*/ -proto.api.ListApplicationsResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.ApplicationListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.ApplicationListItem} - */ -proto.api.ListApplicationsResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.ApplicationListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListApplicationsResponse} returns this - */ -proto.api.ListApplicationsResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListIntegrationsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListIntegrationsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListIntegrationsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListIntegrationsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListIntegrationsRequest} - */ -proto.api.ListIntegrationsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListIntegrationsRequest; - return proto.api.ListIntegrationsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListIntegrationsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListIntegrationsRequest} - */ -proto.api.ListIntegrationsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListIntegrationsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListIntegrationsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListIntegrationsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListIntegrationsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.ListIntegrationsRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListIntegrationsRequest} returns this - */ -proto.api.ListIntegrationsRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.IntegrationListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.IntegrationListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.IntegrationListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.IntegrationListItem.toObject = function(includeInstance, msg) { - var f, obj = { - kind: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.IntegrationListItem} - */ -proto.api.IntegrationListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.IntegrationListItem; - return proto.api.IntegrationListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.IntegrationListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.IntegrationListItem} - */ -proto.api.IntegrationListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.api.IntegrationKind} */ (reader.readEnum()); - msg.setKind(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.IntegrationListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.IntegrationListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.IntegrationListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.IntegrationListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKind(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } -}; - - -/** - * optional IntegrationKind kind = 1; - * @return {!proto.api.IntegrationKind} - */ -proto.api.IntegrationListItem.prototype.getKind = function() { - return /** @type {!proto.api.IntegrationKind} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.api.IntegrationKind} value - * @return {!proto.api.IntegrationListItem} returns this - */ -proto.api.IntegrationListItem.prototype.setKind = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListIntegrationsResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListIntegrationsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListIntegrationsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListIntegrationsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListIntegrationsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.IntegrationListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListIntegrationsResponse} - */ -proto.api.ListIntegrationsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListIntegrationsResponse; - return proto.api.ListIntegrationsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListIntegrationsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListIntegrationsResponse} - */ -proto.api.ListIntegrationsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.IntegrationListItem; - reader.readMessage(value,proto.api.IntegrationListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListIntegrationsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListIntegrationsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListIntegrationsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListIntegrationsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.IntegrationListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListIntegrationsResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListIntegrationsResponse} returns this - */ -proto.api.ListIntegrationsResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated IntegrationListItem result = 2; - * @return {!Array} - */ -proto.api.ListIntegrationsResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.IntegrationListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListIntegrationsResponse} returns this -*/ -proto.api.ListIntegrationsResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.IntegrationListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.IntegrationListItem} - */ -proto.api.ListIntegrationsResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.IntegrationListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListIntegrationsResponse} returns this - */ -proto.api.ListIntegrationsResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.HttpIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.HttpIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.HttpIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.HttpIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, undefined) : [], - encoding: jspb.Message.getFieldWithDefault(msg, 3, 0), - eventEndpointUrl: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.HttpIntegration} - */ -proto.api.HttpIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.HttpIntegration; - return proto.api.HttpIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.HttpIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.HttpIntegration} - */ -proto.api.HttpIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = msg.getHeadersMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 3: - var value = /** @type {!proto.api.Encoding} */ (reader.readEnum()); - msg.setEncoding(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setEventEndpointUrl(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.HttpIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.HttpIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.HttpIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.HttpIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHeadersMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getEncoding(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getEventEndpointUrl(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.HttpIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.HttpIntegration} returns this - */ -proto.api.HttpIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * map headers = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.HttpIntegration.prototype.getHeadersMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.HttpIntegration} returns this - */ -proto.api.HttpIntegration.prototype.clearHeadersMap = function() { - this.getHeadersMap().clear(); - return this;}; - - -/** - * optional Encoding encoding = 3; - * @return {!proto.api.Encoding} - */ -proto.api.HttpIntegration.prototype.getEncoding = function() { - return /** @type {!proto.api.Encoding} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.api.Encoding} value - * @return {!proto.api.HttpIntegration} returns this - */ -proto.api.HttpIntegration.prototype.setEncoding = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional string event_endpoint_url = 4; - * @return {string} - */ -proto.api.HttpIntegration.prototype.getEventEndpointUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.HttpIntegration} returns this - */ -proto.api.HttpIntegration.prototype.setEventEndpointUrl = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateHttpIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateHttpIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateHttpIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateHttpIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.HttpIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateHttpIntegrationRequest} - */ -proto.api.CreateHttpIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateHttpIntegrationRequest; - return proto.api.CreateHttpIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateHttpIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateHttpIntegrationRequest} - */ -proto.api.CreateHttpIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.HttpIntegration; - reader.readMessage(value,proto.api.HttpIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateHttpIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateHttpIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateHttpIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateHttpIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.HttpIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional HttpIntegration integration = 1; - * @return {?proto.api.HttpIntegration} - */ -proto.api.CreateHttpIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.HttpIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.HttpIntegration, 1)); -}; - - -/** - * @param {?proto.api.HttpIntegration|undefined} value - * @return {!proto.api.CreateHttpIntegrationRequest} returns this -*/ -proto.api.CreateHttpIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateHttpIntegrationRequest} returns this - */ -proto.api.CreateHttpIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateHttpIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetHttpIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetHttpIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetHttpIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetHttpIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetHttpIntegrationRequest} - */ -proto.api.GetHttpIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetHttpIntegrationRequest; - return proto.api.GetHttpIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetHttpIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetHttpIntegrationRequest} - */ -proto.api.GetHttpIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetHttpIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetHttpIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetHttpIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetHttpIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetHttpIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetHttpIntegrationRequest} returns this - */ -proto.api.GetHttpIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetHttpIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetHttpIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetHttpIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetHttpIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.HttpIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetHttpIntegrationResponse} - */ -proto.api.GetHttpIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetHttpIntegrationResponse; - return proto.api.GetHttpIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetHttpIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetHttpIntegrationResponse} - */ -proto.api.GetHttpIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.HttpIntegration; - reader.readMessage(value,proto.api.HttpIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetHttpIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetHttpIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetHttpIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetHttpIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.HttpIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional HttpIntegration integration = 1; - * @return {?proto.api.HttpIntegration} - */ -proto.api.GetHttpIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.HttpIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.HttpIntegration, 1)); -}; - - -/** - * @param {?proto.api.HttpIntegration|undefined} value - * @return {!proto.api.GetHttpIntegrationResponse} returns this -*/ -proto.api.GetHttpIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetHttpIntegrationResponse} returns this - */ -proto.api.GetHttpIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetHttpIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateHttpIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateHttpIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateHttpIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateHttpIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.HttpIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateHttpIntegrationRequest} - */ -proto.api.UpdateHttpIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateHttpIntegrationRequest; - return proto.api.UpdateHttpIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateHttpIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateHttpIntegrationRequest} - */ -proto.api.UpdateHttpIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.HttpIntegration; - reader.readMessage(value,proto.api.HttpIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateHttpIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateHttpIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateHttpIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateHttpIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.HttpIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional HttpIntegration integration = 1; - * @return {?proto.api.HttpIntegration} - */ -proto.api.UpdateHttpIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.HttpIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.HttpIntegration, 1)); -}; - - -/** - * @param {?proto.api.HttpIntegration|undefined} value - * @return {!proto.api.UpdateHttpIntegrationRequest} returns this -*/ -proto.api.UpdateHttpIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateHttpIntegrationRequest} returns this - */ -proto.api.UpdateHttpIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateHttpIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteHttpIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteHttpIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteHttpIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteHttpIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteHttpIntegrationRequest} - */ -proto.api.DeleteHttpIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteHttpIntegrationRequest; - return proto.api.DeleteHttpIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteHttpIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteHttpIntegrationRequest} - */ -proto.api.DeleteHttpIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteHttpIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteHttpIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteHttpIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteHttpIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeleteHttpIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteHttpIntegrationRequest} returns this - */ -proto.api.DeleteHttpIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.InfluxDbIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.InfluxDbIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.InfluxDbIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.InfluxDbIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - endpoint: jspb.Message.getFieldWithDefault(msg, 2, ""), - db: jspb.Message.getFieldWithDefault(msg, 3, ""), - username: jspb.Message.getFieldWithDefault(msg, 4, ""), - password: jspb.Message.getFieldWithDefault(msg, 5, ""), - retentionPolicyName: jspb.Message.getFieldWithDefault(msg, 6, ""), - precision: jspb.Message.getFieldWithDefault(msg, 7, 0), - version: jspb.Message.getFieldWithDefault(msg, 8, 0), - token: jspb.Message.getFieldWithDefault(msg, 9, ""), - organization: jspb.Message.getFieldWithDefault(msg, 10, ""), - bucket: jspb.Message.getFieldWithDefault(msg, 11, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.InfluxDbIntegration} - */ -proto.api.InfluxDbIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.InfluxDbIntegration; - return proto.api.InfluxDbIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.InfluxDbIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.InfluxDbIntegration} - */ -proto.api.InfluxDbIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setEndpoint(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDb(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUsername(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setRetentionPolicyName(value); - break; - case 7: - var value = /** @type {!proto.api.InfluxDbPrecision} */ (reader.readEnum()); - msg.setPrecision(value); - break; - case 8: - var value = /** @type {!proto.api.InfluxDbVersion} */ (reader.readEnum()); - msg.setVersion(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setToken(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setOrganization(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setBucket(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.InfluxDbIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.InfluxDbIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.InfluxDbIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.InfluxDbIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEndpoint(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDb(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getUsername(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getRetentionPolicyName(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getPrecision(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getVersion(); - if (f !== 0.0) { - writer.writeEnum( - 8, - f - ); - } - f = message.getToken(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getOrganization(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getBucket(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.InfluxDbIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string endpoint = 2; - * @return {string} - */ -proto.api.InfluxDbIntegration.prototype.getEndpoint = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setEndpoint = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string db = 3; - * @return {string} - */ -proto.api.InfluxDbIntegration.prototype.getDb = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setDb = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string username = 4; - * @return {string} - */ -proto.api.InfluxDbIntegration.prototype.getUsername = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setUsername = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string password = 5; - * @return {string} - */ -proto.api.InfluxDbIntegration.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setPassword = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string retention_policy_name = 6; - * @return {string} - */ -proto.api.InfluxDbIntegration.prototype.getRetentionPolicyName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setRetentionPolicyName = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional InfluxDbPrecision precision = 7; - * @return {!proto.api.InfluxDbPrecision} - */ -proto.api.InfluxDbIntegration.prototype.getPrecision = function() { - return /** @type {!proto.api.InfluxDbPrecision} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.api.InfluxDbPrecision} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setPrecision = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); -}; - - -/** - * optional InfluxDbVersion version = 8; - * @return {!proto.api.InfluxDbVersion} - */ -proto.api.InfluxDbIntegration.prototype.getVersion = function() { - return /** @type {!proto.api.InfluxDbVersion} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {!proto.api.InfluxDbVersion} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setVersion = function(value) { - return jspb.Message.setProto3EnumField(this, 8, value); -}; - - -/** - * optional string token = 9; - * @return {string} - */ -proto.api.InfluxDbIntegration.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setToken = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional string organization = 10; - * @return {string} - */ -proto.api.InfluxDbIntegration.prototype.getOrganization = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setOrganization = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); -}; - - -/** - * optional string bucket = 11; - * @return {string} - */ -proto.api.InfluxDbIntegration.prototype.getBucket = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setBucket = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateInfluxDbIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateInfluxDbIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateInfluxDbIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateInfluxDbIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.InfluxDbIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateInfluxDbIntegrationRequest} - */ -proto.api.CreateInfluxDbIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateInfluxDbIntegrationRequest; - return proto.api.CreateInfluxDbIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateInfluxDbIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateInfluxDbIntegrationRequest} - */ -proto.api.CreateInfluxDbIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.InfluxDbIntegration; - reader.readMessage(value,proto.api.InfluxDbIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateInfluxDbIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateInfluxDbIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateInfluxDbIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateInfluxDbIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.InfluxDbIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional InfluxDbIntegration integration = 1; - * @return {?proto.api.InfluxDbIntegration} - */ -proto.api.CreateInfluxDbIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.InfluxDbIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.InfluxDbIntegration, 1)); -}; - - -/** - * @param {?proto.api.InfluxDbIntegration|undefined} value - * @return {!proto.api.CreateInfluxDbIntegrationRequest} returns this -*/ -proto.api.CreateInfluxDbIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateInfluxDbIntegrationRequest} returns this - */ -proto.api.CreateInfluxDbIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateInfluxDbIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetInfluxDbIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetInfluxDbIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetInfluxDbIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetInfluxDbIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetInfluxDbIntegrationRequest} - */ -proto.api.GetInfluxDbIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetInfluxDbIntegrationRequest; - return proto.api.GetInfluxDbIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetInfluxDbIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetInfluxDbIntegrationRequest} - */ -proto.api.GetInfluxDbIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetInfluxDbIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetInfluxDbIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetInfluxDbIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetInfluxDbIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetInfluxDbIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetInfluxDbIntegrationRequest} returns this - */ -proto.api.GetInfluxDbIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetInfluxDbIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetInfluxDbIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetInfluxDbIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetInfluxDbIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.InfluxDbIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetInfluxDbIntegrationResponse} - */ -proto.api.GetInfluxDbIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetInfluxDbIntegrationResponse; - return proto.api.GetInfluxDbIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetInfluxDbIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetInfluxDbIntegrationResponse} - */ -proto.api.GetInfluxDbIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.InfluxDbIntegration; - reader.readMessage(value,proto.api.InfluxDbIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetInfluxDbIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetInfluxDbIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetInfluxDbIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetInfluxDbIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.InfluxDbIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional InfluxDbIntegration integration = 1; - * @return {?proto.api.InfluxDbIntegration} - */ -proto.api.GetInfluxDbIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.InfluxDbIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.InfluxDbIntegration, 1)); -}; - - -/** - * @param {?proto.api.InfluxDbIntegration|undefined} value - * @return {!proto.api.GetInfluxDbIntegrationResponse} returns this -*/ -proto.api.GetInfluxDbIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetInfluxDbIntegrationResponse} returns this - */ -proto.api.GetInfluxDbIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetInfluxDbIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateInfluxDbIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateInfluxDbIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateInfluxDbIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateInfluxDbIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.InfluxDbIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateInfluxDbIntegrationRequest} - */ -proto.api.UpdateInfluxDbIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateInfluxDbIntegrationRequest; - return proto.api.UpdateInfluxDbIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateInfluxDbIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateInfluxDbIntegrationRequest} - */ -proto.api.UpdateInfluxDbIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.InfluxDbIntegration; - reader.readMessage(value,proto.api.InfluxDbIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateInfluxDbIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateInfluxDbIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateInfluxDbIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateInfluxDbIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.InfluxDbIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional InfluxDbIntegration integration = 1; - * @return {?proto.api.InfluxDbIntegration} - */ -proto.api.UpdateInfluxDbIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.InfluxDbIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.InfluxDbIntegration, 1)); -}; - - -/** - * @param {?proto.api.InfluxDbIntegration|undefined} value - * @return {!proto.api.UpdateInfluxDbIntegrationRequest} returns this -*/ -proto.api.UpdateInfluxDbIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateInfluxDbIntegrationRequest} returns this - */ -proto.api.UpdateInfluxDbIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateInfluxDbIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteInfluxDbIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteInfluxDbIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteInfluxDbIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteInfluxDbIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteInfluxDbIntegrationRequest} - */ -proto.api.DeleteInfluxDbIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteInfluxDbIntegrationRequest; - return proto.api.DeleteInfluxDbIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteInfluxDbIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteInfluxDbIntegrationRequest} - */ -proto.api.DeleteInfluxDbIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteInfluxDbIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteInfluxDbIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteInfluxDbIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteInfluxDbIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeleteInfluxDbIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteInfluxDbIntegrationRequest} returns this - */ -proto.api.DeleteInfluxDbIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ThingsBoardIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.ThingsBoardIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ThingsBoardIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ThingsBoardIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - server: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ThingsBoardIntegration} - */ -proto.api.ThingsBoardIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ThingsBoardIntegration; - return proto.api.ThingsBoardIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ThingsBoardIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ThingsBoardIntegration} - */ -proto.api.ThingsBoardIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setServer(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ThingsBoardIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ThingsBoardIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ThingsBoardIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ThingsBoardIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getServer(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.ThingsBoardIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ThingsBoardIntegration} returns this - */ -proto.api.ThingsBoardIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string server = 2; - * @return {string} - */ -proto.api.ThingsBoardIntegration.prototype.getServer = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ThingsBoardIntegration} returns this - */ -proto.api.ThingsBoardIntegration.prototype.setServer = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateThingsBoardIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateThingsBoardIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateThingsBoardIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateThingsBoardIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.ThingsBoardIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateThingsBoardIntegrationRequest} - */ -proto.api.CreateThingsBoardIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateThingsBoardIntegrationRequest; - return proto.api.CreateThingsBoardIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateThingsBoardIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateThingsBoardIntegrationRequest} - */ -proto.api.CreateThingsBoardIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.ThingsBoardIntegration; - reader.readMessage(value,proto.api.ThingsBoardIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateThingsBoardIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateThingsBoardIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateThingsBoardIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateThingsBoardIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.ThingsBoardIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ThingsBoardIntegration integration = 1; - * @return {?proto.api.ThingsBoardIntegration} - */ -proto.api.CreateThingsBoardIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.ThingsBoardIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.ThingsBoardIntegration, 1)); -}; - - -/** - * @param {?proto.api.ThingsBoardIntegration|undefined} value - * @return {!proto.api.CreateThingsBoardIntegrationRequest} returns this -*/ -proto.api.CreateThingsBoardIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateThingsBoardIntegrationRequest} returns this - */ -proto.api.CreateThingsBoardIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateThingsBoardIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetThingsBoardIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetThingsBoardIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetThingsBoardIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetThingsBoardIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetThingsBoardIntegrationRequest} - */ -proto.api.GetThingsBoardIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetThingsBoardIntegrationRequest; - return proto.api.GetThingsBoardIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetThingsBoardIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetThingsBoardIntegrationRequest} - */ -proto.api.GetThingsBoardIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetThingsBoardIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetThingsBoardIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetThingsBoardIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetThingsBoardIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetThingsBoardIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetThingsBoardIntegrationRequest} returns this - */ -proto.api.GetThingsBoardIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetThingsBoardIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetThingsBoardIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetThingsBoardIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetThingsBoardIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.ThingsBoardIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetThingsBoardIntegrationResponse} - */ -proto.api.GetThingsBoardIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetThingsBoardIntegrationResponse; - return proto.api.GetThingsBoardIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetThingsBoardIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetThingsBoardIntegrationResponse} - */ -proto.api.GetThingsBoardIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.ThingsBoardIntegration; - reader.readMessage(value,proto.api.ThingsBoardIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetThingsBoardIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetThingsBoardIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetThingsBoardIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetThingsBoardIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.ThingsBoardIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ThingsBoardIntegration integration = 1; - * @return {?proto.api.ThingsBoardIntegration} - */ -proto.api.GetThingsBoardIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.ThingsBoardIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.ThingsBoardIntegration, 1)); -}; - - -/** - * @param {?proto.api.ThingsBoardIntegration|undefined} value - * @return {!proto.api.GetThingsBoardIntegrationResponse} returns this -*/ -proto.api.GetThingsBoardIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetThingsBoardIntegrationResponse} returns this - */ -proto.api.GetThingsBoardIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetThingsBoardIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateThingsBoardIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateThingsBoardIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateThingsBoardIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateThingsBoardIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.ThingsBoardIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateThingsBoardIntegrationRequest} - */ -proto.api.UpdateThingsBoardIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateThingsBoardIntegrationRequest; - return proto.api.UpdateThingsBoardIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateThingsBoardIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateThingsBoardIntegrationRequest} - */ -proto.api.UpdateThingsBoardIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.ThingsBoardIntegration; - reader.readMessage(value,proto.api.ThingsBoardIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateThingsBoardIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateThingsBoardIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateThingsBoardIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateThingsBoardIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.ThingsBoardIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ThingsBoardIntegration integration = 1; - * @return {?proto.api.ThingsBoardIntegration} - */ -proto.api.UpdateThingsBoardIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.ThingsBoardIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.ThingsBoardIntegration, 1)); -}; - - -/** - * @param {?proto.api.ThingsBoardIntegration|undefined} value - * @return {!proto.api.UpdateThingsBoardIntegrationRequest} returns this -*/ -proto.api.UpdateThingsBoardIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateThingsBoardIntegrationRequest} returns this - */ -proto.api.UpdateThingsBoardIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateThingsBoardIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteThingsBoardIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteThingsBoardIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteThingsBoardIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteThingsBoardIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteThingsBoardIntegrationRequest} - */ -proto.api.DeleteThingsBoardIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteThingsBoardIntegrationRequest; - return proto.api.DeleteThingsBoardIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteThingsBoardIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteThingsBoardIntegrationRequest} - */ -proto.api.DeleteThingsBoardIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteThingsBoardIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteThingsBoardIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteThingsBoardIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteThingsBoardIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeleteThingsBoardIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteThingsBoardIntegrationRequest} returns this - */ -proto.api.DeleteThingsBoardIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.MyDevicesIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.MyDevicesIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.MyDevicesIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.MyDevicesIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - endpoint: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.MyDevicesIntegration} - */ -proto.api.MyDevicesIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.MyDevicesIntegration; - return proto.api.MyDevicesIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.MyDevicesIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.MyDevicesIntegration} - */ -proto.api.MyDevicesIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setEndpoint(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.MyDevicesIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.MyDevicesIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.MyDevicesIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.MyDevicesIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEndpoint(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.MyDevicesIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MyDevicesIntegration} returns this - */ -proto.api.MyDevicesIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string endpoint = 2; - * @return {string} - */ -proto.api.MyDevicesIntegration.prototype.getEndpoint = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MyDevicesIntegration} returns this - */ -proto.api.MyDevicesIntegration.prototype.setEndpoint = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateMyDevicesIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateMyDevicesIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateMyDevicesIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateMyDevicesIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.MyDevicesIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateMyDevicesIntegrationRequest} - */ -proto.api.CreateMyDevicesIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateMyDevicesIntegrationRequest; - return proto.api.CreateMyDevicesIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateMyDevicesIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateMyDevicesIntegrationRequest} - */ -proto.api.CreateMyDevicesIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.MyDevicesIntegration; - reader.readMessage(value,proto.api.MyDevicesIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateMyDevicesIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateMyDevicesIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateMyDevicesIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateMyDevicesIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.MyDevicesIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional MyDevicesIntegration integration = 1; - * @return {?proto.api.MyDevicesIntegration} - */ -proto.api.CreateMyDevicesIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.MyDevicesIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.MyDevicesIntegration, 1)); -}; - - -/** - * @param {?proto.api.MyDevicesIntegration|undefined} value - * @return {!proto.api.CreateMyDevicesIntegrationRequest} returns this -*/ -proto.api.CreateMyDevicesIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateMyDevicesIntegrationRequest} returns this - */ -proto.api.CreateMyDevicesIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateMyDevicesIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetMyDevicesIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetMyDevicesIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetMyDevicesIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetMyDevicesIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetMyDevicesIntegrationRequest} - */ -proto.api.GetMyDevicesIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetMyDevicesIntegrationRequest; - return proto.api.GetMyDevicesIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetMyDevicesIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetMyDevicesIntegrationRequest} - */ -proto.api.GetMyDevicesIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetMyDevicesIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetMyDevicesIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetMyDevicesIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetMyDevicesIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetMyDevicesIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetMyDevicesIntegrationRequest} returns this - */ -proto.api.GetMyDevicesIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetMyDevicesIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetMyDevicesIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetMyDevicesIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetMyDevicesIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.MyDevicesIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetMyDevicesIntegrationResponse} - */ -proto.api.GetMyDevicesIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetMyDevicesIntegrationResponse; - return proto.api.GetMyDevicesIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetMyDevicesIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetMyDevicesIntegrationResponse} - */ -proto.api.GetMyDevicesIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.MyDevicesIntegration; - reader.readMessage(value,proto.api.MyDevicesIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetMyDevicesIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetMyDevicesIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetMyDevicesIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetMyDevicesIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.MyDevicesIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional MyDevicesIntegration integration = 1; - * @return {?proto.api.MyDevicesIntegration} - */ -proto.api.GetMyDevicesIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.MyDevicesIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.MyDevicesIntegration, 1)); -}; - - -/** - * @param {?proto.api.MyDevicesIntegration|undefined} value - * @return {!proto.api.GetMyDevicesIntegrationResponse} returns this -*/ -proto.api.GetMyDevicesIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetMyDevicesIntegrationResponse} returns this - */ -proto.api.GetMyDevicesIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetMyDevicesIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateMyDevicesIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateMyDevicesIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateMyDevicesIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateMyDevicesIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.MyDevicesIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateMyDevicesIntegrationRequest} - */ -proto.api.UpdateMyDevicesIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateMyDevicesIntegrationRequest; - return proto.api.UpdateMyDevicesIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateMyDevicesIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateMyDevicesIntegrationRequest} - */ -proto.api.UpdateMyDevicesIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.MyDevicesIntegration; - reader.readMessage(value,proto.api.MyDevicesIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateMyDevicesIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateMyDevicesIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateMyDevicesIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateMyDevicesIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.MyDevicesIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional MyDevicesIntegration integration = 1; - * @return {?proto.api.MyDevicesIntegration} - */ -proto.api.UpdateMyDevicesIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.MyDevicesIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.MyDevicesIntegration, 1)); -}; - - -/** - * @param {?proto.api.MyDevicesIntegration|undefined} value - * @return {!proto.api.UpdateMyDevicesIntegrationRequest} returns this -*/ -proto.api.UpdateMyDevicesIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateMyDevicesIntegrationRequest} returns this - */ -proto.api.UpdateMyDevicesIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateMyDevicesIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteMyDevicesIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteMyDevicesIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteMyDevicesIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteMyDevicesIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteMyDevicesIntegrationRequest} - */ -proto.api.DeleteMyDevicesIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteMyDevicesIntegrationRequest; - return proto.api.DeleteMyDevicesIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteMyDevicesIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteMyDevicesIntegrationRequest} - */ -proto.api.DeleteMyDevicesIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteMyDevicesIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteMyDevicesIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteMyDevicesIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteMyDevicesIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeleteMyDevicesIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteMyDevicesIntegrationRequest} returns this - */ -proto.api.DeleteMyDevicesIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.LoraCloudIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.LoraCloudIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.LoraCloudIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LoraCloudIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - modemGeolocationServices: (f = msg.getModemGeolocationServices()) && proto.api.LoraCloudModemGeolocationServices.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.LoraCloudIntegration} - */ -proto.api.LoraCloudIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.LoraCloudIntegration; - return proto.api.LoraCloudIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.LoraCloudIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.LoraCloudIntegration} - */ -proto.api.LoraCloudIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = new proto.api.LoraCloudModemGeolocationServices; - reader.readMessage(value,proto.api.LoraCloudModemGeolocationServices.deserializeBinaryFromReader); - msg.setModemGeolocationServices(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.LoraCloudIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.LoraCloudIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.LoraCloudIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LoraCloudIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getModemGeolocationServices(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.api.LoraCloudModemGeolocationServices.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.LoraCloudIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LoraCloudIntegration} returns this - */ -proto.api.LoraCloudIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional LoraCloudModemGeolocationServices modem_geolocation_services = 2; - * @return {?proto.api.LoraCloudModemGeolocationServices} - */ -proto.api.LoraCloudIntegration.prototype.getModemGeolocationServices = function() { - return /** @type{?proto.api.LoraCloudModemGeolocationServices} */ ( - jspb.Message.getWrapperField(this, proto.api.LoraCloudModemGeolocationServices, 2)); -}; - - -/** - * @param {?proto.api.LoraCloudModemGeolocationServices|undefined} value - * @return {!proto.api.LoraCloudIntegration} returns this -*/ -proto.api.LoraCloudIntegration.prototype.setModemGeolocationServices = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.LoraCloudIntegration} returns this - */ -proto.api.LoraCloudIntegration.prototype.clearModemGeolocationServices = function() { - return this.setModemGeolocationServices(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.LoraCloudIntegration.prototype.hasModemGeolocationServices = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.LoraCloudModemGeolocationServices.repeatedFields_ = [16]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.toObject = function(opt_includeInstance) { - return proto.api.LoraCloudModemGeolocationServices.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.LoraCloudModemGeolocationServices} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LoraCloudModemGeolocationServices.toObject = function(includeInstance, msg) { - var f, obj = { - token: jspb.Message.getFieldWithDefault(msg, 1, ""), - modemEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - forwardFPortsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? undefined : f, - gnssUseRxTime: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - gnssUseGatewayLocation: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), - parseTlv: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - geolocationBufferTtl: jspb.Message.getFieldWithDefault(msg, 7, 0), - geolocationMinBufferSize: jspb.Message.getFieldWithDefault(msg, 8, 0), - geolocationTdoa: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - geolocationRssi: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - geolocationGnss: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), - geolocationGnssPayloadField: jspb.Message.getFieldWithDefault(msg, 12, ""), - geolocationGnssUseRxTime: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), - geolocationWifi: jspb.Message.getBooleanFieldWithDefault(msg, 14, false), - geolocationWifiPayloadField: jspb.Message.getFieldWithDefault(msg, 15, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.LoraCloudModemGeolocationServices} - */ -proto.api.LoraCloudModemGeolocationServices.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.LoraCloudModemGeolocationServices; - return proto.api.LoraCloudModemGeolocationServices.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.LoraCloudModemGeolocationServices} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.LoraCloudModemGeolocationServices} - */ -proto.api.LoraCloudModemGeolocationServices.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setToken(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setModemEnabled(value); - break; - case 16: - var value = /** @type {!Array} */ (reader.readPackedUint32()); - msg.setForwardFPortsList(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setGnssUseRxTime(value); - break; - case 17: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setGnssUseGatewayLocation(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setParseTlv(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setGeolocationBufferTtl(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setGeolocationMinBufferSize(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setGeolocationTdoa(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setGeolocationRssi(value); - break; - case 11: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setGeolocationGnss(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setGeolocationGnssPayloadField(value); - break; - case 13: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setGeolocationGnssUseRxTime(value); - break; - case 14: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setGeolocationWifi(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.setGeolocationWifiPayloadField(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.LoraCloudModemGeolocationServices.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.LoraCloudModemGeolocationServices} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LoraCloudModemGeolocationServices.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getToken(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getModemEnabled(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getForwardFPortsList(); - if (f.length > 0) { - writer.writePackedUint32( - 16, - f - ); - } - f = message.getGnssUseRxTime(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getGnssUseGatewayLocation(); - if (f) { - writer.writeBool( - 17, - f - ); - } - f = message.getParseTlv(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getGeolocationBufferTtl(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getGeolocationMinBufferSize(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getGeolocationTdoa(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getGeolocationRssi(); - if (f) { - writer.writeBool( - 10, - f - ); - } - f = message.getGeolocationGnss(); - if (f) { - writer.writeBool( - 11, - f - ); - } - f = message.getGeolocationGnssPayloadField(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getGeolocationGnssUseRxTime(); - if (f) { - writer.writeBool( - 13, - f - ); - } - f = message.getGeolocationWifi(); - if (f) { - writer.writeBool( - 14, - f - ); - } - f = message.getGeolocationWifiPayloadField(); - if (f.length > 0) { - writer.writeString( - 15, - f - ); - } -}; - - -/** - * optional string token = 1; - * @return {string} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setToken = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool modem_enabled = 2; - * @return {boolean} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getModemEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setModemEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * repeated uint32 forward_f_ports = 16; - * @return {!Array} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getForwardFPortsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 16)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setForwardFPortsList = function(value) { - return jspb.Message.setField(this, 16, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.addForwardFPorts = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 16, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.clearForwardFPortsList = function() { - return this.setForwardFPortsList([]); -}; - - -/** - * optional bool gnss_use_rx_time = 5; - * @return {boolean} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGnssUseRxTime = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGnssUseRxTime = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool gnss_use_gateway_location = 17; - * @return {boolean} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGnssUseGatewayLocation = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGnssUseGatewayLocation = function(value) { - return jspb.Message.setProto3BooleanField(this, 17, value); -}; - - -/** - * optional bool parse_tlv = 6; - * @return {boolean} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getParseTlv = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setParseTlv = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional uint32 geolocation_buffer_ttl = 7; - * @return {number} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGeolocationBufferTtl = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGeolocationBufferTtl = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional uint32 geolocation_min_buffer_size = 8; - * @return {number} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGeolocationMinBufferSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGeolocationMinBufferSize = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional bool geolocation_tdoa = 9; - * @return {boolean} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGeolocationTdoa = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGeolocationTdoa = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - -/** - * optional bool geolocation_rssi = 10; - * @return {boolean} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGeolocationRssi = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGeolocationRssi = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); -}; - - -/** - * optional bool geolocation_gnss = 11; - * @return {boolean} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGeolocationGnss = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGeolocationGnss = function(value) { - return jspb.Message.setProto3BooleanField(this, 11, value); -}; - - -/** - * optional string geolocation_gnss_payload_field = 12; - * @return {string} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGeolocationGnssPayloadField = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGeolocationGnssPayloadField = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional bool geolocation_gnss_use_rx_time = 13; - * @return {boolean} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGeolocationGnssUseRxTime = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGeolocationGnssUseRxTime = function(value) { - return jspb.Message.setProto3BooleanField(this, 13, value); -}; - - -/** - * optional bool geolocation_wifi = 14; - * @return {boolean} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGeolocationWifi = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGeolocationWifi = function(value) { - return jspb.Message.setProto3BooleanField(this, 14, value); -}; - - -/** - * optional string geolocation_wifi_payload_field = 15; - * @return {string} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGeolocationWifiPayloadField = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGeolocationWifiPayloadField = function(value) { - return jspb.Message.setProto3StringField(this, 15, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateLoraCloudIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateLoraCloudIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateLoraCloudIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateLoraCloudIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.LoraCloudIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateLoraCloudIntegrationRequest} - */ -proto.api.CreateLoraCloudIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateLoraCloudIntegrationRequest; - return proto.api.CreateLoraCloudIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateLoraCloudIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateLoraCloudIntegrationRequest} - */ -proto.api.CreateLoraCloudIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.LoraCloudIntegration; - reader.readMessage(value,proto.api.LoraCloudIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateLoraCloudIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateLoraCloudIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateLoraCloudIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateLoraCloudIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.LoraCloudIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional LoraCloudIntegration integration = 1; - * @return {?proto.api.LoraCloudIntegration} - */ -proto.api.CreateLoraCloudIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.LoraCloudIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.LoraCloudIntegration, 1)); -}; - - -/** - * @param {?proto.api.LoraCloudIntegration|undefined} value - * @return {!proto.api.CreateLoraCloudIntegrationRequest} returns this -*/ -proto.api.CreateLoraCloudIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateLoraCloudIntegrationRequest} returns this - */ -proto.api.CreateLoraCloudIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateLoraCloudIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetLoraCloudIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetLoraCloudIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetLoraCloudIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetLoraCloudIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetLoraCloudIntegrationRequest} - */ -proto.api.GetLoraCloudIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetLoraCloudIntegrationRequest; - return proto.api.GetLoraCloudIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetLoraCloudIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetLoraCloudIntegrationRequest} - */ -proto.api.GetLoraCloudIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetLoraCloudIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetLoraCloudIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetLoraCloudIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetLoraCloudIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetLoraCloudIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetLoraCloudIntegrationRequest} returns this - */ -proto.api.GetLoraCloudIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetLoraCloudIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetLoraCloudIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetLoraCloudIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetLoraCloudIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.LoraCloudIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetLoraCloudIntegrationResponse} - */ -proto.api.GetLoraCloudIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetLoraCloudIntegrationResponse; - return proto.api.GetLoraCloudIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetLoraCloudIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetLoraCloudIntegrationResponse} - */ -proto.api.GetLoraCloudIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.LoraCloudIntegration; - reader.readMessage(value,proto.api.LoraCloudIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetLoraCloudIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetLoraCloudIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetLoraCloudIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetLoraCloudIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.LoraCloudIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional LoraCloudIntegration integration = 1; - * @return {?proto.api.LoraCloudIntegration} - */ -proto.api.GetLoraCloudIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.LoraCloudIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.LoraCloudIntegration, 1)); -}; - - -/** - * @param {?proto.api.LoraCloudIntegration|undefined} value - * @return {!proto.api.GetLoraCloudIntegrationResponse} returns this -*/ -proto.api.GetLoraCloudIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetLoraCloudIntegrationResponse} returns this - */ -proto.api.GetLoraCloudIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetLoraCloudIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateLoraCloudIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateLoraCloudIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateLoraCloudIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateLoraCloudIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.LoraCloudIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateLoraCloudIntegrationRequest} - */ -proto.api.UpdateLoraCloudIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateLoraCloudIntegrationRequest; - return proto.api.UpdateLoraCloudIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateLoraCloudIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateLoraCloudIntegrationRequest} - */ -proto.api.UpdateLoraCloudIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.LoraCloudIntegration; - reader.readMessage(value,proto.api.LoraCloudIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateLoraCloudIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateLoraCloudIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateLoraCloudIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateLoraCloudIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.LoraCloudIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional LoraCloudIntegration integration = 1; - * @return {?proto.api.LoraCloudIntegration} - */ -proto.api.UpdateLoraCloudIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.LoraCloudIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.LoraCloudIntegration, 1)); -}; - - -/** - * @param {?proto.api.LoraCloudIntegration|undefined} value - * @return {!proto.api.UpdateLoraCloudIntegrationRequest} returns this -*/ -proto.api.UpdateLoraCloudIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateLoraCloudIntegrationRequest} returns this - */ -proto.api.UpdateLoraCloudIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateLoraCloudIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteLoraCloudIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteLoraCloudIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteLoraCloudIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteLoraCloudIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteLoraCloudIntegrationRequest} - */ -proto.api.DeleteLoraCloudIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteLoraCloudIntegrationRequest; - return proto.api.DeleteLoraCloudIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteLoraCloudIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteLoraCloudIntegrationRequest} - */ -proto.api.DeleteLoraCloudIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteLoraCloudIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteLoraCloudIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteLoraCloudIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteLoraCloudIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeleteLoraCloudIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteLoraCloudIntegrationRequest} returns this - */ -proto.api.DeleteLoraCloudIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GcpPubSubIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.GcpPubSubIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GcpPubSubIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GcpPubSubIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - encoding: jspb.Message.getFieldWithDefault(msg, 2, 0), - credentialsFile: jspb.Message.getFieldWithDefault(msg, 3, ""), - projectId: jspb.Message.getFieldWithDefault(msg, 4, ""), - topicName: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GcpPubSubIntegration} - */ -proto.api.GcpPubSubIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GcpPubSubIntegration; - return proto.api.GcpPubSubIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GcpPubSubIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GcpPubSubIntegration} - */ -proto.api.GcpPubSubIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {!proto.api.Encoding} */ (reader.readEnum()); - msg.setEncoding(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setCredentialsFile(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setTopicName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GcpPubSubIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GcpPubSubIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GcpPubSubIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GcpPubSubIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEncoding(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getCredentialsFile(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getTopicName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GcpPubSubIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GcpPubSubIntegration} returns this - */ -proto.api.GcpPubSubIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Encoding encoding = 2; - * @return {!proto.api.Encoding} - */ -proto.api.GcpPubSubIntegration.prototype.getEncoding = function() { - return /** @type {!proto.api.Encoding} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.api.Encoding} value - * @return {!proto.api.GcpPubSubIntegration} returns this - */ -proto.api.GcpPubSubIntegration.prototype.setEncoding = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string credentials_file = 3; - * @return {string} - */ -proto.api.GcpPubSubIntegration.prototype.getCredentialsFile = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GcpPubSubIntegration} returns this - */ -proto.api.GcpPubSubIntegration.prototype.setCredentialsFile = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string project_id = 4; - * @return {string} - */ -proto.api.GcpPubSubIntegration.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GcpPubSubIntegration} returns this - */ -proto.api.GcpPubSubIntegration.prototype.setProjectId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string topic_name = 5; - * @return {string} - */ -proto.api.GcpPubSubIntegration.prototype.getTopicName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GcpPubSubIntegration} returns this - */ -proto.api.GcpPubSubIntegration.prototype.setTopicName = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateGcpPubSubIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateGcpPubSubIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateGcpPubSubIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateGcpPubSubIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.GcpPubSubIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateGcpPubSubIntegrationRequest} - */ -proto.api.CreateGcpPubSubIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateGcpPubSubIntegrationRequest; - return proto.api.CreateGcpPubSubIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateGcpPubSubIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateGcpPubSubIntegrationRequest} - */ -proto.api.CreateGcpPubSubIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.GcpPubSubIntegration; - reader.readMessage(value,proto.api.GcpPubSubIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateGcpPubSubIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateGcpPubSubIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateGcpPubSubIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateGcpPubSubIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.GcpPubSubIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional GcpPubSubIntegration integration = 1; - * @return {?proto.api.GcpPubSubIntegration} - */ -proto.api.CreateGcpPubSubIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.GcpPubSubIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.GcpPubSubIntegration, 1)); -}; - - -/** - * @param {?proto.api.GcpPubSubIntegration|undefined} value - * @return {!proto.api.CreateGcpPubSubIntegrationRequest} returns this -*/ -proto.api.CreateGcpPubSubIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateGcpPubSubIntegrationRequest} returns this - */ -proto.api.CreateGcpPubSubIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateGcpPubSubIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetGcpPubSubIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetGcpPubSubIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetGcpPubSubIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGcpPubSubIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetGcpPubSubIntegrationRequest} - */ -proto.api.GetGcpPubSubIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetGcpPubSubIntegrationRequest; - return proto.api.GetGcpPubSubIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetGcpPubSubIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetGcpPubSubIntegrationRequest} - */ -proto.api.GetGcpPubSubIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetGcpPubSubIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetGcpPubSubIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetGcpPubSubIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGcpPubSubIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetGcpPubSubIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetGcpPubSubIntegrationRequest} returns this - */ -proto.api.GetGcpPubSubIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetGcpPubSubIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetGcpPubSubIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetGcpPubSubIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGcpPubSubIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.GcpPubSubIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetGcpPubSubIntegrationResponse} - */ -proto.api.GetGcpPubSubIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetGcpPubSubIntegrationResponse; - return proto.api.GetGcpPubSubIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetGcpPubSubIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetGcpPubSubIntegrationResponse} - */ -proto.api.GetGcpPubSubIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.GcpPubSubIntegration; - reader.readMessage(value,proto.api.GcpPubSubIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetGcpPubSubIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetGcpPubSubIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetGcpPubSubIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGcpPubSubIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.GcpPubSubIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional GcpPubSubIntegration integration = 1; - * @return {?proto.api.GcpPubSubIntegration} - */ -proto.api.GetGcpPubSubIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.GcpPubSubIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.GcpPubSubIntegration, 1)); -}; - - -/** - * @param {?proto.api.GcpPubSubIntegration|undefined} value - * @return {!proto.api.GetGcpPubSubIntegrationResponse} returns this -*/ -proto.api.GetGcpPubSubIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGcpPubSubIntegrationResponse} returns this - */ -proto.api.GetGcpPubSubIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGcpPubSubIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateGcpPubSubIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateGcpPubSubIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateGcpPubSubIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateGcpPubSubIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.GcpPubSubIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateGcpPubSubIntegrationRequest} - */ -proto.api.UpdateGcpPubSubIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateGcpPubSubIntegrationRequest; - return proto.api.UpdateGcpPubSubIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateGcpPubSubIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateGcpPubSubIntegrationRequest} - */ -proto.api.UpdateGcpPubSubIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.GcpPubSubIntegration; - reader.readMessage(value,proto.api.GcpPubSubIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateGcpPubSubIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateGcpPubSubIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateGcpPubSubIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateGcpPubSubIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.GcpPubSubIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional GcpPubSubIntegration integration = 1; - * @return {?proto.api.GcpPubSubIntegration} - */ -proto.api.UpdateGcpPubSubIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.GcpPubSubIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.GcpPubSubIntegration, 1)); -}; - - -/** - * @param {?proto.api.GcpPubSubIntegration|undefined} value - * @return {!proto.api.UpdateGcpPubSubIntegrationRequest} returns this -*/ -proto.api.UpdateGcpPubSubIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateGcpPubSubIntegrationRequest} returns this - */ -proto.api.UpdateGcpPubSubIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateGcpPubSubIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteGcpPubSubIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteGcpPubSubIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteGcpPubSubIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteGcpPubSubIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteGcpPubSubIntegrationRequest} - */ -proto.api.DeleteGcpPubSubIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteGcpPubSubIntegrationRequest; - return proto.api.DeleteGcpPubSubIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteGcpPubSubIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteGcpPubSubIntegrationRequest} - */ -proto.api.DeleteGcpPubSubIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteGcpPubSubIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteGcpPubSubIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteGcpPubSubIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteGcpPubSubIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeleteGcpPubSubIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteGcpPubSubIntegrationRequest} returns this - */ -proto.api.DeleteGcpPubSubIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.AwsSnsIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.AwsSnsIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.AwsSnsIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AwsSnsIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - encoding: jspb.Message.getFieldWithDefault(msg, 2, 0), - region: jspb.Message.getFieldWithDefault(msg, 3, ""), - accessKeyId: jspb.Message.getFieldWithDefault(msg, 4, ""), - secretAccessKey: jspb.Message.getFieldWithDefault(msg, 5, ""), - topicArn: jspb.Message.getFieldWithDefault(msg, 6, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.AwsSnsIntegration} - */ -proto.api.AwsSnsIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.AwsSnsIntegration; - return proto.api.AwsSnsIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.AwsSnsIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.AwsSnsIntegration} - */ -proto.api.AwsSnsIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {!proto.api.Encoding} */ (reader.readEnum()); - msg.setEncoding(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setRegion(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setAccessKeyId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setSecretAccessKey(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setTopicArn(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.AwsSnsIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.AwsSnsIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.AwsSnsIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AwsSnsIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEncoding(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getRegion(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getAccessKeyId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getSecretAccessKey(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getTopicArn(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.AwsSnsIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AwsSnsIntegration} returns this - */ -proto.api.AwsSnsIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Encoding encoding = 2; - * @return {!proto.api.Encoding} - */ -proto.api.AwsSnsIntegration.prototype.getEncoding = function() { - return /** @type {!proto.api.Encoding} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.api.Encoding} value - * @return {!proto.api.AwsSnsIntegration} returns this - */ -proto.api.AwsSnsIntegration.prototype.setEncoding = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string region = 3; - * @return {string} - */ -proto.api.AwsSnsIntegration.prototype.getRegion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AwsSnsIntegration} returns this - */ -proto.api.AwsSnsIntegration.prototype.setRegion = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string access_key_id = 4; - * @return {string} - */ -proto.api.AwsSnsIntegration.prototype.getAccessKeyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AwsSnsIntegration} returns this - */ -proto.api.AwsSnsIntegration.prototype.setAccessKeyId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string secret_access_key = 5; - * @return {string} - */ -proto.api.AwsSnsIntegration.prototype.getSecretAccessKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AwsSnsIntegration} returns this - */ -proto.api.AwsSnsIntegration.prototype.setSecretAccessKey = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string topic_arn = 6; - * @return {string} - */ -proto.api.AwsSnsIntegration.prototype.getTopicArn = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AwsSnsIntegration} returns this - */ -proto.api.AwsSnsIntegration.prototype.setTopicArn = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateAwsSnsIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateAwsSnsIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateAwsSnsIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateAwsSnsIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.AwsSnsIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateAwsSnsIntegrationRequest} - */ -proto.api.CreateAwsSnsIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateAwsSnsIntegrationRequest; - return proto.api.CreateAwsSnsIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateAwsSnsIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateAwsSnsIntegrationRequest} - */ -proto.api.CreateAwsSnsIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.AwsSnsIntegration; - reader.readMessage(value,proto.api.AwsSnsIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateAwsSnsIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateAwsSnsIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateAwsSnsIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateAwsSnsIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.AwsSnsIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional AwsSnsIntegration integration = 1; - * @return {?proto.api.AwsSnsIntegration} - */ -proto.api.CreateAwsSnsIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.AwsSnsIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.AwsSnsIntegration, 1)); -}; - - -/** - * @param {?proto.api.AwsSnsIntegration|undefined} value - * @return {!proto.api.CreateAwsSnsIntegrationRequest} returns this -*/ -proto.api.CreateAwsSnsIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateAwsSnsIntegrationRequest} returns this - */ -proto.api.CreateAwsSnsIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateAwsSnsIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetAwsSnsIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetAwsSnsIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetAwsSnsIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetAwsSnsIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetAwsSnsIntegrationRequest} - */ -proto.api.GetAwsSnsIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetAwsSnsIntegrationRequest; - return proto.api.GetAwsSnsIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetAwsSnsIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetAwsSnsIntegrationRequest} - */ -proto.api.GetAwsSnsIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetAwsSnsIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetAwsSnsIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetAwsSnsIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetAwsSnsIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetAwsSnsIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetAwsSnsIntegrationRequest} returns this - */ -proto.api.GetAwsSnsIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetAwsSnsIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetAwsSnsIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetAwsSnsIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetAwsSnsIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.AwsSnsIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetAwsSnsIntegrationResponse} - */ -proto.api.GetAwsSnsIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetAwsSnsIntegrationResponse; - return proto.api.GetAwsSnsIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetAwsSnsIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetAwsSnsIntegrationResponse} - */ -proto.api.GetAwsSnsIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.AwsSnsIntegration; - reader.readMessage(value,proto.api.AwsSnsIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetAwsSnsIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetAwsSnsIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetAwsSnsIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetAwsSnsIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.AwsSnsIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional AwsSnsIntegration integration = 1; - * @return {?proto.api.AwsSnsIntegration} - */ -proto.api.GetAwsSnsIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.AwsSnsIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.AwsSnsIntegration, 1)); -}; - - -/** - * @param {?proto.api.AwsSnsIntegration|undefined} value - * @return {!proto.api.GetAwsSnsIntegrationResponse} returns this -*/ -proto.api.GetAwsSnsIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetAwsSnsIntegrationResponse} returns this - */ -proto.api.GetAwsSnsIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetAwsSnsIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateAwsSnsIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateAwsSnsIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateAwsSnsIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateAwsSnsIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.AwsSnsIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateAwsSnsIntegrationRequest} - */ -proto.api.UpdateAwsSnsIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateAwsSnsIntegrationRequest; - return proto.api.UpdateAwsSnsIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateAwsSnsIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateAwsSnsIntegrationRequest} - */ -proto.api.UpdateAwsSnsIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.AwsSnsIntegration; - reader.readMessage(value,proto.api.AwsSnsIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateAwsSnsIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateAwsSnsIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateAwsSnsIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateAwsSnsIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.AwsSnsIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional AwsSnsIntegration integration = 1; - * @return {?proto.api.AwsSnsIntegration} - */ -proto.api.UpdateAwsSnsIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.AwsSnsIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.AwsSnsIntegration, 1)); -}; - - -/** - * @param {?proto.api.AwsSnsIntegration|undefined} value - * @return {!proto.api.UpdateAwsSnsIntegrationRequest} returns this -*/ -proto.api.UpdateAwsSnsIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateAwsSnsIntegrationRequest} returns this - */ -proto.api.UpdateAwsSnsIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateAwsSnsIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteAwsSnsIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteAwsSnsIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteAwsSnsIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteAwsSnsIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteAwsSnsIntegrationRequest} - */ -proto.api.DeleteAwsSnsIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteAwsSnsIntegrationRequest; - return proto.api.DeleteAwsSnsIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteAwsSnsIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteAwsSnsIntegrationRequest} - */ -proto.api.DeleteAwsSnsIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteAwsSnsIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteAwsSnsIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteAwsSnsIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteAwsSnsIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeleteAwsSnsIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteAwsSnsIntegrationRequest} returns this - */ -proto.api.DeleteAwsSnsIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.AzureServiceBusIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.AzureServiceBusIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.AzureServiceBusIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AzureServiceBusIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - encoding: jspb.Message.getFieldWithDefault(msg, 2, 0), - connectionString: jspb.Message.getFieldWithDefault(msg, 3, ""), - publishName: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.AzureServiceBusIntegration} - */ -proto.api.AzureServiceBusIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.AzureServiceBusIntegration; - return proto.api.AzureServiceBusIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.AzureServiceBusIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.AzureServiceBusIntegration} - */ -proto.api.AzureServiceBusIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {!proto.api.Encoding} */ (reader.readEnum()); - msg.setEncoding(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setConnectionString(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPublishName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.AzureServiceBusIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.AzureServiceBusIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.AzureServiceBusIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AzureServiceBusIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEncoding(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getConnectionString(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPublishName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.AzureServiceBusIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AzureServiceBusIntegration} returns this - */ -proto.api.AzureServiceBusIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Encoding encoding = 2; - * @return {!proto.api.Encoding} - */ -proto.api.AzureServiceBusIntegration.prototype.getEncoding = function() { - return /** @type {!proto.api.Encoding} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.api.Encoding} value - * @return {!proto.api.AzureServiceBusIntegration} returns this - */ -proto.api.AzureServiceBusIntegration.prototype.setEncoding = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string connection_string = 3; - * @return {string} - */ -proto.api.AzureServiceBusIntegration.prototype.getConnectionString = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AzureServiceBusIntegration} returns this - */ -proto.api.AzureServiceBusIntegration.prototype.setConnectionString = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string publish_name = 4; - * @return {string} - */ -proto.api.AzureServiceBusIntegration.prototype.getPublishName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AzureServiceBusIntegration} returns this - */ -proto.api.AzureServiceBusIntegration.prototype.setPublishName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateAzureServiceBusIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateAzureServiceBusIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateAzureServiceBusIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateAzureServiceBusIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.AzureServiceBusIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateAzureServiceBusIntegrationRequest} - */ -proto.api.CreateAzureServiceBusIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateAzureServiceBusIntegrationRequest; - return proto.api.CreateAzureServiceBusIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateAzureServiceBusIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateAzureServiceBusIntegrationRequest} - */ -proto.api.CreateAzureServiceBusIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.AzureServiceBusIntegration; - reader.readMessage(value,proto.api.AzureServiceBusIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateAzureServiceBusIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateAzureServiceBusIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateAzureServiceBusIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateAzureServiceBusIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.AzureServiceBusIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional AzureServiceBusIntegration integration = 1; - * @return {?proto.api.AzureServiceBusIntegration} - */ -proto.api.CreateAzureServiceBusIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.AzureServiceBusIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.AzureServiceBusIntegration, 1)); -}; - - -/** - * @param {?proto.api.AzureServiceBusIntegration|undefined} value - * @return {!proto.api.CreateAzureServiceBusIntegrationRequest} returns this -*/ -proto.api.CreateAzureServiceBusIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateAzureServiceBusIntegrationRequest} returns this - */ -proto.api.CreateAzureServiceBusIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateAzureServiceBusIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetAzureServiceBusIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetAzureServiceBusIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetAzureServiceBusIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetAzureServiceBusIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetAzureServiceBusIntegrationRequest} - */ -proto.api.GetAzureServiceBusIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetAzureServiceBusIntegrationRequest; - return proto.api.GetAzureServiceBusIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetAzureServiceBusIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetAzureServiceBusIntegrationRequest} - */ -proto.api.GetAzureServiceBusIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetAzureServiceBusIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetAzureServiceBusIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetAzureServiceBusIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetAzureServiceBusIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetAzureServiceBusIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetAzureServiceBusIntegrationRequest} returns this - */ -proto.api.GetAzureServiceBusIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetAzureServiceBusIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetAzureServiceBusIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetAzureServiceBusIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetAzureServiceBusIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.AzureServiceBusIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetAzureServiceBusIntegrationResponse} - */ -proto.api.GetAzureServiceBusIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetAzureServiceBusIntegrationResponse; - return proto.api.GetAzureServiceBusIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetAzureServiceBusIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetAzureServiceBusIntegrationResponse} - */ -proto.api.GetAzureServiceBusIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.AzureServiceBusIntegration; - reader.readMessage(value,proto.api.AzureServiceBusIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetAzureServiceBusIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetAzureServiceBusIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetAzureServiceBusIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetAzureServiceBusIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.AzureServiceBusIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional AzureServiceBusIntegration integration = 1; - * @return {?proto.api.AzureServiceBusIntegration} - */ -proto.api.GetAzureServiceBusIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.AzureServiceBusIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.AzureServiceBusIntegration, 1)); -}; - - -/** - * @param {?proto.api.AzureServiceBusIntegration|undefined} value - * @return {!proto.api.GetAzureServiceBusIntegrationResponse} returns this -*/ -proto.api.GetAzureServiceBusIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetAzureServiceBusIntegrationResponse} returns this - */ -proto.api.GetAzureServiceBusIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetAzureServiceBusIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateAzureServiceBusIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateAzureServiceBusIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateAzureServiceBusIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateAzureServiceBusIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.AzureServiceBusIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateAzureServiceBusIntegrationRequest} - */ -proto.api.UpdateAzureServiceBusIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateAzureServiceBusIntegrationRequest; - return proto.api.UpdateAzureServiceBusIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateAzureServiceBusIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateAzureServiceBusIntegrationRequest} - */ -proto.api.UpdateAzureServiceBusIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.AzureServiceBusIntegration; - reader.readMessage(value,proto.api.AzureServiceBusIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateAzureServiceBusIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateAzureServiceBusIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateAzureServiceBusIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateAzureServiceBusIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.AzureServiceBusIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional AzureServiceBusIntegration integration = 1; - * @return {?proto.api.AzureServiceBusIntegration} - */ -proto.api.UpdateAzureServiceBusIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.AzureServiceBusIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.AzureServiceBusIntegration, 1)); -}; - - -/** - * @param {?proto.api.AzureServiceBusIntegration|undefined} value - * @return {!proto.api.UpdateAzureServiceBusIntegrationRequest} returns this -*/ -proto.api.UpdateAzureServiceBusIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateAzureServiceBusIntegrationRequest} returns this - */ -proto.api.UpdateAzureServiceBusIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateAzureServiceBusIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteAzureServiceBusIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteAzureServiceBusIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteAzureServiceBusIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteAzureServiceBusIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteAzureServiceBusIntegrationRequest} - */ -proto.api.DeleteAzureServiceBusIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteAzureServiceBusIntegrationRequest; - return proto.api.DeleteAzureServiceBusIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteAzureServiceBusIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteAzureServiceBusIntegrationRequest} - */ -proto.api.DeleteAzureServiceBusIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteAzureServiceBusIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteAzureServiceBusIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteAzureServiceBusIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteAzureServiceBusIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeleteAzureServiceBusIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteAzureServiceBusIntegrationRequest} returns this - */ -proto.api.DeleteAzureServiceBusIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.PilotThingsIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.PilotThingsIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.PilotThingsIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.PilotThingsIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - server: jspb.Message.getFieldWithDefault(msg, 2, ""), - token: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.PilotThingsIntegration} - */ -proto.api.PilotThingsIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.PilotThingsIntegration; - return proto.api.PilotThingsIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.PilotThingsIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.PilotThingsIntegration} - */ -proto.api.PilotThingsIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setServer(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setToken(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.PilotThingsIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.PilotThingsIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.PilotThingsIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.PilotThingsIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getServer(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getToken(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.PilotThingsIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.PilotThingsIntegration} returns this - */ -proto.api.PilotThingsIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string server = 2; - * @return {string} - */ -proto.api.PilotThingsIntegration.prototype.getServer = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.PilotThingsIntegration} returns this - */ -proto.api.PilotThingsIntegration.prototype.setServer = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string token = 3; - * @return {string} - */ -proto.api.PilotThingsIntegration.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.PilotThingsIntegration} returns this - */ -proto.api.PilotThingsIntegration.prototype.setToken = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreatePilotThingsIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreatePilotThingsIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreatePilotThingsIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreatePilotThingsIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.PilotThingsIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreatePilotThingsIntegrationRequest} - */ -proto.api.CreatePilotThingsIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreatePilotThingsIntegrationRequest; - return proto.api.CreatePilotThingsIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreatePilotThingsIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreatePilotThingsIntegrationRequest} - */ -proto.api.CreatePilotThingsIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.PilotThingsIntegration; - reader.readMessage(value,proto.api.PilotThingsIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreatePilotThingsIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreatePilotThingsIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreatePilotThingsIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreatePilotThingsIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.PilotThingsIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional PilotThingsIntegration integration = 1; - * @return {?proto.api.PilotThingsIntegration} - */ -proto.api.CreatePilotThingsIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.PilotThingsIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.PilotThingsIntegration, 1)); -}; - - -/** - * @param {?proto.api.PilotThingsIntegration|undefined} value - * @return {!proto.api.CreatePilotThingsIntegrationRequest} returns this -*/ -proto.api.CreatePilotThingsIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreatePilotThingsIntegrationRequest} returns this - */ -proto.api.CreatePilotThingsIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreatePilotThingsIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetPilotThingsIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetPilotThingsIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetPilotThingsIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetPilotThingsIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetPilotThingsIntegrationRequest} - */ -proto.api.GetPilotThingsIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetPilotThingsIntegrationRequest; - return proto.api.GetPilotThingsIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetPilotThingsIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetPilotThingsIntegrationRequest} - */ -proto.api.GetPilotThingsIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetPilotThingsIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetPilotThingsIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetPilotThingsIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetPilotThingsIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetPilotThingsIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetPilotThingsIntegrationRequest} returns this - */ -proto.api.GetPilotThingsIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetPilotThingsIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetPilotThingsIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetPilotThingsIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetPilotThingsIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.PilotThingsIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetPilotThingsIntegrationResponse} - */ -proto.api.GetPilotThingsIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetPilotThingsIntegrationResponse; - return proto.api.GetPilotThingsIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetPilotThingsIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetPilotThingsIntegrationResponse} - */ -proto.api.GetPilotThingsIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.PilotThingsIntegration; - reader.readMessage(value,proto.api.PilotThingsIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetPilotThingsIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetPilotThingsIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetPilotThingsIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetPilotThingsIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.PilotThingsIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional PilotThingsIntegration integration = 1; - * @return {?proto.api.PilotThingsIntegration} - */ -proto.api.GetPilotThingsIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.PilotThingsIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.PilotThingsIntegration, 1)); -}; - - -/** - * @param {?proto.api.PilotThingsIntegration|undefined} value - * @return {!proto.api.GetPilotThingsIntegrationResponse} returns this -*/ -proto.api.GetPilotThingsIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetPilotThingsIntegrationResponse} returns this - */ -proto.api.GetPilotThingsIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetPilotThingsIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdatePilotThingsIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdatePilotThingsIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdatePilotThingsIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdatePilotThingsIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.PilotThingsIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdatePilotThingsIntegrationRequest} - */ -proto.api.UpdatePilotThingsIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdatePilotThingsIntegrationRequest; - return proto.api.UpdatePilotThingsIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdatePilotThingsIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdatePilotThingsIntegrationRequest} - */ -proto.api.UpdatePilotThingsIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.PilotThingsIntegration; - reader.readMessage(value,proto.api.PilotThingsIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdatePilotThingsIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdatePilotThingsIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdatePilotThingsIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdatePilotThingsIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.PilotThingsIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional PilotThingsIntegration integration = 1; - * @return {?proto.api.PilotThingsIntegration} - */ -proto.api.UpdatePilotThingsIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.PilotThingsIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.PilotThingsIntegration, 1)); -}; - - -/** - * @param {?proto.api.PilotThingsIntegration|undefined} value - * @return {!proto.api.UpdatePilotThingsIntegrationRequest} returns this -*/ -proto.api.UpdatePilotThingsIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdatePilotThingsIntegrationRequest} returns this - */ -proto.api.UpdatePilotThingsIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdatePilotThingsIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeletePilotThingsIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeletePilotThingsIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeletePilotThingsIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeletePilotThingsIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeletePilotThingsIntegrationRequest} - */ -proto.api.DeletePilotThingsIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeletePilotThingsIntegrationRequest; - return proto.api.DeletePilotThingsIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeletePilotThingsIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeletePilotThingsIntegrationRequest} - */ -proto.api.DeletePilotThingsIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeletePilotThingsIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeletePilotThingsIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeletePilotThingsIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeletePilotThingsIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeletePilotThingsIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeletePilotThingsIntegrationRequest} returns this - */ -proto.api.DeletePilotThingsIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.IftttIntegration.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.IftttIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.IftttIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.IftttIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.IftttIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - key: jspb.Message.getFieldWithDefault(msg, 2, ""), - uplinkValuesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - arbitraryJson: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - eventPrefix: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.IftttIntegration} - */ -proto.api.IftttIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.IftttIntegration; - return proto.api.IftttIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.IftttIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.IftttIntegration} - */ -proto.api.IftttIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addUplinkValues(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setArbitraryJson(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setEventPrefix(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.IftttIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.IftttIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.IftttIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.IftttIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getUplinkValuesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } - f = message.getArbitraryJson(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getEventPrefix(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.IftttIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.IftttIntegration} returns this - */ -proto.api.IftttIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string key = 2; - * @return {string} - */ -proto.api.IftttIntegration.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.IftttIntegration} returns this - */ -proto.api.IftttIntegration.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated string uplink_values = 3; - * @return {!Array} - */ -proto.api.IftttIntegration.prototype.getUplinkValuesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.IftttIntegration} returns this - */ -proto.api.IftttIntegration.prototype.setUplinkValuesList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.api.IftttIntegration} returns this - */ -proto.api.IftttIntegration.prototype.addUplinkValues = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.IftttIntegration} returns this - */ -proto.api.IftttIntegration.prototype.clearUplinkValuesList = function() { - return this.setUplinkValuesList([]); -}; - - -/** - * optional bool arbitrary_json = 4; - * @return {boolean} - */ -proto.api.IftttIntegration.prototype.getArbitraryJson = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.IftttIntegration} returns this - */ -proto.api.IftttIntegration.prototype.setArbitraryJson = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional string event_prefix = 5; - * @return {string} - */ -proto.api.IftttIntegration.prototype.getEventPrefix = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.IftttIntegration} returns this - */ -proto.api.IftttIntegration.prototype.setEventPrefix = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateIftttIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateIftttIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateIftttIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateIftttIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.IftttIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateIftttIntegrationRequest} - */ -proto.api.CreateIftttIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateIftttIntegrationRequest; - return proto.api.CreateIftttIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateIftttIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateIftttIntegrationRequest} - */ -proto.api.CreateIftttIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.IftttIntegration; - reader.readMessage(value,proto.api.IftttIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateIftttIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateIftttIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateIftttIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateIftttIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.IftttIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional IftttIntegration integration = 1; - * @return {?proto.api.IftttIntegration} - */ -proto.api.CreateIftttIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.IftttIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.IftttIntegration, 1)); -}; - - -/** - * @param {?proto.api.IftttIntegration|undefined} value - * @return {!proto.api.CreateIftttIntegrationRequest} returns this -*/ -proto.api.CreateIftttIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateIftttIntegrationRequest} returns this - */ -proto.api.CreateIftttIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateIftttIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetIftttIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetIftttIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetIftttIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetIftttIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetIftttIntegrationRequest} - */ -proto.api.GetIftttIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetIftttIntegrationRequest; - return proto.api.GetIftttIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetIftttIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetIftttIntegrationRequest} - */ -proto.api.GetIftttIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetIftttIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetIftttIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetIftttIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetIftttIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetIftttIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetIftttIntegrationRequest} returns this - */ -proto.api.GetIftttIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetIftttIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetIftttIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetIftttIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetIftttIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.IftttIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetIftttIntegrationResponse} - */ -proto.api.GetIftttIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetIftttIntegrationResponse; - return proto.api.GetIftttIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetIftttIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetIftttIntegrationResponse} - */ -proto.api.GetIftttIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.IftttIntegration; - reader.readMessage(value,proto.api.IftttIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetIftttIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetIftttIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetIftttIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetIftttIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.IftttIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional IftttIntegration integration = 1; - * @return {?proto.api.IftttIntegration} - */ -proto.api.GetIftttIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.IftttIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.IftttIntegration, 1)); -}; - - -/** - * @param {?proto.api.IftttIntegration|undefined} value - * @return {!proto.api.GetIftttIntegrationResponse} returns this -*/ -proto.api.GetIftttIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetIftttIntegrationResponse} returns this - */ -proto.api.GetIftttIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetIftttIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateIftttIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateIftttIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateIftttIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateIftttIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.IftttIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateIftttIntegrationRequest} - */ -proto.api.UpdateIftttIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateIftttIntegrationRequest; - return proto.api.UpdateIftttIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateIftttIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateIftttIntegrationRequest} - */ -proto.api.UpdateIftttIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.IftttIntegration; - reader.readMessage(value,proto.api.IftttIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateIftttIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateIftttIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateIftttIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateIftttIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.IftttIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional IftttIntegration integration = 1; - * @return {?proto.api.IftttIntegration} - */ -proto.api.UpdateIftttIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.IftttIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.IftttIntegration, 1)); -}; - - -/** - * @param {?proto.api.IftttIntegration|undefined} value - * @return {!proto.api.UpdateIftttIntegrationRequest} returns this -*/ -proto.api.UpdateIftttIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateIftttIntegrationRequest} returns this - */ -proto.api.UpdateIftttIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateIftttIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteIftttIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteIftttIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteIftttIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteIftttIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteIftttIntegrationRequest} - */ -proto.api.DeleteIftttIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteIftttIntegrationRequest; - return proto.api.DeleteIftttIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteIftttIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteIftttIntegrationRequest} - */ -proto.api.DeleteIftttIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteIftttIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteIftttIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteIftttIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteIftttIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeleteIftttIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteIftttIntegrationRequest} returns this - */ -proto.api.DeleteIftttIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GenerateMqttIntegrationClientCertificateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GenerateMqttIntegrationClientCertificateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GenerateMqttIntegrationClientCertificateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GenerateMqttIntegrationClientCertificateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GenerateMqttIntegrationClientCertificateRequest} - */ -proto.api.GenerateMqttIntegrationClientCertificateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GenerateMqttIntegrationClientCertificateRequest; - return proto.api.GenerateMqttIntegrationClientCertificateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GenerateMqttIntegrationClientCertificateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GenerateMqttIntegrationClientCertificateRequest} - */ -proto.api.GenerateMqttIntegrationClientCertificateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GenerateMqttIntegrationClientCertificateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GenerateMqttIntegrationClientCertificateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GenerateMqttIntegrationClientCertificateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GenerateMqttIntegrationClientCertificateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GenerateMqttIntegrationClientCertificateRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GenerateMqttIntegrationClientCertificateRequest} returns this - */ -proto.api.GenerateMqttIntegrationClientCertificateRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GenerateMqttIntegrationClientCertificateResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GenerateMqttIntegrationClientCertificateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - tlsCert: jspb.Message.getFieldWithDefault(msg, 1, ""), - tlsKey: jspb.Message.getFieldWithDefault(msg, 2, ""), - caCert: jspb.Message.getFieldWithDefault(msg, 3, ""), - expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GenerateMqttIntegrationClientCertificateResponse} - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GenerateMqttIntegrationClientCertificateResponse; - return proto.api.GenerateMqttIntegrationClientCertificateResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GenerateMqttIntegrationClientCertificateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GenerateMqttIntegrationClientCertificateResponse} - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTlsCert(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTlsKey(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setCaCert(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setExpiresAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GenerateMqttIntegrationClientCertificateResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GenerateMqttIntegrationClientCertificateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTlsCert(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTlsKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getCaCert(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getExpiresAt(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string tls_cert = 1; - * @return {string} - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.getTlsCert = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GenerateMqttIntegrationClientCertificateResponse} returns this - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.setTlsCert = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string tls_key = 2; - * @return {string} - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.getTlsKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GenerateMqttIntegrationClientCertificateResponse} returns this - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.setTlsKey = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string ca_cert = 3; - * @return {string} - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.getCaCert = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GenerateMqttIntegrationClientCertificateResponse} returns this - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.setCaCert = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional google.protobuf.Timestamp expires_at = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.getExpiresAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GenerateMqttIntegrationClientCertificateResponse} returns this -*/ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.setExpiresAt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GenerateMqttIntegrationClientCertificateResponse} returns this - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.clearExpiresAt = function() { - return this.setExpiresAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.hasExpiresAt = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * @enum {number} - */ -proto.api.Encoding = { - JSON: 0, - PROTOBUF: 1 -}; - -/** - * @enum {number} - */ -proto.api.IntegrationKind = { - HTTP: 0, - INFLUX_DB: 1, - THINGS_BOARD: 2, - MY_DEVICES: 3, - LORA_CLOUD: 4, - GCP_PUB_SUB: 5, - AWS_SNS: 6, - AZURE_SERVICE_BUS: 7, - PILOT_THINGS: 8, - MQTT_GLOBAL: 9, - IFTTT: 10 -}; - -/** - * @enum {number} - */ -proto.api.InfluxDbPrecision = { - NS: 0, - U: 1, - MS: 2, - S: 3, - M: 4, - H: 5 -}; - -/** - * @enum {number} - */ -proto.api.InfluxDbVersion = { - INFLUXDB_1: 0, - INFLUXDB_2: 1 -}; - -goog.object.extend(exports, proto.api); diff --git a/api/grpc-web/api/device_grpc_web_pb.d.ts b/api/grpc-web/api/device_grpc_web_pb.d.ts deleted file mode 100644 index b86739f7..00000000 --- a/api/grpc-web/api/device_grpc_web_pb.d.ts +++ /dev/null @@ -1,260 +0,0 @@ -import * as grpcWeb from 'grpc-web'; - -import * as api_device_pb from '../api/device_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; - - -export class DeviceServiceClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - create( - request: api_device_pb.CreateDeviceRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - get( - request: api_device_pb.GetDeviceRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_device_pb.GetDeviceResponse) => void - ): grpcWeb.ClientReadableStream; - - update( - request: api_device_pb.UpdateDeviceRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - delete( - request: api_device_pb.DeleteDeviceRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - list( - request: api_device_pb.ListDevicesRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_device_pb.ListDevicesResponse) => void - ): grpcWeb.ClientReadableStream; - - createKeys( - request: api_device_pb.CreateDeviceKeysRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getKeys( - request: api_device_pb.GetDeviceKeysRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_device_pb.GetDeviceKeysResponse) => void - ): grpcWeb.ClientReadableStream; - - updateKeys( - request: api_device_pb.UpdateDeviceKeysRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - deleteKeys( - request: api_device_pb.DeleteDeviceKeysRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - flushDevNonces( - request: api_device_pb.FlushDevNoncesRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - activate( - request: api_device_pb.ActivateDeviceRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - deactivate( - request: api_device_pb.DeactivateDeviceRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getActivation( - request: api_device_pb.GetDeviceActivationRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_device_pb.GetDeviceActivationResponse) => void - ): grpcWeb.ClientReadableStream; - - getRandomDevAddr( - request: api_device_pb.GetRandomDevAddrRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_device_pb.GetRandomDevAddrResponse) => void - ): grpcWeb.ClientReadableStream; - - getMetrics( - request: api_device_pb.GetDeviceMetricsRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_device_pb.GetDeviceMetricsResponse) => void - ): grpcWeb.ClientReadableStream; - - getLinkMetrics( - request: api_device_pb.GetDeviceLinkMetricsRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_device_pb.GetDeviceLinkMetricsResponse) => void - ): grpcWeb.ClientReadableStream; - - enqueue( - request: api_device_pb.EnqueueDeviceQueueItemRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_device_pb.EnqueueDeviceQueueItemResponse) => void - ): grpcWeb.ClientReadableStream; - - flushQueue( - request: api_device_pb.FlushDeviceQueueRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getQueue( - request: api_device_pb.GetDeviceQueueItemsRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_device_pb.GetDeviceQueueItemsResponse) => void - ): grpcWeb.ClientReadableStream; - - getNextFCntDown( - request: api_device_pb.GetDeviceNextFCntDownRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_device_pb.GetDeviceNextFCntDownResponse) => void - ): grpcWeb.ClientReadableStream; - -} - -export class DeviceServicePromiseClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - create( - request: api_device_pb.CreateDeviceRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - get( - request: api_device_pb.GetDeviceRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - update( - request: api_device_pb.UpdateDeviceRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - delete( - request: api_device_pb.DeleteDeviceRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - list( - request: api_device_pb.ListDevicesRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - createKeys( - request: api_device_pb.CreateDeviceKeysRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getKeys( - request: api_device_pb.GetDeviceKeysRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - updateKeys( - request: api_device_pb.UpdateDeviceKeysRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - deleteKeys( - request: api_device_pb.DeleteDeviceKeysRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - flushDevNonces( - request: api_device_pb.FlushDevNoncesRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - activate( - request: api_device_pb.ActivateDeviceRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - deactivate( - request: api_device_pb.DeactivateDeviceRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getActivation( - request: api_device_pb.GetDeviceActivationRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getRandomDevAddr( - request: api_device_pb.GetRandomDevAddrRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getMetrics( - request: api_device_pb.GetDeviceMetricsRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getLinkMetrics( - request: api_device_pb.GetDeviceLinkMetricsRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - enqueue( - request: api_device_pb.EnqueueDeviceQueueItemRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - flushQueue( - request: api_device_pb.FlushDeviceQueueRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getQueue( - request: api_device_pb.GetDeviceQueueItemsRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getNextFCntDown( - request: api_device_pb.GetDeviceNextFCntDownRequest, - metadata?: grpcWeb.Metadata - ): Promise; - -} - diff --git a/api/grpc-web/api/device_grpc_web_pb.js b/api/grpc-web/api/device_grpc_web_pb.js deleted file mode 100644 index 7d21c181..00000000 --- a/api/grpc-web/api/device_grpc_web_pb.js +++ /dev/null @@ -1,1308 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for api - * @enhanceable - * @public - */ - -// Code generated by protoc-gen-grpc-web. DO NOT EDIT. -// versions: -// protoc-gen-grpc-web v1.4.2 -// protoc v3.12.4 -// source: api/device.proto - - -/* eslint-disable */ -// @ts-nocheck - - - -const grpc = {}; -grpc.web = require('grpc-web'); - - -var common_common_pb = require('../common/common_pb.js') - -var google_api_annotations_pb = require('../google/api/annotations_pb.js') - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js') - -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js') - -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js') -const proto = {}; -proto.api = require('./device_pb.js'); - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.DeviceServiceClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.DeviceServicePromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateDeviceRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_DeviceService_Create = new grpc.web.MethodDescriptor( - '/api.DeviceService/Create', - grpc.web.MethodType.UNARY, - proto.api.CreateDeviceRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.CreateDeviceRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.CreateDeviceRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.create = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/Create', - request, - metadata || {}, - methodDescriptor_DeviceService_Create, - callback); -}; - - -/** - * @param {!proto.api.CreateDeviceRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.create = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/Create', - request, - metadata || {}, - methodDescriptor_DeviceService_Create); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetDeviceRequest, - * !proto.api.GetDeviceResponse>} - */ -const methodDescriptor_DeviceService_Get = new grpc.web.MethodDescriptor( - '/api.DeviceService/Get', - grpc.web.MethodType.UNARY, - proto.api.GetDeviceRequest, - proto.api.GetDeviceResponse, - /** - * @param {!proto.api.GetDeviceRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetDeviceResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetDeviceRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetDeviceResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.get = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/Get', - request, - metadata || {}, - methodDescriptor_DeviceService_Get, - callback); -}; - - -/** - * @param {!proto.api.GetDeviceRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.get = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/Get', - request, - metadata || {}, - methodDescriptor_DeviceService_Get); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateDeviceRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_DeviceService_Update = new grpc.web.MethodDescriptor( - '/api.DeviceService/Update', - grpc.web.MethodType.UNARY, - proto.api.UpdateDeviceRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateDeviceRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateDeviceRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.update = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/Update', - request, - metadata || {}, - methodDescriptor_DeviceService_Update, - callback); -}; - - -/** - * @param {!proto.api.UpdateDeviceRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.update = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/Update', - request, - metadata || {}, - methodDescriptor_DeviceService_Update); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteDeviceRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_DeviceService_Delete = new grpc.web.MethodDescriptor( - '/api.DeviceService/Delete', - grpc.web.MethodType.UNARY, - proto.api.DeleteDeviceRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteDeviceRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteDeviceRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.delete = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/Delete', - request, - metadata || {}, - methodDescriptor_DeviceService_Delete, - callback); -}; - - -/** - * @param {!proto.api.DeleteDeviceRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.delete = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/Delete', - request, - metadata || {}, - methodDescriptor_DeviceService_Delete); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.ListDevicesRequest, - * !proto.api.ListDevicesResponse>} - */ -const methodDescriptor_DeviceService_List = new grpc.web.MethodDescriptor( - '/api.DeviceService/List', - grpc.web.MethodType.UNARY, - proto.api.ListDevicesRequest, - proto.api.ListDevicesResponse, - /** - * @param {!proto.api.ListDevicesRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.ListDevicesResponse.deserializeBinary -); - - -/** - * @param {!proto.api.ListDevicesRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.ListDevicesResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.list = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/List', - request, - metadata || {}, - methodDescriptor_DeviceService_List, - callback); -}; - - -/** - * @param {!proto.api.ListDevicesRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.list = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/List', - request, - metadata || {}, - methodDescriptor_DeviceService_List); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateDeviceKeysRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_DeviceService_CreateKeys = new grpc.web.MethodDescriptor( - '/api.DeviceService/CreateKeys', - grpc.web.MethodType.UNARY, - proto.api.CreateDeviceKeysRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.CreateDeviceKeysRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.CreateDeviceKeysRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.createKeys = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/CreateKeys', - request, - metadata || {}, - methodDescriptor_DeviceService_CreateKeys, - callback); -}; - - -/** - * @param {!proto.api.CreateDeviceKeysRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.createKeys = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/CreateKeys', - request, - metadata || {}, - methodDescriptor_DeviceService_CreateKeys); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetDeviceKeysRequest, - * !proto.api.GetDeviceKeysResponse>} - */ -const methodDescriptor_DeviceService_GetKeys = new grpc.web.MethodDescriptor( - '/api.DeviceService/GetKeys', - grpc.web.MethodType.UNARY, - proto.api.GetDeviceKeysRequest, - proto.api.GetDeviceKeysResponse, - /** - * @param {!proto.api.GetDeviceKeysRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetDeviceKeysResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetDeviceKeysRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetDeviceKeysResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.getKeys = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/GetKeys', - request, - metadata || {}, - methodDescriptor_DeviceService_GetKeys, - callback); -}; - - -/** - * @param {!proto.api.GetDeviceKeysRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.getKeys = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/GetKeys', - request, - metadata || {}, - methodDescriptor_DeviceService_GetKeys); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateDeviceKeysRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_DeviceService_UpdateKeys = new grpc.web.MethodDescriptor( - '/api.DeviceService/UpdateKeys', - grpc.web.MethodType.UNARY, - proto.api.UpdateDeviceKeysRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateDeviceKeysRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateDeviceKeysRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.updateKeys = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/UpdateKeys', - request, - metadata || {}, - methodDescriptor_DeviceService_UpdateKeys, - callback); -}; - - -/** - * @param {!proto.api.UpdateDeviceKeysRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.updateKeys = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/UpdateKeys', - request, - metadata || {}, - methodDescriptor_DeviceService_UpdateKeys); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteDeviceKeysRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_DeviceService_DeleteKeys = new grpc.web.MethodDescriptor( - '/api.DeviceService/DeleteKeys', - grpc.web.MethodType.UNARY, - proto.api.DeleteDeviceKeysRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteDeviceKeysRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteDeviceKeysRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.deleteKeys = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/DeleteKeys', - request, - metadata || {}, - methodDescriptor_DeviceService_DeleteKeys, - callback); -}; - - -/** - * @param {!proto.api.DeleteDeviceKeysRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.deleteKeys = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/DeleteKeys', - request, - metadata || {}, - methodDescriptor_DeviceService_DeleteKeys); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.FlushDevNoncesRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_DeviceService_FlushDevNonces = new grpc.web.MethodDescriptor( - '/api.DeviceService/FlushDevNonces', - grpc.web.MethodType.UNARY, - proto.api.FlushDevNoncesRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.FlushDevNoncesRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.FlushDevNoncesRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.flushDevNonces = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/FlushDevNonces', - request, - metadata || {}, - methodDescriptor_DeviceService_FlushDevNonces, - callback); -}; - - -/** - * @param {!proto.api.FlushDevNoncesRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.flushDevNonces = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/FlushDevNonces', - request, - metadata || {}, - methodDescriptor_DeviceService_FlushDevNonces); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.ActivateDeviceRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_DeviceService_Activate = new grpc.web.MethodDescriptor( - '/api.DeviceService/Activate', - grpc.web.MethodType.UNARY, - proto.api.ActivateDeviceRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.ActivateDeviceRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.ActivateDeviceRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.activate = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/Activate', - request, - metadata || {}, - methodDescriptor_DeviceService_Activate, - callback); -}; - - -/** - * @param {!proto.api.ActivateDeviceRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.activate = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/Activate', - request, - metadata || {}, - methodDescriptor_DeviceService_Activate); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeactivateDeviceRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_DeviceService_Deactivate = new grpc.web.MethodDescriptor( - '/api.DeviceService/Deactivate', - grpc.web.MethodType.UNARY, - proto.api.DeactivateDeviceRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeactivateDeviceRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeactivateDeviceRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.deactivate = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/Deactivate', - request, - metadata || {}, - methodDescriptor_DeviceService_Deactivate, - callback); -}; - - -/** - * @param {!proto.api.DeactivateDeviceRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.deactivate = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/Deactivate', - request, - metadata || {}, - methodDescriptor_DeviceService_Deactivate); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetDeviceActivationRequest, - * !proto.api.GetDeviceActivationResponse>} - */ -const methodDescriptor_DeviceService_GetActivation = new grpc.web.MethodDescriptor( - '/api.DeviceService/GetActivation', - grpc.web.MethodType.UNARY, - proto.api.GetDeviceActivationRequest, - proto.api.GetDeviceActivationResponse, - /** - * @param {!proto.api.GetDeviceActivationRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetDeviceActivationResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetDeviceActivationRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetDeviceActivationResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.getActivation = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/GetActivation', - request, - metadata || {}, - methodDescriptor_DeviceService_GetActivation, - callback); -}; - - -/** - * @param {!proto.api.GetDeviceActivationRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.getActivation = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/GetActivation', - request, - metadata || {}, - methodDescriptor_DeviceService_GetActivation); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetRandomDevAddrRequest, - * !proto.api.GetRandomDevAddrResponse>} - */ -const methodDescriptor_DeviceService_GetRandomDevAddr = new grpc.web.MethodDescriptor( - '/api.DeviceService/GetRandomDevAddr', - grpc.web.MethodType.UNARY, - proto.api.GetRandomDevAddrRequest, - proto.api.GetRandomDevAddrResponse, - /** - * @param {!proto.api.GetRandomDevAddrRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetRandomDevAddrResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetRandomDevAddrRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetRandomDevAddrResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.getRandomDevAddr = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/GetRandomDevAddr', - request, - metadata || {}, - methodDescriptor_DeviceService_GetRandomDevAddr, - callback); -}; - - -/** - * @param {!proto.api.GetRandomDevAddrRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.getRandomDevAddr = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/GetRandomDevAddr', - request, - metadata || {}, - methodDescriptor_DeviceService_GetRandomDevAddr); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetDeviceMetricsRequest, - * !proto.api.GetDeviceMetricsResponse>} - */ -const methodDescriptor_DeviceService_GetMetrics = new grpc.web.MethodDescriptor( - '/api.DeviceService/GetMetrics', - grpc.web.MethodType.UNARY, - proto.api.GetDeviceMetricsRequest, - proto.api.GetDeviceMetricsResponse, - /** - * @param {!proto.api.GetDeviceMetricsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetDeviceMetricsResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetDeviceMetricsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetDeviceMetricsResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.getMetrics = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/GetMetrics', - request, - metadata || {}, - methodDescriptor_DeviceService_GetMetrics, - callback); -}; - - -/** - * @param {!proto.api.GetDeviceMetricsRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.getMetrics = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/GetMetrics', - request, - metadata || {}, - methodDescriptor_DeviceService_GetMetrics); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetDeviceLinkMetricsRequest, - * !proto.api.GetDeviceLinkMetricsResponse>} - */ -const methodDescriptor_DeviceService_GetLinkMetrics = new grpc.web.MethodDescriptor( - '/api.DeviceService/GetLinkMetrics', - grpc.web.MethodType.UNARY, - proto.api.GetDeviceLinkMetricsRequest, - proto.api.GetDeviceLinkMetricsResponse, - /** - * @param {!proto.api.GetDeviceLinkMetricsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetDeviceLinkMetricsResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetDeviceLinkMetricsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetDeviceLinkMetricsResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.getLinkMetrics = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/GetLinkMetrics', - request, - metadata || {}, - methodDescriptor_DeviceService_GetLinkMetrics, - callback); -}; - - -/** - * @param {!proto.api.GetDeviceLinkMetricsRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.getLinkMetrics = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/GetLinkMetrics', - request, - metadata || {}, - methodDescriptor_DeviceService_GetLinkMetrics); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.EnqueueDeviceQueueItemRequest, - * !proto.api.EnqueueDeviceQueueItemResponse>} - */ -const methodDescriptor_DeviceService_Enqueue = new grpc.web.MethodDescriptor( - '/api.DeviceService/Enqueue', - grpc.web.MethodType.UNARY, - proto.api.EnqueueDeviceQueueItemRequest, - proto.api.EnqueueDeviceQueueItemResponse, - /** - * @param {!proto.api.EnqueueDeviceQueueItemRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.EnqueueDeviceQueueItemResponse.deserializeBinary -); - - -/** - * @param {!proto.api.EnqueueDeviceQueueItemRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.EnqueueDeviceQueueItemResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.enqueue = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/Enqueue', - request, - metadata || {}, - methodDescriptor_DeviceService_Enqueue, - callback); -}; - - -/** - * @param {!proto.api.EnqueueDeviceQueueItemRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.enqueue = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/Enqueue', - request, - metadata || {}, - methodDescriptor_DeviceService_Enqueue); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.FlushDeviceQueueRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_DeviceService_FlushQueue = new grpc.web.MethodDescriptor( - '/api.DeviceService/FlushQueue', - grpc.web.MethodType.UNARY, - proto.api.FlushDeviceQueueRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.FlushDeviceQueueRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.FlushDeviceQueueRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.flushQueue = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/FlushQueue', - request, - metadata || {}, - methodDescriptor_DeviceService_FlushQueue, - callback); -}; - - -/** - * @param {!proto.api.FlushDeviceQueueRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.flushQueue = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/FlushQueue', - request, - metadata || {}, - methodDescriptor_DeviceService_FlushQueue); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetDeviceQueueItemsRequest, - * !proto.api.GetDeviceQueueItemsResponse>} - */ -const methodDescriptor_DeviceService_GetQueue = new grpc.web.MethodDescriptor( - '/api.DeviceService/GetQueue', - grpc.web.MethodType.UNARY, - proto.api.GetDeviceQueueItemsRequest, - proto.api.GetDeviceQueueItemsResponse, - /** - * @param {!proto.api.GetDeviceQueueItemsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetDeviceQueueItemsResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetDeviceQueueItemsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetDeviceQueueItemsResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.getQueue = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/GetQueue', - request, - metadata || {}, - methodDescriptor_DeviceService_GetQueue, - callback); -}; - - -/** - * @param {!proto.api.GetDeviceQueueItemsRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.getQueue = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/GetQueue', - request, - metadata || {}, - methodDescriptor_DeviceService_GetQueue); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetDeviceNextFCntDownRequest, - * !proto.api.GetDeviceNextFCntDownResponse>} - */ -const methodDescriptor_DeviceService_GetNextFCntDown = new grpc.web.MethodDescriptor( - '/api.DeviceService/GetNextFCntDown', - grpc.web.MethodType.UNARY, - proto.api.GetDeviceNextFCntDownRequest, - proto.api.GetDeviceNextFCntDownResponse, - /** - * @param {!proto.api.GetDeviceNextFCntDownRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetDeviceNextFCntDownResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetDeviceNextFCntDownRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetDeviceNextFCntDownResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceServiceClient.prototype.getNextFCntDown = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceService/GetNextFCntDown', - request, - metadata || {}, - methodDescriptor_DeviceService_GetNextFCntDown, - callback); -}; - - -/** - * @param {!proto.api.GetDeviceNextFCntDownRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceServicePromiseClient.prototype.getNextFCntDown = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceService/GetNextFCntDown', - request, - metadata || {}, - methodDescriptor_DeviceService_GetNextFCntDown); -}; - - -module.exports = proto.api; - diff --git a/api/grpc-web/api/device_pb.d.ts b/api/grpc-web/api/device_pb.d.ts deleted file mode 100644 index dcbecd1f..00000000 --- a/api/grpc-web/api/device_pb.d.ts +++ /dev/null @@ -1,1003 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as common_common_pb from '../common/common_pb'; -import * as google_api_annotations_pb from '../google/api/annotations_pb'; -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; -import * as google_protobuf_struct_pb from 'google-protobuf/google/protobuf/struct_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; - - -export class Device extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): Device; - - getName(): string; - setName(value: string): Device; - - getDescription(): string; - setDescription(value: string): Device; - - getApplicationId(): string; - setApplicationId(value: string): Device; - - getDeviceProfileId(): string; - setDeviceProfileId(value: string): Device; - - getSkipFcntCheck(): boolean; - setSkipFcntCheck(value: boolean): Device; - - getIsDisabled(): boolean; - setIsDisabled(value: boolean): Device; - - getVariablesMap(): jspb.Map; - clearVariablesMap(): Device; - - getTagsMap(): jspb.Map; - clearTagsMap(): Device; - - getJoinEui(): string; - setJoinEui(value: string): Device; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Device.AsObject; - static toObject(includeInstance: boolean, msg: Device): Device.AsObject; - static serializeBinaryToWriter(message: Device, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Device; - static deserializeBinaryFromReader(message: Device, reader: jspb.BinaryReader): Device; -} - -export namespace Device { - export type AsObject = { - devEui: string, - name: string, - description: string, - applicationId: string, - deviceProfileId: string, - skipFcntCheck: boolean, - isDisabled: boolean, - variablesMap: Array<[string, string]>, - tagsMap: Array<[string, string]>, - joinEui: string, - } -} - -export class DeviceStatus extends jspb.Message { - getMargin(): number; - setMargin(value: number): DeviceStatus; - - getExternalPowerSource(): boolean; - setExternalPowerSource(value: boolean): DeviceStatus; - - getBatteryLevel(): number; - setBatteryLevel(value: number): DeviceStatus; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceStatus.AsObject; - static toObject(includeInstance: boolean, msg: DeviceStatus): DeviceStatus.AsObject; - static serializeBinaryToWriter(message: DeviceStatus, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceStatus; - static deserializeBinaryFromReader(message: DeviceStatus, reader: jspb.BinaryReader): DeviceStatus; -} - -export namespace DeviceStatus { - export type AsObject = { - margin: number, - externalPowerSource: boolean, - batteryLevel: number, - } -} - -export class DeviceListItem extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): DeviceListItem; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): DeviceListItem; - hasCreatedAt(): boolean; - clearCreatedAt(): DeviceListItem; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): DeviceListItem; - hasUpdatedAt(): boolean; - clearUpdatedAt(): DeviceListItem; - - getLastSeenAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setLastSeenAt(value?: google_protobuf_timestamp_pb.Timestamp): DeviceListItem; - hasLastSeenAt(): boolean; - clearLastSeenAt(): DeviceListItem; - - getName(): string; - setName(value: string): DeviceListItem; - - getDescription(): string; - setDescription(value: string): DeviceListItem; - - getDeviceProfileId(): string; - setDeviceProfileId(value: string): DeviceListItem; - - getDeviceProfileName(): string; - setDeviceProfileName(value: string): DeviceListItem; - - getDeviceStatus(): DeviceStatus | undefined; - setDeviceStatus(value?: DeviceStatus): DeviceListItem; - hasDeviceStatus(): boolean; - clearDeviceStatus(): DeviceListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceListItem.AsObject; - static toObject(includeInstance: boolean, msg: DeviceListItem): DeviceListItem.AsObject; - static serializeBinaryToWriter(message: DeviceListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceListItem; - static deserializeBinaryFromReader(message: DeviceListItem, reader: jspb.BinaryReader): DeviceListItem; -} - -export namespace DeviceListItem { - export type AsObject = { - devEui: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - lastSeenAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - name: string, - description: string, - deviceProfileId: string, - deviceProfileName: string, - deviceStatus?: DeviceStatus.AsObject, - } -} - -export class DeviceKeys extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): DeviceKeys; - - getNwkKey(): string; - setNwkKey(value: string): DeviceKeys; - - getAppKey(): string; - setAppKey(value: string): DeviceKeys; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceKeys.AsObject; - static toObject(includeInstance: boolean, msg: DeviceKeys): DeviceKeys.AsObject; - static serializeBinaryToWriter(message: DeviceKeys, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceKeys; - static deserializeBinaryFromReader(message: DeviceKeys, reader: jspb.BinaryReader): DeviceKeys; -} - -export namespace DeviceKeys { - export type AsObject = { - devEui: string, - nwkKey: string, - appKey: string, - } -} - -export class CreateDeviceRequest extends jspb.Message { - getDevice(): Device | undefined; - setDevice(value?: Device): CreateDeviceRequest; - hasDevice(): boolean; - clearDevice(): CreateDeviceRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateDeviceRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateDeviceRequest): CreateDeviceRequest.AsObject; - static serializeBinaryToWriter(message: CreateDeviceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateDeviceRequest; - static deserializeBinaryFromReader(message: CreateDeviceRequest, reader: jspb.BinaryReader): CreateDeviceRequest; -} - -export namespace CreateDeviceRequest { - export type AsObject = { - device?: Device.AsObject, - } -} - -export class GetDeviceRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): GetDeviceRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceRequest): GetDeviceRequest.AsObject; - static serializeBinaryToWriter(message: GetDeviceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceRequest; - static deserializeBinaryFromReader(message: GetDeviceRequest, reader: jspb.BinaryReader): GetDeviceRequest; -} - -export namespace GetDeviceRequest { - export type AsObject = { - devEui: string, - } -} - -export class GetDeviceResponse extends jspb.Message { - getDevice(): Device | undefined; - setDevice(value?: Device): GetDeviceResponse; - hasDevice(): boolean; - clearDevice(): GetDeviceResponse; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceResponse; - hasCreatedAt(): boolean; - clearCreatedAt(): GetDeviceResponse; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceResponse; - hasUpdatedAt(): boolean; - clearUpdatedAt(): GetDeviceResponse; - - getLastSeenAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setLastSeenAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceResponse; - hasLastSeenAt(): boolean; - clearLastSeenAt(): GetDeviceResponse; - - getDeviceStatus(): DeviceStatus | undefined; - setDeviceStatus(value?: DeviceStatus): GetDeviceResponse; - hasDeviceStatus(): boolean; - clearDeviceStatus(): GetDeviceResponse; - - getClassEnabled(): common_common_pb.DeviceClass; - setClassEnabled(value: common_common_pb.DeviceClass): GetDeviceResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceResponse): GetDeviceResponse.AsObject; - static serializeBinaryToWriter(message: GetDeviceResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceResponse; - static deserializeBinaryFromReader(message: GetDeviceResponse, reader: jspb.BinaryReader): GetDeviceResponse; -} - -export namespace GetDeviceResponse { - export type AsObject = { - device?: Device.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - lastSeenAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - deviceStatus?: DeviceStatus.AsObject, - classEnabled: common_common_pb.DeviceClass, - } -} - -export class UpdateDeviceRequest extends jspb.Message { - getDevice(): Device | undefined; - setDevice(value?: Device): UpdateDeviceRequest; - hasDevice(): boolean; - clearDevice(): UpdateDeviceRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateDeviceRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateDeviceRequest): UpdateDeviceRequest.AsObject; - static serializeBinaryToWriter(message: UpdateDeviceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateDeviceRequest; - static deserializeBinaryFromReader(message: UpdateDeviceRequest, reader: jspb.BinaryReader): UpdateDeviceRequest; -} - -export namespace UpdateDeviceRequest { - export type AsObject = { - device?: Device.AsObject, - } -} - -export class DeleteDeviceRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): DeleteDeviceRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteDeviceRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteDeviceRequest): DeleteDeviceRequest.AsObject; - static serializeBinaryToWriter(message: DeleteDeviceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteDeviceRequest; - static deserializeBinaryFromReader(message: DeleteDeviceRequest, reader: jspb.BinaryReader): DeleteDeviceRequest; -} - -export namespace DeleteDeviceRequest { - export type AsObject = { - devEui: string, - } -} - -export class ListDevicesRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): ListDevicesRequest; - - getOffset(): number; - setOffset(value: number): ListDevicesRequest; - - getSearch(): string; - setSearch(value: string): ListDevicesRequest; - - getApplicationId(): string; - setApplicationId(value: string): ListDevicesRequest; - - getMulticastGroupId(): string; - setMulticastGroupId(value: string): ListDevicesRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListDevicesRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListDevicesRequest): ListDevicesRequest.AsObject; - static serializeBinaryToWriter(message: ListDevicesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListDevicesRequest; - static deserializeBinaryFromReader(message: ListDevicesRequest, reader: jspb.BinaryReader): ListDevicesRequest; -} - -export namespace ListDevicesRequest { - export type AsObject = { - limit: number, - offset: number, - search: string, - applicationId: string, - multicastGroupId: string, - } -} - -export class ListDevicesResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): ListDevicesResponse; - - getResultList(): Array; - setResultList(value: Array): ListDevicesResponse; - clearResultList(): ListDevicesResponse; - addResult(value?: DeviceListItem, index?: number): DeviceListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListDevicesResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListDevicesResponse): ListDevicesResponse.AsObject; - static serializeBinaryToWriter(message: ListDevicesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListDevicesResponse; - static deserializeBinaryFromReader(message: ListDevicesResponse, reader: jspb.BinaryReader): ListDevicesResponse; -} - -export namespace ListDevicesResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class CreateDeviceKeysRequest extends jspb.Message { - getDeviceKeys(): DeviceKeys | undefined; - setDeviceKeys(value?: DeviceKeys): CreateDeviceKeysRequest; - hasDeviceKeys(): boolean; - clearDeviceKeys(): CreateDeviceKeysRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateDeviceKeysRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateDeviceKeysRequest): CreateDeviceKeysRequest.AsObject; - static serializeBinaryToWriter(message: CreateDeviceKeysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateDeviceKeysRequest; - static deserializeBinaryFromReader(message: CreateDeviceKeysRequest, reader: jspb.BinaryReader): CreateDeviceKeysRequest; -} - -export namespace CreateDeviceKeysRequest { - export type AsObject = { - deviceKeys?: DeviceKeys.AsObject, - } -} - -export class GetDeviceKeysRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): GetDeviceKeysRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceKeysRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceKeysRequest): GetDeviceKeysRequest.AsObject; - static serializeBinaryToWriter(message: GetDeviceKeysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceKeysRequest; - static deserializeBinaryFromReader(message: GetDeviceKeysRequest, reader: jspb.BinaryReader): GetDeviceKeysRequest; -} - -export namespace GetDeviceKeysRequest { - export type AsObject = { - devEui: string, - } -} - -export class GetDeviceKeysResponse extends jspb.Message { - getDeviceKeys(): DeviceKeys | undefined; - setDeviceKeys(value?: DeviceKeys): GetDeviceKeysResponse; - hasDeviceKeys(): boolean; - clearDeviceKeys(): GetDeviceKeysResponse; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceKeysResponse; - hasCreatedAt(): boolean; - clearCreatedAt(): GetDeviceKeysResponse; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceKeysResponse; - hasUpdatedAt(): boolean; - clearUpdatedAt(): GetDeviceKeysResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceKeysResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceKeysResponse): GetDeviceKeysResponse.AsObject; - static serializeBinaryToWriter(message: GetDeviceKeysResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceKeysResponse; - static deserializeBinaryFromReader(message: GetDeviceKeysResponse, reader: jspb.BinaryReader): GetDeviceKeysResponse; -} - -export namespace GetDeviceKeysResponse { - export type AsObject = { - deviceKeys?: DeviceKeys.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateDeviceKeysRequest extends jspb.Message { - getDeviceKeys(): DeviceKeys | undefined; - setDeviceKeys(value?: DeviceKeys): UpdateDeviceKeysRequest; - hasDeviceKeys(): boolean; - clearDeviceKeys(): UpdateDeviceKeysRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateDeviceKeysRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateDeviceKeysRequest): UpdateDeviceKeysRequest.AsObject; - static serializeBinaryToWriter(message: UpdateDeviceKeysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateDeviceKeysRequest; - static deserializeBinaryFromReader(message: UpdateDeviceKeysRequest, reader: jspb.BinaryReader): UpdateDeviceKeysRequest; -} - -export namespace UpdateDeviceKeysRequest { - export type AsObject = { - deviceKeys?: DeviceKeys.AsObject, - } -} - -export class DeleteDeviceKeysRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): DeleteDeviceKeysRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteDeviceKeysRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteDeviceKeysRequest): DeleteDeviceKeysRequest.AsObject; - static serializeBinaryToWriter(message: DeleteDeviceKeysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteDeviceKeysRequest; - static deserializeBinaryFromReader(message: DeleteDeviceKeysRequest, reader: jspb.BinaryReader): DeleteDeviceKeysRequest; -} - -export namespace DeleteDeviceKeysRequest { - export type AsObject = { - devEui: string, - } -} - -export class DeviceActivation extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): DeviceActivation; - - getDevAddr(): string; - setDevAddr(value: string): DeviceActivation; - - getAppSKey(): string; - setAppSKey(value: string): DeviceActivation; - - getNwkSEncKey(): string; - setNwkSEncKey(value: string): DeviceActivation; - - getSNwkSIntKey(): string; - setSNwkSIntKey(value: string): DeviceActivation; - - getFNwkSIntKey(): string; - setFNwkSIntKey(value: string): DeviceActivation; - - getFCntUp(): number; - setFCntUp(value: number): DeviceActivation; - - getNFCntDown(): number; - setNFCntDown(value: number): DeviceActivation; - - getAFCntDown(): number; - setAFCntDown(value: number): DeviceActivation; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceActivation.AsObject; - static toObject(includeInstance: boolean, msg: DeviceActivation): DeviceActivation.AsObject; - static serializeBinaryToWriter(message: DeviceActivation, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceActivation; - static deserializeBinaryFromReader(message: DeviceActivation, reader: jspb.BinaryReader): DeviceActivation; -} - -export namespace DeviceActivation { - export type AsObject = { - devEui: string, - devAddr: string, - appSKey: string, - nwkSEncKey: string, - sNwkSIntKey: string, - fNwkSIntKey: string, - fCntUp: number, - nFCntDown: number, - aFCntDown: number, - } -} - -export class ActivateDeviceRequest extends jspb.Message { - getDeviceActivation(): DeviceActivation | undefined; - setDeviceActivation(value?: DeviceActivation): ActivateDeviceRequest; - hasDeviceActivation(): boolean; - clearDeviceActivation(): ActivateDeviceRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ActivateDeviceRequest.AsObject; - static toObject(includeInstance: boolean, msg: ActivateDeviceRequest): ActivateDeviceRequest.AsObject; - static serializeBinaryToWriter(message: ActivateDeviceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ActivateDeviceRequest; - static deserializeBinaryFromReader(message: ActivateDeviceRequest, reader: jspb.BinaryReader): ActivateDeviceRequest; -} - -export namespace ActivateDeviceRequest { - export type AsObject = { - deviceActivation?: DeviceActivation.AsObject, - } -} - -export class DeactivateDeviceRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): DeactivateDeviceRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeactivateDeviceRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeactivateDeviceRequest): DeactivateDeviceRequest.AsObject; - static serializeBinaryToWriter(message: DeactivateDeviceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeactivateDeviceRequest; - static deserializeBinaryFromReader(message: DeactivateDeviceRequest, reader: jspb.BinaryReader): DeactivateDeviceRequest; -} - -export namespace DeactivateDeviceRequest { - export type AsObject = { - devEui: string, - } -} - -export class GetDeviceActivationRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): GetDeviceActivationRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceActivationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceActivationRequest): GetDeviceActivationRequest.AsObject; - static serializeBinaryToWriter(message: GetDeviceActivationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceActivationRequest; - static deserializeBinaryFromReader(message: GetDeviceActivationRequest, reader: jspb.BinaryReader): GetDeviceActivationRequest; -} - -export namespace GetDeviceActivationRequest { - export type AsObject = { - devEui: string, - } -} - -export class GetDeviceActivationResponse extends jspb.Message { - getDeviceActivation(): DeviceActivation | undefined; - setDeviceActivation(value?: DeviceActivation): GetDeviceActivationResponse; - hasDeviceActivation(): boolean; - clearDeviceActivation(): GetDeviceActivationResponse; - - getJoinServerContext(): common_common_pb.JoinServerContext | undefined; - setJoinServerContext(value?: common_common_pb.JoinServerContext): GetDeviceActivationResponse; - hasJoinServerContext(): boolean; - clearJoinServerContext(): GetDeviceActivationResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceActivationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceActivationResponse): GetDeviceActivationResponse.AsObject; - static serializeBinaryToWriter(message: GetDeviceActivationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceActivationResponse; - static deserializeBinaryFromReader(message: GetDeviceActivationResponse, reader: jspb.BinaryReader): GetDeviceActivationResponse; -} - -export namespace GetDeviceActivationResponse { - export type AsObject = { - deviceActivation?: DeviceActivation.AsObject, - joinServerContext?: common_common_pb.JoinServerContext.AsObject, - } -} - -export class GetRandomDevAddrRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): GetRandomDevAddrRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRandomDevAddrRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetRandomDevAddrRequest): GetRandomDevAddrRequest.AsObject; - static serializeBinaryToWriter(message: GetRandomDevAddrRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetRandomDevAddrRequest; - static deserializeBinaryFromReader(message: GetRandomDevAddrRequest, reader: jspb.BinaryReader): GetRandomDevAddrRequest; -} - -export namespace GetRandomDevAddrRequest { - export type AsObject = { - devEui: string, - } -} - -export class GetRandomDevAddrResponse extends jspb.Message { - getDevAddr(): string; - setDevAddr(value: string): GetRandomDevAddrResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRandomDevAddrResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetRandomDevAddrResponse): GetRandomDevAddrResponse.AsObject; - static serializeBinaryToWriter(message: GetRandomDevAddrResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetRandomDevAddrResponse; - static deserializeBinaryFromReader(message: GetRandomDevAddrResponse, reader: jspb.BinaryReader): GetRandomDevAddrResponse; -} - -export namespace GetRandomDevAddrResponse { - export type AsObject = { - devAddr: string, - } -} - -export class GetDeviceMetricsRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): GetDeviceMetricsRequest; - - getStart(): google_protobuf_timestamp_pb.Timestamp | undefined; - setStart(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceMetricsRequest; - hasStart(): boolean; - clearStart(): GetDeviceMetricsRequest; - - getEnd(): google_protobuf_timestamp_pb.Timestamp | undefined; - setEnd(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceMetricsRequest; - hasEnd(): boolean; - clearEnd(): GetDeviceMetricsRequest; - - getAggregation(): common_common_pb.Aggregation; - setAggregation(value: common_common_pb.Aggregation): GetDeviceMetricsRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceMetricsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceMetricsRequest): GetDeviceMetricsRequest.AsObject; - static serializeBinaryToWriter(message: GetDeviceMetricsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceMetricsRequest; - static deserializeBinaryFromReader(message: GetDeviceMetricsRequest, reader: jspb.BinaryReader): GetDeviceMetricsRequest; -} - -export namespace GetDeviceMetricsRequest { - export type AsObject = { - devEui: string, - start?: google_protobuf_timestamp_pb.Timestamp.AsObject, - end?: google_protobuf_timestamp_pb.Timestamp.AsObject, - aggregation: common_common_pb.Aggregation, - } -} - -export class GetDeviceMetricsResponse extends jspb.Message { - getMetricsMap(): jspb.Map; - clearMetricsMap(): GetDeviceMetricsResponse; - - getStatesMap(): jspb.Map; - clearStatesMap(): GetDeviceMetricsResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceMetricsResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceMetricsResponse): GetDeviceMetricsResponse.AsObject; - static serializeBinaryToWriter(message: GetDeviceMetricsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceMetricsResponse; - static deserializeBinaryFromReader(message: GetDeviceMetricsResponse, reader: jspb.BinaryReader): GetDeviceMetricsResponse; -} - -export namespace GetDeviceMetricsResponse { - export type AsObject = { - metricsMap: Array<[string, common_common_pb.Metric.AsObject]>, - statesMap: Array<[string, DeviceState.AsObject]>, - } -} - -export class DeviceState extends jspb.Message { - getName(): string; - setName(value: string): DeviceState; - - getValue(): string; - setValue(value: string): DeviceState; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceState.AsObject; - static toObject(includeInstance: boolean, msg: DeviceState): DeviceState.AsObject; - static serializeBinaryToWriter(message: DeviceState, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceState; - static deserializeBinaryFromReader(message: DeviceState, reader: jspb.BinaryReader): DeviceState; -} - -export namespace DeviceState { - export type AsObject = { - name: string, - value: string, - } -} - -export class GetDeviceLinkMetricsRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): GetDeviceLinkMetricsRequest; - - getStart(): google_protobuf_timestamp_pb.Timestamp | undefined; - setStart(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceLinkMetricsRequest; - hasStart(): boolean; - clearStart(): GetDeviceLinkMetricsRequest; - - getEnd(): google_protobuf_timestamp_pb.Timestamp | undefined; - setEnd(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceLinkMetricsRequest; - hasEnd(): boolean; - clearEnd(): GetDeviceLinkMetricsRequest; - - getAggregation(): common_common_pb.Aggregation; - setAggregation(value: common_common_pb.Aggregation): GetDeviceLinkMetricsRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceLinkMetricsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceLinkMetricsRequest): GetDeviceLinkMetricsRequest.AsObject; - static serializeBinaryToWriter(message: GetDeviceLinkMetricsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceLinkMetricsRequest; - static deserializeBinaryFromReader(message: GetDeviceLinkMetricsRequest, reader: jspb.BinaryReader): GetDeviceLinkMetricsRequest; -} - -export namespace GetDeviceLinkMetricsRequest { - export type AsObject = { - devEui: string, - start?: google_protobuf_timestamp_pb.Timestamp.AsObject, - end?: google_protobuf_timestamp_pb.Timestamp.AsObject, - aggregation: common_common_pb.Aggregation, - } -} - -export class GetDeviceLinkMetricsResponse extends jspb.Message { - getRxPackets(): common_common_pb.Metric | undefined; - setRxPackets(value?: common_common_pb.Metric): GetDeviceLinkMetricsResponse; - hasRxPackets(): boolean; - clearRxPackets(): GetDeviceLinkMetricsResponse; - - getGwRssi(): common_common_pb.Metric | undefined; - setGwRssi(value?: common_common_pb.Metric): GetDeviceLinkMetricsResponse; - hasGwRssi(): boolean; - clearGwRssi(): GetDeviceLinkMetricsResponse; - - getGwSnr(): common_common_pb.Metric | undefined; - setGwSnr(value?: common_common_pb.Metric): GetDeviceLinkMetricsResponse; - hasGwSnr(): boolean; - clearGwSnr(): GetDeviceLinkMetricsResponse; - - getRxPacketsPerFreq(): common_common_pb.Metric | undefined; - setRxPacketsPerFreq(value?: common_common_pb.Metric): GetDeviceLinkMetricsResponse; - hasRxPacketsPerFreq(): boolean; - clearRxPacketsPerFreq(): GetDeviceLinkMetricsResponse; - - getRxPacketsPerDr(): common_common_pb.Metric | undefined; - setRxPacketsPerDr(value?: common_common_pb.Metric): GetDeviceLinkMetricsResponse; - hasRxPacketsPerDr(): boolean; - clearRxPacketsPerDr(): GetDeviceLinkMetricsResponse; - - getErrors(): common_common_pb.Metric | undefined; - setErrors(value?: common_common_pb.Metric): GetDeviceLinkMetricsResponse; - hasErrors(): boolean; - clearErrors(): GetDeviceLinkMetricsResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceLinkMetricsResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceLinkMetricsResponse): GetDeviceLinkMetricsResponse.AsObject; - static serializeBinaryToWriter(message: GetDeviceLinkMetricsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceLinkMetricsResponse; - static deserializeBinaryFromReader(message: GetDeviceLinkMetricsResponse, reader: jspb.BinaryReader): GetDeviceLinkMetricsResponse; -} - -export namespace GetDeviceLinkMetricsResponse { - export type AsObject = { - rxPackets?: common_common_pb.Metric.AsObject, - gwRssi?: common_common_pb.Metric.AsObject, - gwSnr?: common_common_pb.Metric.AsObject, - rxPacketsPerFreq?: common_common_pb.Metric.AsObject, - rxPacketsPerDr?: common_common_pb.Metric.AsObject, - errors?: common_common_pb.Metric.AsObject, - } -} - -export class DeviceQueueItem extends jspb.Message { - getId(): string; - setId(value: string): DeviceQueueItem; - - getDevEui(): string; - setDevEui(value: string): DeviceQueueItem; - - getConfirmed(): boolean; - setConfirmed(value: boolean): DeviceQueueItem; - - getFPort(): number; - setFPort(value: number): DeviceQueueItem; - - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): DeviceQueueItem; - - getObject(): google_protobuf_struct_pb.Struct | undefined; - setObject(value?: google_protobuf_struct_pb.Struct): DeviceQueueItem; - hasObject(): boolean; - clearObject(): DeviceQueueItem; - - getIsPending(): boolean; - setIsPending(value: boolean): DeviceQueueItem; - - getFCntDown(): number; - setFCntDown(value: number): DeviceQueueItem; - - getIsEncrypted(): boolean; - setIsEncrypted(value: boolean): DeviceQueueItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceQueueItem.AsObject; - static toObject(includeInstance: boolean, msg: DeviceQueueItem): DeviceQueueItem.AsObject; - static serializeBinaryToWriter(message: DeviceQueueItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceQueueItem; - static deserializeBinaryFromReader(message: DeviceQueueItem, reader: jspb.BinaryReader): DeviceQueueItem; -} - -export namespace DeviceQueueItem { - export type AsObject = { - id: string, - devEui: string, - confirmed: boolean, - fPort: number, - data: Uint8Array | string, - object?: google_protobuf_struct_pb.Struct.AsObject, - isPending: boolean, - fCntDown: number, - isEncrypted: boolean, - } -} - -export class EnqueueDeviceQueueItemRequest extends jspb.Message { - getQueueItem(): DeviceQueueItem | undefined; - setQueueItem(value?: DeviceQueueItem): EnqueueDeviceQueueItemRequest; - hasQueueItem(): boolean; - clearQueueItem(): EnqueueDeviceQueueItemRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EnqueueDeviceQueueItemRequest.AsObject; - static toObject(includeInstance: boolean, msg: EnqueueDeviceQueueItemRequest): EnqueueDeviceQueueItemRequest.AsObject; - static serializeBinaryToWriter(message: EnqueueDeviceQueueItemRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EnqueueDeviceQueueItemRequest; - static deserializeBinaryFromReader(message: EnqueueDeviceQueueItemRequest, reader: jspb.BinaryReader): EnqueueDeviceQueueItemRequest; -} - -export namespace EnqueueDeviceQueueItemRequest { - export type AsObject = { - queueItem?: DeviceQueueItem.AsObject, - } -} - -export class EnqueueDeviceQueueItemResponse extends jspb.Message { - getId(): string; - setId(value: string): EnqueueDeviceQueueItemResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EnqueueDeviceQueueItemResponse.AsObject; - static toObject(includeInstance: boolean, msg: EnqueueDeviceQueueItemResponse): EnqueueDeviceQueueItemResponse.AsObject; - static serializeBinaryToWriter(message: EnqueueDeviceQueueItemResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EnqueueDeviceQueueItemResponse; - static deserializeBinaryFromReader(message: EnqueueDeviceQueueItemResponse, reader: jspb.BinaryReader): EnqueueDeviceQueueItemResponse; -} - -export namespace EnqueueDeviceQueueItemResponse { - export type AsObject = { - id: string, - } -} - -export class FlushDeviceQueueRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): FlushDeviceQueueRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FlushDeviceQueueRequest.AsObject; - static toObject(includeInstance: boolean, msg: FlushDeviceQueueRequest): FlushDeviceQueueRequest.AsObject; - static serializeBinaryToWriter(message: FlushDeviceQueueRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FlushDeviceQueueRequest; - static deserializeBinaryFromReader(message: FlushDeviceQueueRequest, reader: jspb.BinaryReader): FlushDeviceQueueRequest; -} - -export namespace FlushDeviceQueueRequest { - export type AsObject = { - devEui: string, - } -} - -export class GetDeviceQueueItemsRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): GetDeviceQueueItemsRequest; - - getCountOnly(): boolean; - setCountOnly(value: boolean): GetDeviceQueueItemsRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceQueueItemsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceQueueItemsRequest): GetDeviceQueueItemsRequest.AsObject; - static serializeBinaryToWriter(message: GetDeviceQueueItemsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceQueueItemsRequest; - static deserializeBinaryFromReader(message: GetDeviceQueueItemsRequest, reader: jspb.BinaryReader): GetDeviceQueueItemsRequest; -} - -export namespace GetDeviceQueueItemsRequest { - export type AsObject = { - devEui: string, - countOnly: boolean, - } -} - -export class GetDeviceQueueItemsResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): GetDeviceQueueItemsResponse; - - getResultList(): Array; - setResultList(value: Array): GetDeviceQueueItemsResponse; - clearResultList(): GetDeviceQueueItemsResponse; - addResult(value?: DeviceQueueItem, index?: number): DeviceQueueItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceQueueItemsResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceQueueItemsResponse): GetDeviceQueueItemsResponse.AsObject; - static serializeBinaryToWriter(message: GetDeviceQueueItemsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceQueueItemsResponse; - static deserializeBinaryFromReader(message: GetDeviceQueueItemsResponse, reader: jspb.BinaryReader): GetDeviceQueueItemsResponse; -} - -export namespace GetDeviceQueueItemsResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class FlushDevNoncesRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): FlushDevNoncesRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FlushDevNoncesRequest.AsObject; - static toObject(includeInstance: boolean, msg: FlushDevNoncesRequest): FlushDevNoncesRequest.AsObject; - static serializeBinaryToWriter(message: FlushDevNoncesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FlushDevNoncesRequest; - static deserializeBinaryFromReader(message: FlushDevNoncesRequest, reader: jspb.BinaryReader): FlushDevNoncesRequest; -} - -export namespace FlushDevNoncesRequest { - export type AsObject = { - devEui: string, - } -} - -export class GetDeviceNextFCntDownRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): GetDeviceNextFCntDownRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceNextFCntDownRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceNextFCntDownRequest): GetDeviceNextFCntDownRequest.AsObject; - static serializeBinaryToWriter(message: GetDeviceNextFCntDownRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceNextFCntDownRequest; - static deserializeBinaryFromReader(message: GetDeviceNextFCntDownRequest, reader: jspb.BinaryReader): GetDeviceNextFCntDownRequest; -} - -export namespace GetDeviceNextFCntDownRequest { - export type AsObject = { - devEui: string, - } -} - -export class GetDeviceNextFCntDownResponse extends jspb.Message { - getFCntDown(): number; - setFCntDown(value: number): GetDeviceNextFCntDownResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceNextFCntDownResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceNextFCntDownResponse): GetDeviceNextFCntDownResponse.AsObject; - static serializeBinaryToWriter(message: GetDeviceNextFCntDownResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceNextFCntDownResponse; - static deserializeBinaryFromReader(message: GetDeviceNextFCntDownResponse, reader: jspb.BinaryReader): GetDeviceNextFCntDownResponse; -} - -export namespace GetDeviceNextFCntDownResponse { - export type AsObject = { - fCntDown: number, - } -} - diff --git a/api/grpc-web/api/device_pb.js b/api/grpc-web/api/device_pb.js deleted file mode 100644 index f79f86ef..00000000 --- a/api/grpc-web/api/device_pb.js +++ /dev/null @@ -1,8346 +0,0 @@ -// source: api/device.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); -goog.object.extend(proto, google_protobuf_struct_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -goog.exportSymbol('proto.api.ActivateDeviceRequest', null, global); -goog.exportSymbol('proto.api.CreateDeviceKeysRequest', null, global); -goog.exportSymbol('proto.api.CreateDeviceRequest', null, global); -goog.exportSymbol('proto.api.DeactivateDeviceRequest', null, global); -goog.exportSymbol('proto.api.DeleteDeviceKeysRequest', null, global); -goog.exportSymbol('proto.api.DeleteDeviceRequest', null, global); -goog.exportSymbol('proto.api.Device', null, global); -goog.exportSymbol('proto.api.DeviceActivation', null, global); -goog.exportSymbol('proto.api.DeviceKeys', null, global); -goog.exportSymbol('proto.api.DeviceListItem', null, global); -goog.exportSymbol('proto.api.DeviceQueueItem', null, global); -goog.exportSymbol('proto.api.DeviceState', null, global); -goog.exportSymbol('proto.api.DeviceStatus', null, global); -goog.exportSymbol('proto.api.EnqueueDeviceQueueItemRequest', null, global); -goog.exportSymbol('proto.api.EnqueueDeviceQueueItemResponse', null, global); -goog.exportSymbol('proto.api.FlushDevNoncesRequest', null, global); -goog.exportSymbol('proto.api.FlushDeviceQueueRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceActivationRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceActivationResponse', null, global); -goog.exportSymbol('proto.api.GetDeviceKeysRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceKeysResponse', null, global); -goog.exportSymbol('proto.api.GetDeviceLinkMetricsRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceLinkMetricsResponse', null, global); -goog.exportSymbol('proto.api.GetDeviceMetricsRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceMetricsResponse', null, global); -goog.exportSymbol('proto.api.GetDeviceNextFCntDownRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceNextFCntDownResponse', null, global); -goog.exportSymbol('proto.api.GetDeviceQueueItemsRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceQueueItemsResponse', null, global); -goog.exportSymbol('proto.api.GetDeviceRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceResponse', null, global); -goog.exportSymbol('proto.api.GetRandomDevAddrRequest', null, global); -goog.exportSymbol('proto.api.GetRandomDevAddrResponse', null, global); -goog.exportSymbol('proto.api.ListDevicesRequest', null, global); -goog.exportSymbol('proto.api.ListDevicesResponse', null, global); -goog.exportSymbol('proto.api.UpdateDeviceKeysRequest', null, global); -goog.exportSymbol('proto.api.UpdateDeviceRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.Device = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.Device, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.Device.displayName = 'proto.api.Device'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceStatus = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceStatus, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceStatus.displayName = 'proto.api.DeviceStatus'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceListItem.displayName = 'proto.api.DeviceListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceKeys = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceKeys, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceKeys.displayName = 'proto.api.DeviceKeys'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateDeviceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateDeviceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateDeviceRequest.displayName = 'proto.api.CreateDeviceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceRequest.displayName = 'proto.api.GetDeviceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceResponse.displayName = 'proto.api.GetDeviceResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateDeviceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateDeviceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateDeviceRequest.displayName = 'proto.api.UpdateDeviceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteDeviceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteDeviceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteDeviceRequest.displayName = 'proto.api.DeleteDeviceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListDevicesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListDevicesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListDevicesRequest.displayName = 'proto.api.ListDevicesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListDevicesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListDevicesResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListDevicesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListDevicesResponse.displayName = 'proto.api.ListDevicesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateDeviceKeysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateDeviceKeysRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateDeviceKeysRequest.displayName = 'proto.api.CreateDeviceKeysRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceKeysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceKeysRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceKeysRequest.displayName = 'proto.api.GetDeviceKeysRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceKeysResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceKeysResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceKeysResponse.displayName = 'proto.api.GetDeviceKeysResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateDeviceKeysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateDeviceKeysRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateDeviceKeysRequest.displayName = 'proto.api.UpdateDeviceKeysRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteDeviceKeysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteDeviceKeysRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteDeviceKeysRequest.displayName = 'proto.api.DeleteDeviceKeysRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceActivation = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceActivation, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceActivation.displayName = 'proto.api.DeviceActivation'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ActivateDeviceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ActivateDeviceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ActivateDeviceRequest.displayName = 'proto.api.ActivateDeviceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeactivateDeviceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeactivateDeviceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeactivateDeviceRequest.displayName = 'proto.api.DeactivateDeviceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceActivationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceActivationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceActivationRequest.displayName = 'proto.api.GetDeviceActivationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceActivationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceActivationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceActivationResponse.displayName = 'proto.api.GetDeviceActivationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetRandomDevAddrRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetRandomDevAddrRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetRandomDevAddrRequest.displayName = 'proto.api.GetRandomDevAddrRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetRandomDevAddrResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetRandomDevAddrResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetRandomDevAddrResponse.displayName = 'proto.api.GetRandomDevAddrResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceMetricsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceMetricsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceMetricsRequest.displayName = 'proto.api.GetDeviceMetricsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceMetricsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceMetricsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceMetricsResponse.displayName = 'proto.api.GetDeviceMetricsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceState = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceState, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceState.displayName = 'proto.api.DeviceState'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceLinkMetricsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceLinkMetricsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceLinkMetricsRequest.displayName = 'proto.api.GetDeviceLinkMetricsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceLinkMetricsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceLinkMetricsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceLinkMetricsResponse.displayName = 'proto.api.GetDeviceLinkMetricsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceQueueItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceQueueItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceQueueItem.displayName = 'proto.api.DeviceQueueItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.EnqueueDeviceQueueItemRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.EnqueueDeviceQueueItemRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.EnqueueDeviceQueueItemRequest.displayName = 'proto.api.EnqueueDeviceQueueItemRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.EnqueueDeviceQueueItemResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.EnqueueDeviceQueueItemResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.EnqueueDeviceQueueItemResponse.displayName = 'proto.api.EnqueueDeviceQueueItemResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.FlushDeviceQueueRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.FlushDeviceQueueRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.FlushDeviceQueueRequest.displayName = 'proto.api.FlushDeviceQueueRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceQueueItemsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceQueueItemsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceQueueItemsRequest.displayName = 'proto.api.GetDeviceQueueItemsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceQueueItemsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.GetDeviceQueueItemsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.GetDeviceQueueItemsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceQueueItemsResponse.displayName = 'proto.api.GetDeviceQueueItemsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.FlushDevNoncesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.FlushDevNoncesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.FlushDevNoncesRequest.displayName = 'proto.api.FlushDevNoncesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceNextFCntDownRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceNextFCntDownRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceNextFCntDownRequest.displayName = 'proto.api.GetDeviceNextFCntDownRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceNextFCntDownResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceNextFCntDownResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceNextFCntDownResponse.displayName = 'proto.api.GetDeviceNextFCntDownResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.Device.prototype.toObject = function(opt_includeInstance) { - return proto.api.Device.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.Device} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Device.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - applicationId: jspb.Message.getFieldWithDefault(msg, 4, ""), - deviceProfileId: jspb.Message.getFieldWithDefault(msg, 5, ""), - skipFcntCheck: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - isDisabled: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - variablesMap: (f = msg.getVariablesMap()) ? f.toObject(includeInstance, undefined) : [], - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [], - joinEui: jspb.Message.getFieldWithDefault(msg, 10, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.Device} - */ -proto.api.Device.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.Device; - return proto.api.Device.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.Device} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.Device} - */ -proto.api.Device.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceProfileId(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSkipFcntCheck(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsDisabled(value); - break; - case 8: - var value = msg.getVariablesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 9: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setJoinEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.Device.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.Device.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.Device} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Device.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getDeviceProfileId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getSkipFcntCheck(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getIsDisabled(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getVariablesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(8, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getJoinEui(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.Device.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.Device.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.api.Device.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string application_id = 4; - * @return {string} - */ -proto.api.Device.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string device_profile_id = 5; - * @return {string} - */ -proto.api.Device.prototype.getDeviceProfileId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.setDeviceProfileId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional bool skip_fcnt_check = 6; - * @return {boolean} - */ -proto.api.Device.prototype.getSkipFcntCheck = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.setSkipFcntCheck = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional bool is_disabled = 7; - * @return {boolean} - */ -proto.api.Device.prototype.getIsDisabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.setIsDisabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * map variables = 8; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.Device.prototype.getVariablesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 8, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.clearVariablesMap = function() { - this.getVariablesMap().clear(); - return this;}; - - -/** - * map tags = 9; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.Device.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 9, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - -/** - * optional string join_eui = 10; - * @return {string} - */ -proto.api.Device.prototype.getJoinEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.setJoinEui = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceStatus.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceStatus.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceStatus} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceStatus.toObject = function(includeInstance, msg) { - var f, obj = { - margin: jspb.Message.getFieldWithDefault(msg, 1, 0), - externalPowerSource: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - batteryLevel: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceStatus} - */ -proto.api.DeviceStatus.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceStatus; - return proto.api.DeviceStatus.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceStatus} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceStatus} - */ -proto.api.DeviceStatus.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMargin(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setExternalPowerSource(value); - break; - case 3: - var value = /** @type {number} */ (reader.readFloat()); - msg.setBatteryLevel(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceStatus.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceStatus.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceStatus} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceStatus.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMargin(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getExternalPowerSource(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getBatteryLevel(); - if (f !== 0.0) { - writer.writeFloat( - 3, - f - ); - } -}; - - -/** - * optional int32 margin = 1; - * @return {number} - */ -proto.api.DeviceStatus.prototype.getMargin = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceStatus} returns this - */ -proto.api.DeviceStatus.prototype.setMargin = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool external_power_source = 2; - * @return {boolean} - */ -proto.api.DeviceStatus.prototype.getExternalPowerSource = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceStatus} returns this - */ -proto.api.DeviceStatus.prototype.setExternalPowerSource = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional float battery_level = 3; - * @return {number} - */ -proto.api.DeviceStatus.prototype.getBatteryLevel = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceStatus} returns this - */ -proto.api.DeviceStatus.prototype.setBatteryLevel = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceListItem.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - lastSeenAt: (f = msg.getLastSeenAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 5, ""), - description: jspb.Message.getFieldWithDefault(msg, 6, ""), - deviceProfileId: jspb.Message.getFieldWithDefault(msg, 7, ""), - deviceProfileName: jspb.Message.getFieldWithDefault(msg, 8, ""), - deviceStatus: (f = msg.getDeviceStatus()) && proto.api.DeviceStatus.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceListItem} - */ -proto.api.DeviceListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceListItem; - return proto.api.DeviceListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceListItem} - */ -proto.api.DeviceListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setLastSeenAt(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceProfileId(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceProfileName(value); - break; - case 9: - var value = new proto.api.DeviceStatus; - reader.readMessage(value,proto.api.DeviceStatus.deserializeBinaryFromReader); - msg.setDeviceStatus(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getLastSeenAt(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getDeviceProfileId(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getDeviceProfileName(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getDeviceStatus(); - if (f != null) { - writer.writeMessage( - 9, - f, - proto.api.DeviceStatus.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.DeviceListItem.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceListItem} returns this - */ -proto.api.DeviceListItem.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.DeviceListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.DeviceListItem} returns this -*/ -proto.api.DeviceListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.DeviceListItem} returns this - */ -proto.api.DeviceListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.DeviceListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.DeviceListItem.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.DeviceListItem} returns this -*/ -proto.api.DeviceListItem.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.DeviceListItem} returns this - */ -proto.api.DeviceListItem.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.DeviceListItem.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp last_seen_at = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.DeviceListItem.prototype.getLastSeenAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.DeviceListItem} returns this -*/ -proto.api.DeviceListItem.prototype.setLastSeenAt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.DeviceListItem} returns this - */ -proto.api.DeviceListItem.prototype.clearLastSeenAt = function() { - return this.setLastSeenAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.DeviceListItem.prototype.hasLastSeenAt = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string name = 5; - * @return {string} - */ -proto.api.DeviceListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceListItem} returns this - */ -proto.api.DeviceListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string description = 6; - * @return {string} - */ -proto.api.DeviceListItem.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceListItem} returns this - */ -proto.api.DeviceListItem.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string device_profile_id = 7; - * @return {string} - */ -proto.api.DeviceListItem.prototype.getDeviceProfileId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceListItem} returns this - */ -proto.api.DeviceListItem.prototype.setDeviceProfileId = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string device_profile_name = 8; - * @return {string} - */ -proto.api.DeviceListItem.prototype.getDeviceProfileName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceListItem} returns this - */ -proto.api.DeviceListItem.prototype.setDeviceProfileName = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional DeviceStatus device_status = 9; - * @return {?proto.api.DeviceStatus} - */ -proto.api.DeviceListItem.prototype.getDeviceStatus = function() { - return /** @type{?proto.api.DeviceStatus} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceStatus, 9)); -}; - - -/** - * @param {?proto.api.DeviceStatus|undefined} value - * @return {!proto.api.DeviceListItem} returns this -*/ -proto.api.DeviceListItem.prototype.setDeviceStatus = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.DeviceListItem} returns this - */ -proto.api.DeviceListItem.prototype.clearDeviceStatus = function() { - return this.setDeviceStatus(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.DeviceListItem.prototype.hasDeviceStatus = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceKeys.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceKeys.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceKeys} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceKeys.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - nwkKey: jspb.Message.getFieldWithDefault(msg, 2, ""), - appKey: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceKeys} - */ -proto.api.DeviceKeys.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceKeys; - return proto.api.DeviceKeys.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceKeys} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceKeys} - */ -proto.api.DeviceKeys.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setNwkKey(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAppKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceKeys.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceKeys.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceKeys} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceKeys.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getNwkKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getAppKey(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.DeviceKeys.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceKeys} returns this - */ -proto.api.DeviceKeys.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string nwk_key = 2; - * @return {string} - */ -proto.api.DeviceKeys.prototype.getNwkKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceKeys} returns this - */ -proto.api.DeviceKeys.prototype.setNwkKey = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string app_key = 3; - * @return {string} - */ -proto.api.DeviceKeys.prototype.getAppKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceKeys} returns this - */ -proto.api.DeviceKeys.prototype.setAppKey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateDeviceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateDeviceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateDeviceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - device: (f = msg.getDevice()) && proto.api.Device.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateDeviceRequest} - */ -proto.api.CreateDeviceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateDeviceRequest; - return proto.api.CreateDeviceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateDeviceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateDeviceRequest} - */ -proto.api.CreateDeviceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Device; - reader.readMessage(value,proto.api.Device.deserializeBinaryFromReader); - msg.setDevice(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateDeviceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateDeviceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateDeviceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevice(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Device.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Device device = 1; - * @return {?proto.api.Device} - */ -proto.api.CreateDeviceRequest.prototype.getDevice = function() { - return /** @type{?proto.api.Device} */ ( - jspb.Message.getWrapperField(this, proto.api.Device, 1)); -}; - - -/** - * @param {?proto.api.Device|undefined} value - * @return {!proto.api.CreateDeviceRequest} returns this -*/ -proto.api.CreateDeviceRequest.prototype.setDevice = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateDeviceRequest} returns this - */ -proto.api.CreateDeviceRequest.prototype.clearDevice = function() { - return this.setDevice(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateDeviceRequest.prototype.hasDevice = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceRequest} - */ -proto.api.GetDeviceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceRequest; - return proto.api.GetDeviceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceRequest} - */ -proto.api.GetDeviceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.GetDeviceRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDeviceRequest} returns this - */ -proto.api.GetDeviceRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceResponse.toObject = function(includeInstance, msg) { - var f, obj = { - device: (f = msg.getDevice()) && proto.api.Device.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - lastSeenAt: (f = msg.getLastSeenAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - deviceStatus: (f = msg.getDeviceStatus()) && proto.api.DeviceStatus.toObject(includeInstance, f), - classEnabled: jspb.Message.getFieldWithDefault(msg, 6, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceResponse} - */ -proto.api.GetDeviceResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceResponse; - return proto.api.GetDeviceResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceResponse} - */ -proto.api.GetDeviceResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Device; - reader.readMessage(value,proto.api.Device.deserializeBinaryFromReader); - msg.setDevice(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setLastSeenAt(value); - break; - case 5: - var value = new proto.api.DeviceStatus; - reader.readMessage(value,proto.api.DeviceStatus.deserializeBinaryFromReader); - msg.setDeviceStatus(value); - break; - case 6: - var value = /** @type {!proto.common.DeviceClass} */ (reader.readEnum()); - msg.setClassEnabled(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevice(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Device.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getLastSeenAt(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDeviceStatus(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.api.DeviceStatus.serializeBinaryToWriter - ); - } - f = message.getClassEnabled(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } -}; - - -/** - * optional Device device = 1; - * @return {?proto.api.Device} - */ -proto.api.GetDeviceResponse.prototype.getDevice = function() { - return /** @type{?proto.api.Device} */ ( - jspb.Message.getWrapperField(this, proto.api.Device, 1)); -}; - - -/** - * @param {?proto.api.Device|undefined} value - * @return {!proto.api.GetDeviceResponse} returns this -*/ -proto.api.GetDeviceResponse.prototype.setDevice = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceResponse} returns this - */ -proto.api.GetDeviceResponse.prototype.clearDevice = function() { - return this.setDevice(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceResponse.prototype.hasDevice = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceResponse} returns this -*/ -proto.api.GetDeviceResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceResponse} returns this - */ -proto.api.GetDeviceResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceResponse} returns this -*/ -proto.api.GetDeviceResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceResponse} returns this - */ -proto.api.GetDeviceResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp last_seen_at = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceResponse.prototype.getLastSeenAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceResponse} returns this -*/ -proto.api.GetDeviceResponse.prototype.setLastSeenAt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceResponse} returns this - */ -proto.api.GetDeviceResponse.prototype.clearLastSeenAt = function() { - return this.setLastSeenAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceResponse.prototype.hasLastSeenAt = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional DeviceStatus device_status = 5; - * @return {?proto.api.DeviceStatus} - */ -proto.api.GetDeviceResponse.prototype.getDeviceStatus = function() { - return /** @type{?proto.api.DeviceStatus} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceStatus, 5)); -}; - - -/** - * @param {?proto.api.DeviceStatus|undefined} value - * @return {!proto.api.GetDeviceResponse} returns this -*/ -proto.api.GetDeviceResponse.prototype.setDeviceStatus = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceResponse} returns this - */ -proto.api.GetDeviceResponse.prototype.clearDeviceStatus = function() { - return this.setDeviceStatus(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceResponse.prototype.hasDeviceStatus = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional common.DeviceClass class_enabled = 6; - * @return {!proto.common.DeviceClass} - */ -proto.api.GetDeviceResponse.prototype.getClassEnabled = function() { - return /** @type {!proto.common.DeviceClass} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.common.DeviceClass} value - * @return {!proto.api.GetDeviceResponse} returns this - */ -proto.api.GetDeviceResponse.prototype.setClassEnabled = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateDeviceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateDeviceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateDeviceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateDeviceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - device: (f = msg.getDevice()) && proto.api.Device.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateDeviceRequest} - */ -proto.api.UpdateDeviceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateDeviceRequest; - return proto.api.UpdateDeviceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateDeviceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateDeviceRequest} - */ -proto.api.UpdateDeviceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Device; - reader.readMessage(value,proto.api.Device.deserializeBinaryFromReader); - msg.setDevice(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateDeviceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateDeviceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateDeviceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateDeviceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevice(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Device.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Device device = 1; - * @return {?proto.api.Device} - */ -proto.api.UpdateDeviceRequest.prototype.getDevice = function() { - return /** @type{?proto.api.Device} */ ( - jspb.Message.getWrapperField(this, proto.api.Device, 1)); -}; - - -/** - * @param {?proto.api.Device|undefined} value - * @return {!proto.api.UpdateDeviceRequest} returns this -*/ -proto.api.UpdateDeviceRequest.prototype.setDevice = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateDeviceRequest} returns this - */ -proto.api.UpdateDeviceRequest.prototype.clearDevice = function() { - return this.setDevice(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateDeviceRequest.prototype.hasDevice = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteDeviceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteDeviceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteDeviceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteDeviceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteDeviceRequest} - */ -proto.api.DeleteDeviceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteDeviceRequest; - return proto.api.DeleteDeviceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteDeviceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteDeviceRequest} - */ -proto.api.DeleteDeviceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteDeviceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteDeviceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteDeviceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteDeviceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.DeleteDeviceRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteDeviceRequest} returns this - */ -proto.api.DeleteDeviceRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListDevicesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListDevicesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListDevicesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDevicesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - search: jspb.Message.getFieldWithDefault(msg, 3, ""), - applicationId: jspb.Message.getFieldWithDefault(msg, 4, ""), - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListDevicesRequest} - */ -proto.api.ListDevicesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListDevicesRequest; - return proto.api.ListDevicesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListDevicesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListDevicesRequest} - */ -proto.api.ListDevicesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSearch(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListDevicesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListDevicesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListDevicesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDevicesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getSearch(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListDevicesRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDevicesRequest} returns this - */ -proto.api.ListDevicesRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListDevicesRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDevicesRequest} returns this - */ -proto.api.ListDevicesRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string search = 3; - * @return {string} - */ -proto.api.ListDevicesRequest.prototype.getSearch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListDevicesRequest} returns this - */ -proto.api.ListDevicesRequest.prototype.setSearch = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string application_id = 4; - * @return {string} - */ -proto.api.ListDevicesRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListDevicesRequest} returns this - */ -proto.api.ListDevicesRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string multicast_group_id = 5; - * @return {string} - */ -proto.api.ListDevicesRequest.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListDevicesRequest} returns this - */ -proto.api.ListDevicesRequest.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListDevicesResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListDevicesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListDevicesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListDevicesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDevicesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.DeviceListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListDevicesResponse} - */ -proto.api.ListDevicesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListDevicesResponse; - return proto.api.ListDevicesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListDevicesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListDevicesResponse} - */ -proto.api.ListDevicesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.DeviceListItem; - reader.readMessage(value,proto.api.DeviceListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListDevicesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListDevicesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListDevicesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDevicesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.DeviceListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListDevicesResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDevicesResponse} returns this - */ -proto.api.ListDevicesResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated DeviceListItem result = 2; - * @return {!Array} - */ -proto.api.ListDevicesResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.DeviceListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListDevicesResponse} returns this -*/ -proto.api.ListDevicesResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.DeviceListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.DeviceListItem} - */ -proto.api.ListDevicesResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.DeviceListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListDevicesResponse} returns this - */ -proto.api.ListDevicesResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateDeviceKeysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateDeviceKeysRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateDeviceKeysRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceKeysRequest.toObject = function(includeInstance, msg) { - var f, obj = { - deviceKeys: (f = msg.getDeviceKeys()) && proto.api.DeviceKeys.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateDeviceKeysRequest} - */ -proto.api.CreateDeviceKeysRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateDeviceKeysRequest; - return proto.api.CreateDeviceKeysRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateDeviceKeysRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateDeviceKeysRequest} - */ -proto.api.CreateDeviceKeysRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceKeys; - reader.readMessage(value,proto.api.DeviceKeys.deserializeBinaryFromReader); - msg.setDeviceKeys(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateDeviceKeysRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateDeviceKeysRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateDeviceKeysRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceKeysRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceKeys(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceKeys.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceKeys device_keys = 1; - * @return {?proto.api.DeviceKeys} - */ -proto.api.CreateDeviceKeysRequest.prototype.getDeviceKeys = function() { - return /** @type{?proto.api.DeviceKeys} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceKeys, 1)); -}; - - -/** - * @param {?proto.api.DeviceKeys|undefined} value - * @return {!proto.api.CreateDeviceKeysRequest} returns this -*/ -proto.api.CreateDeviceKeysRequest.prototype.setDeviceKeys = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateDeviceKeysRequest} returns this - */ -proto.api.CreateDeviceKeysRequest.prototype.clearDeviceKeys = function() { - return this.setDeviceKeys(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateDeviceKeysRequest.prototype.hasDeviceKeys = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceKeysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceKeysRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceKeysRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceKeysRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceKeysRequest} - */ -proto.api.GetDeviceKeysRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceKeysRequest; - return proto.api.GetDeviceKeysRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceKeysRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceKeysRequest} - */ -proto.api.GetDeviceKeysRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceKeysRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceKeysRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceKeysRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceKeysRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.GetDeviceKeysRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDeviceKeysRequest} returns this - */ -proto.api.GetDeviceKeysRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceKeysResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceKeysResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceKeysResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceKeysResponse.toObject = function(includeInstance, msg) { - var f, obj = { - deviceKeys: (f = msg.getDeviceKeys()) && proto.api.DeviceKeys.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceKeysResponse} - */ -proto.api.GetDeviceKeysResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceKeysResponse; - return proto.api.GetDeviceKeysResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceKeysResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceKeysResponse} - */ -proto.api.GetDeviceKeysResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceKeys; - reader.readMessage(value,proto.api.DeviceKeys.deserializeBinaryFromReader); - msg.setDeviceKeys(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceKeysResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceKeysResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceKeysResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceKeysResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceKeys(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceKeys.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceKeys device_keys = 1; - * @return {?proto.api.DeviceKeys} - */ -proto.api.GetDeviceKeysResponse.prototype.getDeviceKeys = function() { - return /** @type{?proto.api.DeviceKeys} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceKeys, 1)); -}; - - -/** - * @param {?proto.api.DeviceKeys|undefined} value - * @return {!proto.api.GetDeviceKeysResponse} returns this -*/ -proto.api.GetDeviceKeysResponse.prototype.setDeviceKeys = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceKeysResponse} returns this - */ -proto.api.GetDeviceKeysResponse.prototype.clearDeviceKeys = function() { - return this.setDeviceKeys(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceKeysResponse.prototype.hasDeviceKeys = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceKeysResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceKeysResponse} returns this -*/ -proto.api.GetDeviceKeysResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceKeysResponse} returns this - */ -proto.api.GetDeviceKeysResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceKeysResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceKeysResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceKeysResponse} returns this -*/ -proto.api.GetDeviceKeysResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceKeysResponse} returns this - */ -proto.api.GetDeviceKeysResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceKeysResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateDeviceKeysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateDeviceKeysRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateDeviceKeysRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateDeviceKeysRequest.toObject = function(includeInstance, msg) { - var f, obj = { - deviceKeys: (f = msg.getDeviceKeys()) && proto.api.DeviceKeys.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateDeviceKeysRequest} - */ -proto.api.UpdateDeviceKeysRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateDeviceKeysRequest; - return proto.api.UpdateDeviceKeysRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateDeviceKeysRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateDeviceKeysRequest} - */ -proto.api.UpdateDeviceKeysRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceKeys; - reader.readMessage(value,proto.api.DeviceKeys.deserializeBinaryFromReader); - msg.setDeviceKeys(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateDeviceKeysRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateDeviceKeysRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateDeviceKeysRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateDeviceKeysRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceKeys(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceKeys.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceKeys device_keys = 1; - * @return {?proto.api.DeviceKeys} - */ -proto.api.UpdateDeviceKeysRequest.prototype.getDeviceKeys = function() { - return /** @type{?proto.api.DeviceKeys} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceKeys, 1)); -}; - - -/** - * @param {?proto.api.DeviceKeys|undefined} value - * @return {!proto.api.UpdateDeviceKeysRequest} returns this -*/ -proto.api.UpdateDeviceKeysRequest.prototype.setDeviceKeys = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateDeviceKeysRequest} returns this - */ -proto.api.UpdateDeviceKeysRequest.prototype.clearDeviceKeys = function() { - return this.setDeviceKeys(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateDeviceKeysRequest.prototype.hasDeviceKeys = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteDeviceKeysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteDeviceKeysRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteDeviceKeysRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteDeviceKeysRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteDeviceKeysRequest} - */ -proto.api.DeleteDeviceKeysRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteDeviceKeysRequest; - return proto.api.DeleteDeviceKeysRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteDeviceKeysRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteDeviceKeysRequest} - */ -proto.api.DeleteDeviceKeysRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteDeviceKeysRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteDeviceKeysRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteDeviceKeysRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteDeviceKeysRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.DeleteDeviceKeysRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteDeviceKeysRequest} returns this - */ -proto.api.DeleteDeviceKeysRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceActivation.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceActivation.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceActivation} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceActivation.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - devAddr: jspb.Message.getFieldWithDefault(msg, 2, ""), - appSKey: jspb.Message.getFieldWithDefault(msg, 3, ""), - nwkSEncKey: jspb.Message.getFieldWithDefault(msg, 4, ""), - sNwkSIntKey: jspb.Message.getFieldWithDefault(msg, 8, ""), - fNwkSIntKey: jspb.Message.getFieldWithDefault(msg, 9, ""), - fCntUp: jspb.Message.getFieldWithDefault(msg, 5, 0), - nFCntDown: jspb.Message.getFieldWithDefault(msg, 6, 0), - aFCntDown: jspb.Message.getFieldWithDefault(msg, 10, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceActivation} - */ -proto.api.DeviceActivation.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceActivation; - return proto.api.DeviceActivation.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceActivation} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceActivation} - */ -proto.api.DeviceActivation.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDevAddr(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAppSKey(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setNwkSEncKey(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setSNwkSIntKey(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setFNwkSIntKey(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCntUp(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setNFCntDown(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAFCntDown(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceActivation.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceActivation.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceActivation} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceActivation.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDevAddr(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getAppSKey(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getNwkSEncKey(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getSNwkSIntKey(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getFNwkSIntKey(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getFCntUp(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getNFCntDown(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } - f = message.getAFCntDown(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.DeviceActivation.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceActivation} returns this - */ -proto.api.DeviceActivation.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string dev_addr = 2; - * @return {string} - */ -proto.api.DeviceActivation.prototype.getDevAddr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceActivation} returns this - */ -proto.api.DeviceActivation.prototype.setDevAddr = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string app_s_key = 3; - * @return {string} - */ -proto.api.DeviceActivation.prototype.getAppSKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceActivation} returns this - */ -proto.api.DeviceActivation.prototype.setAppSKey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string nwk_s_enc_key = 4; - * @return {string} - */ -proto.api.DeviceActivation.prototype.getNwkSEncKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceActivation} returns this - */ -proto.api.DeviceActivation.prototype.setNwkSEncKey = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string s_nwk_s_int_key = 8; - * @return {string} - */ -proto.api.DeviceActivation.prototype.getSNwkSIntKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceActivation} returns this - */ -proto.api.DeviceActivation.prototype.setSNwkSIntKey = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string f_nwk_s_int_key = 9; - * @return {string} - */ -proto.api.DeviceActivation.prototype.getFNwkSIntKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceActivation} returns this - */ -proto.api.DeviceActivation.prototype.setFNwkSIntKey = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional uint32 f_cnt_up = 5; - * @return {number} - */ -proto.api.DeviceActivation.prototype.getFCntUp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceActivation} returns this - */ -proto.api.DeviceActivation.prototype.setFCntUp = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional uint32 n_f_cnt_down = 6; - * @return {number} - */ -proto.api.DeviceActivation.prototype.getNFCntDown = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceActivation} returns this - */ -proto.api.DeviceActivation.prototype.setNFCntDown = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional uint32 a_f_cnt_down = 10; - * @return {number} - */ -proto.api.DeviceActivation.prototype.getAFCntDown = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceActivation} returns this - */ -proto.api.DeviceActivation.prototype.setAFCntDown = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ActivateDeviceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ActivateDeviceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ActivateDeviceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ActivateDeviceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - deviceActivation: (f = msg.getDeviceActivation()) && proto.api.DeviceActivation.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ActivateDeviceRequest} - */ -proto.api.ActivateDeviceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ActivateDeviceRequest; - return proto.api.ActivateDeviceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ActivateDeviceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ActivateDeviceRequest} - */ -proto.api.ActivateDeviceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceActivation; - reader.readMessage(value,proto.api.DeviceActivation.deserializeBinaryFromReader); - msg.setDeviceActivation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ActivateDeviceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ActivateDeviceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ActivateDeviceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ActivateDeviceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceActivation(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceActivation.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceActivation device_activation = 1; - * @return {?proto.api.DeviceActivation} - */ -proto.api.ActivateDeviceRequest.prototype.getDeviceActivation = function() { - return /** @type{?proto.api.DeviceActivation} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceActivation, 1)); -}; - - -/** - * @param {?proto.api.DeviceActivation|undefined} value - * @return {!proto.api.ActivateDeviceRequest} returns this -*/ -proto.api.ActivateDeviceRequest.prototype.setDeviceActivation = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.ActivateDeviceRequest} returns this - */ -proto.api.ActivateDeviceRequest.prototype.clearDeviceActivation = function() { - return this.setDeviceActivation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.ActivateDeviceRequest.prototype.hasDeviceActivation = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeactivateDeviceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeactivateDeviceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeactivateDeviceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeactivateDeviceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeactivateDeviceRequest} - */ -proto.api.DeactivateDeviceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeactivateDeviceRequest; - return proto.api.DeactivateDeviceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeactivateDeviceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeactivateDeviceRequest} - */ -proto.api.DeactivateDeviceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeactivateDeviceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeactivateDeviceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeactivateDeviceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeactivateDeviceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.DeactivateDeviceRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeactivateDeviceRequest} returns this - */ -proto.api.DeactivateDeviceRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceActivationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceActivationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceActivationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceActivationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceActivationRequest} - */ -proto.api.GetDeviceActivationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceActivationRequest; - return proto.api.GetDeviceActivationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceActivationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceActivationRequest} - */ -proto.api.GetDeviceActivationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceActivationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceActivationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceActivationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceActivationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.GetDeviceActivationRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDeviceActivationRequest} returns this - */ -proto.api.GetDeviceActivationRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceActivationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceActivationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceActivationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceActivationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - deviceActivation: (f = msg.getDeviceActivation()) && proto.api.DeviceActivation.toObject(includeInstance, f), - joinServerContext: (f = msg.getJoinServerContext()) && common_common_pb.JoinServerContext.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceActivationResponse} - */ -proto.api.GetDeviceActivationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceActivationResponse; - return proto.api.GetDeviceActivationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceActivationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceActivationResponse} - */ -proto.api.GetDeviceActivationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceActivation; - reader.readMessage(value,proto.api.DeviceActivation.deserializeBinaryFromReader); - msg.setDeviceActivation(value); - break; - case 2: - var value = new common_common_pb.JoinServerContext; - reader.readMessage(value,common_common_pb.JoinServerContext.deserializeBinaryFromReader); - msg.setJoinServerContext(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceActivationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceActivationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceActivationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceActivationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceActivation(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceActivation.serializeBinaryToWriter - ); - } - f = message.getJoinServerContext(); - if (f != null) { - writer.writeMessage( - 2, - f, - common_common_pb.JoinServerContext.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceActivation device_activation = 1; - * @return {?proto.api.DeviceActivation} - */ -proto.api.GetDeviceActivationResponse.prototype.getDeviceActivation = function() { - return /** @type{?proto.api.DeviceActivation} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceActivation, 1)); -}; - - -/** - * @param {?proto.api.DeviceActivation|undefined} value - * @return {!proto.api.GetDeviceActivationResponse} returns this -*/ -proto.api.GetDeviceActivationResponse.prototype.setDeviceActivation = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceActivationResponse} returns this - */ -proto.api.GetDeviceActivationResponse.prototype.clearDeviceActivation = function() { - return this.setDeviceActivation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceActivationResponse.prototype.hasDeviceActivation = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional common.JoinServerContext join_server_context = 2; - * @return {?proto.common.JoinServerContext} - */ -proto.api.GetDeviceActivationResponse.prototype.getJoinServerContext = function() { - return /** @type{?proto.common.JoinServerContext} */ ( - jspb.Message.getWrapperField(this, common_common_pb.JoinServerContext, 2)); -}; - - -/** - * @param {?proto.common.JoinServerContext|undefined} value - * @return {!proto.api.GetDeviceActivationResponse} returns this -*/ -proto.api.GetDeviceActivationResponse.prototype.setJoinServerContext = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceActivationResponse} returns this - */ -proto.api.GetDeviceActivationResponse.prototype.clearJoinServerContext = function() { - return this.setJoinServerContext(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceActivationResponse.prototype.hasJoinServerContext = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetRandomDevAddrRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetRandomDevAddrRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetRandomDevAddrRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetRandomDevAddrRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetRandomDevAddrRequest} - */ -proto.api.GetRandomDevAddrRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetRandomDevAddrRequest; - return proto.api.GetRandomDevAddrRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetRandomDevAddrRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetRandomDevAddrRequest} - */ -proto.api.GetRandomDevAddrRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetRandomDevAddrRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetRandomDevAddrRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetRandomDevAddrRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetRandomDevAddrRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.GetRandomDevAddrRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetRandomDevAddrRequest} returns this - */ -proto.api.GetRandomDevAddrRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetRandomDevAddrResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetRandomDevAddrResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetRandomDevAddrResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetRandomDevAddrResponse.toObject = function(includeInstance, msg) { - var f, obj = { - devAddr: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetRandomDevAddrResponse} - */ -proto.api.GetRandomDevAddrResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetRandomDevAddrResponse; - return proto.api.GetRandomDevAddrResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetRandomDevAddrResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetRandomDevAddrResponse} - */ -proto.api.GetRandomDevAddrResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevAddr(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetRandomDevAddrResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetRandomDevAddrResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetRandomDevAddrResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetRandomDevAddrResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevAddr(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_addr = 1; - * @return {string} - */ -proto.api.GetRandomDevAddrResponse.prototype.getDevAddr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetRandomDevAddrResponse} returns this - */ -proto.api.GetRandomDevAddrResponse.prototype.setDevAddr = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceMetricsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceMetricsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceMetricsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceMetricsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - start: (f = msg.getStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - end: (f = msg.getEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - aggregation: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceMetricsRequest} - */ -proto.api.GetDeviceMetricsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceMetricsRequest; - return proto.api.GetDeviceMetricsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceMetricsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceMetricsRequest} - */ -proto.api.GetDeviceMetricsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setStart(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setEnd(value); - break; - case 4: - var value = /** @type {!proto.common.Aggregation} */ (reader.readEnum()); - msg.setAggregation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceMetricsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceMetricsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceMetricsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceMetricsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getStart(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getEnd(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getAggregation(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.GetDeviceMetricsRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDeviceMetricsRequest} returns this - */ -proto.api.GetDeviceMetricsRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp start = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceMetricsRequest.prototype.getStart = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceMetricsRequest} returns this -*/ -proto.api.GetDeviceMetricsRequest.prototype.setStart = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceMetricsRequest} returns this - */ -proto.api.GetDeviceMetricsRequest.prototype.clearStart = function() { - return this.setStart(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceMetricsRequest.prototype.hasStart = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp end = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceMetricsRequest.prototype.getEnd = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceMetricsRequest} returns this -*/ -proto.api.GetDeviceMetricsRequest.prototype.setEnd = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceMetricsRequest} returns this - */ -proto.api.GetDeviceMetricsRequest.prototype.clearEnd = function() { - return this.setEnd(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceMetricsRequest.prototype.hasEnd = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional common.Aggregation aggregation = 4; - * @return {!proto.common.Aggregation} - */ -proto.api.GetDeviceMetricsRequest.prototype.getAggregation = function() { - return /** @type {!proto.common.Aggregation} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.common.Aggregation} value - * @return {!proto.api.GetDeviceMetricsRequest} returns this - */ -proto.api.GetDeviceMetricsRequest.prototype.setAggregation = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceMetricsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceMetricsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceMetricsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceMetricsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - metricsMap: (f = msg.getMetricsMap()) ? f.toObject(includeInstance, proto.common.Metric.toObject) : [], - statesMap: (f = msg.getStatesMap()) ? f.toObject(includeInstance, proto.api.DeviceState.toObject) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceMetricsResponse} - */ -proto.api.GetDeviceMetricsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceMetricsResponse; - return proto.api.GetDeviceMetricsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceMetricsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceMetricsResponse} - */ -proto.api.GetDeviceMetricsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = msg.getMetricsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.common.Metric.deserializeBinaryFromReader, "", new proto.common.Metric()); - }); - break; - case 2: - var value = msg.getStatesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.api.DeviceState.deserializeBinaryFromReader, "", new proto.api.DeviceState()); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceMetricsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceMetricsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceMetricsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceMetricsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMetricsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.common.Metric.serializeBinaryToWriter); - } - f = message.getStatesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.api.DeviceState.serializeBinaryToWriter); - } -}; - - -/** - * map metrics = 1; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.GetDeviceMetricsResponse.prototype.getMetricsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, opt_noLazyCreate, - proto.common.Metric)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.GetDeviceMetricsResponse} returns this - */ -proto.api.GetDeviceMetricsResponse.prototype.clearMetricsMap = function() { - this.getMetricsMap().clear(); - return this;}; - - -/** - * map states = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.GetDeviceMetricsResponse.prototype.getStatesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - proto.api.DeviceState)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.GetDeviceMetricsResponse} returns this - */ -proto.api.GetDeviceMetricsResponse.prototype.clearStatesMap = function() { - this.getStatesMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceState.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceState.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceState} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceState.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - value: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceState} - */ -proto.api.DeviceState.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceState; - return proto.api.DeviceState.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceState} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceState} - */ -proto.api.DeviceState.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceState.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceState.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceState} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceState.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.DeviceState.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceState} returns this - */ -proto.api.DeviceState.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string value = 3; - * @return {string} - */ -proto.api.DeviceState.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceState} returns this - */ -proto.api.DeviceState.prototype.setValue = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceLinkMetricsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceLinkMetricsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceLinkMetricsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - start: (f = msg.getStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - end: (f = msg.getEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - aggregation: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceLinkMetricsRequest} - */ -proto.api.GetDeviceLinkMetricsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceLinkMetricsRequest; - return proto.api.GetDeviceLinkMetricsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceLinkMetricsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceLinkMetricsRequest} - */ -proto.api.GetDeviceLinkMetricsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setStart(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setEnd(value); - break; - case 4: - var value = /** @type {!proto.common.Aggregation} */ (reader.readEnum()); - msg.setAggregation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceLinkMetricsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceLinkMetricsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceLinkMetricsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getStart(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getEnd(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getAggregation(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDeviceLinkMetricsRequest} returns this - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp start = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.getStart = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceLinkMetricsRequest} returns this -*/ -proto.api.GetDeviceLinkMetricsRequest.prototype.setStart = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceLinkMetricsRequest} returns this - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.clearStart = function() { - return this.setStart(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.hasStart = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp end = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.getEnd = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceLinkMetricsRequest} returns this -*/ -proto.api.GetDeviceLinkMetricsRequest.prototype.setEnd = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceLinkMetricsRequest} returns this - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.clearEnd = function() { - return this.setEnd(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.hasEnd = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional common.Aggregation aggregation = 4; - * @return {!proto.common.Aggregation} - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.getAggregation = function() { - return /** @type {!proto.common.Aggregation} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.common.Aggregation} value - * @return {!proto.api.GetDeviceLinkMetricsRequest} returns this - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.setAggregation = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceLinkMetricsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceLinkMetricsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceLinkMetricsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - rxPackets: (f = msg.getRxPackets()) && common_common_pb.Metric.toObject(includeInstance, f), - gwRssi: (f = msg.getGwRssi()) && common_common_pb.Metric.toObject(includeInstance, f), - gwSnr: (f = msg.getGwSnr()) && common_common_pb.Metric.toObject(includeInstance, f), - rxPacketsPerFreq: (f = msg.getRxPacketsPerFreq()) && common_common_pb.Metric.toObject(includeInstance, f), - rxPacketsPerDr: (f = msg.getRxPacketsPerDr()) && common_common_pb.Metric.toObject(includeInstance, f), - errors: (f = msg.getErrors()) && common_common_pb.Metric.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceLinkMetricsResponse} - */ -proto.api.GetDeviceLinkMetricsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceLinkMetricsResponse; - return proto.api.GetDeviceLinkMetricsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceLinkMetricsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceLinkMetricsResponse} - */ -proto.api.GetDeviceLinkMetricsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setRxPackets(value); - break; - case 2: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setGwRssi(value); - break; - case 3: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setGwSnr(value); - break; - case 4: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setRxPacketsPerFreq(value); - break; - case 5: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setRxPacketsPerDr(value); - break; - case 6: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setErrors(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceLinkMetricsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceLinkMetricsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceLinkMetricsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRxPackets(); - if (f != null) { - writer.writeMessage( - 1, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getGwRssi(); - if (f != null) { - writer.writeMessage( - 2, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getGwSnr(); - if (f != null) { - writer.writeMessage( - 3, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getRxPacketsPerFreq(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getRxPacketsPerDr(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getErrors(); - if (f != null) { - writer.writeMessage( - 6, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } -}; - - -/** - * optional common.Metric rx_packets = 1; - * @return {?proto.common.Metric} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.getRxPackets = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 1)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this -*/ -proto.api.GetDeviceLinkMetricsResponse.prototype.setRxPackets = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.clearRxPackets = function() { - return this.setRxPackets(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.hasRxPackets = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional common.Metric gw_rssi = 2; - * @return {?proto.common.Metric} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.getGwRssi = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 2)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this -*/ -proto.api.GetDeviceLinkMetricsResponse.prototype.setGwRssi = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.clearGwRssi = function() { - return this.setGwRssi(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.hasGwRssi = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional common.Metric gw_snr = 3; - * @return {?proto.common.Metric} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.getGwSnr = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 3)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this -*/ -proto.api.GetDeviceLinkMetricsResponse.prototype.setGwSnr = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.clearGwSnr = function() { - return this.setGwSnr(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.hasGwSnr = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional common.Metric rx_packets_per_freq = 4; - * @return {?proto.common.Metric} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.getRxPacketsPerFreq = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 4)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this -*/ -proto.api.GetDeviceLinkMetricsResponse.prototype.setRxPacketsPerFreq = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.clearRxPacketsPerFreq = function() { - return this.setRxPacketsPerFreq(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.hasRxPacketsPerFreq = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional common.Metric rx_packets_per_dr = 5; - * @return {?proto.common.Metric} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.getRxPacketsPerDr = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 5)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this -*/ -proto.api.GetDeviceLinkMetricsResponse.prototype.setRxPacketsPerDr = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.clearRxPacketsPerDr = function() { - return this.setRxPacketsPerDr(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.hasRxPacketsPerDr = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional common.Metric errors = 6; - * @return {?proto.common.Metric} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.getErrors = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 6)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this -*/ -proto.api.GetDeviceLinkMetricsResponse.prototype.setErrors = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.clearErrors = function() { - return this.setErrors(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.hasErrors = function() { - return jspb.Message.getField(this, 6) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceQueueItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceQueueItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceQueueItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceQueueItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - devEui: jspb.Message.getFieldWithDefault(msg, 2, ""), - confirmed: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - fPort: jspb.Message.getFieldWithDefault(msg, 4, 0), - data: msg.getData_asB64(), - object: (f = msg.getObject()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - isPending: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - fCntDown: jspb.Message.getFieldWithDefault(msg, 8, 0), - isEncrypted: jspb.Message.getBooleanFieldWithDefault(msg, 9, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceQueueItem} - */ -proto.api.DeviceQueueItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceQueueItem; - return proto.api.DeviceQueueItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceQueueItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceQueueItem} - */ -proto.api.DeviceQueueItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setConfirmed(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFPort(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 6: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setObject(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsPending(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCntDown(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsEncrypted(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceQueueItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceQueueItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceQueueItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceQueueItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getConfirmed(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getFPort(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } - f = message.getObject(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getIsPending(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getFCntDown(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getIsEncrypted(); - if (f) { - writer.writeBool( - 9, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeviceQueueItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceQueueItem} returns this - */ -proto.api.DeviceQueueItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string dev_eui = 2; - * @return {string} - */ -proto.api.DeviceQueueItem.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceQueueItem} returns this - */ -proto.api.DeviceQueueItem.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool confirmed = 3; - * @return {boolean} - */ -proto.api.DeviceQueueItem.prototype.getConfirmed = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceQueueItem} returns this - */ -proto.api.DeviceQueueItem.prototype.setConfirmed = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional uint32 f_port = 4; - * @return {number} - */ -proto.api.DeviceQueueItem.prototype.getFPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceQueueItem} returns this - */ -proto.api.DeviceQueueItem.prototype.setFPort = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional bytes data = 5; - * @return {string} - */ -proto.api.DeviceQueueItem.prototype.getData = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes data = 5; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.api.DeviceQueueItem.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.api.DeviceQueueItem.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.api.DeviceQueueItem} returns this - */ -proto.api.DeviceQueueItem.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - -/** - * optional google.protobuf.Struct object = 6; - * @return {?proto.google.protobuf.Struct} - */ -proto.api.DeviceQueueItem.prototype.getObject = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 6)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.api.DeviceQueueItem} returns this -*/ -proto.api.DeviceQueueItem.prototype.setObject = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.DeviceQueueItem} returns this - */ -proto.api.DeviceQueueItem.prototype.clearObject = function() { - return this.setObject(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.DeviceQueueItem.prototype.hasObject = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional bool is_pending = 7; - * @return {boolean} - */ -proto.api.DeviceQueueItem.prototype.getIsPending = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceQueueItem} returns this - */ -proto.api.DeviceQueueItem.prototype.setIsPending = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * optional uint32 f_cnt_down = 8; - * @return {number} - */ -proto.api.DeviceQueueItem.prototype.getFCntDown = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceQueueItem} returns this - */ -proto.api.DeviceQueueItem.prototype.setFCntDown = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional bool is_encrypted = 9; - * @return {boolean} - */ -proto.api.DeviceQueueItem.prototype.getIsEncrypted = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceQueueItem} returns this - */ -proto.api.DeviceQueueItem.prototype.setIsEncrypted = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.EnqueueDeviceQueueItemRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.EnqueueDeviceQueueItemRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.EnqueueDeviceQueueItemRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.EnqueueDeviceQueueItemRequest.toObject = function(includeInstance, msg) { - var f, obj = { - queueItem: (f = msg.getQueueItem()) && proto.api.DeviceQueueItem.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.EnqueueDeviceQueueItemRequest} - */ -proto.api.EnqueueDeviceQueueItemRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.EnqueueDeviceQueueItemRequest; - return proto.api.EnqueueDeviceQueueItemRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.EnqueueDeviceQueueItemRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.EnqueueDeviceQueueItemRequest} - */ -proto.api.EnqueueDeviceQueueItemRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceQueueItem; - reader.readMessage(value,proto.api.DeviceQueueItem.deserializeBinaryFromReader); - msg.setQueueItem(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.EnqueueDeviceQueueItemRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.EnqueueDeviceQueueItemRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.EnqueueDeviceQueueItemRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.EnqueueDeviceQueueItemRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getQueueItem(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceQueueItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceQueueItem queue_item = 1; - * @return {?proto.api.DeviceQueueItem} - */ -proto.api.EnqueueDeviceQueueItemRequest.prototype.getQueueItem = function() { - return /** @type{?proto.api.DeviceQueueItem} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceQueueItem, 1)); -}; - - -/** - * @param {?proto.api.DeviceQueueItem|undefined} value - * @return {!proto.api.EnqueueDeviceQueueItemRequest} returns this -*/ -proto.api.EnqueueDeviceQueueItemRequest.prototype.setQueueItem = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.EnqueueDeviceQueueItemRequest} returns this - */ -proto.api.EnqueueDeviceQueueItemRequest.prototype.clearQueueItem = function() { - return this.setQueueItem(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.EnqueueDeviceQueueItemRequest.prototype.hasQueueItem = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.EnqueueDeviceQueueItemResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.EnqueueDeviceQueueItemResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.EnqueueDeviceQueueItemResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.EnqueueDeviceQueueItemResponse.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.EnqueueDeviceQueueItemResponse} - */ -proto.api.EnqueueDeviceQueueItemResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.EnqueueDeviceQueueItemResponse; - return proto.api.EnqueueDeviceQueueItemResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.EnqueueDeviceQueueItemResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.EnqueueDeviceQueueItemResponse} - */ -proto.api.EnqueueDeviceQueueItemResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.EnqueueDeviceQueueItemResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.EnqueueDeviceQueueItemResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.EnqueueDeviceQueueItemResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.EnqueueDeviceQueueItemResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.EnqueueDeviceQueueItemResponse.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.EnqueueDeviceQueueItemResponse} returns this - */ -proto.api.EnqueueDeviceQueueItemResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.FlushDeviceQueueRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.FlushDeviceQueueRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.FlushDeviceQueueRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.FlushDeviceQueueRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.FlushDeviceQueueRequest} - */ -proto.api.FlushDeviceQueueRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.FlushDeviceQueueRequest; - return proto.api.FlushDeviceQueueRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.FlushDeviceQueueRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.FlushDeviceQueueRequest} - */ -proto.api.FlushDeviceQueueRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.FlushDeviceQueueRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.FlushDeviceQueueRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.FlushDeviceQueueRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.FlushDeviceQueueRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.FlushDeviceQueueRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.FlushDeviceQueueRequest} returns this - */ -proto.api.FlushDeviceQueueRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceQueueItemsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceQueueItemsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceQueueItemsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceQueueItemsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - countOnly: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceQueueItemsRequest} - */ -proto.api.GetDeviceQueueItemsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceQueueItemsRequest; - return proto.api.GetDeviceQueueItemsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceQueueItemsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceQueueItemsRequest} - */ -proto.api.GetDeviceQueueItemsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCountOnly(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceQueueItemsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceQueueItemsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceQueueItemsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceQueueItemsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCountOnly(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.GetDeviceQueueItemsRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDeviceQueueItemsRequest} returns this - */ -proto.api.GetDeviceQueueItemsRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool count_only = 2; - * @return {boolean} - */ -proto.api.GetDeviceQueueItemsRequest.prototype.getCountOnly = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.GetDeviceQueueItemsRequest} returns this - */ -proto.api.GetDeviceQueueItemsRequest.prototype.setCountOnly = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.GetDeviceQueueItemsResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceQueueItemsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceQueueItemsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceQueueItemsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceQueueItemsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.DeviceQueueItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceQueueItemsResponse} - */ -proto.api.GetDeviceQueueItemsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceQueueItemsResponse; - return proto.api.GetDeviceQueueItemsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceQueueItemsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceQueueItemsResponse} - */ -proto.api.GetDeviceQueueItemsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.DeviceQueueItem; - reader.readMessage(value,proto.api.DeviceQueueItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceQueueItemsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceQueueItemsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceQueueItemsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceQueueItemsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.DeviceQueueItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.GetDeviceQueueItemsResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetDeviceQueueItemsResponse} returns this - */ -proto.api.GetDeviceQueueItemsResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated DeviceQueueItem result = 2; - * @return {!Array} - */ -proto.api.GetDeviceQueueItemsResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.DeviceQueueItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.GetDeviceQueueItemsResponse} returns this -*/ -proto.api.GetDeviceQueueItemsResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.DeviceQueueItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.DeviceQueueItem} - */ -proto.api.GetDeviceQueueItemsResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.DeviceQueueItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.GetDeviceQueueItemsResponse} returns this - */ -proto.api.GetDeviceQueueItemsResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.FlushDevNoncesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.FlushDevNoncesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.FlushDevNoncesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.FlushDevNoncesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.FlushDevNoncesRequest} - */ -proto.api.FlushDevNoncesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.FlushDevNoncesRequest; - return proto.api.FlushDevNoncesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.FlushDevNoncesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.FlushDevNoncesRequest} - */ -proto.api.FlushDevNoncesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.FlushDevNoncesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.FlushDevNoncesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.FlushDevNoncesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.FlushDevNoncesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.FlushDevNoncesRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.FlushDevNoncesRequest} returns this - */ -proto.api.FlushDevNoncesRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceNextFCntDownRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceNextFCntDownRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceNextFCntDownRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceNextFCntDownRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceNextFCntDownRequest} - */ -proto.api.GetDeviceNextFCntDownRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceNextFCntDownRequest; - return proto.api.GetDeviceNextFCntDownRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceNextFCntDownRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceNextFCntDownRequest} - */ -proto.api.GetDeviceNextFCntDownRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceNextFCntDownRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceNextFCntDownRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceNextFCntDownRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceNextFCntDownRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.GetDeviceNextFCntDownRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDeviceNextFCntDownRequest} returns this - */ -proto.api.GetDeviceNextFCntDownRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceNextFCntDownResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceNextFCntDownResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceNextFCntDownResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceNextFCntDownResponse.toObject = function(includeInstance, msg) { - var f, obj = { - fCntDown: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceNextFCntDownResponse} - */ -proto.api.GetDeviceNextFCntDownResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceNextFCntDownResponse; - return proto.api.GetDeviceNextFCntDownResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceNextFCntDownResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceNextFCntDownResponse} - */ -proto.api.GetDeviceNextFCntDownResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCntDown(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceNextFCntDownResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceNextFCntDownResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceNextFCntDownResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceNextFCntDownResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFCntDown(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } -}; - - -/** - * optional uint32 f_cnt_down = 1; - * @return {number} - */ -proto.api.GetDeviceNextFCntDownResponse.prototype.getFCntDown = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetDeviceNextFCntDownResponse} returns this - */ -proto.api.GetDeviceNextFCntDownResponse.prototype.setFCntDown = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -goog.object.extend(exports, proto.api); diff --git a/api/grpc-web/api/device_profile_grpc_web_pb.d.ts b/api/grpc-web/api/device_profile_grpc_web_pb.d.ts deleted file mode 100644 index 2ca68d0d..00000000 --- a/api/grpc-web/api/device_profile_grpc_web_pb.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -import * as grpcWeb from 'grpc-web'; - -import * as api_device_profile_pb from '../api/device_profile_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; - - -export class DeviceProfileServiceClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - create( - request: api_device_profile_pb.CreateDeviceProfileRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_device_profile_pb.CreateDeviceProfileResponse) => void - ): grpcWeb.ClientReadableStream; - - get( - request: api_device_profile_pb.GetDeviceProfileRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_device_profile_pb.GetDeviceProfileResponse) => void - ): grpcWeb.ClientReadableStream; - - update( - request: api_device_profile_pb.UpdateDeviceProfileRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - delete( - request: api_device_profile_pb.DeleteDeviceProfileRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - list( - request: api_device_profile_pb.ListDeviceProfilesRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_device_profile_pb.ListDeviceProfilesResponse) => void - ): grpcWeb.ClientReadableStream; - - listAdrAlgorithms( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_device_profile_pb.ListDeviceProfileAdrAlgorithmsResponse) => void - ): grpcWeb.ClientReadableStream; - -} - -export class DeviceProfileServicePromiseClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - create( - request: api_device_profile_pb.CreateDeviceProfileRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - get( - request: api_device_profile_pb.GetDeviceProfileRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - update( - request: api_device_profile_pb.UpdateDeviceProfileRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - delete( - request: api_device_profile_pb.DeleteDeviceProfileRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - list( - request: api_device_profile_pb.ListDeviceProfilesRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - listAdrAlgorithms( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - -} - diff --git a/api/grpc-web/api/device_profile_grpc_web_pb.js b/api/grpc-web/api/device_profile_grpc_web_pb.js deleted file mode 100644 index 469c3bb7..00000000 --- a/api/grpc-web/api/device_profile_grpc_web_pb.js +++ /dev/null @@ -1,452 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for api - * @enhanceable - * @public - */ - -// Code generated by protoc-gen-grpc-web. DO NOT EDIT. -// versions: -// protoc-gen-grpc-web v1.4.2 -// protoc v3.12.4 -// source: api/device_profile.proto - - -/* eslint-disable */ -// @ts-nocheck - - - -const grpc = {}; -grpc.web = require('grpc-web'); - - -var google_api_annotations_pb = require('../google/api/annotations_pb.js') - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js') - -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js') - -var common_common_pb = require('../common/common_pb.js') -const proto = {}; -proto.api = require('./device_profile_pb.js'); - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.DeviceProfileServiceClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.DeviceProfileServicePromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateDeviceProfileRequest, - * !proto.api.CreateDeviceProfileResponse>} - */ -const methodDescriptor_DeviceProfileService_Create = new grpc.web.MethodDescriptor( - '/api.DeviceProfileService/Create', - grpc.web.MethodType.UNARY, - proto.api.CreateDeviceProfileRequest, - proto.api.CreateDeviceProfileResponse, - /** - * @param {!proto.api.CreateDeviceProfileRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.CreateDeviceProfileResponse.deserializeBinary -); - - -/** - * @param {!proto.api.CreateDeviceProfileRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.CreateDeviceProfileResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceProfileServiceClient.prototype.create = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceProfileService/Create', - request, - metadata || {}, - methodDescriptor_DeviceProfileService_Create, - callback); -}; - - -/** - * @param {!proto.api.CreateDeviceProfileRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceProfileServicePromiseClient.prototype.create = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceProfileService/Create', - request, - metadata || {}, - methodDescriptor_DeviceProfileService_Create); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetDeviceProfileRequest, - * !proto.api.GetDeviceProfileResponse>} - */ -const methodDescriptor_DeviceProfileService_Get = new grpc.web.MethodDescriptor( - '/api.DeviceProfileService/Get', - grpc.web.MethodType.UNARY, - proto.api.GetDeviceProfileRequest, - proto.api.GetDeviceProfileResponse, - /** - * @param {!proto.api.GetDeviceProfileRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetDeviceProfileResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetDeviceProfileRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetDeviceProfileResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceProfileServiceClient.prototype.get = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceProfileService/Get', - request, - metadata || {}, - methodDescriptor_DeviceProfileService_Get, - callback); -}; - - -/** - * @param {!proto.api.GetDeviceProfileRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceProfileServicePromiseClient.prototype.get = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceProfileService/Get', - request, - metadata || {}, - methodDescriptor_DeviceProfileService_Get); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateDeviceProfileRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_DeviceProfileService_Update = new grpc.web.MethodDescriptor( - '/api.DeviceProfileService/Update', - grpc.web.MethodType.UNARY, - proto.api.UpdateDeviceProfileRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateDeviceProfileRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateDeviceProfileRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceProfileServiceClient.prototype.update = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceProfileService/Update', - request, - metadata || {}, - methodDescriptor_DeviceProfileService_Update, - callback); -}; - - -/** - * @param {!proto.api.UpdateDeviceProfileRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceProfileServicePromiseClient.prototype.update = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceProfileService/Update', - request, - metadata || {}, - methodDescriptor_DeviceProfileService_Update); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteDeviceProfileRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_DeviceProfileService_Delete = new grpc.web.MethodDescriptor( - '/api.DeviceProfileService/Delete', - grpc.web.MethodType.UNARY, - proto.api.DeleteDeviceProfileRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteDeviceProfileRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteDeviceProfileRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceProfileServiceClient.prototype.delete = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceProfileService/Delete', - request, - metadata || {}, - methodDescriptor_DeviceProfileService_Delete, - callback); -}; - - -/** - * @param {!proto.api.DeleteDeviceProfileRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceProfileServicePromiseClient.prototype.delete = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceProfileService/Delete', - request, - metadata || {}, - methodDescriptor_DeviceProfileService_Delete); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.ListDeviceProfilesRequest, - * !proto.api.ListDeviceProfilesResponse>} - */ -const methodDescriptor_DeviceProfileService_List = new grpc.web.MethodDescriptor( - '/api.DeviceProfileService/List', - grpc.web.MethodType.UNARY, - proto.api.ListDeviceProfilesRequest, - proto.api.ListDeviceProfilesResponse, - /** - * @param {!proto.api.ListDeviceProfilesRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.ListDeviceProfilesResponse.deserializeBinary -); - - -/** - * @param {!proto.api.ListDeviceProfilesRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.ListDeviceProfilesResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceProfileServiceClient.prototype.list = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceProfileService/List', - request, - metadata || {}, - methodDescriptor_DeviceProfileService_List, - callback); -}; - - -/** - * @param {!proto.api.ListDeviceProfilesRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceProfileServicePromiseClient.prototype.list = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceProfileService/List', - request, - metadata || {}, - methodDescriptor_DeviceProfileService_List); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.api.ListDeviceProfileAdrAlgorithmsResponse>} - */ -const methodDescriptor_DeviceProfileService_ListAdrAlgorithms = new grpc.web.MethodDescriptor( - '/api.DeviceProfileService/ListAdrAlgorithms', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.api.ListDeviceProfileAdrAlgorithmsResponse, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.ListDeviceProfileAdrAlgorithmsResponse.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.ListDeviceProfileAdrAlgorithmsResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceProfileServiceClient.prototype.listAdrAlgorithms = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceProfileService/ListAdrAlgorithms', - request, - metadata || {}, - methodDescriptor_DeviceProfileService_ListAdrAlgorithms, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceProfileServicePromiseClient.prototype.listAdrAlgorithms = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceProfileService/ListAdrAlgorithms', - request, - metadata || {}, - methodDescriptor_DeviceProfileService_ListAdrAlgorithms); -}; - - -module.exports = proto.api; - diff --git a/api/grpc-web/api/device_profile_pb.d.ts b/api/grpc-web/api/device_profile_pb.d.ts deleted file mode 100644 index 81f5b22a..00000000 --- a/api/grpc-web/api/device_profile_pb.d.ts +++ /dev/null @@ -1,570 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_api_annotations_pb from '../google/api/annotations_pb'; -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; -import * as common_common_pb from '../common/common_pb'; - - -export class DeviceProfile extends jspb.Message { - getId(): string; - setId(value: string): DeviceProfile; - - getTenantId(): string; - setTenantId(value: string): DeviceProfile; - - getName(): string; - setName(value: string): DeviceProfile; - - getDescription(): string; - setDescription(value: string): DeviceProfile; - - getRegion(): common_common_pb.Region; - setRegion(value: common_common_pb.Region): DeviceProfile; - - getMacVersion(): common_common_pb.MacVersion; - setMacVersion(value: common_common_pb.MacVersion): DeviceProfile; - - getRegParamsRevision(): common_common_pb.RegParamsRevision; - setRegParamsRevision(value: common_common_pb.RegParamsRevision): DeviceProfile; - - getAdrAlgorithmId(): string; - setAdrAlgorithmId(value: string): DeviceProfile; - - getPayloadCodecRuntime(): CodecRuntime; - setPayloadCodecRuntime(value: CodecRuntime): DeviceProfile; - - getPayloadCodecScript(): string; - setPayloadCodecScript(value: string): DeviceProfile; - - getFlushQueueOnActivate(): boolean; - setFlushQueueOnActivate(value: boolean): DeviceProfile; - - getUplinkInterval(): number; - setUplinkInterval(value: number): DeviceProfile; - - getDeviceStatusReqInterval(): number; - setDeviceStatusReqInterval(value: number): DeviceProfile; - - getSupportsOtaa(): boolean; - setSupportsOtaa(value: boolean): DeviceProfile; - - getSupportsClassB(): boolean; - setSupportsClassB(value: boolean): DeviceProfile; - - getSupportsClassC(): boolean; - setSupportsClassC(value: boolean): DeviceProfile; - - getClassBTimeout(): number; - setClassBTimeout(value: number): DeviceProfile; - - getClassBPingSlotNbK(): number; - setClassBPingSlotNbK(value: number): DeviceProfile; - - getClassBPingSlotDr(): number; - setClassBPingSlotDr(value: number): DeviceProfile; - - getClassBPingSlotFreq(): number; - setClassBPingSlotFreq(value: number): DeviceProfile; - - getClassCTimeout(): number; - setClassCTimeout(value: number): DeviceProfile; - - getAbpRx1Delay(): number; - setAbpRx1Delay(value: number): DeviceProfile; - - getAbpRx1DrOffset(): number; - setAbpRx1DrOffset(value: number): DeviceProfile; - - getAbpRx2Dr(): number; - setAbpRx2Dr(value: number): DeviceProfile; - - getAbpRx2Freq(): number; - setAbpRx2Freq(value: number): DeviceProfile; - - getTagsMap(): jspb.Map; - clearTagsMap(): DeviceProfile; - - getMeasurementsMap(): jspb.Map; - clearMeasurementsMap(): DeviceProfile; - - getAutoDetectMeasurements(): boolean; - setAutoDetectMeasurements(value: boolean): DeviceProfile; - - getRegionConfigId(): string; - setRegionConfigId(value: string): DeviceProfile; - - getIsRelay(): boolean; - setIsRelay(value: boolean): DeviceProfile; - - getIsRelayEd(): boolean; - setIsRelayEd(value: boolean): DeviceProfile; - - getRelayEdRelayOnly(): boolean; - setRelayEdRelayOnly(value: boolean): DeviceProfile; - - getRelayEnabled(): boolean; - setRelayEnabled(value: boolean): DeviceProfile; - - getRelayCadPeriodicity(): CadPeriodicity; - setRelayCadPeriodicity(value: CadPeriodicity): DeviceProfile; - - getRelayDefaultChannelIndex(): number; - setRelayDefaultChannelIndex(value: number): DeviceProfile; - - getRelaySecondChannelFreq(): number; - setRelaySecondChannelFreq(value: number): DeviceProfile; - - getRelaySecondChannelDr(): number; - setRelaySecondChannelDr(value: number): DeviceProfile; - - getRelaySecondChannelAckOffset(): SecondChAckOffset; - setRelaySecondChannelAckOffset(value: SecondChAckOffset): DeviceProfile; - - getRelayEdActivationMode(): RelayModeActivation; - setRelayEdActivationMode(value: RelayModeActivation): DeviceProfile; - - getRelayEdSmartEnableLevel(): number; - setRelayEdSmartEnableLevel(value: number): DeviceProfile; - - getRelayEdBackOff(): number; - setRelayEdBackOff(value: number): DeviceProfile; - - getRelayEdUplinkLimitBucketSize(): number; - setRelayEdUplinkLimitBucketSize(value: number): DeviceProfile; - - getRelayEdUplinkLimitReloadRate(): number; - setRelayEdUplinkLimitReloadRate(value: number): DeviceProfile; - - getRelayJoinReqLimitReloadRate(): number; - setRelayJoinReqLimitReloadRate(value: number): DeviceProfile; - - getRelayNotifyLimitReloadRate(): number; - setRelayNotifyLimitReloadRate(value: number): DeviceProfile; - - getRelayGlobalUplinkLimitReloadRate(): number; - setRelayGlobalUplinkLimitReloadRate(value: number): DeviceProfile; - - getRelayOverallLimitReloadRate(): number; - setRelayOverallLimitReloadRate(value: number): DeviceProfile; - - getRelayJoinReqLimitBucketSize(): number; - setRelayJoinReqLimitBucketSize(value: number): DeviceProfile; - - getRelayNotifyLimitBucketSize(): number; - setRelayNotifyLimitBucketSize(value: number): DeviceProfile; - - getRelayGlobalUplinkLimitBucketSize(): number; - setRelayGlobalUplinkLimitBucketSize(value: number): DeviceProfile; - - getRelayOverallLimitBucketSize(): number; - setRelayOverallLimitBucketSize(value: number): DeviceProfile; - - getAllowRoaming(): boolean; - setAllowRoaming(value: boolean): DeviceProfile; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceProfile.AsObject; - static toObject(includeInstance: boolean, msg: DeviceProfile): DeviceProfile.AsObject; - static serializeBinaryToWriter(message: DeviceProfile, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceProfile; - static deserializeBinaryFromReader(message: DeviceProfile, reader: jspb.BinaryReader): DeviceProfile; -} - -export namespace DeviceProfile { - export type AsObject = { - id: string, - tenantId: string, - name: string, - description: string, - region: common_common_pb.Region, - macVersion: common_common_pb.MacVersion, - regParamsRevision: common_common_pb.RegParamsRevision, - adrAlgorithmId: string, - payloadCodecRuntime: CodecRuntime, - payloadCodecScript: string, - flushQueueOnActivate: boolean, - uplinkInterval: number, - deviceStatusReqInterval: number, - supportsOtaa: boolean, - supportsClassB: boolean, - supportsClassC: boolean, - classBTimeout: number, - classBPingSlotNbK: number, - classBPingSlotDr: number, - classBPingSlotFreq: number, - classCTimeout: number, - abpRx1Delay: number, - abpRx1DrOffset: number, - abpRx2Dr: number, - abpRx2Freq: number, - tagsMap: Array<[string, string]>, - measurementsMap: Array<[string, Measurement.AsObject]>, - autoDetectMeasurements: boolean, - regionConfigId: string, - isRelay: boolean, - isRelayEd: boolean, - relayEdRelayOnly: boolean, - relayEnabled: boolean, - relayCadPeriodicity: CadPeriodicity, - relayDefaultChannelIndex: number, - relaySecondChannelFreq: number, - relaySecondChannelDr: number, - relaySecondChannelAckOffset: SecondChAckOffset, - relayEdActivationMode: RelayModeActivation, - relayEdSmartEnableLevel: number, - relayEdBackOff: number, - relayEdUplinkLimitBucketSize: number, - relayEdUplinkLimitReloadRate: number, - relayJoinReqLimitReloadRate: number, - relayNotifyLimitReloadRate: number, - relayGlobalUplinkLimitReloadRate: number, - relayOverallLimitReloadRate: number, - relayJoinReqLimitBucketSize: number, - relayNotifyLimitBucketSize: number, - relayGlobalUplinkLimitBucketSize: number, - relayOverallLimitBucketSize: number, - allowRoaming: boolean, - } -} - -export class Measurement extends jspb.Message { - getName(): string; - setName(value: string): Measurement; - - getKind(): MeasurementKind; - setKind(value: MeasurementKind): Measurement; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Measurement.AsObject; - static toObject(includeInstance: boolean, msg: Measurement): Measurement.AsObject; - static serializeBinaryToWriter(message: Measurement, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Measurement; - static deserializeBinaryFromReader(message: Measurement, reader: jspb.BinaryReader): Measurement; -} - -export namespace Measurement { - export type AsObject = { - name: string, - kind: MeasurementKind, - } -} - -export class DeviceProfileListItem extends jspb.Message { - getId(): string; - setId(value: string): DeviceProfileListItem; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): DeviceProfileListItem; - hasCreatedAt(): boolean; - clearCreatedAt(): DeviceProfileListItem; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): DeviceProfileListItem; - hasUpdatedAt(): boolean; - clearUpdatedAt(): DeviceProfileListItem; - - getName(): string; - setName(value: string): DeviceProfileListItem; - - getRegion(): common_common_pb.Region; - setRegion(value: common_common_pb.Region): DeviceProfileListItem; - - getMacVersion(): common_common_pb.MacVersion; - setMacVersion(value: common_common_pb.MacVersion): DeviceProfileListItem; - - getRegParamsRevision(): common_common_pb.RegParamsRevision; - setRegParamsRevision(value: common_common_pb.RegParamsRevision): DeviceProfileListItem; - - getSupportsOtaa(): boolean; - setSupportsOtaa(value: boolean): DeviceProfileListItem; - - getSupportsClassB(): boolean; - setSupportsClassB(value: boolean): DeviceProfileListItem; - - getSupportsClassC(): boolean; - setSupportsClassC(value: boolean): DeviceProfileListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceProfileListItem.AsObject; - static toObject(includeInstance: boolean, msg: DeviceProfileListItem): DeviceProfileListItem.AsObject; - static serializeBinaryToWriter(message: DeviceProfileListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceProfileListItem; - static deserializeBinaryFromReader(message: DeviceProfileListItem, reader: jspb.BinaryReader): DeviceProfileListItem; -} - -export namespace DeviceProfileListItem { - export type AsObject = { - id: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - name: string, - region: common_common_pb.Region, - macVersion: common_common_pb.MacVersion, - regParamsRevision: common_common_pb.RegParamsRevision, - supportsOtaa: boolean, - supportsClassB: boolean, - supportsClassC: boolean, - } -} - -export class CreateDeviceProfileRequest extends jspb.Message { - getDeviceProfile(): DeviceProfile | undefined; - setDeviceProfile(value?: DeviceProfile): CreateDeviceProfileRequest; - hasDeviceProfile(): boolean; - clearDeviceProfile(): CreateDeviceProfileRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateDeviceProfileRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateDeviceProfileRequest): CreateDeviceProfileRequest.AsObject; - static serializeBinaryToWriter(message: CreateDeviceProfileRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateDeviceProfileRequest; - static deserializeBinaryFromReader(message: CreateDeviceProfileRequest, reader: jspb.BinaryReader): CreateDeviceProfileRequest; -} - -export namespace CreateDeviceProfileRequest { - export type AsObject = { - deviceProfile?: DeviceProfile.AsObject, - } -} - -export class CreateDeviceProfileResponse extends jspb.Message { - getId(): string; - setId(value: string): CreateDeviceProfileResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateDeviceProfileResponse.AsObject; - static toObject(includeInstance: boolean, msg: CreateDeviceProfileResponse): CreateDeviceProfileResponse.AsObject; - static serializeBinaryToWriter(message: CreateDeviceProfileResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateDeviceProfileResponse; - static deserializeBinaryFromReader(message: CreateDeviceProfileResponse, reader: jspb.BinaryReader): CreateDeviceProfileResponse; -} - -export namespace CreateDeviceProfileResponse { - export type AsObject = { - id: string, - } -} - -export class GetDeviceProfileRequest extends jspb.Message { - getId(): string; - setId(value: string): GetDeviceProfileRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceProfileRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceProfileRequest): GetDeviceProfileRequest.AsObject; - static serializeBinaryToWriter(message: GetDeviceProfileRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceProfileRequest; - static deserializeBinaryFromReader(message: GetDeviceProfileRequest, reader: jspb.BinaryReader): GetDeviceProfileRequest; -} - -export namespace GetDeviceProfileRequest { - export type AsObject = { - id: string, - } -} - -export class GetDeviceProfileResponse extends jspb.Message { - getDeviceProfile(): DeviceProfile | undefined; - setDeviceProfile(value?: DeviceProfile): GetDeviceProfileResponse; - hasDeviceProfile(): boolean; - clearDeviceProfile(): GetDeviceProfileResponse; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceProfileResponse; - hasCreatedAt(): boolean; - clearCreatedAt(): GetDeviceProfileResponse; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceProfileResponse; - hasUpdatedAt(): boolean; - clearUpdatedAt(): GetDeviceProfileResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceProfileResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceProfileResponse): GetDeviceProfileResponse.AsObject; - static serializeBinaryToWriter(message: GetDeviceProfileResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceProfileResponse; - static deserializeBinaryFromReader(message: GetDeviceProfileResponse, reader: jspb.BinaryReader): GetDeviceProfileResponse; -} - -export namespace GetDeviceProfileResponse { - export type AsObject = { - deviceProfile?: DeviceProfile.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateDeviceProfileRequest extends jspb.Message { - getDeviceProfile(): DeviceProfile | undefined; - setDeviceProfile(value?: DeviceProfile): UpdateDeviceProfileRequest; - hasDeviceProfile(): boolean; - clearDeviceProfile(): UpdateDeviceProfileRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateDeviceProfileRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateDeviceProfileRequest): UpdateDeviceProfileRequest.AsObject; - static serializeBinaryToWriter(message: UpdateDeviceProfileRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateDeviceProfileRequest; - static deserializeBinaryFromReader(message: UpdateDeviceProfileRequest, reader: jspb.BinaryReader): UpdateDeviceProfileRequest; -} - -export namespace UpdateDeviceProfileRequest { - export type AsObject = { - deviceProfile?: DeviceProfile.AsObject, - } -} - -export class DeleteDeviceProfileRequest extends jspb.Message { - getId(): string; - setId(value: string): DeleteDeviceProfileRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteDeviceProfileRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteDeviceProfileRequest): DeleteDeviceProfileRequest.AsObject; - static serializeBinaryToWriter(message: DeleteDeviceProfileRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteDeviceProfileRequest; - static deserializeBinaryFromReader(message: DeleteDeviceProfileRequest, reader: jspb.BinaryReader): DeleteDeviceProfileRequest; -} - -export namespace DeleteDeviceProfileRequest { - export type AsObject = { - id: string, - } -} - -export class ListDeviceProfilesRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): ListDeviceProfilesRequest; - - getOffset(): number; - setOffset(value: number): ListDeviceProfilesRequest; - - getSearch(): string; - setSearch(value: string): ListDeviceProfilesRequest; - - getTenantId(): string; - setTenantId(value: string): ListDeviceProfilesRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListDeviceProfilesRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListDeviceProfilesRequest): ListDeviceProfilesRequest.AsObject; - static serializeBinaryToWriter(message: ListDeviceProfilesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListDeviceProfilesRequest; - static deserializeBinaryFromReader(message: ListDeviceProfilesRequest, reader: jspb.BinaryReader): ListDeviceProfilesRequest; -} - -export namespace ListDeviceProfilesRequest { - export type AsObject = { - limit: number, - offset: number, - search: string, - tenantId: string, - } -} - -export class ListDeviceProfilesResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): ListDeviceProfilesResponse; - - getResultList(): Array; - setResultList(value: Array): ListDeviceProfilesResponse; - clearResultList(): ListDeviceProfilesResponse; - addResult(value?: DeviceProfileListItem, index?: number): DeviceProfileListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListDeviceProfilesResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListDeviceProfilesResponse): ListDeviceProfilesResponse.AsObject; - static serializeBinaryToWriter(message: ListDeviceProfilesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListDeviceProfilesResponse; - static deserializeBinaryFromReader(message: ListDeviceProfilesResponse, reader: jspb.BinaryReader): ListDeviceProfilesResponse; -} - -export namespace ListDeviceProfilesResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class ListDeviceProfileAdrAlgorithmsResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): ListDeviceProfileAdrAlgorithmsResponse; - - getResultList(): Array; - setResultList(value: Array): ListDeviceProfileAdrAlgorithmsResponse; - clearResultList(): ListDeviceProfileAdrAlgorithmsResponse; - addResult(value?: AdrAlgorithmListItem, index?: number): AdrAlgorithmListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListDeviceProfileAdrAlgorithmsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListDeviceProfileAdrAlgorithmsResponse): ListDeviceProfileAdrAlgorithmsResponse.AsObject; - static serializeBinaryToWriter(message: ListDeviceProfileAdrAlgorithmsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListDeviceProfileAdrAlgorithmsResponse; - static deserializeBinaryFromReader(message: ListDeviceProfileAdrAlgorithmsResponse, reader: jspb.BinaryReader): ListDeviceProfileAdrAlgorithmsResponse; -} - -export namespace ListDeviceProfileAdrAlgorithmsResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class AdrAlgorithmListItem extends jspb.Message { - getId(): string; - setId(value: string): AdrAlgorithmListItem; - - getName(): string; - setName(value: string): AdrAlgorithmListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AdrAlgorithmListItem.AsObject; - static toObject(includeInstance: boolean, msg: AdrAlgorithmListItem): AdrAlgorithmListItem.AsObject; - static serializeBinaryToWriter(message: AdrAlgorithmListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AdrAlgorithmListItem; - static deserializeBinaryFromReader(message: AdrAlgorithmListItem, reader: jspb.BinaryReader): AdrAlgorithmListItem; -} - -export namespace AdrAlgorithmListItem { - export type AsObject = { - id: string, - name: string, - } -} - -export enum CodecRuntime { - NONE = 0, - CAYENNE_LPP = 1, - JS = 2, -} -export enum MeasurementKind { - UNKNOWN = 0, - COUNTER = 1, - ABSOLUTE = 2, - GAUGE = 3, - STRING = 4, -} -export enum CadPeriodicity { - SEC_1 = 0, - MS_500 = 1, - MS_250 = 2, - MS_100 = 3, - MS_50 = 4, - MS_20 = 5, -} -export enum SecondChAckOffset { - KHZ_0 = 0, - KHZ_200 = 1, - KHZ_400 = 2, - KHZ_800 = 3, - KHZ_1600 = 4, - KHZ_3200 = 5, -} -export enum RelayModeActivation { - DISABLE_RELAY_MODE = 0, - ENABLE_RELAY_MODE = 1, - DYNAMIC = 2, - END_DEVICE_CONTROLLED = 3, -} diff --git a/api/grpc-web/api/device_profile_pb.js b/api/grpc-web/api/device_profile_pb.js deleted file mode 100644 index c57996a6..00000000 --- a/api/grpc-web/api/device_profile_pb.js +++ /dev/null @@ -1,4341 +0,0 @@ -// source: api/device_profile.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -goog.exportSymbol('proto.api.AdrAlgorithmListItem', null, global); -goog.exportSymbol('proto.api.CadPeriodicity', null, global); -goog.exportSymbol('proto.api.CodecRuntime', null, global); -goog.exportSymbol('proto.api.CreateDeviceProfileRequest', null, global); -goog.exportSymbol('proto.api.CreateDeviceProfileResponse', null, global); -goog.exportSymbol('proto.api.DeleteDeviceProfileRequest', null, global); -goog.exportSymbol('proto.api.DeviceProfile', null, global); -goog.exportSymbol('proto.api.DeviceProfileListItem', null, global); -goog.exportSymbol('proto.api.GetDeviceProfileRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceProfileResponse', null, global); -goog.exportSymbol('proto.api.ListDeviceProfileAdrAlgorithmsResponse', null, global); -goog.exportSymbol('proto.api.ListDeviceProfilesRequest', null, global); -goog.exportSymbol('proto.api.ListDeviceProfilesResponse', null, global); -goog.exportSymbol('proto.api.Measurement', null, global); -goog.exportSymbol('proto.api.MeasurementKind', null, global); -goog.exportSymbol('proto.api.RelayModeActivation', null, global); -goog.exportSymbol('proto.api.SecondChAckOffset', null, global); -goog.exportSymbol('proto.api.UpdateDeviceProfileRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceProfile = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceProfile, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceProfile.displayName = 'proto.api.DeviceProfile'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.Measurement = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.Measurement, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.Measurement.displayName = 'proto.api.Measurement'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceProfileListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceProfileListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceProfileListItem.displayName = 'proto.api.DeviceProfileListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateDeviceProfileRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateDeviceProfileRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateDeviceProfileRequest.displayName = 'proto.api.CreateDeviceProfileRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateDeviceProfileResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateDeviceProfileResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateDeviceProfileResponse.displayName = 'proto.api.CreateDeviceProfileResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceProfileRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceProfileRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceProfileRequest.displayName = 'proto.api.GetDeviceProfileRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceProfileResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceProfileResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceProfileResponse.displayName = 'proto.api.GetDeviceProfileResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateDeviceProfileRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateDeviceProfileRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateDeviceProfileRequest.displayName = 'proto.api.UpdateDeviceProfileRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteDeviceProfileRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteDeviceProfileRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteDeviceProfileRequest.displayName = 'proto.api.DeleteDeviceProfileRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListDeviceProfilesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListDeviceProfilesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListDeviceProfilesRequest.displayName = 'proto.api.ListDeviceProfilesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListDeviceProfilesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListDeviceProfilesResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListDeviceProfilesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListDeviceProfilesResponse.displayName = 'proto.api.ListDeviceProfilesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListDeviceProfileAdrAlgorithmsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListDeviceProfileAdrAlgorithmsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListDeviceProfileAdrAlgorithmsResponse.displayName = 'proto.api.ListDeviceProfileAdrAlgorithmsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.AdrAlgorithmListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.AdrAlgorithmListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.AdrAlgorithmListItem.displayName = 'proto.api.AdrAlgorithmListItem'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceProfile.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceProfile.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceProfile} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceProfile.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - tenantId: jspb.Message.getFieldWithDefault(msg, 2, ""), - name: jspb.Message.getFieldWithDefault(msg, 3, ""), - description: jspb.Message.getFieldWithDefault(msg, 26, ""), - region: jspb.Message.getFieldWithDefault(msg, 4, 0), - macVersion: jspb.Message.getFieldWithDefault(msg, 5, 0), - regParamsRevision: jspb.Message.getFieldWithDefault(msg, 6, 0), - adrAlgorithmId: jspb.Message.getFieldWithDefault(msg, 7, ""), - payloadCodecRuntime: jspb.Message.getFieldWithDefault(msg, 8, 0), - payloadCodecScript: jspb.Message.getFieldWithDefault(msg, 9, ""), - flushQueueOnActivate: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - uplinkInterval: jspb.Message.getFieldWithDefault(msg, 11, 0), - deviceStatusReqInterval: jspb.Message.getFieldWithDefault(msg, 12, 0), - supportsOtaa: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), - supportsClassB: jspb.Message.getBooleanFieldWithDefault(msg, 14, false), - supportsClassC: jspb.Message.getBooleanFieldWithDefault(msg, 15, false), - classBTimeout: jspb.Message.getFieldWithDefault(msg, 16, 0), - classBPingSlotNbK: jspb.Message.getFieldWithDefault(msg, 17, 0), - classBPingSlotDr: jspb.Message.getFieldWithDefault(msg, 18, 0), - classBPingSlotFreq: jspb.Message.getFieldWithDefault(msg, 19, 0), - classCTimeout: jspb.Message.getFieldWithDefault(msg, 20, 0), - abpRx1Delay: jspb.Message.getFieldWithDefault(msg, 21, 0), - abpRx1DrOffset: jspb.Message.getFieldWithDefault(msg, 22, 0), - abpRx2Dr: jspb.Message.getFieldWithDefault(msg, 23, 0), - abpRx2Freq: jspb.Message.getFieldWithDefault(msg, 24, 0), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [], - measurementsMap: (f = msg.getMeasurementsMap()) ? f.toObject(includeInstance, proto.api.Measurement.toObject) : [], - autoDetectMeasurements: jspb.Message.getBooleanFieldWithDefault(msg, 28, false), - regionConfigId: jspb.Message.getFieldWithDefault(msg, 29, ""), - isRelay: jspb.Message.getBooleanFieldWithDefault(msg, 30, false), - isRelayEd: jspb.Message.getBooleanFieldWithDefault(msg, 31, false), - relayEdRelayOnly: jspb.Message.getBooleanFieldWithDefault(msg, 32, false), - relayEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 33, false), - relayCadPeriodicity: jspb.Message.getFieldWithDefault(msg, 34, 0), - relayDefaultChannelIndex: jspb.Message.getFieldWithDefault(msg, 35, 0), - relaySecondChannelFreq: jspb.Message.getFieldWithDefault(msg, 36, 0), - relaySecondChannelDr: jspb.Message.getFieldWithDefault(msg, 37, 0), - relaySecondChannelAckOffset: jspb.Message.getFieldWithDefault(msg, 38, 0), - relayEdActivationMode: jspb.Message.getFieldWithDefault(msg, 39, 0), - relayEdSmartEnableLevel: jspb.Message.getFieldWithDefault(msg, 40, 0), - relayEdBackOff: jspb.Message.getFieldWithDefault(msg, 41, 0), - relayEdUplinkLimitBucketSize: jspb.Message.getFieldWithDefault(msg, 42, 0), - relayEdUplinkLimitReloadRate: jspb.Message.getFieldWithDefault(msg, 43, 0), - relayJoinReqLimitReloadRate: jspb.Message.getFieldWithDefault(msg, 44, 0), - relayNotifyLimitReloadRate: jspb.Message.getFieldWithDefault(msg, 45, 0), - relayGlobalUplinkLimitReloadRate: jspb.Message.getFieldWithDefault(msg, 46, 0), - relayOverallLimitReloadRate: jspb.Message.getFieldWithDefault(msg, 47, 0), - relayJoinReqLimitBucketSize: jspb.Message.getFieldWithDefault(msg, 48, 0), - relayNotifyLimitBucketSize: jspb.Message.getFieldWithDefault(msg, 49, 0), - relayGlobalUplinkLimitBucketSize: jspb.Message.getFieldWithDefault(msg, 50, 0), - relayOverallLimitBucketSize: jspb.Message.getFieldWithDefault(msg, 51, 0), - allowRoaming: jspb.Message.getBooleanFieldWithDefault(msg, 52, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceProfile} - */ -proto.api.DeviceProfile.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceProfile; - return proto.api.DeviceProfile.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceProfile} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceProfile} - */ -proto.api.DeviceProfile.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 26: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {!proto.common.Region} */ (reader.readEnum()); - msg.setRegion(value); - break; - case 5: - var value = /** @type {!proto.common.MacVersion} */ (reader.readEnum()); - msg.setMacVersion(value); - break; - case 6: - var value = /** @type {!proto.common.RegParamsRevision} */ (reader.readEnum()); - msg.setRegParamsRevision(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setAdrAlgorithmId(value); - break; - case 8: - var value = /** @type {!proto.api.CodecRuntime} */ (reader.readEnum()); - msg.setPayloadCodecRuntime(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setPayloadCodecScript(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setFlushQueueOnActivate(value); - break; - case 11: - var value = /** @type {number} */ (reader.readUint32()); - msg.setUplinkInterval(value); - break; - case 12: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDeviceStatusReqInterval(value); - break; - case 13: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsOtaa(value); - break; - case 14: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsClassB(value); - break; - case 15: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsClassC(value); - break; - case 16: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBTimeout(value); - break; - case 17: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotNbK(value); - break; - case 18: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotDr(value); - break; - case 19: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotFreq(value); - break; - case 20: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassCTimeout(value); - break; - case 21: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAbpRx1Delay(value); - break; - case 22: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAbpRx1DrOffset(value); - break; - case 23: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAbpRx2Dr(value); - break; - case 24: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAbpRx2Freq(value); - break; - case 25: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 27: - var value = msg.getMeasurementsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.api.Measurement.deserializeBinaryFromReader, "", new proto.api.Measurement()); - }); - break; - case 28: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAutoDetectMeasurements(value); - break; - case 29: - var value = /** @type {string} */ (reader.readString()); - msg.setRegionConfigId(value); - break; - case 30: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsRelay(value); - break; - case 31: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsRelayEd(value); - break; - case 32: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setRelayEdRelayOnly(value); - break; - case 33: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setRelayEnabled(value); - break; - case 34: - var value = /** @type {!proto.api.CadPeriodicity} */ (reader.readEnum()); - msg.setRelayCadPeriodicity(value); - break; - case 35: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayDefaultChannelIndex(value); - break; - case 36: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelaySecondChannelFreq(value); - break; - case 37: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelaySecondChannelDr(value); - break; - case 38: - var value = /** @type {!proto.api.SecondChAckOffset} */ (reader.readEnum()); - msg.setRelaySecondChannelAckOffset(value); - break; - case 39: - var value = /** @type {!proto.api.RelayModeActivation} */ (reader.readEnum()); - msg.setRelayEdActivationMode(value); - break; - case 40: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayEdSmartEnableLevel(value); - break; - case 41: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayEdBackOff(value); - break; - case 42: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayEdUplinkLimitBucketSize(value); - break; - case 43: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayEdUplinkLimitReloadRate(value); - break; - case 44: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayJoinReqLimitReloadRate(value); - break; - case 45: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayNotifyLimitReloadRate(value); - break; - case 46: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayGlobalUplinkLimitReloadRate(value); - break; - case 47: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayOverallLimitReloadRate(value); - break; - case 48: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayJoinReqLimitBucketSize(value); - break; - case 49: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayNotifyLimitBucketSize(value); - break; - case 50: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayGlobalUplinkLimitBucketSize(value); - break; - case 51: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayOverallLimitBucketSize(value); - break; - case 52: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAllowRoaming(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceProfile.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceProfile.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceProfile} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceProfile.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 26, - f - ); - } - f = message.getRegion(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getMacVersion(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } - f = message.getRegParamsRevision(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getAdrAlgorithmId(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getPayloadCodecRuntime(); - if (f !== 0.0) { - writer.writeEnum( - 8, - f - ); - } - f = message.getPayloadCodecScript(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getFlushQueueOnActivate(); - if (f) { - writer.writeBool( - 10, - f - ); - } - f = message.getUplinkInterval(); - if (f !== 0) { - writer.writeUint32( - 11, - f - ); - } - f = message.getDeviceStatusReqInterval(); - if (f !== 0) { - writer.writeUint32( - 12, - f - ); - } - f = message.getSupportsOtaa(); - if (f) { - writer.writeBool( - 13, - f - ); - } - f = message.getSupportsClassB(); - if (f) { - writer.writeBool( - 14, - f - ); - } - f = message.getSupportsClassC(); - if (f) { - writer.writeBool( - 15, - f - ); - } - f = message.getClassBTimeout(); - if (f !== 0) { - writer.writeUint32( - 16, - f - ); - } - f = message.getClassBPingSlotNbK(); - if (f !== 0) { - writer.writeUint32( - 17, - f - ); - } - f = message.getClassBPingSlotDr(); - if (f !== 0) { - writer.writeUint32( - 18, - f - ); - } - f = message.getClassBPingSlotFreq(); - if (f !== 0) { - writer.writeUint32( - 19, - f - ); - } - f = message.getClassCTimeout(); - if (f !== 0) { - writer.writeUint32( - 20, - f - ); - } - f = message.getAbpRx1Delay(); - if (f !== 0) { - writer.writeUint32( - 21, - f - ); - } - f = message.getAbpRx1DrOffset(); - if (f !== 0) { - writer.writeUint32( - 22, - f - ); - } - f = message.getAbpRx2Dr(); - if (f !== 0) { - writer.writeUint32( - 23, - f - ); - } - f = message.getAbpRx2Freq(); - if (f !== 0) { - writer.writeUint32( - 24, - f - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(25, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getMeasurementsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(27, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.api.Measurement.serializeBinaryToWriter); - } - f = message.getAutoDetectMeasurements(); - if (f) { - writer.writeBool( - 28, - f - ); - } - f = message.getRegionConfigId(); - if (f.length > 0) { - writer.writeString( - 29, - f - ); - } - f = message.getIsRelay(); - if (f) { - writer.writeBool( - 30, - f - ); - } - f = message.getIsRelayEd(); - if (f) { - writer.writeBool( - 31, - f - ); - } - f = message.getRelayEdRelayOnly(); - if (f) { - writer.writeBool( - 32, - f - ); - } - f = message.getRelayEnabled(); - if (f) { - writer.writeBool( - 33, - f - ); - } - f = message.getRelayCadPeriodicity(); - if (f !== 0.0) { - writer.writeEnum( - 34, - f - ); - } - f = message.getRelayDefaultChannelIndex(); - if (f !== 0) { - writer.writeUint32( - 35, - f - ); - } - f = message.getRelaySecondChannelFreq(); - if (f !== 0) { - writer.writeUint32( - 36, - f - ); - } - f = message.getRelaySecondChannelDr(); - if (f !== 0) { - writer.writeUint32( - 37, - f - ); - } - f = message.getRelaySecondChannelAckOffset(); - if (f !== 0.0) { - writer.writeEnum( - 38, - f - ); - } - f = message.getRelayEdActivationMode(); - if (f !== 0.0) { - writer.writeEnum( - 39, - f - ); - } - f = message.getRelayEdSmartEnableLevel(); - if (f !== 0) { - writer.writeUint32( - 40, - f - ); - } - f = message.getRelayEdBackOff(); - if (f !== 0) { - writer.writeUint32( - 41, - f - ); - } - f = message.getRelayEdUplinkLimitBucketSize(); - if (f !== 0) { - writer.writeUint32( - 42, - f - ); - } - f = message.getRelayEdUplinkLimitReloadRate(); - if (f !== 0) { - writer.writeUint32( - 43, - f - ); - } - f = message.getRelayJoinReqLimitReloadRate(); - if (f !== 0) { - writer.writeUint32( - 44, - f - ); - } - f = message.getRelayNotifyLimitReloadRate(); - if (f !== 0) { - writer.writeUint32( - 45, - f - ); - } - f = message.getRelayGlobalUplinkLimitReloadRate(); - if (f !== 0) { - writer.writeUint32( - 46, - f - ); - } - f = message.getRelayOverallLimitReloadRate(); - if (f !== 0) { - writer.writeUint32( - 47, - f - ); - } - f = message.getRelayJoinReqLimitBucketSize(); - if (f !== 0) { - writer.writeUint32( - 48, - f - ); - } - f = message.getRelayNotifyLimitBucketSize(); - if (f !== 0) { - writer.writeUint32( - 49, - f - ); - } - f = message.getRelayGlobalUplinkLimitBucketSize(); - if (f !== 0) { - writer.writeUint32( - 50, - f - ); - } - f = message.getRelayOverallLimitBucketSize(); - if (f !== 0) { - writer.writeUint32( - 51, - f - ); - } - f = message.getAllowRoaming(); - if (f) { - writer.writeBool( - 52, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeviceProfile.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string tenant_id = 2; - * @return {string} - */ -proto.api.DeviceProfile.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string name = 3; - * @return {string} - */ -proto.api.DeviceProfile.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string description = 26; - * @return {string} - */ -proto.api.DeviceProfile.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 26, value); -}; - - -/** - * optional common.Region region = 4; - * @return {!proto.common.Region} - */ -proto.api.DeviceProfile.prototype.getRegion = function() { - return /** @type {!proto.common.Region} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.common.Region} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRegion = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional common.MacVersion mac_version = 5; - * @return {!proto.common.MacVersion} - */ -proto.api.DeviceProfile.prototype.getMacVersion = function() { - return /** @type {!proto.common.MacVersion} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {!proto.common.MacVersion} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setMacVersion = function(value) { - return jspb.Message.setProto3EnumField(this, 5, value); -}; - - -/** - * optional common.RegParamsRevision reg_params_revision = 6; - * @return {!proto.common.RegParamsRevision} - */ -proto.api.DeviceProfile.prototype.getRegParamsRevision = function() { - return /** @type {!proto.common.RegParamsRevision} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.common.RegParamsRevision} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRegParamsRevision = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional string adr_algorithm_id = 7; - * @return {string} - */ -proto.api.DeviceProfile.prototype.getAdrAlgorithmId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setAdrAlgorithmId = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional CodecRuntime payload_codec_runtime = 8; - * @return {!proto.api.CodecRuntime} - */ -proto.api.DeviceProfile.prototype.getPayloadCodecRuntime = function() { - return /** @type {!proto.api.CodecRuntime} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {!proto.api.CodecRuntime} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setPayloadCodecRuntime = function(value) { - return jspb.Message.setProto3EnumField(this, 8, value); -}; - - -/** - * optional string payload_codec_script = 9; - * @return {string} - */ -proto.api.DeviceProfile.prototype.getPayloadCodecScript = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setPayloadCodecScript = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional bool flush_queue_on_activate = 10; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getFlushQueueOnActivate = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setFlushQueueOnActivate = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); -}; - - -/** - * optional uint32 uplink_interval = 11; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getUplinkInterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setUplinkInterval = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional uint32 device_status_req_interval = 12; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getDeviceStatusReqInterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setDeviceStatusReqInterval = function(value) { - return jspb.Message.setProto3IntField(this, 12, value); -}; - - -/** - * optional bool supports_otaa = 13; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getSupportsOtaa = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setSupportsOtaa = function(value) { - return jspb.Message.setProto3BooleanField(this, 13, value); -}; - - -/** - * optional bool supports_class_b = 14; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getSupportsClassB = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setSupportsClassB = function(value) { - return jspb.Message.setProto3BooleanField(this, 14, value); -}; - - -/** - * optional bool supports_class_c = 15; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getSupportsClassC = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setSupportsClassC = function(value) { - return jspb.Message.setProto3BooleanField(this, 15, value); -}; - - -/** - * optional uint32 class_b_timeout = 16; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getClassBTimeout = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setClassBTimeout = function(value) { - return jspb.Message.setProto3IntField(this, 16, value); -}; - - -/** - * optional uint32 class_b_ping_slot_nb_k = 17; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getClassBPingSlotNbK = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setClassBPingSlotNbK = function(value) { - return jspb.Message.setProto3IntField(this, 17, value); -}; - - -/** - * optional uint32 class_b_ping_slot_dr = 18; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getClassBPingSlotDr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setClassBPingSlotDr = function(value) { - return jspb.Message.setProto3IntField(this, 18, value); -}; - - -/** - * optional uint32 class_b_ping_slot_freq = 19; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getClassBPingSlotFreq = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setClassBPingSlotFreq = function(value) { - return jspb.Message.setProto3IntField(this, 19, value); -}; - - -/** - * optional uint32 class_c_timeout = 20; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getClassCTimeout = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setClassCTimeout = function(value) { - return jspb.Message.setProto3IntField(this, 20, value); -}; - - -/** - * optional uint32 abp_rx1_delay = 21; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getAbpRx1Delay = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setAbpRx1Delay = function(value) { - return jspb.Message.setProto3IntField(this, 21, value); -}; - - -/** - * optional uint32 abp_rx1_dr_offset = 22; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getAbpRx1DrOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setAbpRx1DrOffset = function(value) { - return jspb.Message.setProto3IntField(this, 22, value); -}; - - -/** - * optional uint32 abp_rx2_dr = 23; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getAbpRx2Dr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setAbpRx2Dr = function(value) { - return jspb.Message.setProto3IntField(this, 23, value); -}; - - -/** - * optional uint32 abp_rx2_freq = 24; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getAbpRx2Freq = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setAbpRx2Freq = function(value) { - return jspb.Message.setProto3IntField(this, 24, value); -}; - - -/** - * map tags = 25; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.DeviceProfile.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 25, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - -/** - * map measurements = 27; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.DeviceProfile.prototype.getMeasurementsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 27, opt_noLazyCreate, - proto.api.Measurement)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.clearMeasurementsMap = function() { - this.getMeasurementsMap().clear(); - return this;}; - - -/** - * optional bool auto_detect_measurements = 28; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getAutoDetectMeasurements = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 28, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setAutoDetectMeasurements = function(value) { - return jspb.Message.setProto3BooleanField(this, 28, value); -}; - - -/** - * optional string region_config_id = 29; - * @return {string} - */ -proto.api.DeviceProfile.prototype.getRegionConfigId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 29, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRegionConfigId = function(value) { - return jspb.Message.setProto3StringField(this, 29, value); -}; - - -/** - * optional bool is_relay = 30; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getIsRelay = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 30, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setIsRelay = function(value) { - return jspb.Message.setProto3BooleanField(this, 30, value); -}; - - -/** - * optional bool is_relay_ed = 31; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getIsRelayEd = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 31, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setIsRelayEd = function(value) { - return jspb.Message.setProto3BooleanField(this, 31, value); -}; - - -/** - * optional bool relay_ed_relay_only = 32; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getRelayEdRelayOnly = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 32, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayEdRelayOnly = function(value) { - return jspb.Message.setProto3BooleanField(this, 32, value); -}; - - -/** - * optional bool relay_enabled = 33; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getRelayEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 33, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 33, value); -}; - - -/** - * optional CadPeriodicity relay_cad_periodicity = 34; - * @return {!proto.api.CadPeriodicity} - */ -proto.api.DeviceProfile.prototype.getRelayCadPeriodicity = function() { - return /** @type {!proto.api.CadPeriodicity} */ (jspb.Message.getFieldWithDefault(this, 34, 0)); -}; - - -/** - * @param {!proto.api.CadPeriodicity} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayCadPeriodicity = function(value) { - return jspb.Message.setProto3EnumField(this, 34, value); -}; - - -/** - * optional uint32 relay_default_channel_index = 35; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayDefaultChannelIndex = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 35, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayDefaultChannelIndex = function(value) { - return jspb.Message.setProto3IntField(this, 35, value); -}; - - -/** - * optional uint32 relay_second_channel_freq = 36; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelaySecondChannelFreq = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 36, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelaySecondChannelFreq = function(value) { - return jspb.Message.setProto3IntField(this, 36, value); -}; - - -/** - * optional uint32 relay_second_channel_dr = 37; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelaySecondChannelDr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 37, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelaySecondChannelDr = function(value) { - return jspb.Message.setProto3IntField(this, 37, value); -}; - - -/** - * optional SecondChAckOffset relay_second_channel_ack_offset = 38; - * @return {!proto.api.SecondChAckOffset} - */ -proto.api.DeviceProfile.prototype.getRelaySecondChannelAckOffset = function() { - return /** @type {!proto.api.SecondChAckOffset} */ (jspb.Message.getFieldWithDefault(this, 38, 0)); -}; - - -/** - * @param {!proto.api.SecondChAckOffset} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelaySecondChannelAckOffset = function(value) { - return jspb.Message.setProto3EnumField(this, 38, value); -}; - - -/** - * optional RelayModeActivation relay_ed_activation_mode = 39; - * @return {!proto.api.RelayModeActivation} - */ -proto.api.DeviceProfile.prototype.getRelayEdActivationMode = function() { - return /** @type {!proto.api.RelayModeActivation} */ (jspb.Message.getFieldWithDefault(this, 39, 0)); -}; - - -/** - * @param {!proto.api.RelayModeActivation} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayEdActivationMode = function(value) { - return jspb.Message.setProto3EnumField(this, 39, value); -}; - - -/** - * optional uint32 relay_ed_smart_enable_level = 40; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayEdSmartEnableLevel = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 40, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayEdSmartEnableLevel = function(value) { - return jspb.Message.setProto3IntField(this, 40, value); -}; - - -/** - * optional uint32 relay_ed_back_off = 41; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayEdBackOff = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 41, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayEdBackOff = function(value) { - return jspb.Message.setProto3IntField(this, 41, value); -}; - - -/** - * optional uint32 relay_ed_uplink_limit_bucket_size = 42; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayEdUplinkLimitBucketSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 42, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayEdUplinkLimitBucketSize = function(value) { - return jspb.Message.setProto3IntField(this, 42, value); -}; - - -/** - * optional uint32 relay_ed_uplink_limit_reload_rate = 43; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayEdUplinkLimitReloadRate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 43, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayEdUplinkLimitReloadRate = function(value) { - return jspb.Message.setProto3IntField(this, 43, value); -}; - - -/** - * optional uint32 relay_join_req_limit_reload_rate = 44; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayJoinReqLimitReloadRate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 44, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayJoinReqLimitReloadRate = function(value) { - return jspb.Message.setProto3IntField(this, 44, value); -}; - - -/** - * optional uint32 relay_notify_limit_reload_rate = 45; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayNotifyLimitReloadRate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 45, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayNotifyLimitReloadRate = function(value) { - return jspb.Message.setProto3IntField(this, 45, value); -}; - - -/** - * optional uint32 relay_global_uplink_limit_reload_rate = 46; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayGlobalUplinkLimitReloadRate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 46, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayGlobalUplinkLimitReloadRate = function(value) { - return jspb.Message.setProto3IntField(this, 46, value); -}; - - -/** - * optional uint32 relay_overall_limit_reload_rate = 47; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayOverallLimitReloadRate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 47, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayOverallLimitReloadRate = function(value) { - return jspb.Message.setProto3IntField(this, 47, value); -}; - - -/** - * optional uint32 relay_join_req_limit_bucket_size = 48; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayJoinReqLimitBucketSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 48, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayJoinReqLimitBucketSize = function(value) { - return jspb.Message.setProto3IntField(this, 48, value); -}; - - -/** - * optional uint32 relay_notify_limit_bucket_size = 49; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayNotifyLimitBucketSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 49, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayNotifyLimitBucketSize = function(value) { - return jspb.Message.setProto3IntField(this, 49, value); -}; - - -/** - * optional uint32 relay_global_uplink_limit_bucket_size = 50; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayGlobalUplinkLimitBucketSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 50, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayGlobalUplinkLimitBucketSize = function(value) { - return jspb.Message.setProto3IntField(this, 50, value); -}; - - -/** - * optional uint32 relay_overall_limit_bucket_size = 51; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayOverallLimitBucketSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 51, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayOverallLimitBucketSize = function(value) { - return jspb.Message.setProto3IntField(this, 51, value); -}; - - -/** - * optional bool allow_roaming = 52; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getAllowRoaming = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 52, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setAllowRoaming = function(value) { - return jspb.Message.setProto3BooleanField(this, 52, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.Measurement.prototype.toObject = function(opt_includeInstance) { - return proto.api.Measurement.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.Measurement} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Measurement.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - kind: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.Measurement} - */ -proto.api.Measurement.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.Measurement; - return proto.api.Measurement.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.Measurement} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.Measurement} - */ -proto.api.Measurement.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {!proto.api.MeasurementKind} */ (reader.readEnum()); - msg.setKind(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.Measurement.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.Measurement.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.Measurement} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Measurement.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getKind(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.Measurement.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Measurement} returns this - */ -proto.api.Measurement.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional MeasurementKind kind = 3; - * @return {!proto.api.MeasurementKind} - */ -proto.api.Measurement.prototype.getKind = function() { - return /** @type {!proto.api.MeasurementKind} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.api.MeasurementKind} value - * @return {!proto.api.Measurement} returns this - */ -proto.api.Measurement.prototype.setKind = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceProfileListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceProfileListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceProfileListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceProfileListItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 4, ""), - region: jspb.Message.getFieldWithDefault(msg, 5, 0), - macVersion: jspb.Message.getFieldWithDefault(msg, 6, 0), - regParamsRevision: jspb.Message.getFieldWithDefault(msg, 7, 0), - supportsOtaa: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - supportsClassB: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - supportsClassC: jspb.Message.getBooleanFieldWithDefault(msg, 10, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceProfileListItem} - */ -proto.api.DeviceProfileListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceProfileListItem; - return proto.api.DeviceProfileListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceProfileListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceProfileListItem} - */ -proto.api.DeviceProfileListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 5: - var value = /** @type {!proto.common.Region} */ (reader.readEnum()); - msg.setRegion(value); - break; - case 6: - var value = /** @type {!proto.common.MacVersion} */ (reader.readEnum()); - msg.setMacVersion(value); - break; - case 7: - var value = /** @type {!proto.common.RegParamsRevision} */ (reader.readEnum()); - msg.setRegParamsRevision(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsOtaa(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsClassB(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsClassC(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceProfileListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceProfileListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceProfileListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceProfileListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRegion(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } - f = message.getMacVersion(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getRegParamsRevision(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getSupportsOtaa(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getSupportsClassB(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getSupportsClassC(); - if (f) { - writer.writeBool( - 10, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeviceProfileListItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.DeviceProfileListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.DeviceProfileListItem} returns this -*/ -proto.api.DeviceProfileListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.DeviceProfileListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.DeviceProfileListItem.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.DeviceProfileListItem} returns this -*/ -proto.api.DeviceProfileListItem.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.DeviceProfileListItem.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string name = 4; - * @return {string} - */ -proto.api.DeviceProfileListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional common.Region region = 5; - * @return {!proto.common.Region} - */ -proto.api.DeviceProfileListItem.prototype.getRegion = function() { - return /** @type {!proto.common.Region} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {!proto.common.Region} value - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.setRegion = function(value) { - return jspb.Message.setProto3EnumField(this, 5, value); -}; - - -/** - * optional common.MacVersion mac_version = 6; - * @return {!proto.common.MacVersion} - */ -proto.api.DeviceProfileListItem.prototype.getMacVersion = function() { - return /** @type {!proto.common.MacVersion} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.common.MacVersion} value - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.setMacVersion = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional common.RegParamsRevision reg_params_revision = 7; - * @return {!proto.common.RegParamsRevision} - */ -proto.api.DeviceProfileListItem.prototype.getRegParamsRevision = function() { - return /** @type {!proto.common.RegParamsRevision} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.common.RegParamsRevision} value - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.setRegParamsRevision = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); -}; - - -/** - * optional bool supports_otaa = 8; - * @return {boolean} - */ -proto.api.DeviceProfileListItem.prototype.getSupportsOtaa = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.setSupportsOtaa = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); -}; - - -/** - * optional bool supports_class_b = 9; - * @return {boolean} - */ -proto.api.DeviceProfileListItem.prototype.getSupportsClassB = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.setSupportsClassB = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - -/** - * optional bool supports_class_c = 10; - * @return {boolean} - */ -proto.api.DeviceProfileListItem.prototype.getSupportsClassC = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.setSupportsClassC = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateDeviceProfileRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateDeviceProfileRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateDeviceProfileRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceProfileRequest.toObject = function(includeInstance, msg) { - var f, obj = { - deviceProfile: (f = msg.getDeviceProfile()) && proto.api.DeviceProfile.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateDeviceProfileRequest} - */ -proto.api.CreateDeviceProfileRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateDeviceProfileRequest; - return proto.api.CreateDeviceProfileRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateDeviceProfileRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateDeviceProfileRequest} - */ -proto.api.CreateDeviceProfileRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceProfile; - reader.readMessage(value,proto.api.DeviceProfile.deserializeBinaryFromReader); - msg.setDeviceProfile(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateDeviceProfileRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateDeviceProfileRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateDeviceProfileRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceProfileRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceProfile(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceProfile.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceProfile device_profile = 1; - * @return {?proto.api.DeviceProfile} - */ -proto.api.CreateDeviceProfileRequest.prototype.getDeviceProfile = function() { - return /** @type{?proto.api.DeviceProfile} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceProfile, 1)); -}; - - -/** - * @param {?proto.api.DeviceProfile|undefined} value - * @return {!proto.api.CreateDeviceProfileRequest} returns this -*/ -proto.api.CreateDeviceProfileRequest.prototype.setDeviceProfile = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateDeviceProfileRequest} returns this - */ -proto.api.CreateDeviceProfileRequest.prototype.clearDeviceProfile = function() { - return this.setDeviceProfile(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateDeviceProfileRequest.prototype.hasDeviceProfile = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateDeviceProfileResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateDeviceProfileResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateDeviceProfileResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceProfileResponse.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateDeviceProfileResponse} - */ -proto.api.CreateDeviceProfileResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateDeviceProfileResponse; - return proto.api.CreateDeviceProfileResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateDeviceProfileResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateDeviceProfileResponse} - */ -proto.api.CreateDeviceProfileResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateDeviceProfileResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateDeviceProfileResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateDeviceProfileResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceProfileResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.CreateDeviceProfileResponse.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.CreateDeviceProfileResponse} returns this - */ -proto.api.CreateDeviceProfileResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceProfileRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceProfileRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceProfileRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceProfileRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceProfileRequest} - */ -proto.api.GetDeviceProfileRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceProfileRequest; - return proto.api.GetDeviceProfileRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceProfileRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceProfileRequest} - */ -proto.api.GetDeviceProfileRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceProfileRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceProfileRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceProfileRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceProfileRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.GetDeviceProfileRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDeviceProfileRequest} returns this - */ -proto.api.GetDeviceProfileRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceProfileResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceProfileResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceProfileResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceProfileResponse.toObject = function(includeInstance, msg) { - var f, obj = { - deviceProfile: (f = msg.getDeviceProfile()) && proto.api.DeviceProfile.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceProfileResponse} - */ -proto.api.GetDeviceProfileResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceProfileResponse; - return proto.api.GetDeviceProfileResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceProfileResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceProfileResponse} - */ -proto.api.GetDeviceProfileResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceProfile; - reader.readMessage(value,proto.api.DeviceProfile.deserializeBinaryFromReader); - msg.setDeviceProfile(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceProfileResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceProfileResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceProfileResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceProfileResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceProfile(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceProfile.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceProfile device_profile = 1; - * @return {?proto.api.DeviceProfile} - */ -proto.api.GetDeviceProfileResponse.prototype.getDeviceProfile = function() { - return /** @type{?proto.api.DeviceProfile} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceProfile, 1)); -}; - - -/** - * @param {?proto.api.DeviceProfile|undefined} value - * @return {!proto.api.GetDeviceProfileResponse} returns this -*/ -proto.api.GetDeviceProfileResponse.prototype.setDeviceProfile = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceProfileResponse} returns this - */ -proto.api.GetDeviceProfileResponse.prototype.clearDeviceProfile = function() { - return this.setDeviceProfile(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceProfileResponse.prototype.hasDeviceProfile = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceProfileResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceProfileResponse} returns this -*/ -proto.api.GetDeviceProfileResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceProfileResponse} returns this - */ -proto.api.GetDeviceProfileResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceProfileResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceProfileResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceProfileResponse} returns this -*/ -proto.api.GetDeviceProfileResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceProfileResponse} returns this - */ -proto.api.GetDeviceProfileResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceProfileResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateDeviceProfileRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateDeviceProfileRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateDeviceProfileRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateDeviceProfileRequest.toObject = function(includeInstance, msg) { - var f, obj = { - deviceProfile: (f = msg.getDeviceProfile()) && proto.api.DeviceProfile.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateDeviceProfileRequest} - */ -proto.api.UpdateDeviceProfileRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateDeviceProfileRequest; - return proto.api.UpdateDeviceProfileRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateDeviceProfileRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateDeviceProfileRequest} - */ -proto.api.UpdateDeviceProfileRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceProfile; - reader.readMessage(value,proto.api.DeviceProfile.deserializeBinaryFromReader); - msg.setDeviceProfile(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateDeviceProfileRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateDeviceProfileRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateDeviceProfileRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateDeviceProfileRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceProfile(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceProfile.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceProfile device_profile = 1; - * @return {?proto.api.DeviceProfile} - */ -proto.api.UpdateDeviceProfileRequest.prototype.getDeviceProfile = function() { - return /** @type{?proto.api.DeviceProfile} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceProfile, 1)); -}; - - -/** - * @param {?proto.api.DeviceProfile|undefined} value - * @return {!proto.api.UpdateDeviceProfileRequest} returns this -*/ -proto.api.UpdateDeviceProfileRequest.prototype.setDeviceProfile = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateDeviceProfileRequest} returns this - */ -proto.api.UpdateDeviceProfileRequest.prototype.clearDeviceProfile = function() { - return this.setDeviceProfile(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateDeviceProfileRequest.prototype.hasDeviceProfile = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteDeviceProfileRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteDeviceProfileRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteDeviceProfileRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteDeviceProfileRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteDeviceProfileRequest} - */ -proto.api.DeleteDeviceProfileRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteDeviceProfileRequest; - return proto.api.DeleteDeviceProfileRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteDeviceProfileRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteDeviceProfileRequest} - */ -proto.api.DeleteDeviceProfileRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteDeviceProfileRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteDeviceProfileRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteDeviceProfileRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteDeviceProfileRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeleteDeviceProfileRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteDeviceProfileRequest} returns this - */ -proto.api.DeleteDeviceProfileRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListDeviceProfilesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListDeviceProfilesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListDeviceProfilesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfilesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - search: jspb.Message.getFieldWithDefault(msg, 3, ""), - tenantId: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListDeviceProfilesRequest} - */ -proto.api.ListDeviceProfilesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListDeviceProfilesRequest; - return proto.api.ListDeviceProfilesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListDeviceProfilesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListDeviceProfilesRequest} - */ -proto.api.ListDeviceProfilesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSearch(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListDeviceProfilesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListDeviceProfilesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListDeviceProfilesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfilesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getSearch(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListDeviceProfilesRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDeviceProfilesRequest} returns this - */ -proto.api.ListDeviceProfilesRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListDeviceProfilesRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDeviceProfilesRequest} returns this - */ -proto.api.ListDeviceProfilesRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string search = 3; - * @return {string} - */ -proto.api.ListDeviceProfilesRequest.prototype.getSearch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListDeviceProfilesRequest} returns this - */ -proto.api.ListDeviceProfilesRequest.prototype.setSearch = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string tenant_id = 4; - * @return {string} - */ -proto.api.ListDeviceProfilesRequest.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListDeviceProfilesRequest} returns this - */ -proto.api.ListDeviceProfilesRequest.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListDeviceProfilesResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListDeviceProfilesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListDeviceProfilesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListDeviceProfilesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfilesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.DeviceProfileListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListDeviceProfilesResponse} - */ -proto.api.ListDeviceProfilesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListDeviceProfilesResponse; - return proto.api.ListDeviceProfilesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListDeviceProfilesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListDeviceProfilesResponse} - */ -proto.api.ListDeviceProfilesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.DeviceProfileListItem; - reader.readMessage(value,proto.api.DeviceProfileListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListDeviceProfilesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListDeviceProfilesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListDeviceProfilesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfilesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.DeviceProfileListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListDeviceProfilesResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDeviceProfilesResponse} returns this - */ -proto.api.ListDeviceProfilesResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated DeviceProfileListItem result = 2; - * @return {!Array} - */ -proto.api.ListDeviceProfilesResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.DeviceProfileListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListDeviceProfilesResponse} returns this -*/ -proto.api.ListDeviceProfilesResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.DeviceProfileListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.DeviceProfileListItem} - */ -proto.api.ListDeviceProfilesResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.DeviceProfileListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListDeviceProfilesResponse} returns this - */ -proto.api.ListDeviceProfilesResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListDeviceProfileAdrAlgorithmsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListDeviceProfileAdrAlgorithmsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.AdrAlgorithmListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListDeviceProfileAdrAlgorithmsResponse} - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListDeviceProfileAdrAlgorithmsResponse; - return proto.api.ListDeviceProfileAdrAlgorithmsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListDeviceProfileAdrAlgorithmsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListDeviceProfileAdrAlgorithmsResponse} - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.AdrAlgorithmListItem; - reader.readMessage(value,proto.api.AdrAlgorithmListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListDeviceProfileAdrAlgorithmsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListDeviceProfileAdrAlgorithmsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.AdrAlgorithmListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDeviceProfileAdrAlgorithmsResponse} returns this - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated AdrAlgorithmListItem result = 2; - * @return {!Array} - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.AdrAlgorithmListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListDeviceProfileAdrAlgorithmsResponse} returns this -*/ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.AdrAlgorithmListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.AdrAlgorithmListItem} - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.AdrAlgorithmListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListDeviceProfileAdrAlgorithmsResponse} returns this - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.AdrAlgorithmListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.AdrAlgorithmListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.AdrAlgorithmListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AdrAlgorithmListItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.AdrAlgorithmListItem} - */ -proto.api.AdrAlgorithmListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.AdrAlgorithmListItem; - return proto.api.AdrAlgorithmListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.AdrAlgorithmListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.AdrAlgorithmListItem} - */ -proto.api.AdrAlgorithmListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.AdrAlgorithmListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.AdrAlgorithmListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.AdrAlgorithmListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AdrAlgorithmListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.AdrAlgorithmListItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AdrAlgorithmListItem} returns this - */ -proto.api.AdrAlgorithmListItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.AdrAlgorithmListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AdrAlgorithmListItem} returns this - */ -proto.api.AdrAlgorithmListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * @enum {number} - */ -proto.api.CodecRuntime = { - NONE: 0, - CAYENNE_LPP: 1, - JS: 2 -}; - -/** - * @enum {number} - */ -proto.api.MeasurementKind = { - UNKNOWN: 0, - COUNTER: 1, - ABSOLUTE: 2, - GAUGE: 3, - STRING: 4 -}; - -/** - * @enum {number} - */ -proto.api.CadPeriodicity = { - SEC_1: 0, - MS_500: 1, - MS_250: 2, - MS_100: 3, - MS_50: 4, - MS_20: 5 -}; - -/** - * @enum {number} - */ -proto.api.SecondChAckOffset = { - KHZ_0: 0, - KHZ_200: 1, - KHZ_400: 2, - KHZ_800: 3, - KHZ_1600: 4, - KHZ_3200: 5 -}; - -/** - * @enum {number} - */ -proto.api.RelayModeActivation = { - DISABLE_RELAY_MODE: 0, - ENABLE_RELAY_MODE: 1, - DYNAMIC: 2, - END_DEVICE_CONTROLLED: 3 -}; - -goog.object.extend(exports, proto.api); diff --git a/api/grpc-web/api/device_profile_template_grpc_web_pb.d.ts b/api/grpc-web/api/device_profile_template_grpc_web_pb.d.ts deleted file mode 100644 index 700bd31b..00000000 --- a/api/grpc-web/api/device_profile_template_grpc_web_pb.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -import * as grpcWeb from 'grpc-web'; - -import * as api_device_profile_template_pb from '../api/device_profile_template_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; - - -export class DeviceProfileTemplateServiceClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - create( - request: api_device_profile_template_pb.CreateDeviceProfileTemplateRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - get( - request: api_device_profile_template_pb.GetDeviceProfileTemplateRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_device_profile_template_pb.GetDeviceProfileTemplateResponse) => void - ): grpcWeb.ClientReadableStream; - - update( - request: api_device_profile_template_pb.UpdateDeviceProfileTemplateRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - delete( - request: api_device_profile_template_pb.DeleteDeviceProfileTemplateRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - list( - request: api_device_profile_template_pb.ListDeviceProfileTemplatesRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_device_profile_template_pb.ListDeviceProfileTemplatesResponse) => void - ): grpcWeb.ClientReadableStream; - -} - -export class DeviceProfileTemplateServicePromiseClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - create( - request: api_device_profile_template_pb.CreateDeviceProfileTemplateRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - get( - request: api_device_profile_template_pb.GetDeviceProfileTemplateRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - update( - request: api_device_profile_template_pb.UpdateDeviceProfileTemplateRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - delete( - request: api_device_profile_template_pb.DeleteDeviceProfileTemplateRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - list( - request: api_device_profile_template_pb.ListDeviceProfileTemplatesRequest, - metadata?: grpcWeb.Metadata - ): Promise; - -} - diff --git a/api/grpc-web/api/device_profile_template_grpc_web_pb.js b/api/grpc-web/api/device_profile_template_grpc_web_pb.js deleted file mode 100644 index 8d261ab4..00000000 --- a/api/grpc-web/api/device_profile_template_grpc_web_pb.js +++ /dev/null @@ -1,393 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for api - * @enhanceable - * @public - */ - -// Code generated by protoc-gen-grpc-web. DO NOT EDIT. -// versions: -// protoc-gen-grpc-web v1.4.2 -// protoc v3.12.4 -// source: api/device_profile_template.proto - - -/* eslint-disable */ -// @ts-nocheck - - - -const grpc = {}; -grpc.web = require('grpc-web'); - - -var google_api_annotations_pb = require('../google/api/annotations_pb.js') - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js') - -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js') - -var common_common_pb = require('../common/common_pb.js') - -var api_device_profile_pb = require('../api/device_profile_pb.js') -const proto = {}; -proto.api = require('./device_profile_template_pb.js'); - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.DeviceProfileTemplateServiceClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.DeviceProfileTemplateServicePromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateDeviceProfileTemplateRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_DeviceProfileTemplateService_Create = new grpc.web.MethodDescriptor( - '/api.DeviceProfileTemplateService/Create', - grpc.web.MethodType.UNARY, - proto.api.CreateDeviceProfileTemplateRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.CreateDeviceProfileTemplateRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.CreateDeviceProfileTemplateRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceProfileTemplateServiceClient.prototype.create = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceProfileTemplateService/Create', - request, - metadata || {}, - methodDescriptor_DeviceProfileTemplateService_Create, - callback); -}; - - -/** - * @param {!proto.api.CreateDeviceProfileTemplateRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceProfileTemplateServicePromiseClient.prototype.create = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceProfileTemplateService/Create', - request, - metadata || {}, - methodDescriptor_DeviceProfileTemplateService_Create); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetDeviceProfileTemplateRequest, - * !proto.api.GetDeviceProfileTemplateResponse>} - */ -const methodDescriptor_DeviceProfileTemplateService_Get = new grpc.web.MethodDescriptor( - '/api.DeviceProfileTemplateService/Get', - grpc.web.MethodType.UNARY, - proto.api.GetDeviceProfileTemplateRequest, - proto.api.GetDeviceProfileTemplateResponse, - /** - * @param {!proto.api.GetDeviceProfileTemplateRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetDeviceProfileTemplateResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetDeviceProfileTemplateRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetDeviceProfileTemplateResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceProfileTemplateServiceClient.prototype.get = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceProfileTemplateService/Get', - request, - metadata || {}, - methodDescriptor_DeviceProfileTemplateService_Get, - callback); -}; - - -/** - * @param {!proto.api.GetDeviceProfileTemplateRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceProfileTemplateServicePromiseClient.prototype.get = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceProfileTemplateService/Get', - request, - metadata || {}, - methodDescriptor_DeviceProfileTemplateService_Get); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateDeviceProfileTemplateRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_DeviceProfileTemplateService_Update = new grpc.web.MethodDescriptor( - '/api.DeviceProfileTemplateService/Update', - grpc.web.MethodType.UNARY, - proto.api.UpdateDeviceProfileTemplateRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateDeviceProfileTemplateRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateDeviceProfileTemplateRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceProfileTemplateServiceClient.prototype.update = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceProfileTemplateService/Update', - request, - metadata || {}, - methodDescriptor_DeviceProfileTemplateService_Update, - callback); -}; - - -/** - * @param {!proto.api.UpdateDeviceProfileTemplateRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceProfileTemplateServicePromiseClient.prototype.update = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceProfileTemplateService/Update', - request, - metadata || {}, - methodDescriptor_DeviceProfileTemplateService_Update); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteDeviceProfileTemplateRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_DeviceProfileTemplateService_Delete = new grpc.web.MethodDescriptor( - '/api.DeviceProfileTemplateService/Delete', - grpc.web.MethodType.UNARY, - proto.api.DeleteDeviceProfileTemplateRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteDeviceProfileTemplateRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteDeviceProfileTemplateRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceProfileTemplateServiceClient.prototype.delete = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceProfileTemplateService/Delete', - request, - metadata || {}, - methodDescriptor_DeviceProfileTemplateService_Delete, - callback); -}; - - -/** - * @param {!proto.api.DeleteDeviceProfileTemplateRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceProfileTemplateServicePromiseClient.prototype.delete = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceProfileTemplateService/Delete', - request, - metadata || {}, - methodDescriptor_DeviceProfileTemplateService_Delete); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.ListDeviceProfileTemplatesRequest, - * !proto.api.ListDeviceProfileTemplatesResponse>} - */ -const methodDescriptor_DeviceProfileTemplateService_List = new grpc.web.MethodDescriptor( - '/api.DeviceProfileTemplateService/List', - grpc.web.MethodType.UNARY, - proto.api.ListDeviceProfileTemplatesRequest, - proto.api.ListDeviceProfileTemplatesResponse, - /** - * @param {!proto.api.ListDeviceProfileTemplatesRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.ListDeviceProfileTemplatesResponse.deserializeBinary -); - - -/** - * @param {!proto.api.ListDeviceProfileTemplatesRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.ListDeviceProfileTemplatesResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.DeviceProfileTemplateServiceClient.prototype.list = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.DeviceProfileTemplateService/List', - request, - metadata || {}, - methodDescriptor_DeviceProfileTemplateService_List, - callback); -}; - - -/** - * @param {!proto.api.ListDeviceProfileTemplatesRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.DeviceProfileTemplateServicePromiseClient.prototype.list = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.DeviceProfileTemplateService/List', - request, - metadata || {}, - methodDescriptor_DeviceProfileTemplateService_List); -}; - - -module.exports = proto.api; - diff --git a/api/grpc-web/api/device_profile_template_pb.d.ts b/api/grpc-web/api/device_profile_template_pb.d.ts deleted file mode 100644 index 19fd963e..00000000 --- a/api/grpc-web/api/device_profile_template_pb.d.ts +++ /dev/null @@ -1,359 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_api_annotations_pb from '../google/api/annotations_pb'; -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; -import * as common_common_pb from '../common/common_pb'; -import * as api_device_profile_pb from '../api/device_profile_pb'; - - -export class DeviceProfileTemplate extends jspb.Message { - getId(): string; - setId(value: string): DeviceProfileTemplate; - - getName(): string; - setName(value: string): DeviceProfileTemplate; - - getDescription(): string; - setDescription(value: string): DeviceProfileTemplate; - - getVendor(): string; - setVendor(value: string): DeviceProfileTemplate; - - getFirmware(): string; - setFirmware(value: string): DeviceProfileTemplate; - - getRegion(): common_common_pb.Region; - setRegion(value: common_common_pb.Region): DeviceProfileTemplate; - - getMacVersion(): common_common_pb.MacVersion; - setMacVersion(value: common_common_pb.MacVersion): DeviceProfileTemplate; - - getRegParamsRevision(): common_common_pb.RegParamsRevision; - setRegParamsRevision(value: common_common_pb.RegParamsRevision): DeviceProfileTemplate; - - getAdrAlgorithmId(): string; - setAdrAlgorithmId(value: string): DeviceProfileTemplate; - - getPayloadCodecRuntime(): api_device_profile_pb.CodecRuntime; - setPayloadCodecRuntime(value: api_device_profile_pb.CodecRuntime): DeviceProfileTemplate; - - getPayloadCodecScript(): string; - setPayloadCodecScript(value: string): DeviceProfileTemplate; - - getFlushQueueOnActivate(): boolean; - setFlushQueueOnActivate(value: boolean): DeviceProfileTemplate; - - getUplinkInterval(): number; - setUplinkInterval(value: number): DeviceProfileTemplate; - - getDeviceStatusReqInterval(): number; - setDeviceStatusReqInterval(value: number): DeviceProfileTemplate; - - getSupportsOtaa(): boolean; - setSupportsOtaa(value: boolean): DeviceProfileTemplate; - - getSupportsClassB(): boolean; - setSupportsClassB(value: boolean): DeviceProfileTemplate; - - getSupportsClassC(): boolean; - setSupportsClassC(value: boolean): DeviceProfileTemplate; - - getClassBTimeout(): number; - setClassBTimeout(value: number): DeviceProfileTemplate; - - getClassBPingSlotNbK(): number; - setClassBPingSlotNbK(value: number): DeviceProfileTemplate; - - getClassBPingSlotDr(): number; - setClassBPingSlotDr(value: number): DeviceProfileTemplate; - - getClassBPingSlotFreq(): number; - setClassBPingSlotFreq(value: number): DeviceProfileTemplate; - - getClassCTimeout(): number; - setClassCTimeout(value: number): DeviceProfileTemplate; - - getAbpRx1Delay(): number; - setAbpRx1Delay(value: number): DeviceProfileTemplate; - - getAbpRx1DrOffset(): number; - setAbpRx1DrOffset(value: number): DeviceProfileTemplate; - - getAbpRx2Dr(): number; - setAbpRx2Dr(value: number): DeviceProfileTemplate; - - getAbpRx2Freq(): number; - setAbpRx2Freq(value: number): DeviceProfileTemplate; - - getTagsMap(): jspb.Map; - clearTagsMap(): DeviceProfileTemplate; - - getMeasurementsMap(): jspb.Map; - clearMeasurementsMap(): DeviceProfileTemplate; - - getAutoDetectMeasurements(): boolean; - setAutoDetectMeasurements(value: boolean): DeviceProfileTemplate; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceProfileTemplate.AsObject; - static toObject(includeInstance: boolean, msg: DeviceProfileTemplate): DeviceProfileTemplate.AsObject; - static serializeBinaryToWriter(message: DeviceProfileTemplate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceProfileTemplate; - static deserializeBinaryFromReader(message: DeviceProfileTemplate, reader: jspb.BinaryReader): DeviceProfileTemplate; -} - -export namespace DeviceProfileTemplate { - export type AsObject = { - id: string, - name: string, - description: string, - vendor: string, - firmware: string, - region: common_common_pb.Region, - macVersion: common_common_pb.MacVersion, - regParamsRevision: common_common_pb.RegParamsRevision, - adrAlgorithmId: string, - payloadCodecRuntime: api_device_profile_pb.CodecRuntime, - payloadCodecScript: string, - flushQueueOnActivate: boolean, - uplinkInterval: number, - deviceStatusReqInterval: number, - supportsOtaa: boolean, - supportsClassB: boolean, - supportsClassC: boolean, - classBTimeout: number, - classBPingSlotNbK: number, - classBPingSlotDr: number, - classBPingSlotFreq: number, - classCTimeout: number, - abpRx1Delay: number, - abpRx1DrOffset: number, - abpRx2Dr: number, - abpRx2Freq: number, - tagsMap: Array<[string, string]>, - measurementsMap: Array<[string, api_device_profile_pb.Measurement.AsObject]>, - autoDetectMeasurements: boolean, - } -} - -export class DeviceProfileTemplateListItem extends jspb.Message { - getId(): string; - setId(value: string): DeviceProfileTemplateListItem; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): DeviceProfileTemplateListItem; - hasCreatedAt(): boolean; - clearCreatedAt(): DeviceProfileTemplateListItem; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): DeviceProfileTemplateListItem; - hasUpdatedAt(): boolean; - clearUpdatedAt(): DeviceProfileTemplateListItem; - - getName(): string; - setName(value: string): DeviceProfileTemplateListItem; - - getVendor(): string; - setVendor(value: string): DeviceProfileTemplateListItem; - - getFirmware(): string; - setFirmware(value: string): DeviceProfileTemplateListItem; - - getRegion(): common_common_pb.Region; - setRegion(value: common_common_pb.Region): DeviceProfileTemplateListItem; - - getMacVersion(): common_common_pb.MacVersion; - setMacVersion(value: common_common_pb.MacVersion): DeviceProfileTemplateListItem; - - getRegParamsRevision(): common_common_pb.RegParamsRevision; - setRegParamsRevision(value: common_common_pb.RegParamsRevision): DeviceProfileTemplateListItem; - - getSupportsOtaa(): boolean; - setSupportsOtaa(value: boolean): DeviceProfileTemplateListItem; - - getSupportsClassB(): boolean; - setSupportsClassB(value: boolean): DeviceProfileTemplateListItem; - - getSupportsClassC(): boolean; - setSupportsClassC(value: boolean): DeviceProfileTemplateListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceProfileTemplateListItem.AsObject; - static toObject(includeInstance: boolean, msg: DeviceProfileTemplateListItem): DeviceProfileTemplateListItem.AsObject; - static serializeBinaryToWriter(message: DeviceProfileTemplateListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceProfileTemplateListItem; - static deserializeBinaryFromReader(message: DeviceProfileTemplateListItem, reader: jspb.BinaryReader): DeviceProfileTemplateListItem; -} - -export namespace DeviceProfileTemplateListItem { - export type AsObject = { - id: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - name: string, - vendor: string, - firmware: string, - region: common_common_pb.Region, - macVersion: common_common_pb.MacVersion, - regParamsRevision: common_common_pb.RegParamsRevision, - supportsOtaa: boolean, - supportsClassB: boolean, - supportsClassC: boolean, - } -} - -export class CreateDeviceProfileTemplateRequest extends jspb.Message { - getDeviceProfileTemplate(): DeviceProfileTemplate | undefined; - setDeviceProfileTemplate(value?: DeviceProfileTemplate): CreateDeviceProfileTemplateRequest; - hasDeviceProfileTemplate(): boolean; - clearDeviceProfileTemplate(): CreateDeviceProfileTemplateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateDeviceProfileTemplateRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateDeviceProfileTemplateRequest): CreateDeviceProfileTemplateRequest.AsObject; - static serializeBinaryToWriter(message: CreateDeviceProfileTemplateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateDeviceProfileTemplateRequest; - static deserializeBinaryFromReader(message: CreateDeviceProfileTemplateRequest, reader: jspb.BinaryReader): CreateDeviceProfileTemplateRequest; -} - -export namespace CreateDeviceProfileTemplateRequest { - export type AsObject = { - deviceProfileTemplate?: DeviceProfileTemplate.AsObject, - } -} - -export class GetDeviceProfileTemplateRequest extends jspb.Message { - getId(): string; - setId(value: string): GetDeviceProfileTemplateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceProfileTemplateRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceProfileTemplateRequest): GetDeviceProfileTemplateRequest.AsObject; - static serializeBinaryToWriter(message: GetDeviceProfileTemplateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceProfileTemplateRequest; - static deserializeBinaryFromReader(message: GetDeviceProfileTemplateRequest, reader: jspb.BinaryReader): GetDeviceProfileTemplateRequest; -} - -export namespace GetDeviceProfileTemplateRequest { - export type AsObject = { - id: string, - } -} - -export class GetDeviceProfileTemplateResponse extends jspb.Message { - getDeviceProfileTemplate(): DeviceProfileTemplate | undefined; - setDeviceProfileTemplate(value?: DeviceProfileTemplate): GetDeviceProfileTemplateResponse; - hasDeviceProfileTemplate(): boolean; - clearDeviceProfileTemplate(): GetDeviceProfileTemplateResponse; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceProfileTemplateResponse; - hasCreatedAt(): boolean; - clearCreatedAt(): GetDeviceProfileTemplateResponse; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceProfileTemplateResponse; - hasUpdatedAt(): boolean; - clearUpdatedAt(): GetDeviceProfileTemplateResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceProfileTemplateResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceProfileTemplateResponse): GetDeviceProfileTemplateResponse.AsObject; - static serializeBinaryToWriter(message: GetDeviceProfileTemplateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceProfileTemplateResponse; - static deserializeBinaryFromReader(message: GetDeviceProfileTemplateResponse, reader: jspb.BinaryReader): GetDeviceProfileTemplateResponse; -} - -export namespace GetDeviceProfileTemplateResponse { - export type AsObject = { - deviceProfileTemplate?: DeviceProfileTemplate.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateDeviceProfileTemplateRequest extends jspb.Message { - getDeviceProfileTemplate(): DeviceProfileTemplate | undefined; - setDeviceProfileTemplate(value?: DeviceProfileTemplate): UpdateDeviceProfileTemplateRequest; - hasDeviceProfileTemplate(): boolean; - clearDeviceProfileTemplate(): UpdateDeviceProfileTemplateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateDeviceProfileTemplateRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateDeviceProfileTemplateRequest): UpdateDeviceProfileTemplateRequest.AsObject; - static serializeBinaryToWriter(message: UpdateDeviceProfileTemplateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateDeviceProfileTemplateRequest; - static deserializeBinaryFromReader(message: UpdateDeviceProfileTemplateRequest, reader: jspb.BinaryReader): UpdateDeviceProfileTemplateRequest; -} - -export namespace UpdateDeviceProfileTemplateRequest { - export type AsObject = { - deviceProfileTemplate?: DeviceProfileTemplate.AsObject, - } -} - -export class DeleteDeviceProfileTemplateRequest extends jspb.Message { - getId(): string; - setId(value: string): DeleteDeviceProfileTemplateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteDeviceProfileTemplateRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteDeviceProfileTemplateRequest): DeleteDeviceProfileTemplateRequest.AsObject; - static serializeBinaryToWriter(message: DeleteDeviceProfileTemplateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteDeviceProfileTemplateRequest; - static deserializeBinaryFromReader(message: DeleteDeviceProfileTemplateRequest, reader: jspb.BinaryReader): DeleteDeviceProfileTemplateRequest; -} - -export namespace DeleteDeviceProfileTemplateRequest { - export type AsObject = { - id: string, - } -} - -export class ListDeviceProfileTemplatesRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): ListDeviceProfileTemplatesRequest; - - getOffset(): number; - setOffset(value: number): ListDeviceProfileTemplatesRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListDeviceProfileTemplatesRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListDeviceProfileTemplatesRequest): ListDeviceProfileTemplatesRequest.AsObject; - static serializeBinaryToWriter(message: ListDeviceProfileTemplatesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListDeviceProfileTemplatesRequest; - static deserializeBinaryFromReader(message: ListDeviceProfileTemplatesRequest, reader: jspb.BinaryReader): ListDeviceProfileTemplatesRequest; -} - -export namespace ListDeviceProfileTemplatesRequest { - export type AsObject = { - limit: number, - offset: number, - } -} - -export class ListDeviceProfileTemplatesResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): ListDeviceProfileTemplatesResponse; - - getResultList(): Array; - setResultList(value: Array): ListDeviceProfileTemplatesResponse; - clearResultList(): ListDeviceProfileTemplatesResponse; - addResult(value?: DeviceProfileTemplateListItem, index?: number): DeviceProfileTemplateListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListDeviceProfileTemplatesResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListDeviceProfileTemplatesResponse): ListDeviceProfileTemplatesResponse.AsObject; - static serializeBinaryToWriter(message: ListDeviceProfileTemplatesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListDeviceProfileTemplatesResponse; - static deserializeBinaryFromReader(message: ListDeviceProfileTemplatesResponse, reader: jspb.BinaryReader): ListDeviceProfileTemplatesResponse; -} - -export namespace ListDeviceProfileTemplatesResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - diff --git a/api/grpc-web/api/device_profile_template_pb.js b/api/grpc-web/api/device_profile_template_pb.js deleted file mode 100644 index 1ff06108..00000000 --- a/api/grpc-web/api/device_profile_template_pb.js +++ /dev/null @@ -1,2866 +0,0 @@ -// source: api/device_profile_template.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -var api_device_profile_pb = require('../api/device_profile_pb.js'); -goog.object.extend(proto, api_device_profile_pb); -goog.exportSymbol('proto.api.CreateDeviceProfileTemplateRequest', null, global); -goog.exportSymbol('proto.api.DeleteDeviceProfileTemplateRequest', null, global); -goog.exportSymbol('proto.api.DeviceProfileTemplate', null, global); -goog.exportSymbol('proto.api.DeviceProfileTemplateListItem', null, global); -goog.exportSymbol('proto.api.GetDeviceProfileTemplateRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceProfileTemplateResponse', null, global); -goog.exportSymbol('proto.api.ListDeviceProfileTemplatesRequest', null, global); -goog.exportSymbol('proto.api.ListDeviceProfileTemplatesResponse', null, global); -goog.exportSymbol('proto.api.UpdateDeviceProfileTemplateRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceProfileTemplate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceProfileTemplate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceProfileTemplate.displayName = 'proto.api.DeviceProfileTemplate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceProfileTemplateListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceProfileTemplateListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceProfileTemplateListItem.displayName = 'proto.api.DeviceProfileTemplateListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateDeviceProfileTemplateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateDeviceProfileTemplateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateDeviceProfileTemplateRequest.displayName = 'proto.api.CreateDeviceProfileTemplateRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceProfileTemplateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceProfileTemplateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceProfileTemplateRequest.displayName = 'proto.api.GetDeviceProfileTemplateRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceProfileTemplateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceProfileTemplateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceProfileTemplateResponse.displayName = 'proto.api.GetDeviceProfileTemplateResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateDeviceProfileTemplateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateDeviceProfileTemplateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateDeviceProfileTemplateRequest.displayName = 'proto.api.UpdateDeviceProfileTemplateRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteDeviceProfileTemplateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteDeviceProfileTemplateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteDeviceProfileTemplateRequest.displayName = 'proto.api.DeleteDeviceProfileTemplateRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListDeviceProfileTemplatesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListDeviceProfileTemplatesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListDeviceProfileTemplatesRequest.displayName = 'proto.api.ListDeviceProfileTemplatesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListDeviceProfileTemplatesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListDeviceProfileTemplatesResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListDeviceProfileTemplatesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListDeviceProfileTemplatesResponse.displayName = 'proto.api.ListDeviceProfileTemplatesResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceProfileTemplate.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceProfileTemplate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceProfileTemplate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceProfileTemplate.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - vendor: jspb.Message.getFieldWithDefault(msg, 4, ""), - firmware: jspb.Message.getFieldWithDefault(msg, 5, ""), - region: jspb.Message.getFieldWithDefault(msg, 6, 0), - macVersion: jspb.Message.getFieldWithDefault(msg, 7, 0), - regParamsRevision: jspb.Message.getFieldWithDefault(msg, 8, 0), - adrAlgorithmId: jspb.Message.getFieldWithDefault(msg, 9, ""), - payloadCodecRuntime: jspb.Message.getFieldWithDefault(msg, 10, 0), - payloadCodecScript: jspb.Message.getFieldWithDefault(msg, 11, ""), - flushQueueOnActivate: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), - uplinkInterval: jspb.Message.getFieldWithDefault(msg, 13, 0), - deviceStatusReqInterval: jspb.Message.getFieldWithDefault(msg, 14, 0), - supportsOtaa: jspb.Message.getBooleanFieldWithDefault(msg, 15, false), - supportsClassB: jspb.Message.getBooleanFieldWithDefault(msg, 16, false), - supportsClassC: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), - classBTimeout: jspb.Message.getFieldWithDefault(msg, 18, 0), - classBPingSlotNbK: jspb.Message.getFieldWithDefault(msg, 19, 0), - classBPingSlotDr: jspb.Message.getFieldWithDefault(msg, 20, 0), - classBPingSlotFreq: jspb.Message.getFieldWithDefault(msg, 21, 0), - classCTimeout: jspb.Message.getFieldWithDefault(msg, 22, 0), - abpRx1Delay: jspb.Message.getFieldWithDefault(msg, 23, 0), - abpRx1DrOffset: jspb.Message.getFieldWithDefault(msg, 24, 0), - abpRx2Dr: jspb.Message.getFieldWithDefault(msg, 25, 0), - abpRx2Freq: jspb.Message.getFieldWithDefault(msg, 26, 0), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [], - measurementsMap: (f = msg.getMeasurementsMap()) ? f.toObject(includeInstance, proto.api.Measurement.toObject) : [], - autoDetectMeasurements: jspb.Message.getBooleanFieldWithDefault(msg, 29, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceProfileTemplate} - */ -proto.api.DeviceProfileTemplate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceProfileTemplate; - return proto.api.DeviceProfileTemplate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceProfileTemplate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceProfileTemplate} - */ -proto.api.DeviceProfileTemplate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setVendor(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setFirmware(value); - break; - case 6: - var value = /** @type {!proto.common.Region} */ (reader.readEnum()); - msg.setRegion(value); - break; - case 7: - var value = /** @type {!proto.common.MacVersion} */ (reader.readEnum()); - msg.setMacVersion(value); - break; - case 8: - var value = /** @type {!proto.common.RegParamsRevision} */ (reader.readEnum()); - msg.setRegParamsRevision(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setAdrAlgorithmId(value); - break; - case 10: - var value = /** @type {!proto.api.CodecRuntime} */ (reader.readEnum()); - msg.setPayloadCodecRuntime(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setPayloadCodecScript(value); - break; - case 12: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setFlushQueueOnActivate(value); - break; - case 13: - var value = /** @type {number} */ (reader.readUint32()); - msg.setUplinkInterval(value); - break; - case 14: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDeviceStatusReqInterval(value); - break; - case 15: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsOtaa(value); - break; - case 16: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsClassB(value); - break; - case 17: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsClassC(value); - break; - case 18: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBTimeout(value); - break; - case 19: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotNbK(value); - break; - case 20: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotDr(value); - break; - case 21: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotFreq(value); - break; - case 22: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassCTimeout(value); - break; - case 23: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAbpRx1Delay(value); - break; - case 24: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAbpRx1DrOffset(value); - break; - case 25: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAbpRx2Dr(value); - break; - case 26: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAbpRx2Freq(value); - break; - case 27: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 28: - var value = msg.getMeasurementsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.api.Measurement.deserializeBinaryFromReader, "", new proto.api.Measurement()); - }); - break; - case 29: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAutoDetectMeasurements(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceProfileTemplate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceProfileTemplate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceProfileTemplate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceProfileTemplate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getVendor(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getFirmware(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getRegion(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getMacVersion(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getRegParamsRevision(); - if (f !== 0.0) { - writer.writeEnum( - 8, - f - ); - } - f = message.getAdrAlgorithmId(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getPayloadCodecRuntime(); - if (f !== 0.0) { - writer.writeEnum( - 10, - f - ); - } - f = message.getPayloadCodecScript(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getFlushQueueOnActivate(); - if (f) { - writer.writeBool( - 12, - f - ); - } - f = message.getUplinkInterval(); - if (f !== 0) { - writer.writeUint32( - 13, - f - ); - } - f = message.getDeviceStatusReqInterval(); - if (f !== 0) { - writer.writeUint32( - 14, - f - ); - } - f = message.getSupportsOtaa(); - if (f) { - writer.writeBool( - 15, - f - ); - } - f = message.getSupportsClassB(); - if (f) { - writer.writeBool( - 16, - f - ); - } - f = message.getSupportsClassC(); - if (f) { - writer.writeBool( - 17, - f - ); - } - f = message.getClassBTimeout(); - if (f !== 0) { - writer.writeUint32( - 18, - f - ); - } - f = message.getClassBPingSlotNbK(); - if (f !== 0) { - writer.writeUint32( - 19, - f - ); - } - f = message.getClassBPingSlotDr(); - if (f !== 0) { - writer.writeUint32( - 20, - f - ); - } - f = message.getClassBPingSlotFreq(); - if (f !== 0) { - writer.writeUint32( - 21, - f - ); - } - f = message.getClassCTimeout(); - if (f !== 0) { - writer.writeUint32( - 22, - f - ); - } - f = message.getAbpRx1Delay(); - if (f !== 0) { - writer.writeUint32( - 23, - f - ); - } - f = message.getAbpRx1DrOffset(); - if (f !== 0) { - writer.writeUint32( - 24, - f - ); - } - f = message.getAbpRx2Dr(); - if (f !== 0) { - writer.writeUint32( - 25, - f - ); - } - f = message.getAbpRx2Freq(); - if (f !== 0) { - writer.writeUint32( - 26, - f - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(27, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getMeasurementsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(28, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.api.Measurement.serializeBinaryToWriter); - } - f = message.getAutoDetectMeasurements(); - if (f) { - writer.writeBool( - 29, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeviceProfileTemplate.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.DeviceProfileTemplate.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.api.DeviceProfileTemplate.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string vendor = 4; - * @return {string} - */ -proto.api.DeviceProfileTemplate.prototype.getVendor = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setVendor = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string firmware = 5; - * @return {string} - */ -proto.api.DeviceProfileTemplate.prototype.getFirmware = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setFirmware = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional common.Region region = 6; - * @return {!proto.common.Region} - */ -proto.api.DeviceProfileTemplate.prototype.getRegion = function() { - return /** @type {!proto.common.Region} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.common.Region} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setRegion = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional common.MacVersion mac_version = 7; - * @return {!proto.common.MacVersion} - */ -proto.api.DeviceProfileTemplate.prototype.getMacVersion = function() { - return /** @type {!proto.common.MacVersion} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.common.MacVersion} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setMacVersion = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); -}; - - -/** - * optional common.RegParamsRevision reg_params_revision = 8; - * @return {!proto.common.RegParamsRevision} - */ -proto.api.DeviceProfileTemplate.prototype.getRegParamsRevision = function() { - return /** @type {!proto.common.RegParamsRevision} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {!proto.common.RegParamsRevision} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setRegParamsRevision = function(value) { - return jspb.Message.setProto3EnumField(this, 8, value); -}; - - -/** - * optional string adr_algorithm_id = 9; - * @return {string} - */ -proto.api.DeviceProfileTemplate.prototype.getAdrAlgorithmId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setAdrAlgorithmId = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional CodecRuntime payload_codec_runtime = 10; - * @return {!proto.api.CodecRuntime} - */ -proto.api.DeviceProfileTemplate.prototype.getPayloadCodecRuntime = function() { - return /** @type {!proto.api.CodecRuntime} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {!proto.api.CodecRuntime} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setPayloadCodecRuntime = function(value) { - return jspb.Message.setProto3EnumField(this, 10, value); -}; - - -/** - * optional string payload_codec_script = 11; - * @return {string} - */ -proto.api.DeviceProfileTemplate.prototype.getPayloadCodecScript = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setPayloadCodecScript = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional bool flush_queue_on_activate = 12; - * @return {boolean} - */ -proto.api.DeviceProfileTemplate.prototype.getFlushQueueOnActivate = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setFlushQueueOnActivate = function(value) { - return jspb.Message.setProto3BooleanField(this, 12, value); -}; - - -/** - * optional uint32 uplink_interval = 13; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getUplinkInterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setUplinkInterval = function(value) { - return jspb.Message.setProto3IntField(this, 13, value); -}; - - -/** - * optional uint32 device_status_req_interval = 14; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getDeviceStatusReqInterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setDeviceStatusReqInterval = function(value) { - return jspb.Message.setProto3IntField(this, 14, value); -}; - - -/** - * optional bool supports_otaa = 15; - * @return {boolean} - */ -proto.api.DeviceProfileTemplate.prototype.getSupportsOtaa = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setSupportsOtaa = function(value) { - return jspb.Message.setProto3BooleanField(this, 15, value); -}; - - -/** - * optional bool supports_class_b = 16; - * @return {boolean} - */ -proto.api.DeviceProfileTemplate.prototype.getSupportsClassB = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setSupportsClassB = function(value) { - return jspb.Message.setProto3BooleanField(this, 16, value); -}; - - -/** - * optional bool supports_class_c = 17; - * @return {boolean} - */ -proto.api.DeviceProfileTemplate.prototype.getSupportsClassC = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setSupportsClassC = function(value) { - return jspb.Message.setProto3BooleanField(this, 17, value); -}; - - -/** - * optional uint32 class_b_timeout = 18; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getClassBTimeout = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setClassBTimeout = function(value) { - return jspb.Message.setProto3IntField(this, 18, value); -}; - - -/** - * optional uint32 class_b_ping_slot_nb_k = 19; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getClassBPingSlotNbK = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setClassBPingSlotNbK = function(value) { - return jspb.Message.setProto3IntField(this, 19, value); -}; - - -/** - * optional uint32 class_b_ping_slot_dr = 20; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getClassBPingSlotDr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setClassBPingSlotDr = function(value) { - return jspb.Message.setProto3IntField(this, 20, value); -}; - - -/** - * optional uint32 class_b_ping_slot_freq = 21; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getClassBPingSlotFreq = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setClassBPingSlotFreq = function(value) { - return jspb.Message.setProto3IntField(this, 21, value); -}; - - -/** - * optional uint32 class_c_timeout = 22; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getClassCTimeout = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setClassCTimeout = function(value) { - return jspb.Message.setProto3IntField(this, 22, value); -}; - - -/** - * optional uint32 abp_rx1_delay = 23; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getAbpRx1Delay = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setAbpRx1Delay = function(value) { - return jspb.Message.setProto3IntField(this, 23, value); -}; - - -/** - * optional uint32 abp_rx1_dr_offset = 24; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getAbpRx1DrOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setAbpRx1DrOffset = function(value) { - return jspb.Message.setProto3IntField(this, 24, value); -}; - - -/** - * optional uint32 abp_rx2_dr = 25; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getAbpRx2Dr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setAbpRx2Dr = function(value) { - return jspb.Message.setProto3IntField(this, 25, value); -}; - - -/** - * optional uint32 abp_rx2_freq = 26; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getAbpRx2Freq = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 26, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setAbpRx2Freq = function(value) { - return jspb.Message.setProto3IntField(this, 26, value); -}; - - -/** - * map tags = 27; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.DeviceProfileTemplate.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 27, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - -/** - * map measurements = 28; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.DeviceProfileTemplate.prototype.getMeasurementsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 28, opt_noLazyCreate, - proto.api.Measurement)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.clearMeasurementsMap = function() { - this.getMeasurementsMap().clear(); - return this;}; - - -/** - * optional bool auto_detect_measurements = 29; - * @return {boolean} - */ -proto.api.DeviceProfileTemplate.prototype.getAutoDetectMeasurements = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 29, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setAutoDetectMeasurements = function(value) { - return jspb.Message.setProto3BooleanField(this, 29, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceProfileTemplateListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceProfileTemplateListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceProfileTemplateListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceProfileTemplateListItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 4, ""), - vendor: jspb.Message.getFieldWithDefault(msg, 5, ""), - firmware: jspb.Message.getFieldWithDefault(msg, 6, ""), - region: jspb.Message.getFieldWithDefault(msg, 7, 0), - macVersion: jspb.Message.getFieldWithDefault(msg, 8, 0), - regParamsRevision: jspb.Message.getFieldWithDefault(msg, 9, 0), - supportsOtaa: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - supportsClassB: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), - supportsClassC: jspb.Message.getBooleanFieldWithDefault(msg, 12, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceProfileTemplateListItem} - */ -proto.api.DeviceProfileTemplateListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceProfileTemplateListItem; - return proto.api.DeviceProfileTemplateListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceProfileTemplateListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceProfileTemplateListItem} - */ -proto.api.DeviceProfileTemplateListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setVendor(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setFirmware(value); - break; - case 7: - var value = /** @type {!proto.common.Region} */ (reader.readEnum()); - msg.setRegion(value); - break; - case 8: - var value = /** @type {!proto.common.MacVersion} */ (reader.readEnum()); - msg.setMacVersion(value); - break; - case 9: - var value = /** @type {!proto.common.RegParamsRevision} */ (reader.readEnum()); - msg.setRegParamsRevision(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsOtaa(value); - break; - case 11: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsClassB(value); - break; - case 12: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsClassC(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceProfileTemplateListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceProfileTemplateListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceProfileTemplateListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceProfileTemplateListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getVendor(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getFirmware(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getRegion(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getMacVersion(); - if (f !== 0.0) { - writer.writeEnum( - 8, - f - ); - } - f = message.getRegParamsRevision(); - if (f !== 0.0) { - writer.writeEnum( - 9, - f - ); - } - f = message.getSupportsOtaa(); - if (f) { - writer.writeBool( - 10, - f - ); - } - f = message.getSupportsClassB(); - if (f) { - writer.writeBool( - 11, - f - ); - } - f = message.getSupportsClassC(); - if (f) { - writer.writeBool( - 12, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this -*/ -proto.api.DeviceProfileTemplateListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.DeviceProfileTemplateListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this -*/ -proto.api.DeviceProfileTemplateListItem.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.DeviceProfileTemplateListItem.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string name = 4; - * @return {string} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string vendor = 5; - * @return {string} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getVendor = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setVendor = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string firmware = 6; - * @return {string} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getFirmware = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setFirmware = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional common.Region region = 7; - * @return {!proto.common.Region} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getRegion = function() { - return /** @type {!proto.common.Region} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.common.Region} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setRegion = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); -}; - - -/** - * optional common.MacVersion mac_version = 8; - * @return {!proto.common.MacVersion} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getMacVersion = function() { - return /** @type {!proto.common.MacVersion} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {!proto.common.MacVersion} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setMacVersion = function(value) { - return jspb.Message.setProto3EnumField(this, 8, value); -}; - - -/** - * optional common.RegParamsRevision reg_params_revision = 9; - * @return {!proto.common.RegParamsRevision} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getRegParamsRevision = function() { - return /** @type {!proto.common.RegParamsRevision} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {!proto.common.RegParamsRevision} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setRegParamsRevision = function(value) { - return jspb.Message.setProto3EnumField(this, 9, value); -}; - - -/** - * optional bool supports_otaa = 10; - * @return {boolean} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getSupportsOtaa = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setSupportsOtaa = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); -}; - - -/** - * optional bool supports_class_b = 11; - * @return {boolean} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getSupportsClassB = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setSupportsClassB = function(value) { - return jspb.Message.setProto3BooleanField(this, 11, value); -}; - - -/** - * optional bool supports_class_c = 12; - * @return {boolean} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getSupportsClassC = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setSupportsClassC = function(value) { - return jspb.Message.setProto3BooleanField(this, 12, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateDeviceProfileTemplateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateDeviceProfileTemplateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateDeviceProfileTemplateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceProfileTemplateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - deviceProfileTemplate: (f = msg.getDeviceProfileTemplate()) && proto.api.DeviceProfileTemplate.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateDeviceProfileTemplateRequest} - */ -proto.api.CreateDeviceProfileTemplateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateDeviceProfileTemplateRequest; - return proto.api.CreateDeviceProfileTemplateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateDeviceProfileTemplateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateDeviceProfileTemplateRequest} - */ -proto.api.CreateDeviceProfileTemplateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceProfileTemplate; - reader.readMessage(value,proto.api.DeviceProfileTemplate.deserializeBinaryFromReader); - msg.setDeviceProfileTemplate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateDeviceProfileTemplateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateDeviceProfileTemplateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateDeviceProfileTemplateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceProfileTemplateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceProfileTemplate(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceProfileTemplate.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceProfileTemplate device_profile_template = 1; - * @return {?proto.api.DeviceProfileTemplate} - */ -proto.api.CreateDeviceProfileTemplateRequest.prototype.getDeviceProfileTemplate = function() { - return /** @type{?proto.api.DeviceProfileTemplate} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceProfileTemplate, 1)); -}; - - -/** - * @param {?proto.api.DeviceProfileTemplate|undefined} value - * @return {!proto.api.CreateDeviceProfileTemplateRequest} returns this -*/ -proto.api.CreateDeviceProfileTemplateRequest.prototype.setDeviceProfileTemplate = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateDeviceProfileTemplateRequest} returns this - */ -proto.api.CreateDeviceProfileTemplateRequest.prototype.clearDeviceProfileTemplate = function() { - return this.setDeviceProfileTemplate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateDeviceProfileTemplateRequest.prototype.hasDeviceProfileTemplate = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceProfileTemplateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceProfileTemplateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceProfileTemplateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceProfileTemplateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceProfileTemplateRequest} - */ -proto.api.GetDeviceProfileTemplateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceProfileTemplateRequest; - return proto.api.GetDeviceProfileTemplateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceProfileTemplateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceProfileTemplateRequest} - */ -proto.api.GetDeviceProfileTemplateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceProfileTemplateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceProfileTemplateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceProfileTemplateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceProfileTemplateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.GetDeviceProfileTemplateRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDeviceProfileTemplateRequest} returns this - */ -proto.api.GetDeviceProfileTemplateRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceProfileTemplateResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceProfileTemplateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceProfileTemplateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - deviceProfileTemplate: (f = msg.getDeviceProfileTemplate()) && proto.api.DeviceProfileTemplate.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceProfileTemplateResponse} - */ -proto.api.GetDeviceProfileTemplateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceProfileTemplateResponse; - return proto.api.GetDeviceProfileTemplateResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceProfileTemplateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceProfileTemplateResponse} - */ -proto.api.GetDeviceProfileTemplateResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceProfileTemplate; - reader.readMessage(value,proto.api.DeviceProfileTemplate.deserializeBinaryFromReader); - msg.setDeviceProfileTemplate(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceProfileTemplateResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceProfileTemplateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceProfileTemplateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceProfileTemplate(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceProfileTemplate.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceProfileTemplate device_profile_template = 1; - * @return {?proto.api.DeviceProfileTemplate} - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.getDeviceProfileTemplate = function() { - return /** @type{?proto.api.DeviceProfileTemplate} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceProfileTemplate, 1)); -}; - - -/** - * @param {?proto.api.DeviceProfileTemplate|undefined} value - * @return {!proto.api.GetDeviceProfileTemplateResponse} returns this -*/ -proto.api.GetDeviceProfileTemplateResponse.prototype.setDeviceProfileTemplate = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceProfileTemplateResponse} returns this - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.clearDeviceProfileTemplate = function() { - return this.setDeviceProfileTemplate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.hasDeviceProfileTemplate = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceProfileTemplateResponse} returns this -*/ -proto.api.GetDeviceProfileTemplateResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceProfileTemplateResponse} returns this - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceProfileTemplateResponse} returns this -*/ -proto.api.GetDeviceProfileTemplateResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceProfileTemplateResponse} returns this - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateDeviceProfileTemplateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateDeviceProfileTemplateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateDeviceProfileTemplateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateDeviceProfileTemplateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - deviceProfileTemplate: (f = msg.getDeviceProfileTemplate()) && proto.api.DeviceProfileTemplate.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateDeviceProfileTemplateRequest} - */ -proto.api.UpdateDeviceProfileTemplateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateDeviceProfileTemplateRequest; - return proto.api.UpdateDeviceProfileTemplateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateDeviceProfileTemplateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateDeviceProfileTemplateRequest} - */ -proto.api.UpdateDeviceProfileTemplateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceProfileTemplate; - reader.readMessage(value,proto.api.DeviceProfileTemplate.deserializeBinaryFromReader); - msg.setDeviceProfileTemplate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateDeviceProfileTemplateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateDeviceProfileTemplateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateDeviceProfileTemplateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateDeviceProfileTemplateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceProfileTemplate(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceProfileTemplate.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceProfileTemplate device_profile_template = 1; - * @return {?proto.api.DeviceProfileTemplate} - */ -proto.api.UpdateDeviceProfileTemplateRequest.prototype.getDeviceProfileTemplate = function() { - return /** @type{?proto.api.DeviceProfileTemplate} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceProfileTemplate, 1)); -}; - - -/** - * @param {?proto.api.DeviceProfileTemplate|undefined} value - * @return {!proto.api.UpdateDeviceProfileTemplateRequest} returns this -*/ -proto.api.UpdateDeviceProfileTemplateRequest.prototype.setDeviceProfileTemplate = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateDeviceProfileTemplateRequest} returns this - */ -proto.api.UpdateDeviceProfileTemplateRequest.prototype.clearDeviceProfileTemplate = function() { - return this.setDeviceProfileTemplate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateDeviceProfileTemplateRequest.prototype.hasDeviceProfileTemplate = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteDeviceProfileTemplateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteDeviceProfileTemplateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteDeviceProfileTemplateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteDeviceProfileTemplateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteDeviceProfileTemplateRequest} - */ -proto.api.DeleteDeviceProfileTemplateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteDeviceProfileTemplateRequest; - return proto.api.DeleteDeviceProfileTemplateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteDeviceProfileTemplateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteDeviceProfileTemplateRequest} - */ -proto.api.DeleteDeviceProfileTemplateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteDeviceProfileTemplateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteDeviceProfileTemplateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteDeviceProfileTemplateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteDeviceProfileTemplateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeleteDeviceProfileTemplateRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteDeviceProfileTemplateRequest} returns this - */ -proto.api.DeleteDeviceProfileTemplateRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListDeviceProfileTemplatesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListDeviceProfileTemplatesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListDeviceProfileTemplatesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfileTemplatesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListDeviceProfileTemplatesRequest} - */ -proto.api.ListDeviceProfileTemplatesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListDeviceProfileTemplatesRequest; - return proto.api.ListDeviceProfileTemplatesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListDeviceProfileTemplatesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListDeviceProfileTemplatesRequest} - */ -proto.api.ListDeviceProfileTemplatesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListDeviceProfileTemplatesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListDeviceProfileTemplatesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListDeviceProfileTemplatesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfileTemplatesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListDeviceProfileTemplatesRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDeviceProfileTemplatesRequest} returns this - */ -proto.api.ListDeviceProfileTemplatesRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListDeviceProfileTemplatesRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDeviceProfileTemplatesRequest} returns this - */ -proto.api.ListDeviceProfileTemplatesRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListDeviceProfileTemplatesResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListDeviceProfileTemplatesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListDeviceProfileTemplatesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListDeviceProfileTemplatesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfileTemplatesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.DeviceProfileTemplateListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListDeviceProfileTemplatesResponse} - */ -proto.api.ListDeviceProfileTemplatesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListDeviceProfileTemplatesResponse; - return proto.api.ListDeviceProfileTemplatesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListDeviceProfileTemplatesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListDeviceProfileTemplatesResponse} - */ -proto.api.ListDeviceProfileTemplatesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.DeviceProfileTemplateListItem; - reader.readMessage(value,proto.api.DeviceProfileTemplateListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListDeviceProfileTemplatesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListDeviceProfileTemplatesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListDeviceProfileTemplatesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfileTemplatesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.DeviceProfileTemplateListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListDeviceProfileTemplatesResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDeviceProfileTemplatesResponse} returns this - */ -proto.api.ListDeviceProfileTemplatesResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated DeviceProfileTemplateListItem result = 2; - * @return {!Array} - */ -proto.api.ListDeviceProfileTemplatesResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.DeviceProfileTemplateListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListDeviceProfileTemplatesResponse} returns this -*/ -proto.api.ListDeviceProfileTemplatesResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.DeviceProfileTemplateListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.DeviceProfileTemplateListItem} - */ -proto.api.ListDeviceProfileTemplatesResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.DeviceProfileTemplateListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListDeviceProfileTemplatesResponse} returns this - */ -proto.api.ListDeviceProfileTemplatesResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - -goog.object.extend(exports, proto.api); diff --git a/api/grpc-web/api/gateway_grpc_web_pb.d.ts b/api/grpc-web/api/gateway_grpc_web_pb.d.ts deleted file mode 100644 index 73952274..00000000 --- a/api/grpc-web/api/gateway_grpc_web_pb.d.ts +++ /dev/null @@ -1,104 +0,0 @@ -import * as grpcWeb from 'grpc-web'; - -import * as api_gateway_pb from '../api/gateway_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; - - -export class GatewayServiceClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - create( - request: api_gateway_pb.CreateGatewayRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - get( - request: api_gateway_pb.GetGatewayRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_gateway_pb.GetGatewayResponse) => void - ): grpcWeb.ClientReadableStream; - - update( - request: api_gateway_pb.UpdateGatewayRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - delete( - request: api_gateway_pb.DeleteGatewayRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - list( - request: api_gateway_pb.ListGatewaysRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_gateway_pb.ListGatewaysResponse) => void - ): grpcWeb.ClientReadableStream; - - generateClientCertificate( - request: api_gateway_pb.GenerateGatewayClientCertificateRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_gateway_pb.GenerateGatewayClientCertificateResponse) => void - ): grpcWeb.ClientReadableStream; - - getMetrics( - request: api_gateway_pb.GetGatewayMetricsRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_gateway_pb.GetGatewayMetricsResponse) => void - ): grpcWeb.ClientReadableStream; - -} - -export class GatewayServicePromiseClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - create( - request: api_gateway_pb.CreateGatewayRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - get( - request: api_gateway_pb.GetGatewayRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - update( - request: api_gateway_pb.UpdateGatewayRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - delete( - request: api_gateway_pb.DeleteGatewayRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - list( - request: api_gateway_pb.ListGatewaysRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - generateClientCertificate( - request: api_gateway_pb.GenerateGatewayClientCertificateRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getMetrics( - request: api_gateway_pb.GetGatewayMetricsRequest, - metadata?: grpcWeb.Metadata - ): Promise; - -} - diff --git a/api/grpc-web/api/gateway_grpc_web_pb.js b/api/grpc-web/api/gateway_grpc_web_pb.js deleted file mode 100644 index 5df02053..00000000 --- a/api/grpc-web/api/gateway_grpc_web_pb.js +++ /dev/null @@ -1,513 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for api - * @enhanceable - * @public - */ - -// Code generated by protoc-gen-grpc-web. DO NOT EDIT. -// versions: -// protoc-gen-grpc-web v1.4.2 -// protoc v3.12.4 -// source: api/gateway.proto - - -/* eslint-disable */ -// @ts-nocheck - - - -const grpc = {}; -grpc.web = require('grpc-web'); - - -var google_api_annotations_pb = require('../google/api/annotations_pb.js') - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js') - -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js') - -var common_common_pb = require('../common/common_pb.js') -const proto = {}; -proto.api = require('./gateway_pb.js'); - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.GatewayServiceClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.GatewayServicePromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateGatewayRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_GatewayService_Create = new grpc.web.MethodDescriptor( - '/api.GatewayService/Create', - grpc.web.MethodType.UNARY, - proto.api.CreateGatewayRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.CreateGatewayRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.CreateGatewayRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.GatewayServiceClient.prototype.create = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.GatewayService/Create', - request, - metadata || {}, - methodDescriptor_GatewayService_Create, - callback); -}; - - -/** - * @param {!proto.api.CreateGatewayRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.GatewayServicePromiseClient.prototype.create = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.GatewayService/Create', - request, - metadata || {}, - methodDescriptor_GatewayService_Create); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetGatewayRequest, - * !proto.api.GetGatewayResponse>} - */ -const methodDescriptor_GatewayService_Get = new grpc.web.MethodDescriptor( - '/api.GatewayService/Get', - grpc.web.MethodType.UNARY, - proto.api.GetGatewayRequest, - proto.api.GetGatewayResponse, - /** - * @param {!proto.api.GetGatewayRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetGatewayResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetGatewayRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetGatewayResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.GatewayServiceClient.prototype.get = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.GatewayService/Get', - request, - metadata || {}, - methodDescriptor_GatewayService_Get, - callback); -}; - - -/** - * @param {!proto.api.GetGatewayRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.GatewayServicePromiseClient.prototype.get = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.GatewayService/Get', - request, - metadata || {}, - methodDescriptor_GatewayService_Get); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateGatewayRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_GatewayService_Update = new grpc.web.MethodDescriptor( - '/api.GatewayService/Update', - grpc.web.MethodType.UNARY, - proto.api.UpdateGatewayRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateGatewayRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateGatewayRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.GatewayServiceClient.prototype.update = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.GatewayService/Update', - request, - metadata || {}, - methodDescriptor_GatewayService_Update, - callback); -}; - - -/** - * @param {!proto.api.UpdateGatewayRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.GatewayServicePromiseClient.prototype.update = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.GatewayService/Update', - request, - metadata || {}, - methodDescriptor_GatewayService_Update); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteGatewayRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_GatewayService_Delete = new grpc.web.MethodDescriptor( - '/api.GatewayService/Delete', - grpc.web.MethodType.UNARY, - proto.api.DeleteGatewayRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteGatewayRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteGatewayRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.GatewayServiceClient.prototype.delete = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.GatewayService/Delete', - request, - metadata || {}, - methodDescriptor_GatewayService_Delete, - callback); -}; - - -/** - * @param {!proto.api.DeleteGatewayRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.GatewayServicePromiseClient.prototype.delete = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.GatewayService/Delete', - request, - metadata || {}, - methodDescriptor_GatewayService_Delete); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.ListGatewaysRequest, - * !proto.api.ListGatewaysResponse>} - */ -const methodDescriptor_GatewayService_List = new grpc.web.MethodDescriptor( - '/api.GatewayService/List', - grpc.web.MethodType.UNARY, - proto.api.ListGatewaysRequest, - proto.api.ListGatewaysResponse, - /** - * @param {!proto.api.ListGatewaysRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.ListGatewaysResponse.deserializeBinary -); - - -/** - * @param {!proto.api.ListGatewaysRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.ListGatewaysResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.GatewayServiceClient.prototype.list = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.GatewayService/List', - request, - metadata || {}, - methodDescriptor_GatewayService_List, - callback); -}; - - -/** - * @param {!proto.api.ListGatewaysRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.GatewayServicePromiseClient.prototype.list = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.GatewayService/List', - request, - metadata || {}, - methodDescriptor_GatewayService_List); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GenerateGatewayClientCertificateRequest, - * !proto.api.GenerateGatewayClientCertificateResponse>} - */ -const methodDescriptor_GatewayService_GenerateClientCertificate = new grpc.web.MethodDescriptor( - '/api.GatewayService/GenerateClientCertificate', - grpc.web.MethodType.UNARY, - proto.api.GenerateGatewayClientCertificateRequest, - proto.api.GenerateGatewayClientCertificateResponse, - /** - * @param {!proto.api.GenerateGatewayClientCertificateRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GenerateGatewayClientCertificateResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GenerateGatewayClientCertificateRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GenerateGatewayClientCertificateResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.GatewayServiceClient.prototype.generateClientCertificate = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.GatewayService/GenerateClientCertificate', - request, - metadata || {}, - methodDescriptor_GatewayService_GenerateClientCertificate, - callback); -}; - - -/** - * @param {!proto.api.GenerateGatewayClientCertificateRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.GatewayServicePromiseClient.prototype.generateClientCertificate = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.GatewayService/GenerateClientCertificate', - request, - metadata || {}, - methodDescriptor_GatewayService_GenerateClientCertificate); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetGatewayMetricsRequest, - * !proto.api.GetGatewayMetricsResponse>} - */ -const methodDescriptor_GatewayService_GetMetrics = new grpc.web.MethodDescriptor( - '/api.GatewayService/GetMetrics', - grpc.web.MethodType.UNARY, - proto.api.GetGatewayMetricsRequest, - proto.api.GetGatewayMetricsResponse, - /** - * @param {!proto.api.GetGatewayMetricsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetGatewayMetricsResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetGatewayMetricsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetGatewayMetricsResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.GatewayServiceClient.prototype.getMetrics = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.GatewayService/GetMetrics', - request, - metadata || {}, - methodDescriptor_GatewayService_GetMetrics, - callback); -}; - - -/** - * @param {!proto.api.GetGatewayMetricsRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.GatewayServicePromiseClient.prototype.getMetrics = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.GatewayService/GetMetrics', - request, - metadata || {}, - methodDescriptor_GatewayService_GetMetrics); -}; - - -module.exports = proto.api; - diff --git a/api/grpc-web/api/gateway_pb.d.ts b/api/grpc-web/api/gateway_pb.d.ts deleted file mode 100644 index 5fefcc13..00000000 --- a/api/grpc-web/api/gateway_pb.d.ts +++ /dev/null @@ -1,435 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_api_annotations_pb from '../google/api/annotations_pb'; -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; -import * as common_common_pb from '../common/common_pb'; - - -export class Gateway extends jspb.Message { - getGatewayId(): string; - setGatewayId(value: string): Gateway; - - getName(): string; - setName(value: string): Gateway; - - getDescription(): string; - setDescription(value: string): Gateway; - - getLocation(): common_common_pb.Location | undefined; - setLocation(value?: common_common_pb.Location): Gateway; - hasLocation(): boolean; - clearLocation(): Gateway; - - getTenantId(): string; - setTenantId(value: string): Gateway; - - getTagsMap(): jspb.Map; - clearTagsMap(): Gateway; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): Gateway; - - getStatsInterval(): number; - setStatsInterval(value: number): Gateway; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Gateway.AsObject; - static toObject(includeInstance: boolean, msg: Gateway): Gateway.AsObject; - static serializeBinaryToWriter(message: Gateway, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Gateway; - static deserializeBinaryFromReader(message: Gateway, reader: jspb.BinaryReader): Gateway; -} - -export namespace Gateway { - export type AsObject = { - gatewayId: string, - name: string, - description: string, - location?: common_common_pb.Location.AsObject, - tenantId: string, - tagsMap: Array<[string, string]>, - metadataMap: Array<[string, string]>, - statsInterval: number, - } -} - -export class GatewayListItem extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): GatewayListItem; - - getGatewayId(): string; - setGatewayId(value: string): GatewayListItem; - - getName(): string; - setName(value: string): GatewayListItem; - - getDescription(): string; - setDescription(value: string): GatewayListItem; - - getLocation(): common_common_pb.Location | undefined; - setLocation(value?: common_common_pb.Location): GatewayListItem; - hasLocation(): boolean; - clearLocation(): GatewayListItem; - - getPropertiesMap(): jspb.Map; - clearPropertiesMap(): GatewayListItem; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GatewayListItem; - hasCreatedAt(): boolean; - clearCreatedAt(): GatewayListItem; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GatewayListItem; - hasUpdatedAt(): boolean; - clearUpdatedAt(): GatewayListItem; - - getLastSeenAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setLastSeenAt(value?: google_protobuf_timestamp_pb.Timestamp): GatewayListItem; - hasLastSeenAt(): boolean; - clearLastSeenAt(): GatewayListItem; - - getState(): GatewayState; - setState(value: GatewayState): GatewayListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GatewayListItem.AsObject; - static toObject(includeInstance: boolean, msg: GatewayListItem): GatewayListItem.AsObject; - static serializeBinaryToWriter(message: GatewayListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GatewayListItem; - static deserializeBinaryFromReader(message: GatewayListItem, reader: jspb.BinaryReader): GatewayListItem; -} - -export namespace GatewayListItem { - export type AsObject = { - tenantId: string, - gatewayId: string, - name: string, - description: string, - location?: common_common_pb.Location.AsObject, - propertiesMap: Array<[string, string]>, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - lastSeenAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - state: GatewayState, - } -} - -export class CreateGatewayRequest extends jspb.Message { - getGateway(): Gateway | undefined; - setGateway(value?: Gateway): CreateGatewayRequest; - hasGateway(): boolean; - clearGateway(): CreateGatewayRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateGatewayRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateGatewayRequest): CreateGatewayRequest.AsObject; - static serializeBinaryToWriter(message: CreateGatewayRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateGatewayRequest; - static deserializeBinaryFromReader(message: CreateGatewayRequest, reader: jspb.BinaryReader): CreateGatewayRequest; -} - -export namespace CreateGatewayRequest { - export type AsObject = { - gateway?: Gateway.AsObject, - } -} - -export class GetGatewayRequest extends jspb.Message { - getGatewayId(): string; - setGatewayId(value: string): GetGatewayRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetGatewayRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetGatewayRequest): GetGatewayRequest.AsObject; - static serializeBinaryToWriter(message: GetGatewayRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetGatewayRequest; - static deserializeBinaryFromReader(message: GetGatewayRequest, reader: jspb.BinaryReader): GetGatewayRequest; -} - -export namespace GetGatewayRequest { - export type AsObject = { - gatewayId: string, - } -} - -export class GetGatewayResponse extends jspb.Message { - getGateway(): Gateway | undefined; - setGateway(value?: Gateway): GetGatewayResponse; - hasGateway(): boolean; - clearGateway(): GetGatewayResponse; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayResponse; - hasCreatedAt(): boolean; - clearCreatedAt(): GetGatewayResponse; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayResponse; - hasUpdatedAt(): boolean; - clearUpdatedAt(): GetGatewayResponse; - - getLastSeenAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setLastSeenAt(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayResponse; - hasLastSeenAt(): boolean; - clearLastSeenAt(): GetGatewayResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetGatewayResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetGatewayResponse): GetGatewayResponse.AsObject; - static serializeBinaryToWriter(message: GetGatewayResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetGatewayResponse; - static deserializeBinaryFromReader(message: GetGatewayResponse, reader: jspb.BinaryReader): GetGatewayResponse; -} - -export namespace GetGatewayResponse { - export type AsObject = { - gateway?: Gateway.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - lastSeenAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateGatewayRequest extends jspb.Message { - getGateway(): Gateway | undefined; - setGateway(value?: Gateway): UpdateGatewayRequest; - hasGateway(): boolean; - clearGateway(): UpdateGatewayRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateGatewayRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateGatewayRequest): UpdateGatewayRequest.AsObject; - static serializeBinaryToWriter(message: UpdateGatewayRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateGatewayRequest; - static deserializeBinaryFromReader(message: UpdateGatewayRequest, reader: jspb.BinaryReader): UpdateGatewayRequest; -} - -export namespace UpdateGatewayRequest { - export type AsObject = { - gateway?: Gateway.AsObject, - } -} - -export class DeleteGatewayRequest extends jspb.Message { - getGatewayId(): string; - setGatewayId(value: string): DeleteGatewayRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteGatewayRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteGatewayRequest): DeleteGatewayRequest.AsObject; - static serializeBinaryToWriter(message: DeleteGatewayRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteGatewayRequest; - static deserializeBinaryFromReader(message: DeleteGatewayRequest, reader: jspb.BinaryReader): DeleteGatewayRequest; -} - -export namespace DeleteGatewayRequest { - export type AsObject = { - gatewayId: string, - } -} - -export class ListGatewaysRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): ListGatewaysRequest; - - getOffset(): number; - setOffset(value: number): ListGatewaysRequest; - - getSearch(): string; - setSearch(value: string): ListGatewaysRequest; - - getTenantId(): string; - setTenantId(value: string): ListGatewaysRequest; - - getMulticastGroupId(): string; - setMulticastGroupId(value: string): ListGatewaysRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListGatewaysRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListGatewaysRequest): ListGatewaysRequest.AsObject; - static serializeBinaryToWriter(message: ListGatewaysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListGatewaysRequest; - static deserializeBinaryFromReader(message: ListGatewaysRequest, reader: jspb.BinaryReader): ListGatewaysRequest; -} - -export namespace ListGatewaysRequest { - export type AsObject = { - limit: number, - offset: number, - search: string, - tenantId: string, - multicastGroupId: string, - } -} - -export class ListGatewaysResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): ListGatewaysResponse; - - getResultList(): Array; - setResultList(value: Array): ListGatewaysResponse; - clearResultList(): ListGatewaysResponse; - addResult(value?: GatewayListItem, index?: number): GatewayListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListGatewaysResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListGatewaysResponse): ListGatewaysResponse.AsObject; - static serializeBinaryToWriter(message: ListGatewaysResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListGatewaysResponse; - static deserializeBinaryFromReader(message: ListGatewaysResponse, reader: jspb.BinaryReader): ListGatewaysResponse; -} - -export namespace ListGatewaysResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class GenerateGatewayClientCertificateRequest extends jspb.Message { - getGatewayId(): string; - setGatewayId(value: string): GenerateGatewayClientCertificateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenerateGatewayClientCertificateRequest.AsObject; - static toObject(includeInstance: boolean, msg: GenerateGatewayClientCertificateRequest): GenerateGatewayClientCertificateRequest.AsObject; - static serializeBinaryToWriter(message: GenerateGatewayClientCertificateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenerateGatewayClientCertificateRequest; - static deserializeBinaryFromReader(message: GenerateGatewayClientCertificateRequest, reader: jspb.BinaryReader): GenerateGatewayClientCertificateRequest; -} - -export namespace GenerateGatewayClientCertificateRequest { - export type AsObject = { - gatewayId: string, - } -} - -export class GenerateGatewayClientCertificateResponse extends jspb.Message { - getTlsCert(): string; - setTlsCert(value: string): GenerateGatewayClientCertificateResponse; - - getTlsKey(): string; - setTlsKey(value: string): GenerateGatewayClientCertificateResponse; - - getCaCert(): string; - setCaCert(value: string): GenerateGatewayClientCertificateResponse; - - getExpiresAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setExpiresAt(value?: google_protobuf_timestamp_pb.Timestamp): GenerateGatewayClientCertificateResponse; - hasExpiresAt(): boolean; - clearExpiresAt(): GenerateGatewayClientCertificateResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenerateGatewayClientCertificateResponse.AsObject; - static toObject(includeInstance: boolean, msg: GenerateGatewayClientCertificateResponse): GenerateGatewayClientCertificateResponse.AsObject; - static serializeBinaryToWriter(message: GenerateGatewayClientCertificateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenerateGatewayClientCertificateResponse; - static deserializeBinaryFromReader(message: GenerateGatewayClientCertificateResponse, reader: jspb.BinaryReader): GenerateGatewayClientCertificateResponse; -} - -export namespace GenerateGatewayClientCertificateResponse { - export type AsObject = { - tlsCert: string, - tlsKey: string, - caCert: string, - expiresAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class GetGatewayMetricsRequest extends jspb.Message { - getGatewayId(): string; - setGatewayId(value: string): GetGatewayMetricsRequest; - - getStart(): google_protobuf_timestamp_pb.Timestamp | undefined; - setStart(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayMetricsRequest; - hasStart(): boolean; - clearStart(): GetGatewayMetricsRequest; - - getEnd(): google_protobuf_timestamp_pb.Timestamp | undefined; - setEnd(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayMetricsRequest; - hasEnd(): boolean; - clearEnd(): GetGatewayMetricsRequest; - - getAggregation(): common_common_pb.Aggregation; - setAggregation(value: common_common_pb.Aggregation): GetGatewayMetricsRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetGatewayMetricsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetGatewayMetricsRequest): GetGatewayMetricsRequest.AsObject; - static serializeBinaryToWriter(message: GetGatewayMetricsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetGatewayMetricsRequest; - static deserializeBinaryFromReader(message: GetGatewayMetricsRequest, reader: jspb.BinaryReader): GetGatewayMetricsRequest; -} - -export namespace GetGatewayMetricsRequest { - export type AsObject = { - gatewayId: string, - start?: google_protobuf_timestamp_pb.Timestamp.AsObject, - end?: google_protobuf_timestamp_pb.Timestamp.AsObject, - aggregation: common_common_pb.Aggregation, - } -} - -export class GetGatewayMetricsResponse extends jspb.Message { - getRxPackets(): common_common_pb.Metric | undefined; - setRxPackets(value?: common_common_pb.Metric): GetGatewayMetricsResponse; - hasRxPackets(): boolean; - clearRxPackets(): GetGatewayMetricsResponse; - - getTxPackets(): common_common_pb.Metric | undefined; - setTxPackets(value?: common_common_pb.Metric): GetGatewayMetricsResponse; - hasTxPackets(): boolean; - clearTxPackets(): GetGatewayMetricsResponse; - - getTxPacketsPerFreq(): common_common_pb.Metric | undefined; - setTxPacketsPerFreq(value?: common_common_pb.Metric): GetGatewayMetricsResponse; - hasTxPacketsPerFreq(): boolean; - clearTxPacketsPerFreq(): GetGatewayMetricsResponse; - - getRxPacketsPerFreq(): common_common_pb.Metric | undefined; - setRxPacketsPerFreq(value?: common_common_pb.Metric): GetGatewayMetricsResponse; - hasRxPacketsPerFreq(): boolean; - clearRxPacketsPerFreq(): GetGatewayMetricsResponse; - - getTxPacketsPerDr(): common_common_pb.Metric | undefined; - setTxPacketsPerDr(value?: common_common_pb.Metric): GetGatewayMetricsResponse; - hasTxPacketsPerDr(): boolean; - clearTxPacketsPerDr(): GetGatewayMetricsResponse; - - getRxPacketsPerDr(): common_common_pb.Metric | undefined; - setRxPacketsPerDr(value?: common_common_pb.Metric): GetGatewayMetricsResponse; - hasRxPacketsPerDr(): boolean; - clearRxPacketsPerDr(): GetGatewayMetricsResponse; - - getTxPacketsPerStatus(): common_common_pb.Metric | undefined; - setTxPacketsPerStatus(value?: common_common_pb.Metric): GetGatewayMetricsResponse; - hasTxPacketsPerStatus(): boolean; - clearTxPacketsPerStatus(): GetGatewayMetricsResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetGatewayMetricsResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetGatewayMetricsResponse): GetGatewayMetricsResponse.AsObject; - static serializeBinaryToWriter(message: GetGatewayMetricsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetGatewayMetricsResponse; - static deserializeBinaryFromReader(message: GetGatewayMetricsResponse, reader: jspb.BinaryReader): GetGatewayMetricsResponse; -} - -export namespace GetGatewayMetricsResponse { - export type AsObject = { - rxPackets?: common_common_pb.Metric.AsObject, - txPackets?: common_common_pb.Metric.AsObject, - txPacketsPerFreq?: common_common_pb.Metric.AsObject, - rxPacketsPerFreq?: common_common_pb.Metric.AsObject, - txPacketsPerDr?: common_common_pb.Metric.AsObject, - rxPacketsPerDr?: common_common_pb.Metric.AsObject, - txPacketsPerStatus?: common_common_pb.Metric.AsObject, - } -} - -export enum GatewayState { - NEVER_SEEN = 0, - ONLINE = 1, - OFFLINE = 2, -} diff --git a/api/grpc-web/api/gateway_pb.js b/api/grpc-web/api/gateway_pb.js deleted file mode 100644 index 8dc37764..00000000 --- a/api/grpc-web/api/gateway_pb.js +++ /dev/null @@ -1,3569 +0,0 @@ -// source: api/gateway.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -goog.exportSymbol('proto.api.CreateGatewayRequest', null, global); -goog.exportSymbol('proto.api.DeleteGatewayRequest', null, global); -goog.exportSymbol('proto.api.Gateway', null, global); -goog.exportSymbol('proto.api.GatewayListItem', null, global); -goog.exportSymbol('proto.api.GatewayState', null, global); -goog.exportSymbol('proto.api.GenerateGatewayClientCertificateRequest', null, global); -goog.exportSymbol('proto.api.GenerateGatewayClientCertificateResponse', null, global); -goog.exportSymbol('proto.api.GetGatewayMetricsRequest', null, global); -goog.exportSymbol('proto.api.GetGatewayMetricsResponse', null, global); -goog.exportSymbol('proto.api.GetGatewayRequest', null, global); -goog.exportSymbol('proto.api.GetGatewayResponse', null, global); -goog.exportSymbol('proto.api.ListGatewaysRequest', null, global); -goog.exportSymbol('proto.api.ListGatewaysResponse', null, global); -goog.exportSymbol('proto.api.UpdateGatewayRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.Gateway = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.Gateway, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.Gateway.displayName = 'proto.api.Gateway'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GatewayListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GatewayListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GatewayListItem.displayName = 'proto.api.GatewayListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateGatewayRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateGatewayRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateGatewayRequest.displayName = 'proto.api.CreateGatewayRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetGatewayRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetGatewayRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetGatewayRequest.displayName = 'proto.api.GetGatewayRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetGatewayResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetGatewayResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetGatewayResponse.displayName = 'proto.api.GetGatewayResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateGatewayRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateGatewayRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateGatewayRequest.displayName = 'proto.api.UpdateGatewayRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteGatewayRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteGatewayRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteGatewayRequest.displayName = 'proto.api.DeleteGatewayRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListGatewaysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListGatewaysRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListGatewaysRequest.displayName = 'proto.api.ListGatewaysRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListGatewaysResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListGatewaysResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListGatewaysResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListGatewaysResponse.displayName = 'proto.api.ListGatewaysResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GenerateGatewayClientCertificateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GenerateGatewayClientCertificateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GenerateGatewayClientCertificateRequest.displayName = 'proto.api.GenerateGatewayClientCertificateRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GenerateGatewayClientCertificateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GenerateGatewayClientCertificateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GenerateGatewayClientCertificateResponse.displayName = 'proto.api.GenerateGatewayClientCertificateResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetGatewayMetricsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetGatewayMetricsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetGatewayMetricsRequest.displayName = 'proto.api.GetGatewayMetricsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetGatewayMetricsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetGatewayMetricsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetGatewayMetricsResponse.displayName = 'proto.api.GetGatewayMetricsResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.Gateway.prototype.toObject = function(opt_includeInstance) { - return proto.api.Gateway.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.Gateway} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Gateway.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - location: (f = msg.getLocation()) && common_common_pb.Location.toObject(includeInstance, f), - tenantId: jspb.Message.getFieldWithDefault(msg, 5, ""), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [], - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [], - statsInterval: jspb.Message.getFieldWithDefault(msg, 8, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.Gateway} - */ -proto.api.Gateway.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.Gateway; - return proto.api.Gateway.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.Gateway} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.Gateway} - */ -proto.api.Gateway.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = new common_common_pb.Location; - reader.readMessage(value,common_common_pb.Location.deserializeBinaryFromReader); - msg.setLocation(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 6: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 7: - var value = msg.getMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setStatsInterval(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.Gateway.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.Gateway.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.Gateway} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Gateway.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getLocation(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_common_pb.Location.serializeBinaryToWriter - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getStatsInterval(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } -}; - - -/** - * optional string gateway_id = 1; - * @return {string} - */ -proto.api.Gateway.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Gateway} returns this - */ -proto.api.Gateway.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.Gateway.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Gateway} returns this - */ -proto.api.Gateway.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.api.Gateway.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Gateway} returns this - */ -proto.api.Gateway.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional common.Location location = 4; - * @return {?proto.common.Location} - */ -proto.api.Gateway.prototype.getLocation = function() { - return /** @type{?proto.common.Location} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Location, 4)); -}; - - -/** - * @param {?proto.common.Location|undefined} value - * @return {!proto.api.Gateway} returns this -*/ -proto.api.Gateway.prototype.setLocation = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.Gateway} returns this - */ -proto.api.Gateway.prototype.clearLocation = function() { - return this.setLocation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.Gateway.prototype.hasLocation = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string tenant_id = 5; - * @return {string} - */ -proto.api.Gateway.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Gateway} returns this - */ -proto.api.Gateway.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * map tags = 6; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.Gateway.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 6, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.Gateway} returns this - */ -proto.api.Gateway.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - -/** - * map metadata = 7; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.Gateway.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 7, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.Gateway} returns this - */ -proto.api.Gateway.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - - -/** - * optional uint32 stats_interval = 8; - * @return {number} - */ -proto.api.Gateway.prototype.getStatsInterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.Gateway} returns this - */ -proto.api.Gateway.prototype.setStatsInterval = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GatewayListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.GatewayListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GatewayListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GatewayListItem.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, ""), - gatewayId: jspb.Message.getFieldWithDefault(msg, 2, ""), - name: jspb.Message.getFieldWithDefault(msg, 3, ""), - description: jspb.Message.getFieldWithDefault(msg, 4, ""), - location: (f = msg.getLocation()) && common_common_pb.Location.toObject(includeInstance, f), - propertiesMap: (f = msg.getPropertiesMap()) ? f.toObject(includeInstance, undefined) : [], - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - lastSeenAt: (f = msg.getLastSeenAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - state: jspb.Message.getFieldWithDefault(msg, 10, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GatewayListItem} - */ -proto.api.GatewayListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GatewayListItem; - return proto.api.GatewayListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GatewayListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GatewayListItem} - */ -proto.api.GatewayListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 5: - var value = new common_common_pb.Location; - reader.readMessage(value,common_common_pb.Location.deserializeBinaryFromReader); - msg.setLocation(value); - break; - case 6: - var value = msg.getPropertiesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 7: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 9: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setLastSeenAt(value); - break; - case 10: - var value = /** @type {!proto.api.GatewayState} */ (reader.readEnum()); - msg.setState(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GatewayListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GatewayListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GatewayListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GatewayListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getLocation(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_common_pb.Location.serializeBinaryToWriter - ); - } - f = message.getPropertiesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getLastSeenAt(); - if (f != null) { - writer.writeMessage( - 9, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 10, - f - ); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.api.GatewayListItem.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string gateway_id = 2; - * @return {string} - */ -proto.api.GatewayListItem.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string name = 3; - * @return {string} - */ -proto.api.GatewayListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string description = 4; - * @return {string} - */ -proto.api.GatewayListItem.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional common.Location location = 5; - * @return {?proto.common.Location} - */ -proto.api.GatewayListItem.prototype.getLocation = function() { - return /** @type{?proto.common.Location} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Location, 5)); -}; - - -/** - * @param {?proto.common.Location|undefined} value - * @return {!proto.api.GatewayListItem} returns this -*/ -proto.api.GatewayListItem.prototype.setLocation = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.clearLocation = function() { - return this.setLocation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GatewayListItem.prototype.hasLocation = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * map properties = 6; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.GatewayListItem.prototype.getPropertiesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 6, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.clearPropertiesMap = function() { - this.getPropertiesMap().clear(); - return this;}; - - -/** - * optional google.protobuf.Timestamp created_at = 7; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GatewayListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GatewayListItem} returns this -*/ -proto.api.GatewayListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GatewayListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 8; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GatewayListItem.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GatewayListItem} returns this -*/ -proto.api.GatewayListItem.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GatewayListItem.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional google.protobuf.Timestamp last_seen_at = 9; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GatewayListItem.prototype.getLastSeenAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GatewayListItem} returns this -*/ -proto.api.GatewayListItem.prototype.setLastSeenAt = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.clearLastSeenAt = function() { - return this.setLastSeenAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GatewayListItem.prototype.hasLastSeenAt = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional GatewayState state = 10; - * @return {!proto.api.GatewayState} - */ -proto.api.GatewayListItem.prototype.getState = function() { - return /** @type {!proto.api.GatewayState} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {!proto.api.GatewayState} value - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.setState = function(value) { - return jspb.Message.setProto3EnumField(this, 10, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateGatewayRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateGatewayRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateGatewayRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateGatewayRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gateway: (f = msg.getGateway()) && proto.api.Gateway.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateGatewayRequest} - */ -proto.api.CreateGatewayRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateGatewayRequest; - return proto.api.CreateGatewayRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateGatewayRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateGatewayRequest} - */ -proto.api.CreateGatewayRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Gateway; - reader.readMessage(value,proto.api.Gateway.deserializeBinaryFromReader); - msg.setGateway(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateGatewayRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateGatewayRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateGatewayRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateGatewayRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGateway(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Gateway.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Gateway gateway = 1; - * @return {?proto.api.Gateway} - */ -proto.api.CreateGatewayRequest.prototype.getGateway = function() { - return /** @type{?proto.api.Gateway} */ ( - jspb.Message.getWrapperField(this, proto.api.Gateway, 1)); -}; - - -/** - * @param {?proto.api.Gateway|undefined} value - * @return {!proto.api.CreateGatewayRequest} returns this -*/ -proto.api.CreateGatewayRequest.prototype.setGateway = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateGatewayRequest} returns this - */ -proto.api.CreateGatewayRequest.prototype.clearGateway = function() { - return this.setGateway(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateGatewayRequest.prototype.hasGateway = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetGatewayRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetGatewayRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetGatewayRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewayRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetGatewayRequest} - */ -proto.api.GetGatewayRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetGatewayRequest; - return proto.api.GetGatewayRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetGatewayRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetGatewayRequest} - */ -proto.api.GetGatewayRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetGatewayRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetGatewayRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetGatewayRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewayRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string gateway_id = 1; - * @return {string} - */ -proto.api.GetGatewayRequest.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetGatewayRequest} returns this - */ -proto.api.GetGatewayRequest.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetGatewayResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetGatewayResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetGatewayResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewayResponse.toObject = function(includeInstance, msg) { - var f, obj = { - gateway: (f = msg.getGateway()) && proto.api.Gateway.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - lastSeenAt: (f = msg.getLastSeenAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetGatewayResponse} - */ -proto.api.GetGatewayResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetGatewayResponse; - return proto.api.GetGatewayResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetGatewayResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetGatewayResponse} - */ -proto.api.GetGatewayResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Gateway; - reader.readMessage(value,proto.api.Gateway.deserializeBinaryFromReader); - msg.setGateway(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setLastSeenAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetGatewayResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetGatewayResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetGatewayResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewayResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGateway(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Gateway.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getLastSeenAt(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Gateway gateway = 1; - * @return {?proto.api.Gateway} - */ -proto.api.GetGatewayResponse.prototype.getGateway = function() { - return /** @type{?proto.api.Gateway} */ ( - jspb.Message.getWrapperField(this, proto.api.Gateway, 1)); -}; - - -/** - * @param {?proto.api.Gateway|undefined} value - * @return {!proto.api.GetGatewayResponse} returns this -*/ -proto.api.GetGatewayResponse.prototype.setGateway = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayResponse} returns this - */ -proto.api.GetGatewayResponse.prototype.clearGateway = function() { - return this.setGateway(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayResponse.prototype.hasGateway = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetGatewayResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetGatewayResponse} returns this -*/ -proto.api.GetGatewayResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayResponse} returns this - */ -proto.api.GetGatewayResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetGatewayResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetGatewayResponse} returns this -*/ -proto.api.GetGatewayResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayResponse} returns this - */ -proto.api.GetGatewayResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp last_seen_at = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetGatewayResponse.prototype.getLastSeenAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetGatewayResponse} returns this -*/ -proto.api.GetGatewayResponse.prototype.setLastSeenAt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayResponse} returns this - */ -proto.api.GetGatewayResponse.prototype.clearLastSeenAt = function() { - return this.setLastSeenAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayResponse.prototype.hasLastSeenAt = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateGatewayRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateGatewayRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateGatewayRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateGatewayRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gateway: (f = msg.getGateway()) && proto.api.Gateway.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateGatewayRequest} - */ -proto.api.UpdateGatewayRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateGatewayRequest; - return proto.api.UpdateGatewayRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateGatewayRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateGatewayRequest} - */ -proto.api.UpdateGatewayRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Gateway; - reader.readMessage(value,proto.api.Gateway.deserializeBinaryFromReader); - msg.setGateway(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateGatewayRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateGatewayRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateGatewayRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateGatewayRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGateway(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Gateway.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Gateway gateway = 1; - * @return {?proto.api.Gateway} - */ -proto.api.UpdateGatewayRequest.prototype.getGateway = function() { - return /** @type{?proto.api.Gateway} */ ( - jspb.Message.getWrapperField(this, proto.api.Gateway, 1)); -}; - - -/** - * @param {?proto.api.Gateway|undefined} value - * @return {!proto.api.UpdateGatewayRequest} returns this -*/ -proto.api.UpdateGatewayRequest.prototype.setGateway = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateGatewayRequest} returns this - */ -proto.api.UpdateGatewayRequest.prototype.clearGateway = function() { - return this.setGateway(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateGatewayRequest.prototype.hasGateway = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteGatewayRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteGatewayRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteGatewayRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteGatewayRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteGatewayRequest} - */ -proto.api.DeleteGatewayRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteGatewayRequest; - return proto.api.DeleteGatewayRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteGatewayRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteGatewayRequest} - */ -proto.api.DeleteGatewayRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteGatewayRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteGatewayRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteGatewayRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteGatewayRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string gateway_id = 1; - * @return {string} - */ -proto.api.DeleteGatewayRequest.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteGatewayRequest} returns this - */ -proto.api.DeleteGatewayRequest.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListGatewaysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListGatewaysRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListGatewaysRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListGatewaysRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - search: jspb.Message.getFieldWithDefault(msg, 3, ""), - tenantId: jspb.Message.getFieldWithDefault(msg, 4, ""), - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListGatewaysRequest} - */ -proto.api.ListGatewaysRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListGatewaysRequest; - return proto.api.ListGatewaysRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListGatewaysRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListGatewaysRequest} - */ -proto.api.ListGatewaysRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSearch(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListGatewaysRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListGatewaysRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListGatewaysRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListGatewaysRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getSearch(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListGatewaysRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListGatewaysRequest} returns this - */ -proto.api.ListGatewaysRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListGatewaysRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListGatewaysRequest} returns this - */ -proto.api.ListGatewaysRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string search = 3; - * @return {string} - */ -proto.api.ListGatewaysRequest.prototype.getSearch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListGatewaysRequest} returns this - */ -proto.api.ListGatewaysRequest.prototype.setSearch = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string tenant_id = 4; - * @return {string} - */ -proto.api.ListGatewaysRequest.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListGatewaysRequest} returns this - */ -proto.api.ListGatewaysRequest.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string multicast_group_id = 5; - * @return {string} - */ -proto.api.ListGatewaysRequest.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListGatewaysRequest} returns this - */ -proto.api.ListGatewaysRequest.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListGatewaysResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListGatewaysResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListGatewaysResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListGatewaysResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListGatewaysResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.GatewayListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListGatewaysResponse} - */ -proto.api.ListGatewaysResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListGatewaysResponse; - return proto.api.ListGatewaysResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListGatewaysResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListGatewaysResponse} - */ -proto.api.ListGatewaysResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.GatewayListItem; - reader.readMessage(value,proto.api.GatewayListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListGatewaysResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListGatewaysResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListGatewaysResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListGatewaysResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.GatewayListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListGatewaysResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListGatewaysResponse} returns this - */ -proto.api.ListGatewaysResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated GatewayListItem result = 2; - * @return {!Array} - */ -proto.api.ListGatewaysResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.GatewayListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListGatewaysResponse} returns this -*/ -proto.api.ListGatewaysResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.GatewayListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.GatewayListItem} - */ -proto.api.ListGatewaysResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.GatewayListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListGatewaysResponse} returns this - */ -proto.api.ListGatewaysResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GenerateGatewayClientCertificateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GenerateGatewayClientCertificateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GenerateGatewayClientCertificateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GenerateGatewayClientCertificateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GenerateGatewayClientCertificateRequest} - */ -proto.api.GenerateGatewayClientCertificateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GenerateGatewayClientCertificateRequest; - return proto.api.GenerateGatewayClientCertificateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GenerateGatewayClientCertificateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GenerateGatewayClientCertificateRequest} - */ -proto.api.GenerateGatewayClientCertificateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GenerateGatewayClientCertificateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GenerateGatewayClientCertificateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GenerateGatewayClientCertificateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GenerateGatewayClientCertificateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string gateway_id = 1; - * @return {string} - */ -proto.api.GenerateGatewayClientCertificateRequest.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GenerateGatewayClientCertificateRequest} returns this - */ -proto.api.GenerateGatewayClientCertificateRequest.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GenerateGatewayClientCertificateResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GenerateGatewayClientCertificateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GenerateGatewayClientCertificateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - tlsCert: jspb.Message.getFieldWithDefault(msg, 1, ""), - tlsKey: jspb.Message.getFieldWithDefault(msg, 2, ""), - caCert: jspb.Message.getFieldWithDefault(msg, 3, ""), - expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GenerateGatewayClientCertificateResponse} - */ -proto.api.GenerateGatewayClientCertificateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GenerateGatewayClientCertificateResponse; - return proto.api.GenerateGatewayClientCertificateResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GenerateGatewayClientCertificateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GenerateGatewayClientCertificateResponse} - */ -proto.api.GenerateGatewayClientCertificateResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTlsCert(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTlsKey(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setCaCert(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setExpiresAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GenerateGatewayClientCertificateResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GenerateGatewayClientCertificateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GenerateGatewayClientCertificateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTlsCert(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTlsKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getCaCert(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getExpiresAt(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string tls_cert = 1; - * @return {string} - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.getTlsCert = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GenerateGatewayClientCertificateResponse} returns this - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.setTlsCert = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string tls_key = 2; - * @return {string} - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.getTlsKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GenerateGatewayClientCertificateResponse} returns this - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.setTlsKey = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string ca_cert = 3; - * @return {string} - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.getCaCert = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GenerateGatewayClientCertificateResponse} returns this - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.setCaCert = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional google.protobuf.Timestamp expires_at = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.getExpiresAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GenerateGatewayClientCertificateResponse} returns this -*/ -proto.api.GenerateGatewayClientCertificateResponse.prototype.setExpiresAt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GenerateGatewayClientCertificateResponse} returns this - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.clearExpiresAt = function() { - return this.setExpiresAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.hasExpiresAt = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetGatewayMetricsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetGatewayMetricsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetGatewayMetricsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewayMetricsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: jspb.Message.getFieldWithDefault(msg, 1, ""), - start: (f = msg.getStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - end: (f = msg.getEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - aggregation: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetGatewayMetricsRequest} - */ -proto.api.GetGatewayMetricsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetGatewayMetricsRequest; - return proto.api.GetGatewayMetricsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetGatewayMetricsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetGatewayMetricsRequest} - */ -proto.api.GetGatewayMetricsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setStart(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setEnd(value); - break; - case 4: - var value = /** @type {!proto.common.Aggregation} */ (reader.readEnum()); - msg.setAggregation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetGatewayMetricsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetGatewayMetricsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetGatewayMetricsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewayMetricsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getStart(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getEnd(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getAggregation(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } -}; - - -/** - * optional string gateway_id = 1; - * @return {string} - */ -proto.api.GetGatewayMetricsRequest.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetGatewayMetricsRequest} returns this - */ -proto.api.GetGatewayMetricsRequest.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp start = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetGatewayMetricsRequest.prototype.getStart = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetGatewayMetricsRequest} returns this -*/ -proto.api.GetGatewayMetricsRequest.prototype.setStart = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayMetricsRequest} returns this - */ -proto.api.GetGatewayMetricsRequest.prototype.clearStart = function() { - return this.setStart(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayMetricsRequest.prototype.hasStart = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp end = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetGatewayMetricsRequest.prototype.getEnd = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetGatewayMetricsRequest} returns this -*/ -proto.api.GetGatewayMetricsRequest.prototype.setEnd = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayMetricsRequest} returns this - */ -proto.api.GetGatewayMetricsRequest.prototype.clearEnd = function() { - return this.setEnd(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayMetricsRequest.prototype.hasEnd = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional common.Aggregation aggregation = 4; - * @return {!proto.common.Aggregation} - */ -proto.api.GetGatewayMetricsRequest.prototype.getAggregation = function() { - return /** @type {!proto.common.Aggregation} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.common.Aggregation} value - * @return {!proto.api.GetGatewayMetricsRequest} returns this - */ -proto.api.GetGatewayMetricsRequest.prototype.setAggregation = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetGatewayMetricsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetGatewayMetricsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetGatewayMetricsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewayMetricsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - rxPackets: (f = msg.getRxPackets()) && common_common_pb.Metric.toObject(includeInstance, f), - txPackets: (f = msg.getTxPackets()) && common_common_pb.Metric.toObject(includeInstance, f), - txPacketsPerFreq: (f = msg.getTxPacketsPerFreq()) && common_common_pb.Metric.toObject(includeInstance, f), - rxPacketsPerFreq: (f = msg.getRxPacketsPerFreq()) && common_common_pb.Metric.toObject(includeInstance, f), - txPacketsPerDr: (f = msg.getTxPacketsPerDr()) && common_common_pb.Metric.toObject(includeInstance, f), - rxPacketsPerDr: (f = msg.getRxPacketsPerDr()) && common_common_pb.Metric.toObject(includeInstance, f), - txPacketsPerStatus: (f = msg.getTxPacketsPerStatus()) && common_common_pb.Metric.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetGatewayMetricsResponse} - */ -proto.api.GetGatewayMetricsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetGatewayMetricsResponse; - return proto.api.GetGatewayMetricsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetGatewayMetricsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetGatewayMetricsResponse} - */ -proto.api.GetGatewayMetricsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setRxPackets(value); - break; - case 2: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setTxPackets(value); - break; - case 3: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setTxPacketsPerFreq(value); - break; - case 4: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setRxPacketsPerFreq(value); - break; - case 5: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setTxPacketsPerDr(value); - break; - case 6: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setRxPacketsPerDr(value); - break; - case 7: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setTxPacketsPerStatus(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetGatewayMetricsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetGatewayMetricsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetGatewayMetricsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewayMetricsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRxPackets(); - if (f != null) { - writer.writeMessage( - 1, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getTxPackets(); - if (f != null) { - writer.writeMessage( - 2, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getTxPacketsPerFreq(); - if (f != null) { - writer.writeMessage( - 3, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getRxPacketsPerFreq(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getTxPacketsPerDr(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getRxPacketsPerDr(); - if (f != null) { - writer.writeMessage( - 6, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getTxPacketsPerStatus(); - if (f != null) { - writer.writeMessage( - 7, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } -}; - - -/** - * optional common.Metric rx_packets = 1; - * @return {?proto.common.Metric} - */ -proto.api.GetGatewayMetricsResponse.prototype.getRxPackets = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 1)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetGatewayMetricsResponse} returns this -*/ -proto.api.GetGatewayMetricsResponse.prototype.setRxPackets = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayMetricsResponse} returns this - */ -proto.api.GetGatewayMetricsResponse.prototype.clearRxPackets = function() { - return this.setRxPackets(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayMetricsResponse.prototype.hasRxPackets = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional common.Metric tx_packets = 2; - * @return {?proto.common.Metric} - */ -proto.api.GetGatewayMetricsResponse.prototype.getTxPackets = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 2)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetGatewayMetricsResponse} returns this -*/ -proto.api.GetGatewayMetricsResponse.prototype.setTxPackets = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayMetricsResponse} returns this - */ -proto.api.GetGatewayMetricsResponse.prototype.clearTxPackets = function() { - return this.setTxPackets(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayMetricsResponse.prototype.hasTxPackets = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional common.Metric tx_packets_per_freq = 3; - * @return {?proto.common.Metric} - */ -proto.api.GetGatewayMetricsResponse.prototype.getTxPacketsPerFreq = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 3)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetGatewayMetricsResponse} returns this -*/ -proto.api.GetGatewayMetricsResponse.prototype.setTxPacketsPerFreq = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayMetricsResponse} returns this - */ -proto.api.GetGatewayMetricsResponse.prototype.clearTxPacketsPerFreq = function() { - return this.setTxPacketsPerFreq(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayMetricsResponse.prototype.hasTxPacketsPerFreq = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional common.Metric rx_packets_per_freq = 4; - * @return {?proto.common.Metric} - */ -proto.api.GetGatewayMetricsResponse.prototype.getRxPacketsPerFreq = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 4)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetGatewayMetricsResponse} returns this -*/ -proto.api.GetGatewayMetricsResponse.prototype.setRxPacketsPerFreq = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayMetricsResponse} returns this - */ -proto.api.GetGatewayMetricsResponse.prototype.clearRxPacketsPerFreq = function() { - return this.setRxPacketsPerFreq(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayMetricsResponse.prototype.hasRxPacketsPerFreq = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional common.Metric tx_packets_per_dr = 5; - * @return {?proto.common.Metric} - */ -proto.api.GetGatewayMetricsResponse.prototype.getTxPacketsPerDr = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 5)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetGatewayMetricsResponse} returns this -*/ -proto.api.GetGatewayMetricsResponse.prototype.setTxPacketsPerDr = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayMetricsResponse} returns this - */ -proto.api.GetGatewayMetricsResponse.prototype.clearTxPacketsPerDr = function() { - return this.setTxPacketsPerDr(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayMetricsResponse.prototype.hasTxPacketsPerDr = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional common.Metric rx_packets_per_dr = 6; - * @return {?proto.common.Metric} - */ -proto.api.GetGatewayMetricsResponse.prototype.getRxPacketsPerDr = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 6)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetGatewayMetricsResponse} returns this -*/ -proto.api.GetGatewayMetricsResponse.prototype.setRxPacketsPerDr = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayMetricsResponse} returns this - */ -proto.api.GetGatewayMetricsResponse.prototype.clearRxPacketsPerDr = function() { - return this.setRxPacketsPerDr(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayMetricsResponse.prototype.hasRxPacketsPerDr = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional common.Metric tx_packets_per_status = 7; - * @return {?proto.common.Metric} - */ -proto.api.GetGatewayMetricsResponse.prototype.getTxPacketsPerStatus = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 7)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetGatewayMetricsResponse} returns this -*/ -proto.api.GetGatewayMetricsResponse.prototype.setTxPacketsPerStatus = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayMetricsResponse} returns this - */ -proto.api.GetGatewayMetricsResponse.prototype.clearTxPacketsPerStatus = function() { - return this.setTxPacketsPerStatus(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayMetricsResponse.prototype.hasTxPacketsPerStatus = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * @enum {number} - */ -proto.api.GatewayState = { - NEVER_SEEN: 0, - ONLINE: 1, - OFFLINE: 2 -}; - -goog.object.extend(exports, proto.api); diff --git a/api/grpc-web/api/internal_grpc_web_pb.d.ts b/api/grpc-web/api/internal_grpc_web_pb.d.ts deleted file mode 100644 index 641b27f5..00000000 --- a/api/grpc-web/api/internal_grpc_web_pb.d.ts +++ /dev/null @@ -1,218 +0,0 @@ -import * as grpcWeb from 'grpc-web'; - -import * as api_internal_pb from '../api/internal_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; - - -export class InternalServiceClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - login( - request: api_internal_pb.LoginRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_internal_pb.LoginResponse) => void - ): grpcWeb.ClientReadableStream; - - profile( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_internal_pb.ProfileResponse) => void - ): grpcWeb.ClientReadableStream; - - globalSearch( - request: api_internal_pb.GlobalSearchRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_internal_pb.GlobalSearchResponse) => void - ): grpcWeb.ClientReadableStream; - - createApiKey( - request: api_internal_pb.CreateApiKeyRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_internal_pb.CreateApiKeyResponse) => void - ): grpcWeb.ClientReadableStream; - - deleteApiKey( - request: api_internal_pb.DeleteApiKeyRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - listApiKeys( - request: api_internal_pb.ListApiKeysRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_internal_pb.ListApiKeysResponse) => void - ): grpcWeb.ClientReadableStream; - - settings( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_internal_pb.SettingsResponse) => void - ): grpcWeb.ClientReadableStream; - - openIdConnectLogin( - request: api_internal_pb.OpenIdConnectLoginRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_internal_pb.OpenIdConnectLoginResponse) => void - ): grpcWeb.ClientReadableStream; - - oAuth2Login( - request: api_internal_pb.OAuth2LoginRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_internal_pb.OAuth2LoginResponse) => void - ): grpcWeb.ClientReadableStream; - - getDevicesSummary( - request: api_internal_pb.GetDevicesSummaryRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_internal_pb.GetDevicesSummaryResponse) => void - ): grpcWeb.ClientReadableStream; - - getGatewaysSummary( - request: api_internal_pb.GetGatewaysSummaryRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_internal_pb.GetGatewaysSummaryResponse) => void - ): grpcWeb.ClientReadableStream; - - streamGatewayFrames( - request: api_internal_pb.StreamGatewayFramesRequest, - metadata?: grpcWeb.Metadata - ): grpcWeb.ClientReadableStream; - - streamDeviceFrames( - request: api_internal_pb.StreamDeviceFramesRequest, - metadata?: grpcWeb.Metadata - ): grpcWeb.ClientReadableStream; - - streamDeviceEvents( - request: api_internal_pb.StreamDeviceEventsRequest, - metadata?: grpcWeb.Metadata - ): grpcWeb.ClientReadableStream; - - listRegions( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_internal_pb.ListRegionsResponse) => void - ): grpcWeb.ClientReadableStream; - - getRegion( - request: api_internal_pb.GetRegionRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_internal_pb.GetRegionResponse) => void - ): grpcWeb.ClientReadableStream; - - getVersion( - request: google_protobuf_empty_pb.Empty, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_internal_pb.GetVersionResponse) => void - ): grpcWeb.ClientReadableStream; - -} - -export class InternalServicePromiseClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - login( - request: api_internal_pb.LoginRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - profile( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - globalSearch( - request: api_internal_pb.GlobalSearchRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - createApiKey( - request: api_internal_pb.CreateApiKeyRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - deleteApiKey( - request: api_internal_pb.DeleteApiKeyRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - listApiKeys( - request: api_internal_pb.ListApiKeysRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - settings( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - openIdConnectLogin( - request: api_internal_pb.OpenIdConnectLoginRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - oAuth2Login( - request: api_internal_pb.OAuth2LoginRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getDevicesSummary( - request: api_internal_pb.GetDevicesSummaryRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getGatewaysSummary( - request: api_internal_pb.GetGatewaysSummaryRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - streamGatewayFrames( - request: api_internal_pb.StreamGatewayFramesRequest, - metadata?: grpcWeb.Metadata - ): grpcWeb.ClientReadableStream; - - streamDeviceFrames( - request: api_internal_pb.StreamDeviceFramesRequest, - metadata?: grpcWeb.Metadata - ): grpcWeb.ClientReadableStream; - - streamDeviceEvents( - request: api_internal_pb.StreamDeviceEventsRequest, - metadata?: grpcWeb.Metadata - ): grpcWeb.ClientReadableStream; - - listRegions( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - - getRegion( - request: api_internal_pb.GetRegionRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getVersion( - request: google_protobuf_empty_pb.Empty, - metadata?: grpcWeb.Metadata - ): Promise; - -} - diff --git a/api/grpc-web/api/internal_grpc_web_pb.js b/api/grpc-web/api/internal_grpc_web_pb.js deleted file mode 100644 index 6ae1f6a0..00000000 --- a/api/grpc-web/api/internal_grpc_web_pb.js +++ /dev/null @@ -1,1108 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for api - * @enhanceable - * @public - */ - -// Code generated by protoc-gen-grpc-web. DO NOT EDIT. -// versions: -// protoc-gen-grpc-web v1.4.2 -// protoc v3.12.4 -// source: api/internal.proto - - -/* eslint-disable */ -// @ts-nocheck - - - -const grpc = {}; -grpc.web = require('grpc-web'); - - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js') - -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js') - -var common_common_pb = require('../common/common_pb.js') - -var api_user_pb = require('../api/user_pb.js') -const proto = {}; -proto.api = require('./internal_pb.js'); - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.InternalServiceClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.InternalServicePromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.LoginRequest, - * !proto.api.LoginResponse>} - */ -const methodDescriptor_InternalService_Login = new grpc.web.MethodDescriptor( - '/api.InternalService/Login', - grpc.web.MethodType.UNARY, - proto.api.LoginRequest, - proto.api.LoginResponse, - /** - * @param {!proto.api.LoginRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.LoginResponse.deserializeBinary -); - - -/** - * @param {!proto.api.LoginRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.LoginResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.InternalServiceClient.prototype.login = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.InternalService/Login', - request, - metadata || {}, - methodDescriptor_InternalService_Login, - callback); -}; - - -/** - * @param {!proto.api.LoginRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.InternalServicePromiseClient.prototype.login = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.InternalService/Login', - request, - metadata || {}, - methodDescriptor_InternalService_Login); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.api.ProfileResponse>} - */ -const methodDescriptor_InternalService_Profile = new grpc.web.MethodDescriptor( - '/api.InternalService/Profile', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.api.ProfileResponse, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.ProfileResponse.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.ProfileResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.InternalServiceClient.prototype.profile = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.InternalService/Profile', - request, - metadata || {}, - methodDescriptor_InternalService_Profile, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.InternalServicePromiseClient.prototype.profile = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.InternalService/Profile', - request, - metadata || {}, - methodDescriptor_InternalService_Profile); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GlobalSearchRequest, - * !proto.api.GlobalSearchResponse>} - */ -const methodDescriptor_InternalService_GlobalSearch = new grpc.web.MethodDescriptor( - '/api.InternalService/GlobalSearch', - grpc.web.MethodType.UNARY, - proto.api.GlobalSearchRequest, - proto.api.GlobalSearchResponse, - /** - * @param {!proto.api.GlobalSearchRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GlobalSearchResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GlobalSearchRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GlobalSearchResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.InternalServiceClient.prototype.globalSearch = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.InternalService/GlobalSearch', - request, - metadata || {}, - methodDescriptor_InternalService_GlobalSearch, - callback); -}; - - -/** - * @param {!proto.api.GlobalSearchRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.InternalServicePromiseClient.prototype.globalSearch = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.InternalService/GlobalSearch', - request, - metadata || {}, - methodDescriptor_InternalService_GlobalSearch); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateApiKeyRequest, - * !proto.api.CreateApiKeyResponse>} - */ -const methodDescriptor_InternalService_CreateApiKey = new grpc.web.MethodDescriptor( - '/api.InternalService/CreateApiKey', - grpc.web.MethodType.UNARY, - proto.api.CreateApiKeyRequest, - proto.api.CreateApiKeyResponse, - /** - * @param {!proto.api.CreateApiKeyRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.CreateApiKeyResponse.deserializeBinary -); - - -/** - * @param {!proto.api.CreateApiKeyRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.CreateApiKeyResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.InternalServiceClient.prototype.createApiKey = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.InternalService/CreateApiKey', - request, - metadata || {}, - methodDescriptor_InternalService_CreateApiKey, - callback); -}; - - -/** - * @param {!proto.api.CreateApiKeyRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.InternalServicePromiseClient.prototype.createApiKey = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.InternalService/CreateApiKey', - request, - metadata || {}, - methodDescriptor_InternalService_CreateApiKey); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteApiKeyRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_InternalService_DeleteApiKey = new grpc.web.MethodDescriptor( - '/api.InternalService/DeleteApiKey', - grpc.web.MethodType.UNARY, - proto.api.DeleteApiKeyRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteApiKeyRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteApiKeyRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.InternalServiceClient.prototype.deleteApiKey = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.InternalService/DeleteApiKey', - request, - metadata || {}, - methodDescriptor_InternalService_DeleteApiKey, - callback); -}; - - -/** - * @param {!proto.api.DeleteApiKeyRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.InternalServicePromiseClient.prototype.deleteApiKey = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.InternalService/DeleteApiKey', - request, - metadata || {}, - methodDescriptor_InternalService_DeleteApiKey); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.ListApiKeysRequest, - * !proto.api.ListApiKeysResponse>} - */ -const methodDescriptor_InternalService_ListApiKeys = new grpc.web.MethodDescriptor( - '/api.InternalService/ListApiKeys', - grpc.web.MethodType.UNARY, - proto.api.ListApiKeysRequest, - proto.api.ListApiKeysResponse, - /** - * @param {!proto.api.ListApiKeysRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.ListApiKeysResponse.deserializeBinary -); - - -/** - * @param {!proto.api.ListApiKeysRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.ListApiKeysResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.InternalServiceClient.prototype.listApiKeys = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.InternalService/ListApiKeys', - request, - metadata || {}, - methodDescriptor_InternalService_ListApiKeys, - callback); -}; - - -/** - * @param {!proto.api.ListApiKeysRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.InternalServicePromiseClient.prototype.listApiKeys = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.InternalService/ListApiKeys', - request, - metadata || {}, - methodDescriptor_InternalService_ListApiKeys); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.api.SettingsResponse>} - */ -const methodDescriptor_InternalService_Settings = new grpc.web.MethodDescriptor( - '/api.InternalService/Settings', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.api.SettingsResponse, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.SettingsResponse.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.SettingsResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.InternalServiceClient.prototype.settings = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.InternalService/Settings', - request, - metadata || {}, - methodDescriptor_InternalService_Settings, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.InternalServicePromiseClient.prototype.settings = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.InternalService/Settings', - request, - metadata || {}, - methodDescriptor_InternalService_Settings); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.OpenIdConnectLoginRequest, - * !proto.api.OpenIdConnectLoginResponse>} - */ -const methodDescriptor_InternalService_OpenIdConnectLogin = new grpc.web.MethodDescriptor( - '/api.InternalService/OpenIdConnectLogin', - grpc.web.MethodType.UNARY, - proto.api.OpenIdConnectLoginRequest, - proto.api.OpenIdConnectLoginResponse, - /** - * @param {!proto.api.OpenIdConnectLoginRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.OpenIdConnectLoginResponse.deserializeBinary -); - - -/** - * @param {!proto.api.OpenIdConnectLoginRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.OpenIdConnectLoginResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.InternalServiceClient.prototype.openIdConnectLogin = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.InternalService/OpenIdConnectLogin', - request, - metadata || {}, - methodDescriptor_InternalService_OpenIdConnectLogin, - callback); -}; - - -/** - * @param {!proto.api.OpenIdConnectLoginRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.InternalServicePromiseClient.prototype.openIdConnectLogin = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.InternalService/OpenIdConnectLogin', - request, - metadata || {}, - methodDescriptor_InternalService_OpenIdConnectLogin); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.OAuth2LoginRequest, - * !proto.api.OAuth2LoginResponse>} - */ -const methodDescriptor_InternalService_OAuth2Login = new grpc.web.MethodDescriptor( - '/api.InternalService/OAuth2Login', - grpc.web.MethodType.UNARY, - proto.api.OAuth2LoginRequest, - proto.api.OAuth2LoginResponse, - /** - * @param {!proto.api.OAuth2LoginRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.OAuth2LoginResponse.deserializeBinary -); - - -/** - * @param {!proto.api.OAuth2LoginRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.OAuth2LoginResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.InternalServiceClient.prototype.oAuth2Login = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.InternalService/OAuth2Login', - request, - metadata || {}, - methodDescriptor_InternalService_OAuth2Login, - callback); -}; - - -/** - * @param {!proto.api.OAuth2LoginRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.InternalServicePromiseClient.prototype.oAuth2Login = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.InternalService/OAuth2Login', - request, - metadata || {}, - methodDescriptor_InternalService_OAuth2Login); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetDevicesSummaryRequest, - * !proto.api.GetDevicesSummaryResponse>} - */ -const methodDescriptor_InternalService_GetDevicesSummary = new grpc.web.MethodDescriptor( - '/api.InternalService/GetDevicesSummary', - grpc.web.MethodType.UNARY, - proto.api.GetDevicesSummaryRequest, - proto.api.GetDevicesSummaryResponse, - /** - * @param {!proto.api.GetDevicesSummaryRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetDevicesSummaryResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetDevicesSummaryRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetDevicesSummaryResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.InternalServiceClient.prototype.getDevicesSummary = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.InternalService/GetDevicesSummary', - request, - metadata || {}, - methodDescriptor_InternalService_GetDevicesSummary, - callback); -}; - - -/** - * @param {!proto.api.GetDevicesSummaryRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.InternalServicePromiseClient.prototype.getDevicesSummary = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.InternalService/GetDevicesSummary', - request, - metadata || {}, - methodDescriptor_InternalService_GetDevicesSummary); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetGatewaysSummaryRequest, - * !proto.api.GetGatewaysSummaryResponse>} - */ -const methodDescriptor_InternalService_GetGatewaysSummary = new grpc.web.MethodDescriptor( - '/api.InternalService/GetGatewaysSummary', - grpc.web.MethodType.UNARY, - proto.api.GetGatewaysSummaryRequest, - proto.api.GetGatewaysSummaryResponse, - /** - * @param {!proto.api.GetGatewaysSummaryRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetGatewaysSummaryResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetGatewaysSummaryRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetGatewaysSummaryResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.InternalServiceClient.prototype.getGatewaysSummary = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.InternalService/GetGatewaysSummary', - request, - metadata || {}, - methodDescriptor_InternalService_GetGatewaysSummary, - callback); -}; - - -/** - * @param {!proto.api.GetGatewaysSummaryRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.InternalServicePromiseClient.prototype.getGatewaysSummary = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.InternalService/GetGatewaysSummary', - request, - metadata || {}, - methodDescriptor_InternalService_GetGatewaysSummary); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.StreamGatewayFramesRequest, - * !proto.api.LogItem>} - */ -const methodDescriptor_InternalService_StreamGatewayFrames = new grpc.web.MethodDescriptor( - '/api.InternalService/StreamGatewayFrames', - grpc.web.MethodType.SERVER_STREAMING, - proto.api.StreamGatewayFramesRequest, - proto.api.LogItem, - /** - * @param {!proto.api.StreamGatewayFramesRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.LogItem.deserializeBinary -); - - -/** - * @param {!proto.api.StreamGatewayFramesRequest} request The request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!grpc.web.ClientReadableStream} - * The XHR Node Readable Stream - */ -proto.api.InternalServiceClient.prototype.streamGatewayFrames = - function(request, metadata) { - return this.client_.serverStreaming(this.hostname_ + - '/api.InternalService/StreamGatewayFrames', - request, - metadata || {}, - methodDescriptor_InternalService_StreamGatewayFrames); -}; - - -/** - * @param {!proto.api.StreamGatewayFramesRequest} request The request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!grpc.web.ClientReadableStream} - * The XHR Node Readable Stream - */ -proto.api.InternalServicePromiseClient.prototype.streamGatewayFrames = - function(request, metadata) { - return this.client_.serverStreaming(this.hostname_ + - '/api.InternalService/StreamGatewayFrames', - request, - metadata || {}, - methodDescriptor_InternalService_StreamGatewayFrames); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.StreamDeviceFramesRequest, - * !proto.api.LogItem>} - */ -const methodDescriptor_InternalService_StreamDeviceFrames = new grpc.web.MethodDescriptor( - '/api.InternalService/StreamDeviceFrames', - grpc.web.MethodType.SERVER_STREAMING, - proto.api.StreamDeviceFramesRequest, - proto.api.LogItem, - /** - * @param {!proto.api.StreamDeviceFramesRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.LogItem.deserializeBinary -); - - -/** - * @param {!proto.api.StreamDeviceFramesRequest} request The request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!grpc.web.ClientReadableStream} - * The XHR Node Readable Stream - */ -proto.api.InternalServiceClient.prototype.streamDeviceFrames = - function(request, metadata) { - return this.client_.serverStreaming(this.hostname_ + - '/api.InternalService/StreamDeviceFrames', - request, - metadata || {}, - methodDescriptor_InternalService_StreamDeviceFrames); -}; - - -/** - * @param {!proto.api.StreamDeviceFramesRequest} request The request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!grpc.web.ClientReadableStream} - * The XHR Node Readable Stream - */ -proto.api.InternalServicePromiseClient.prototype.streamDeviceFrames = - function(request, metadata) { - return this.client_.serverStreaming(this.hostname_ + - '/api.InternalService/StreamDeviceFrames', - request, - metadata || {}, - methodDescriptor_InternalService_StreamDeviceFrames); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.StreamDeviceEventsRequest, - * !proto.api.LogItem>} - */ -const methodDescriptor_InternalService_StreamDeviceEvents = new grpc.web.MethodDescriptor( - '/api.InternalService/StreamDeviceEvents', - grpc.web.MethodType.SERVER_STREAMING, - proto.api.StreamDeviceEventsRequest, - proto.api.LogItem, - /** - * @param {!proto.api.StreamDeviceEventsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.LogItem.deserializeBinary -); - - -/** - * @param {!proto.api.StreamDeviceEventsRequest} request The request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!grpc.web.ClientReadableStream} - * The XHR Node Readable Stream - */ -proto.api.InternalServiceClient.prototype.streamDeviceEvents = - function(request, metadata) { - return this.client_.serverStreaming(this.hostname_ + - '/api.InternalService/StreamDeviceEvents', - request, - metadata || {}, - methodDescriptor_InternalService_StreamDeviceEvents); -}; - - -/** - * @param {!proto.api.StreamDeviceEventsRequest} request The request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!grpc.web.ClientReadableStream} - * The XHR Node Readable Stream - */ -proto.api.InternalServicePromiseClient.prototype.streamDeviceEvents = - function(request, metadata) { - return this.client_.serverStreaming(this.hostname_ + - '/api.InternalService/StreamDeviceEvents', - request, - metadata || {}, - methodDescriptor_InternalService_StreamDeviceEvents); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.api.ListRegionsResponse>} - */ -const methodDescriptor_InternalService_ListRegions = new grpc.web.MethodDescriptor( - '/api.InternalService/ListRegions', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.api.ListRegionsResponse, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.ListRegionsResponse.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.ListRegionsResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.InternalServiceClient.prototype.listRegions = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.InternalService/ListRegions', - request, - metadata || {}, - methodDescriptor_InternalService_ListRegions, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.InternalServicePromiseClient.prototype.listRegions = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.InternalService/ListRegions', - request, - metadata || {}, - methodDescriptor_InternalService_ListRegions); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetRegionRequest, - * !proto.api.GetRegionResponse>} - */ -const methodDescriptor_InternalService_GetRegion = new grpc.web.MethodDescriptor( - '/api.InternalService/GetRegion', - grpc.web.MethodType.UNARY, - proto.api.GetRegionRequest, - proto.api.GetRegionResponse, - /** - * @param {!proto.api.GetRegionRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetRegionResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetRegionRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetRegionResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.InternalServiceClient.prototype.getRegion = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.InternalService/GetRegion', - request, - metadata || {}, - methodDescriptor_InternalService_GetRegion, - callback); -}; - - -/** - * @param {!proto.api.GetRegionRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.InternalServicePromiseClient.prototype.getRegion = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.InternalService/GetRegion', - request, - metadata || {}, - methodDescriptor_InternalService_GetRegion); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.google.protobuf.Empty, - * !proto.api.GetVersionResponse>} - */ -const methodDescriptor_InternalService_GetVersion = new grpc.web.MethodDescriptor( - '/api.InternalService/GetVersion', - grpc.web.MethodType.UNARY, - google_protobuf_empty_pb.Empty, - proto.api.GetVersionResponse, - /** - * @param {!proto.google.protobuf.Empty} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetVersionResponse.deserializeBinary -); - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetVersionResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.InternalServiceClient.prototype.getVersion = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.InternalService/GetVersion', - request, - metadata || {}, - methodDescriptor_InternalService_GetVersion, - callback); -}; - - -/** - * @param {!proto.google.protobuf.Empty} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.InternalServicePromiseClient.prototype.getVersion = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.InternalService/GetVersion', - request, - metadata || {}, - methodDescriptor_InternalService_GetVersion); -}; - - -module.exports = proto.api; - diff --git a/api/grpc-web/api/internal_pb.d.ts b/api/grpc-web/api/internal_pb.d.ts deleted file mode 100644 index d9ef0228..00000000 --- a/api/grpc-web/api/internal_pb.d.ts +++ /dev/null @@ -1,884 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; -import * as common_common_pb from '../common/common_pb'; -import * as api_user_pb from '../api/user_pb'; - - -export class ApiKey extends jspb.Message { - getId(): string; - setId(value: string): ApiKey; - - getName(): string; - setName(value: string): ApiKey; - - getIsAdmin(): boolean; - setIsAdmin(value: boolean): ApiKey; - - getTenantId(): string; - setTenantId(value: string): ApiKey; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ApiKey.AsObject; - static toObject(includeInstance: boolean, msg: ApiKey): ApiKey.AsObject; - static serializeBinaryToWriter(message: ApiKey, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ApiKey; - static deserializeBinaryFromReader(message: ApiKey, reader: jspb.BinaryReader): ApiKey; -} - -export namespace ApiKey { - export type AsObject = { - id: string, - name: string, - isAdmin: boolean, - tenantId: string, - } -} - -export class CreateApiKeyRequest extends jspb.Message { - getApiKey(): ApiKey | undefined; - setApiKey(value?: ApiKey): CreateApiKeyRequest; - hasApiKey(): boolean; - clearApiKey(): CreateApiKeyRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateApiKeyRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateApiKeyRequest): CreateApiKeyRequest.AsObject; - static serializeBinaryToWriter(message: CreateApiKeyRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateApiKeyRequest; - static deserializeBinaryFromReader(message: CreateApiKeyRequest, reader: jspb.BinaryReader): CreateApiKeyRequest; -} - -export namespace CreateApiKeyRequest { - export type AsObject = { - apiKey?: ApiKey.AsObject, - } -} - -export class CreateApiKeyResponse extends jspb.Message { - getId(): string; - setId(value: string): CreateApiKeyResponse; - - getToken(): string; - setToken(value: string): CreateApiKeyResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateApiKeyResponse.AsObject; - static toObject(includeInstance: boolean, msg: CreateApiKeyResponse): CreateApiKeyResponse.AsObject; - static serializeBinaryToWriter(message: CreateApiKeyResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateApiKeyResponse; - static deserializeBinaryFromReader(message: CreateApiKeyResponse, reader: jspb.BinaryReader): CreateApiKeyResponse; -} - -export namespace CreateApiKeyResponse { - export type AsObject = { - id: string, - token: string, - } -} - -export class DeleteApiKeyRequest extends jspb.Message { - getId(): string; - setId(value: string): DeleteApiKeyRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteApiKeyRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteApiKeyRequest): DeleteApiKeyRequest.AsObject; - static serializeBinaryToWriter(message: DeleteApiKeyRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteApiKeyRequest; - static deserializeBinaryFromReader(message: DeleteApiKeyRequest, reader: jspb.BinaryReader): DeleteApiKeyRequest; -} - -export namespace DeleteApiKeyRequest { - export type AsObject = { - id: string, - } -} - -export class ListApiKeysRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): ListApiKeysRequest; - - getOffset(): number; - setOffset(value: number): ListApiKeysRequest; - - getIsAdmin(): boolean; - setIsAdmin(value: boolean): ListApiKeysRequest; - - getTenantId(): string; - setTenantId(value: string): ListApiKeysRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListApiKeysRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListApiKeysRequest): ListApiKeysRequest.AsObject; - static serializeBinaryToWriter(message: ListApiKeysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListApiKeysRequest; - static deserializeBinaryFromReader(message: ListApiKeysRequest, reader: jspb.BinaryReader): ListApiKeysRequest; -} - -export namespace ListApiKeysRequest { - export type AsObject = { - limit: number, - offset: number, - isAdmin: boolean, - tenantId: string, - } -} - -export class ListApiKeysResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): ListApiKeysResponse; - - getResultList(): Array; - setResultList(value: Array): ListApiKeysResponse; - clearResultList(): ListApiKeysResponse; - addResult(value?: ApiKey, index?: number): ApiKey; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListApiKeysResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListApiKeysResponse): ListApiKeysResponse.AsObject; - static serializeBinaryToWriter(message: ListApiKeysResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListApiKeysResponse; - static deserializeBinaryFromReader(message: ListApiKeysResponse, reader: jspb.BinaryReader): ListApiKeysResponse; -} - -export namespace ListApiKeysResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class UserTenantLink extends jspb.Message { - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): UserTenantLink; - hasCreatedAt(): boolean; - clearCreatedAt(): UserTenantLink; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): UserTenantLink; - hasUpdatedAt(): boolean; - clearUpdatedAt(): UserTenantLink; - - getTenantId(): string; - setTenantId(value: string): UserTenantLink; - - getIsAdmin(): boolean; - setIsAdmin(value: boolean): UserTenantLink; - - getIsDeviceAdmin(): boolean; - setIsDeviceAdmin(value: boolean): UserTenantLink; - - getIsGatewayAdmin(): boolean; - setIsGatewayAdmin(value: boolean): UserTenantLink; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserTenantLink.AsObject; - static toObject(includeInstance: boolean, msg: UserTenantLink): UserTenantLink.AsObject; - static serializeBinaryToWriter(message: UserTenantLink, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserTenantLink; - static deserializeBinaryFromReader(message: UserTenantLink, reader: jspb.BinaryReader): UserTenantLink; -} - -export namespace UserTenantLink { - export type AsObject = { - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - tenantId: string, - isAdmin: boolean, - isDeviceAdmin: boolean, - isGatewayAdmin: boolean, - } -} - -export class LoginRequest extends jspb.Message { - getEmail(): string; - setEmail(value: string): LoginRequest; - - getPassword(): string; - setPassword(value: string): LoginRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoginRequest.AsObject; - static toObject(includeInstance: boolean, msg: LoginRequest): LoginRequest.AsObject; - static serializeBinaryToWriter(message: LoginRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoginRequest; - static deserializeBinaryFromReader(message: LoginRequest, reader: jspb.BinaryReader): LoginRequest; -} - -export namespace LoginRequest { - export type AsObject = { - email: string, - password: string, - } -} - -export class LoginResponse extends jspb.Message { - getJwt(): string; - setJwt(value: string): LoginResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoginResponse.AsObject; - static toObject(includeInstance: boolean, msg: LoginResponse): LoginResponse.AsObject; - static serializeBinaryToWriter(message: LoginResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoginResponse; - static deserializeBinaryFromReader(message: LoginResponse, reader: jspb.BinaryReader): LoginResponse; -} - -export namespace LoginResponse { - export type AsObject = { - jwt: string, - } -} - -export class ProfileResponse extends jspb.Message { - getUser(): api_user_pb.User | undefined; - setUser(value?: api_user_pb.User): ProfileResponse; - hasUser(): boolean; - clearUser(): ProfileResponse; - - getTenantsList(): Array; - setTenantsList(value: Array): ProfileResponse; - clearTenantsList(): ProfileResponse; - addTenants(value?: UserTenantLink, index?: number): UserTenantLink; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProfileResponse.AsObject; - static toObject(includeInstance: boolean, msg: ProfileResponse): ProfileResponse.AsObject; - static serializeBinaryToWriter(message: ProfileResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProfileResponse; - static deserializeBinaryFromReader(message: ProfileResponse, reader: jspb.BinaryReader): ProfileResponse; -} - -export namespace ProfileResponse { - export type AsObject = { - user?: api_user_pb.User.AsObject, - tenantsList: Array, - } -} - -export class GlobalSearchRequest extends jspb.Message { - getSearch(): string; - setSearch(value: string): GlobalSearchRequest; - - getLimit(): number; - setLimit(value: number): GlobalSearchRequest; - - getOffset(): number; - setOffset(value: number): GlobalSearchRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GlobalSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: GlobalSearchRequest): GlobalSearchRequest.AsObject; - static serializeBinaryToWriter(message: GlobalSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GlobalSearchRequest; - static deserializeBinaryFromReader(message: GlobalSearchRequest, reader: jspb.BinaryReader): GlobalSearchRequest; -} - -export namespace GlobalSearchRequest { - export type AsObject = { - search: string, - limit: number, - offset: number, - } -} - -export class GlobalSearchResponse extends jspb.Message { - getResultList(): Array; - setResultList(value: Array): GlobalSearchResponse; - clearResultList(): GlobalSearchResponse; - addResult(value?: GlobalSearchResult, index?: number): GlobalSearchResult; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GlobalSearchResponse.AsObject; - static toObject(includeInstance: boolean, msg: GlobalSearchResponse): GlobalSearchResponse.AsObject; - static serializeBinaryToWriter(message: GlobalSearchResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GlobalSearchResponse; - static deserializeBinaryFromReader(message: GlobalSearchResponse, reader: jspb.BinaryReader): GlobalSearchResponse; -} - -export namespace GlobalSearchResponse { - export type AsObject = { - resultList: Array, - } -} - -export class GlobalSearchResult extends jspb.Message { - getKind(): string; - setKind(value: string): GlobalSearchResult; - - getScore(): number; - setScore(value: number): GlobalSearchResult; - - getTenantId(): string; - setTenantId(value: string): GlobalSearchResult; - - getTenantName(): string; - setTenantName(value: string): GlobalSearchResult; - - getApplicationId(): string; - setApplicationId(value: string): GlobalSearchResult; - - getApplicationName(): string; - setApplicationName(value: string): GlobalSearchResult; - - getDeviceDevEui(): string; - setDeviceDevEui(value: string): GlobalSearchResult; - - getDeviceName(): string; - setDeviceName(value: string): GlobalSearchResult; - - getGatewayId(): string; - setGatewayId(value: string): GlobalSearchResult; - - getGatewayName(): string; - setGatewayName(value: string): GlobalSearchResult; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GlobalSearchResult.AsObject; - static toObject(includeInstance: boolean, msg: GlobalSearchResult): GlobalSearchResult.AsObject; - static serializeBinaryToWriter(message: GlobalSearchResult, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GlobalSearchResult; - static deserializeBinaryFromReader(message: GlobalSearchResult, reader: jspb.BinaryReader): GlobalSearchResult; -} - -export namespace GlobalSearchResult { - export type AsObject = { - kind: string, - score: number, - tenantId: string, - tenantName: string, - applicationId: string, - applicationName: string, - deviceDevEui: string, - deviceName: string, - gatewayId: string, - gatewayName: string, - } -} - -export class SettingsResponse extends jspb.Message { - getOpenidConnect(): OpenIdConnect | undefined; - setOpenidConnect(value?: OpenIdConnect): SettingsResponse; - hasOpenidConnect(): boolean; - clearOpenidConnect(): SettingsResponse; - - getOauth2(): OAuth2 | undefined; - setOauth2(value?: OAuth2): SettingsResponse; - hasOauth2(): boolean; - clearOauth2(): SettingsResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SettingsResponse.AsObject; - static toObject(includeInstance: boolean, msg: SettingsResponse): SettingsResponse.AsObject; - static serializeBinaryToWriter(message: SettingsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SettingsResponse; - static deserializeBinaryFromReader(message: SettingsResponse, reader: jspb.BinaryReader): SettingsResponse; -} - -export namespace SettingsResponse { - export type AsObject = { - openidConnect?: OpenIdConnect.AsObject, - oauth2?: OAuth2.AsObject, - } -} - -export class OpenIdConnect extends jspb.Message { - getEnabled(): boolean; - setEnabled(value: boolean): OpenIdConnect; - - getLoginUrl(): string; - setLoginUrl(value: string): OpenIdConnect; - - getLoginLabel(): string; - setLoginLabel(value: string): OpenIdConnect; - - getLogoutUrl(): string; - setLogoutUrl(value: string): OpenIdConnect; - - getLoginRedirect(): boolean; - setLoginRedirect(value: boolean): OpenIdConnect; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OpenIdConnect.AsObject; - static toObject(includeInstance: boolean, msg: OpenIdConnect): OpenIdConnect.AsObject; - static serializeBinaryToWriter(message: OpenIdConnect, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OpenIdConnect; - static deserializeBinaryFromReader(message: OpenIdConnect, reader: jspb.BinaryReader): OpenIdConnect; -} - -export namespace OpenIdConnect { - export type AsObject = { - enabled: boolean, - loginUrl: string, - loginLabel: string, - logoutUrl: string, - loginRedirect: boolean, - } -} - -export class OAuth2 extends jspb.Message { - getEnabled(): boolean; - setEnabled(value: boolean): OAuth2; - - getLoginUrl(): string; - setLoginUrl(value: string): OAuth2; - - getLoginLabel(): string; - setLoginLabel(value: string): OAuth2; - - getLogoutUrl(): string; - setLogoutUrl(value: string): OAuth2; - - getLoginRedirect(): boolean; - setLoginRedirect(value: boolean): OAuth2; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OAuth2.AsObject; - static toObject(includeInstance: boolean, msg: OAuth2): OAuth2.AsObject; - static serializeBinaryToWriter(message: OAuth2, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OAuth2; - static deserializeBinaryFromReader(message: OAuth2, reader: jspb.BinaryReader): OAuth2; -} - -export namespace OAuth2 { - export type AsObject = { - enabled: boolean, - loginUrl: string, - loginLabel: string, - logoutUrl: string, - loginRedirect: boolean, - } -} - -export class OpenIdConnectLoginRequest extends jspb.Message { - getCode(): string; - setCode(value: string): OpenIdConnectLoginRequest; - - getState(): string; - setState(value: string): OpenIdConnectLoginRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OpenIdConnectLoginRequest.AsObject; - static toObject(includeInstance: boolean, msg: OpenIdConnectLoginRequest): OpenIdConnectLoginRequest.AsObject; - static serializeBinaryToWriter(message: OpenIdConnectLoginRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OpenIdConnectLoginRequest; - static deserializeBinaryFromReader(message: OpenIdConnectLoginRequest, reader: jspb.BinaryReader): OpenIdConnectLoginRequest; -} - -export namespace OpenIdConnectLoginRequest { - export type AsObject = { - code: string, - state: string, - } -} - -export class OpenIdConnectLoginResponse extends jspb.Message { - getToken(): string; - setToken(value: string): OpenIdConnectLoginResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OpenIdConnectLoginResponse.AsObject; - static toObject(includeInstance: boolean, msg: OpenIdConnectLoginResponse): OpenIdConnectLoginResponse.AsObject; - static serializeBinaryToWriter(message: OpenIdConnectLoginResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OpenIdConnectLoginResponse; - static deserializeBinaryFromReader(message: OpenIdConnectLoginResponse, reader: jspb.BinaryReader): OpenIdConnectLoginResponse; -} - -export namespace OpenIdConnectLoginResponse { - export type AsObject = { - token: string, - } -} - -export class OAuth2LoginRequest extends jspb.Message { - getCode(): string; - setCode(value: string): OAuth2LoginRequest; - - getState(): string; - setState(value: string): OAuth2LoginRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OAuth2LoginRequest.AsObject; - static toObject(includeInstance: boolean, msg: OAuth2LoginRequest): OAuth2LoginRequest.AsObject; - static serializeBinaryToWriter(message: OAuth2LoginRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OAuth2LoginRequest; - static deserializeBinaryFromReader(message: OAuth2LoginRequest, reader: jspb.BinaryReader): OAuth2LoginRequest; -} - -export namespace OAuth2LoginRequest { - export type AsObject = { - code: string, - state: string, - } -} - -export class OAuth2LoginResponse extends jspb.Message { - getToken(): string; - setToken(value: string): OAuth2LoginResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OAuth2LoginResponse.AsObject; - static toObject(includeInstance: boolean, msg: OAuth2LoginResponse): OAuth2LoginResponse.AsObject; - static serializeBinaryToWriter(message: OAuth2LoginResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OAuth2LoginResponse; - static deserializeBinaryFromReader(message: OAuth2LoginResponse, reader: jspb.BinaryReader): OAuth2LoginResponse; -} - -export namespace OAuth2LoginResponse { - export type AsObject = { - token: string, - } -} - -export class GetDevicesSummaryRequest extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): GetDevicesSummaryRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDevicesSummaryRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDevicesSummaryRequest): GetDevicesSummaryRequest.AsObject; - static serializeBinaryToWriter(message: GetDevicesSummaryRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDevicesSummaryRequest; - static deserializeBinaryFromReader(message: GetDevicesSummaryRequest, reader: jspb.BinaryReader): GetDevicesSummaryRequest; -} - -export namespace GetDevicesSummaryRequest { - export type AsObject = { - tenantId: string, - } -} - -export class GetDevicesSummaryResponse extends jspb.Message { - getActiveCount(): number; - setActiveCount(value: number): GetDevicesSummaryResponse; - - getInactiveCount(): number; - setInactiveCount(value: number): GetDevicesSummaryResponse; - - getDrCountMap(): jspb.Map; - clearDrCountMap(): GetDevicesSummaryResponse; - - getNeverSeenCount(): number; - setNeverSeenCount(value: number): GetDevicesSummaryResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDevicesSummaryResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDevicesSummaryResponse): GetDevicesSummaryResponse.AsObject; - static serializeBinaryToWriter(message: GetDevicesSummaryResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDevicesSummaryResponse; - static deserializeBinaryFromReader(message: GetDevicesSummaryResponse, reader: jspb.BinaryReader): GetDevicesSummaryResponse; -} - -export namespace GetDevicesSummaryResponse { - export type AsObject = { - activeCount: number, - inactiveCount: number, - drCountMap: Array<[number, number]>, - neverSeenCount: number, - } -} - -export class GetGatewaysSummaryRequest extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): GetGatewaysSummaryRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetGatewaysSummaryRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetGatewaysSummaryRequest): GetGatewaysSummaryRequest.AsObject; - static serializeBinaryToWriter(message: GetGatewaysSummaryRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetGatewaysSummaryRequest; - static deserializeBinaryFromReader(message: GetGatewaysSummaryRequest, reader: jspb.BinaryReader): GetGatewaysSummaryRequest; -} - -export namespace GetGatewaysSummaryRequest { - export type AsObject = { - tenantId: string, - } -} - -export class GetGatewaysSummaryResponse extends jspb.Message { - getOnlineCount(): number; - setOnlineCount(value: number): GetGatewaysSummaryResponse; - - getOfflineCount(): number; - setOfflineCount(value: number): GetGatewaysSummaryResponse; - - getNeverSeenCount(): number; - setNeverSeenCount(value: number): GetGatewaysSummaryResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetGatewaysSummaryResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetGatewaysSummaryResponse): GetGatewaysSummaryResponse.AsObject; - static serializeBinaryToWriter(message: GetGatewaysSummaryResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetGatewaysSummaryResponse; - static deserializeBinaryFromReader(message: GetGatewaysSummaryResponse, reader: jspb.BinaryReader): GetGatewaysSummaryResponse; -} - -export namespace GetGatewaysSummaryResponse { - export type AsObject = { - onlineCount: number, - offlineCount: number, - neverSeenCount: number, - } -} - -export class LogItem extends jspb.Message { - getId(): string; - setId(value: string): LogItem; - - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): LogItem; - hasTime(): boolean; - clearTime(): LogItem; - - getDescription(): string; - setDescription(value: string): LogItem; - - getBody(): string; - setBody(value: string): LogItem; - - getPropertiesMap(): jspb.Map; - clearPropertiesMap(): LogItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LogItem.AsObject; - static toObject(includeInstance: boolean, msg: LogItem): LogItem.AsObject; - static serializeBinaryToWriter(message: LogItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LogItem; - static deserializeBinaryFromReader(message: LogItem, reader: jspb.BinaryReader): LogItem; -} - -export namespace LogItem { - export type AsObject = { - id: string, - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - description: string, - body: string, - propertiesMap: Array<[string, string]>, - } -} - -export class StreamGatewayFramesRequest extends jspb.Message { - getGatewayId(): string; - setGatewayId(value: string): StreamGatewayFramesRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StreamGatewayFramesRequest.AsObject; - static toObject(includeInstance: boolean, msg: StreamGatewayFramesRequest): StreamGatewayFramesRequest.AsObject; - static serializeBinaryToWriter(message: StreamGatewayFramesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StreamGatewayFramesRequest; - static deserializeBinaryFromReader(message: StreamGatewayFramesRequest, reader: jspb.BinaryReader): StreamGatewayFramesRequest; -} - -export namespace StreamGatewayFramesRequest { - export type AsObject = { - gatewayId: string, - } -} - -export class StreamDeviceFramesRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): StreamDeviceFramesRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StreamDeviceFramesRequest.AsObject; - static toObject(includeInstance: boolean, msg: StreamDeviceFramesRequest): StreamDeviceFramesRequest.AsObject; - static serializeBinaryToWriter(message: StreamDeviceFramesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StreamDeviceFramesRequest; - static deserializeBinaryFromReader(message: StreamDeviceFramesRequest, reader: jspb.BinaryReader): StreamDeviceFramesRequest; -} - -export namespace StreamDeviceFramesRequest { - export type AsObject = { - devEui: string, - } -} - -export class StreamDeviceEventsRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): StreamDeviceEventsRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StreamDeviceEventsRequest.AsObject; - static toObject(includeInstance: boolean, msg: StreamDeviceEventsRequest): StreamDeviceEventsRequest.AsObject; - static serializeBinaryToWriter(message: StreamDeviceEventsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StreamDeviceEventsRequest; - static deserializeBinaryFromReader(message: StreamDeviceEventsRequest, reader: jspb.BinaryReader): StreamDeviceEventsRequest; -} - -export namespace StreamDeviceEventsRequest { - export type AsObject = { - devEui: string, - } -} - -export class ListRegionsResponse extends jspb.Message { - getRegionsList(): Array; - setRegionsList(value: Array): ListRegionsResponse; - clearRegionsList(): ListRegionsResponse; - addRegions(value?: RegionListItem, index?: number): RegionListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListRegionsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListRegionsResponse): ListRegionsResponse.AsObject; - static serializeBinaryToWriter(message: ListRegionsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListRegionsResponse; - static deserializeBinaryFromReader(message: ListRegionsResponse, reader: jspb.BinaryReader): ListRegionsResponse; -} - -export namespace ListRegionsResponse { - export type AsObject = { - regionsList: Array, - } -} - -export class RegionListItem extends jspb.Message { - getId(): string; - setId(value: string): RegionListItem; - - getRegion(): common_common_pb.Region; - setRegion(value: common_common_pb.Region): RegionListItem; - - getDescription(): string; - setDescription(value: string): RegionListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RegionListItem.AsObject; - static toObject(includeInstance: boolean, msg: RegionListItem): RegionListItem.AsObject; - static serializeBinaryToWriter(message: RegionListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RegionListItem; - static deserializeBinaryFromReader(message: RegionListItem, reader: jspb.BinaryReader): RegionListItem; -} - -export namespace RegionListItem { - export type AsObject = { - id: string, - region: common_common_pb.Region, - description: string, - } -} - -export class GetRegionRequest extends jspb.Message { - getId(): string; - setId(value: string): GetRegionRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRegionRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetRegionRequest): GetRegionRequest.AsObject; - static serializeBinaryToWriter(message: GetRegionRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetRegionRequest; - static deserializeBinaryFromReader(message: GetRegionRequest, reader: jspb.BinaryReader): GetRegionRequest; -} - -export namespace GetRegionRequest { - export type AsObject = { - id: string, - } -} - -export class GetRegionResponse extends jspb.Message { - getId(): string; - setId(value: string): GetRegionResponse; - - getRegion(): common_common_pb.Region; - setRegion(value: common_common_pb.Region): GetRegionResponse; - - getUserInfo(): string; - setUserInfo(value: string): GetRegionResponse; - - getUplinkChannelsList(): Array; - setUplinkChannelsList(value: Array): GetRegionResponse; - clearUplinkChannelsList(): GetRegionResponse; - addUplinkChannels(value?: RegionChannel, index?: number): RegionChannel; - - getRx1Delay(): number; - setRx1Delay(value: number): GetRegionResponse; - - getRx1DrOffset(): number; - setRx1DrOffset(value: number): GetRegionResponse; - - getRx2Dr(): number; - setRx2Dr(value: number): GetRegionResponse; - - getRx2Frequency(): number; - setRx2Frequency(value: number): GetRegionResponse; - - getClassBPingSlotDr(): number; - setClassBPingSlotDr(value: number): GetRegionResponse; - - getClassBPingSlotFrequency(): number; - setClassBPingSlotFrequency(value: number): GetRegionResponse; - - getDescription(): string; - setDescription(value: string): GetRegionResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRegionResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetRegionResponse): GetRegionResponse.AsObject; - static serializeBinaryToWriter(message: GetRegionResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetRegionResponse; - static deserializeBinaryFromReader(message: GetRegionResponse, reader: jspb.BinaryReader): GetRegionResponse; -} - -export namespace GetRegionResponse { - export type AsObject = { - id: string, - region: common_common_pb.Region, - userInfo: string, - uplinkChannelsList: Array, - rx1Delay: number, - rx1DrOffset: number, - rx2Dr: number, - rx2Frequency: number, - classBPingSlotDr: number, - classBPingSlotFrequency: number, - description: string, - } -} - -export class RegionChannel extends jspb.Message { - getFrequency(): number; - setFrequency(value: number): RegionChannel; - - getDrMin(): number; - setDrMin(value: number): RegionChannel; - - getDrMax(): number; - setDrMax(value: number): RegionChannel; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RegionChannel.AsObject; - static toObject(includeInstance: boolean, msg: RegionChannel): RegionChannel.AsObject; - static serializeBinaryToWriter(message: RegionChannel, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RegionChannel; - static deserializeBinaryFromReader(message: RegionChannel, reader: jspb.BinaryReader): RegionChannel; -} - -export namespace RegionChannel { - export type AsObject = { - frequency: number, - drMin: number, - drMax: number, - } -} - -export class GetVersionResponse extends jspb.Message { - getVersion(): string; - setVersion(value: string): GetVersionResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetVersionResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetVersionResponse): GetVersionResponse.AsObject; - static serializeBinaryToWriter(message: GetVersionResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetVersionResponse; - static deserializeBinaryFromReader(message: GetVersionResponse, reader: jspb.BinaryReader): GetVersionResponse; -} - -export namespace GetVersionResponse { - export type AsObject = { - version: string, - } -} - diff --git a/api/grpc-web/api/internal_pb.js b/api/grpc-web/api/internal_pb.js deleted file mode 100644 index db981e12..00000000 --- a/api/grpc-web/api/internal_pb.js +++ /dev/null @@ -1,7294 +0,0 @@ -// source: api/internal.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -var api_user_pb = require('../api/user_pb.js'); -goog.object.extend(proto, api_user_pb); -goog.exportSymbol('proto.api.ApiKey', null, global); -goog.exportSymbol('proto.api.CreateApiKeyRequest', null, global); -goog.exportSymbol('proto.api.CreateApiKeyResponse', null, global); -goog.exportSymbol('proto.api.DeleteApiKeyRequest', null, global); -goog.exportSymbol('proto.api.GetDevicesSummaryRequest', null, global); -goog.exportSymbol('proto.api.GetDevicesSummaryResponse', null, global); -goog.exportSymbol('proto.api.GetGatewaysSummaryRequest', null, global); -goog.exportSymbol('proto.api.GetGatewaysSummaryResponse', null, global); -goog.exportSymbol('proto.api.GetRegionRequest', null, global); -goog.exportSymbol('proto.api.GetRegionResponse', null, global); -goog.exportSymbol('proto.api.GetVersionResponse', null, global); -goog.exportSymbol('proto.api.GlobalSearchRequest', null, global); -goog.exportSymbol('proto.api.GlobalSearchResponse', null, global); -goog.exportSymbol('proto.api.GlobalSearchResult', null, global); -goog.exportSymbol('proto.api.ListApiKeysRequest', null, global); -goog.exportSymbol('proto.api.ListApiKeysResponse', null, global); -goog.exportSymbol('proto.api.ListRegionsResponse', null, global); -goog.exportSymbol('proto.api.LogItem', null, global); -goog.exportSymbol('proto.api.LoginRequest', null, global); -goog.exportSymbol('proto.api.LoginResponse', null, global); -goog.exportSymbol('proto.api.OAuth2', null, global); -goog.exportSymbol('proto.api.OAuth2LoginRequest', null, global); -goog.exportSymbol('proto.api.OAuth2LoginResponse', null, global); -goog.exportSymbol('proto.api.OpenIdConnect', null, global); -goog.exportSymbol('proto.api.OpenIdConnectLoginRequest', null, global); -goog.exportSymbol('proto.api.OpenIdConnectLoginResponse', null, global); -goog.exportSymbol('proto.api.ProfileResponse', null, global); -goog.exportSymbol('proto.api.RegionChannel', null, global); -goog.exportSymbol('proto.api.RegionListItem', null, global); -goog.exportSymbol('proto.api.SettingsResponse', null, global); -goog.exportSymbol('proto.api.StreamDeviceEventsRequest', null, global); -goog.exportSymbol('proto.api.StreamDeviceFramesRequest', null, global); -goog.exportSymbol('proto.api.StreamGatewayFramesRequest', null, global); -goog.exportSymbol('proto.api.UserTenantLink', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ApiKey = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ApiKey, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ApiKey.displayName = 'proto.api.ApiKey'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateApiKeyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateApiKeyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateApiKeyRequest.displayName = 'proto.api.CreateApiKeyRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateApiKeyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateApiKeyResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateApiKeyResponse.displayName = 'proto.api.CreateApiKeyResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteApiKeyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteApiKeyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteApiKeyRequest.displayName = 'proto.api.DeleteApiKeyRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListApiKeysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListApiKeysRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListApiKeysRequest.displayName = 'proto.api.ListApiKeysRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListApiKeysResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListApiKeysResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListApiKeysResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListApiKeysResponse.displayName = 'proto.api.ListApiKeysResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UserTenantLink = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UserTenantLink, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UserTenantLink.displayName = 'proto.api.UserTenantLink'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.LoginRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.LoginRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.LoginRequest.displayName = 'proto.api.LoginRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.LoginResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.LoginResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.LoginResponse.displayName = 'proto.api.LoginResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ProfileResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ProfileResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ProfileResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ProfileResponse.displayName = 'proto.api.ProfileResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GlobalSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GlobalSearchRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GlobalSearchRequest.displayName = 'proto.api.GlobalSearchRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GlobalSearchResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.GlobalSearchResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.GlobalSearchResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GlobalSearchResponse.displayName = 'proto.api.GlobalSearchResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GlobalSearchResult = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GlobalSearchResult, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GlobalSearchResult.displayName = 'proto.api.GlobalSearchResult'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.SettingsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.SettingsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.SettingsResponse.displayName = 'proto.api.SettingsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.OpenIdConnect = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.OpenIdConnect, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.OpenIdConnect.displayName = 'proto.api.OpenIdConnect'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.OAuth2 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.OAuth2, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.OAuth2.displayName = 'proto.api.OAuth2'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.OpenIdConnectLoginRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.OpenIdConnectLoginRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.OpenIdConnectLoginRequest.displayName = 'proto.api.OpenIdConnectLoginRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.OpenIdConnectLoginResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.OpenIdConnectLoginResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.OpenIdConnectLoginResponse.displayName = 'proto.api.OpenIdConnectLoginResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.OAuth2LoginRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.OAuth2LoginRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.OAuth2LoginRequest.displayName = 'proto.api.OAuth2LoginRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.OAuth2LoginResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.OAuth2LoginResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.OAuth2LoginResponse.displayName = 'proto.api.OAuth2LoginResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDevicesSummaryRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDevicesSummaryRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDevicesSummaryRequest.displayName = 'proto.api.GetDevicesSummaryRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDevicesSummaryResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDevicesSummaryResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDevicesSummaryResponse.displayName = 'proto.api.GetDevicesSummaryResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetGatewaysSummaryRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetGatewaysSummaryRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetGatewaysSummaryRequest.displayName = 'proto.api.GetGatewaysSummaryRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetGatewaysSummaryResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetGatewaysSummaryResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetGatewaysSummaryResponse.displayName = 'proto.api.GetGatewaysSummaryResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.LogItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.LogItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.LogItem.displayName = 'proto.api.LogItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.StreamGatewayFramesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.StreamGatewayFramesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.StreamGatewayFramesRequest.displayName = 'proto.api.StreamGatewayFramesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.StreamDeviceFramesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.StreamDeviceFramesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.StreamDeviceFramesRequest.displayName = 'proto.api.StreamDeviceFramesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.StreamDeviceEventsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.StreamDeviceEventsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.StreamDeviceEventsRequest.displayName = 'proto.api.StreamDeviceEventsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListRegionsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListRegionsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListRegionsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListRegionsResponse.displayName = 'proto.api.ListRegionsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.RegionListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.RegionListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.RegionListItem.displayName = 'proto.api.RegionListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetRegionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetRegionRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetRegionRequest.displayName = 'proto.api.GetRegionRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetRegionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.GetRegionResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.GetRegionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetRegionResponse.displayName = 'proto.api.GetRegionResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.RegionChannel = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.RegionChannel, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.RegionChannel.displayName = 'proto.api.RegionChannel'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetVersionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetVersionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetVersionResponse.displayName = 'proto.api.GetVersionResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ApiKey.prototype.toObject = function(opt_includeInstance) { - return proto.api.ApiKey.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ApiKey} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ApiKey.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - isAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - tenantId: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ApiKey} - */ -proto.api.ApiKey.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ApiKey; - return proto.api.ApiKey.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ApiKey} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ApiKey} - */ -proto.api.ApiKey.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAdmin(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ApiKey.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ApiKey.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ApiKey} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ApiKey.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getIsAdmin(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.ApiKey.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ApiKey} returns this - */ -proto.api.ApiKey.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.ApiKey.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ApiKey} returns this - */ -proto.api.ApiKey.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool is_admin = 3; - * @return {boolean} - */ -proto.api.ApiKey.prototype.getIsAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.ApiKey} returns this - */ -proto.api.ApiKey.prototype.setIsAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional string tenant_id = 4; - * @return {string} - */ -proto.api.ApiKey.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ApiKey} returns this - */ -proto.api.ApiKey.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateApiKeyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateApiKeyRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateApiKeyRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateApiKeyRequest.toObject = function(includeInstance, msg) { - var f, obj = { - apiKey: (f = msg.getApiKey()) && proto.api.ApiKey.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateApiKeyRequest} - */ -proto.api.CreateApiKeyRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateApiKeyRequest; - return proto.api.CreateApiKeyRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateApiKeyRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateApiKeyRequest} - */ -proto.api.CreateApiKeyRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.ApiKey; - reader.readMessage(value,proto.api.ApiKey.deserializeBinaryFromReader); - msg.setApiKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateApiKeyRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateApiKeyRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateApiKeyRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateApiKeyRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApiKey(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.ApiKey.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ApiKey api_key = 1; - * @return {?proto.api.ApiKey} - */ -proto.api.CreateApiKeyRequest.prototype.getApiKey = function() { - return /** @type{?proto.api.ApiKey} */ ( - jspb.Message.getWrapperField(this, proto.api.ApiKey, 1)); -}; - - -/** - * @param {?proto.api.ApiKey|undefined} value - * @return {!proto.api.CreateApiKeyRequest} returns this -*/ -proto.api.CreateApiKeyRequest.prototype.setApiKey = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateApiKeyRequest} returns this - */ -proto.api.CreateApiKeyRequest.prototype.clearApiKey = function() { - return this.setApiKey(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateApiKeyRequest.prototype.hasApiKey = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateApiKeyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateApiKeyResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateApiKeyResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateApiKeyResponse.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - token: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateApiKeyResponse} - */ -proto.api.CreateApiKeyResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateApiKeyResponse; - return proto.api.CreateApiKeyResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateApiKeyResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateApiKeyResponse} - */ -proto.api.CreateApiKeyResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setToken(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateApiKeyResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateApiKeyResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateApiKeyResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateApiKeyResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getToken(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.CreateApiKeyResponse.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.CreateApiKeyResponse} returns this - */ -proto.api.CreateApiKeyResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string token = 2; - * @return {string} - */ -proto.api.CreateApiKeyResponse.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.CreateApiKeyResponse} returns this - */ -proto.api.CreateApiKeyResponse.prototype.setToken = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteApiKeyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteApiKeyRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteApiKeyRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteApiKeyRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteApiKeyRequest} - */ -proto.api.DeleteApiKeyRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteApiKeyRequest; - return proto.api.DeleteApiKeyRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteApiKeyRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteApiKeyRequest} - */ -proto.api.DeleteApiKeyRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteApiKeyRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteApiKeyRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteApiKeyRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteApiKeyRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeleteApiKeyRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteApiKeyRequest} returns this - */ -proto.api.DeleteApiKeyRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListApiKeysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListApiKeysRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListApiKeysRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListApiKeysRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - isAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - tenantId: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListApiKeysRequest} - */ -proto.api.ListApiKeysRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListApiKeysRequest; - return proto.api.ListApiKeysRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListApiKeysRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListApiKeysRequest} - */ -proto.api.ListApiKeysRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAdmin(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListApiKeysRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListApiKeysRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListApiKeysRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListApiKeysRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getIsAdmin(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListApiKeysRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListApiKeysRequest} returns this - */ -proto.api.ListApiKeysRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListApiKeysRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListApiKeysRequest} returns this - */ -proto.api.ListApiKeysRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional bool is_admin = 3; - * @return {boolean} - */ -proto.api.ListApiKeysRequest.prototype.getIsAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.ListApiKeysRequest} returns this - */ -proto.api.ListApiKeysRequest.prototype.setIsAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional string tenant_id = 4; - * @return {string} - */ -proto.api.ListApiKeysRequest.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListApiKeysRequest} returns this - */ -proto.api.ListApiKeysRequest.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListApiKeysResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListApiKeysResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListApiKeysResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListApiKeysResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListApiKeysResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.ApiKey.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListApiKeysResponse} - */ -proto.api.ListApiKeysResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListApiKeysResponse; - return proto.api.ListApiKeysResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListApiKeysResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListApiKeysResponse} - */ -proto.api.ListApiKeysResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.ApiKey; - reader.readMessage(value,proto.api.ApiKey.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListApiKeysResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListApiKeysResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListApiKeysResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListApiKeysResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.ApiKey.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListApiKeysResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListApiKeysResponse} returns this - */ -proto.api.ListApiKeysResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated ApiKey result = 2; - * @return {!Array} - */ -proto.api.ListApiKeysResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.ApiKey, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListApiKeysResponse} returns this -*/ -proto.api.ListApiKeysResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.ApiKey=} opt_value - * @param {number=} opt_index - * @return {!proto.api.ApiKey} - */ -proto.api.ListApiKeysResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.ApiKey, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListApiKeysResponse} returns this - */ -proto.api.ListApiKeysResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UserTenantLink.prototype.toObject = function(opt_includeInstance) { - return proto.api.UserTenantLink.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UserTenantLink} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UserTenantLink.toObject = function(includeInstance, msg) { - var f, obj = { - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - tenantId: jspb.Message.getFieldWithDefault(msg, 3, ""), - isAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - isDeviceAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - isGatewayAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UserTenantLink} - */ -proto.api.UserTenantLink.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UserTenantLink; - return proto.api.UserTenantLink.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UserTenantLink} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UserTenantLink} - */ -proto.api.UserTenantLink.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAdmin(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsDeviceAdmin(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsGatewayAdmin(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UserTenantLink.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UserTenantLink.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UserTenantLink} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UserTenantLink.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getIsAdmin(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getIsDeviceAdmin(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getIsGatewayAdmin(); - if (f) { - writer.writeBool( - 6, - f - ); - } -}; - - -/** - * optional google.protobuf.Timestamp created_at = 1; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.UserTenantLink.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.UserTenantLink} returns this -*/ -proto.api.UserTenantLink.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UserTenantLink} returns this - */ -proto.api.UserTenantLink.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UserTenantLink.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.UserTenantLink.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.UserTenantLink} returns this -*/ -proto.api.UserTenantLink.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UserTenantLink} returns this - */ -proto.api.UserTenantLink.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UserTenantLink.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string tenant_id = 3; - * @return {string} - */ -proto.api.UserTenantLink.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.UserTenantLink} returns this - */ -proto.api.UserTenantLink.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional bool is_admin = 4; - * @return {boolean} - */ -proto.api.UserTenantLink.prototype.getIsAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.UserTenantLink} returns this - */ -proto.api.UserTenantLink.prototype.setIsAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional bool is_device_admin = 5; - * @return {boolean} - */ -proto.api.UserTenantLink.prototype.getIsDeviceAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.UserTenantLink} returns this - */ -proto.api.UserTenantLink.prototype.setIsDeviceAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool is_gateway_admin = 6; - * @return {boolean} - */ -proto.api.UserTenantLink.prototype.getIsGatewayAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.UserTenantLink} returns this - */ -proto.api.UserTenantLink.prototype.setIsGatewayAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.LoginRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.LoginRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.LoginRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LoginRequest.toObject = function(includeInstance, msg) { - var f, obj = { - email: jspb.Message.getFieldWithDefault(msg, 1, ""), - password: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.LoginRequest} - */ -proto.api.LoginRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.LoginRequest; - return proto.api.LoginRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.LoginRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.LoginRequest} - */ -proto.api.LoginRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.LoginRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.LoginRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.LoginRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LoginRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string email = 1; - * @return {string} - */ -proto.api.LoginRequest.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LoginRequest} returns this - */ -proto.api.LoginRequest.prototype.setEmail = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string password = 2; - * @return {string} - */ -proto.api.LoginRequest.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LoginRequest} returns this - */ -proto.api.LoginRequest.prototype.setPassword = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.LoginResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.LoginResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.LoginResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LoginResponse.toObject = function(includeInstance, msg) { - var f, obj = { - jwt: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.LoginResponse} - */ -proto.api.LoginResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.LoginResponse; - return proto.api.LoginResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.LoginResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.LoginResponse} - */ -proto.api.LoginResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setJwt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.LoginResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.LoginResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.LoginResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LoginResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getJwt(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string jwt = 1; - * @return {string} - */ -proto.api.LoginResponse.prototype.getJwt = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LoginResponse} returns this - */ -proto.api.LoginResponse.prototype.setJwt = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ProfileResponse.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ProfileResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ProfileResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ProfileResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ProfileResponse.toObject = function(includeInstance, msg) { - var f, obj = { - user: (f = msg.getUser()) && api_user_pb.User.toObject(includeInstance, f), - tenantsList: jspb.Message.toObjectList(msg.getTenantsList(), - proto.api.UserTenantLink.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ProfileResponse} - */ -proto.api.ProfileResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ProfileResponse; - return proto.api.ProfileResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ProfileResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ProfileResponse} - */ -proto.api.ProfileResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new api_user_pb.User; - reader.readMessage(value,api_user_pb.User.deserializeBinaryFromReader); - msg.setUser(value); - break; - case 3: - var value = new proto.api.UserTenantLink; - reader.readMessage(value,proto.api.UserTenantLink.deserializeBinaryFromReader); - msg.addTenants(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ProfileResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ProfileResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ProfileResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ProfileResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUser(); - if (f != null) { - writer.writeMessage( - 1, - f, - api_user_pb.User.serializeBinaryToWriter - ); - } - f = message.getTenantsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.api.UserTenantLink.serializeBinaryToWriter - ); - } -}; - - -/** - * optional User user = 1; - * @return {?proto.api.User} - */ -proto.api.ProfileResponse.prototype.getUser = function() { - return /** @type{?proto.api.User} */ ( - jspb.Message.getWrapperField(this, api_user_pb.User, 1)); -}; - - -/** - * @param {?proto.api.User|undefined} value - * @return {!proto.api.ProfileResponse} returns this -*/ -proto.api.ProfileResponse.prototype.setUser = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.ProfileResponse} returns this - */ -proto.api.ProfileResponse.prototype.clearUser = function() { - return this.setUser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.ProfileResponse.prototype.hasUser = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated UserTenantLink tenants = 3; - * @return {!Array} - */ -proto.api.ProfileResponse.prototype.getTenantsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.UserTenantLink, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ProfileResponse} returns this -*/ -proto.api.ProfileResponse.prototype.setTenantsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.api.UserTenantLink=} opt_value - * @param {number=} opt_index - * @return {!proto.api.UserTenantLink} - */ -proto.api.ProfileResponse.prototype.addTenants = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.api.UserTenantLink, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ProfileResponse} returns this - */ -proto.api.ProfileResponse.prototype.clearTenantsList = function() { - return this.setTenantsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GlobalSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GlobalSearchRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GlobalSearchRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GlobalSearchRequest.toObject = function(includeInstance, msg) { - var f, obj = { - search: jspb.Message.getFieldWithDefault(msg, 1, ""), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - offset: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GlobalSearchRequest} - */ -proto.api.GlobalSearchRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GlobalSearchRequest; - return proto.api.GlobalSearchRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GlobalSearchRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GlobalSearchRequest} - */ -proto.api.GlobalSearchRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSearch(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt64()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setOffset(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GlobalSearchRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GlobalSearchRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GlobalSearchRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GlobalSearchRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSearch(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } -}; - - -/** - * optional string search = 1; - * @return {string} - */ -proto.api.GlobalSearchRequest.prototype.getSearch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchRequest} returns this - */ -proto.api.GlobalSearchRequest.prototype.setSearch = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int64 limit = 2; - * @return {number} - */ -proto.api.GlobalSearchRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GlobalSearchRequest} returns this - */ -proto.api.GlobalSearchRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional int64 offset = 3; - * @return {number} - */ -proto.api.GlobalSearchRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GlobalSearchRequest} returns this - */ -proto.api.GlobalSearchRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.GlobalSearchResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GlobalSearchResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GlobalSearchResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GlobalSearchResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GlobalSearchResponse.toObject = function(includeInstance, msg) { - var f, obj = { - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.GlobalSearchResult.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GlobalSearchResponse} - */ -proto.api.GlobalSearchResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GlobalSearchResponse; - return proto.api.GlobalSearchResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GlobalSearchResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GlobalSearchResponse} - */ -proto.api.GlobalSearchResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.GlobalSearchResult; - reader.readMessage(value,proto.api.GlobalSearchResult.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GlobalSearchResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GlobalSearchResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GlobalSearchResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GlobalSearchResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.api.GlobalSearchResult.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated GlobalSearchResult result = 1; - * @return {!Array} - */ -proto.api.GlobalSearchResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.GlobalSearchResult, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.GlobalSearchResponse} returns this -*/ -proto.api.GlobalSearchResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.api.GlobalSearchResult=} opt_value - * @param {number=} opt_index - * @return {!proto.api.GlobalSearchResult} - */ -proto.api.GlobalSearchResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.api.GlobalSearchResult, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.GlobalSearchResponse} returns this - */ -proto.api.GlobalSearchResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GlobalSearchResult.prototype.toObject = function(opt_includeInstance) { - return proto.api.GlobalSearchResult.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GlobalSearchResult} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GlobalSearchResult.toObject = function(includeInstance, msg) { - var f, obj = { - kind: jspb.Message.getFieldWithDefault(msg, 1, ""), - score: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - tenantId: jspb.Message.getFieldWithDefault(msg, 3, ""), - tenantName: jspb.Message.getFieldWithDefault(msg, 4, ""), - applicationId: jspb.Message.getFieldWithDefault(msg, 5, ""), - applicationName: jspb.Message.getFieldWithDefault(msg, 6, ""), - deviceDevEui: jspb.Message.getFieldWithDefault(msg, 7, ""), - deviceName: jspb.Message.getFieldWithDefault(msg, 8, ""), - gatewayId: jspb.Message.getFieldWithDefault(msg, 9, ""), - gatewayName: jspb.Message.getFieldWithDefault(msg, 10, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GlobalSearchResult} - */ -proto.api.GlobalSearchResult.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GlobalSearchResult; - return proto.api.GlobalSearchResult.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GlobalSearchResult} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GlobalSearchResult} - */ -proto.api.GlobalSearchResult.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setKind(value); - break; - case 2: - var value = /** @type {number} */ (reader.readFloat()); - msg.setScore(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationName(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceDevEui(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceName(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GlobalSearchResult.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GlobalSearchResult.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GlobalSearchResult} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GlobalSearchResult.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKind(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getScore(); - if (f !== 0.0) { - writer.writeFloat( - 2, - f - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getTenantName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getApplicationName(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getDeviceDevEui(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getDeviceName(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getGatewayName(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } -}; - - -/** - * optional string kind = 1; - * @return {string} - */ -proto.api.GlobalSearchResult.prototype.getKind = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setKind = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional float score = 2; - * @return {number} - */ -proto.api.GlobalSearchResult.prototype.getScore = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setScore = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - -/** - * optional string tenant_id = 3; - * @return {string} - */ -proto.api.GlobalSearchResult.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string tenant_name = 4; - * @return {string} - */ -proto.api.GlobalSearchResult.prototype.getTenantName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setTenantName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string application_id = 5; - * @return {string} - */ -proto.api.GlobalSearchResult.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string application_name = 6; - * @return {string} - */ -proto.api.GlobalSearchResult.prototype.getApplicationName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setApplicationName = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string device_dev_eui = 7; - * @return {string} - */ -proto.api.GlobalSearchResult.prototype.getDeviceDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setDeviceDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string device_name = 8; - * @return {string} - */ -proto.api.GlobalSearchResult.prototype.getDeviceName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setDeviceName = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string gateway_id = 9; - * @return {string} - */ -proto.api.GlobalSearchResult.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional string gateway_name = 10; - * @return {string} - */ -proto.api.GlobalSearchResult.prototype.getGatewayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setGatewayName = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.SettingsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.SettingsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.SettingsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.SettingsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - openidConnect: (f = msg.getOpenidConnect()) && proto.api.OpenIdConnect.toObject(includeInstance, f), - oauth2: (f = msg.getOauth2()) && proto.api.OAuth2.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.SettingsResponse} - */ -proto.api.SettingsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.SettingsResponse; - return proto.api.SettingsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.SettingsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.SettingsResponse} - */ -proto.api.SettingsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.OpenIdConnect; - reader.readMessage(value,proto.api.OpenIdConnect.deserializeBinaryFromReader); - msg.setOpenidConnect(value); - break; - case 2: - var value = new proto.api.OAuth2; - reader.readMessage(value,proto.api.OAuth2.deserializeBinaryFromReader); - msg.setOauth2(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.SettingsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.SettingsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.SettingsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.SettingsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOpenidConnect(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.OpenIdConnect.serializeBinaryToWriter - ); - } - f = message.getOauth2(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.api.OAuth2.serializeBinaryToWriter - ); - } -}; - - -/** - * optional OpenIdConnect openid_connect = 1; - * @return {?proto.api.OpenIdConnect} - */ -proto.api.SettingsResponse.prototype.getOpenidConnect = function() { - return /** @type{?proto.api.OpenIdConnect} */ ( - jspb.Message.getWrapperField(this, proto.api.OpenIdConnect, 1)); -}; - - -/** - * @param {?proto.api.OpenIdConnect|undefined} value - * @return {!proto.api.SettingsResponse} returns this -*/ -proto.api.SettingsResponse.prototype.setOpenidConnect = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.SettingsResponse} returns this - */ -proto.api.SettingsResponse.prototype.clearOpenidConnect = function() { - return this.setOpenidConnect(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.SettingsResponse.prototype.hasOpenidConnect = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional OAuth2 oauth2 = 2; - * @return {?proto.api.OAuth2} - */ -proto.api.SettingsResponse.prototype.getOauth2 = function() { - return /** @type{?proto.api.OAuth2} */ ( - jspb.Message.getWrapperField(this, proto.api.OAuth2, 2)); -}; - - -/** - * @param {?proto.api.OAuth2|undefined} value - * @return {!proto.api.SettingsResponse} returns this -*/ -proto.api.SettingsResponse.prototype.setOauth2 = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.SettingsResponse} returns this - */ -proto.api.SettingsResponse.prototype.clearOauth2 = function() { - return this.setOauth2(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.SettingsResponse.prototype.hasOauth2 = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.OpenIdConnect.prototype.toObject = function(opt_includeInstance) { - return proto.api.OpenIdConnect.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.OpenIdConnect} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OpenIdConnect.toObject = function(includeInstance, msg) { - var f, obj = { - enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - loginUrl: jspb.Message.getFieldWithDefault(msg, 2, ""), - loginLabel: jspb.Message.getFieldWithDefault(msg, 3, ""), - logoutUrl: jspb.Message.getFieldWithDefault(msg, 4, ""), - loginRedirect: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.OpenIdConnect} - */ -proto.api.OpenIdConnect.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.OpenIdConnect; - return proto.api.OpenIdConnect.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.OpenIdConnect} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.OpenIdConnect} - */ -proto.api.OpenIdConnect.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnabled(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setLoginUrl(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLoginLabel(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setLogoutUrl(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setLoginRedirect(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.OpenIdConnect.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.OpenIdConnect.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.OpenIdConnect} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OpenIdConnect.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEnabled(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getLoginUrl(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLoginLabel(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getLogoutUrl(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getLoginRedirect(); - if (f) { - writer.writeBool( - 5, - f - ); - } -}; - - -/** - * optional bool enabled = 1; - * @return {boolean} - */ -proto.api.OpenIdConnect.prototype.getEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.OpenIdConnect} returns this - */ -proto.api.OpenIdConnect.prototype.setEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional string login_url = 2; - * @return {string} - */ -proto.api.OpenIdConnect.prototype.getLoginUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OpenIdConnect} returns this - */ -proto.api.OpenIdConnect.prototype.setLoginUrl = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string login_label = 3; - * @return {string} - */ -proto.api.OpenIdConnect.prototype.getLoginLabel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OpenIdConnect} returns this - */ -proto.api.OpenIdConnect.prototype.setLoginLabel = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string logout_url = 4; - * @return {string} - */ -proto.api.OpenIdConnect.prototype.getLogoutUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OpenIdConnect} returns this - */ -proto.api.OpenIdConnect.prototype.setLogoutUrl = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool login_redirect = 5; - * @return {boolean} - */ -proto.api.OpenIdConnect.prototype.getLoginRedirect = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.OpenIdConnect} returns this - */ -proto.api.OpenIdConnect.prototype.setLoginRedirect = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.OAuth2.prototype.toObject = function(opt_includeInstance) { - return proto.api.OAuth2.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.OAuth2} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OAuth2.toObject = function(includeInstance, msg) { - var f, obj = { - enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - loginUrl: jspb.Message.getFieldWithDefault(msg, 2, ""), - loginLabel: jspb.Message.getFieldWithDefault(msg, 3, ""), - logoutUrl: jspb.Message.getFieldWithDefault(msg, 4, ""), - loginRedirect: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.OAuth2} - */ -proto.api.OAuth2.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.OAuth2; - return proto.api.OAuth2.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.OAuth2} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.OAuth2} - */ -proto.api.OAuth2.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnabled(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setLoginUrl(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLoginLabel(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setLogoutUrl(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setLoginRedirect(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.OAuth2.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.OAuth2.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.OAuth2} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OAuth2.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEnabled(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getLoginUrl(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLoginLabel(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getLogoutUrl(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getLoginRedirect(); - if (f) { - writer.writeBool( - 5, - f - ); - } -}; - - -/** - * optional bool enabled = 1; - * @return {boolean} - */ -proto.api.OAuth2.prototype.getEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.OAuth2} returns this - */ -proto.api.OAuth2.prototype.setEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional string login_url = 2; - * @return {string} - */ -proto.api.OAuth2.prototype.getLoginUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OAuth2} returns this - */ -proto.api.OAuth2.prototype.setLoginUrl = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string login_label = 3; - * @return {string} - */ -proto.api.OAuth2.prototype.getLoginLabel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OAuth2} returns this - */ -proto.api.OAuth2.prototype.setLoginLabel = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string logout_url = 4; - * @return {string} - */ -proto.api.OAuth2.prototype.getLogoutUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OAuth2} returns this - */ -proto.api.OAuth2.prototype.setLogoutUrl = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool login_redirect = 5; - * @return {boolean} - */ -proto.api.OAuth2.prototype.getLoginRedirect = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.OAuth2} returns this - */ -proto.api.OAuth2.prototype.setLoginRedirect = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.OpenIdConnectLoginRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.OpenIdConnectLoginRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.OpenIdConnectLoginRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OpenIdConnectLoginRequest.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, ""), - state: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.OpenIdConnectLoginRequest} - */ -proto.api.OpenIdConnectLoginRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.OpenIdConnectLoginRequest; - return proto.api.OpenIdConnectLoginRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.OpenIdConnectLoginRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.OpenIdConnectLoginRequest} - */ -proto.api.OpenIdConnectLoginRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setCode(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setState(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.OpenIdConnectLoginRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.OpenIdConnectLoginRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.OpenIdConnectLoginRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OpenIdConnectLoginRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getState(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string code = 1; - * @return {string} - */ -proto.api.OpenIdConnectLoginRequest.prototype.getCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OpenIdConnectLoginRequest} returns this - */ -proto.api.OpenIdConnectLoginRequest.prototype.setCode = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string state = 2; - * @return {string} - */ -proto.api.OpenIdConnectLoginRequest.prototype.getState = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OpenIdConnectLoginRequest} returns this - */ -proto.api.OpenIdConnectLoginRequest.prototype.setState = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.OpenIdConnectLoginResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.OpenIdConnectLoginResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.OpenIdConnectLoginResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OpenIdConnectLoginResponse.toObject = function(includeInstance, msg) { - var f, obj = { - token: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.OpenIdConnectLoginResponse} - */ -proto.api.OpenIdConnectLoginResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.OpenIdConnectLoginResponse; - return proto.api.OpenIdConnectLoginResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.OpenIdConnectLoginResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.OpenIdConnectLoginResponse} - */ -proto.api.OpenIdConnectLoginResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setToken(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.OpenIdConnectLoginResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.OpenIdConnectLoginResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.OpenIdConnectLoginResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OpenIdConnectLoginResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getToken(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string token = 1; - * @return {string} - */ -proto.api.OpenIdConnectLoginResponse.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OpenIdConnectLoginResponse} returns this - */ -proto.api.OpenIdConnectLoginResponse.prototype.setToken = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.OAuth2LoginRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.OAuth2LoginRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.OAuth2LoginRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OAuth2LoginRequest.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, ""), - state: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.OAuth2LoginRequest} - */ -proto.api.OAuth2LoginRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.OAuth2LoginRequest; - return proto.api.OAuth2LoginRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.OAuth2LoginRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.OAuth2LoginRequest} - */ -proto.api.OAuth2LoginRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setCode(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setState(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.OAuth2LoginRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.OAuth2LoginRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.OAuth2LoginRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OAuth2LoginRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getState(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string code = 1; - * @return {string} - */ -proto.api.OAuth2LoginRequest.prototype.getCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OAuth2LoginRequest} returns this - */ -proto.api.OAuth2LoginRequest.prototype.setCode = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string state = 2; - * @return {string} - */ -proto.api.OAuth2LoginRequest.prototype.getState = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OAuth2LoginRequest} returns this - */ -proto.api.OAuth2LoginRequest.prototype.setState = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.OAuth2LoginResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.OAuth2LoginResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.OAuth2LoginResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OAuth2LoginResponse.toObject = function(includeInstance, msg) { - var f, obj = { - token: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.OAuth2LoginResponse} - */ -proto.api.OAuth2LoginResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.OAuth2LoginResponse; - return proto.api.OAuth2LoginResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.OAuth2LoginResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.OAuth2LoginResponse} - */ -proto.api.OAuth2LoginResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setToken(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.OAuth2LoginResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.OAuth2LoginResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.OAuth2LoginResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OAuth2LoginResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getToken(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string token = 1; - * @return {string} - */ -proto.api.OAuth2LoginResponse.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OAuth2LoginResponse} returns this - */ -proto.api.OAuth2LoginResponse.prototype.setToken = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDevicesSummaryRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDevicesSummaryRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDevicesSummaryRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDevicesSummaryRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDevicesSummaryRequest} - */ -proto.api.GetDevicesSummaryRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDevicesSummaryRequest; - return proto.api.GetDevicesSummaryRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDevicesSummaryRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDevicesSummaryRequest} - */ -proto.api.GetDevicesSummaryRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDevicesSummaryRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDevicesSummaryRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDevicesSummaryRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDevicesSummaryRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.api.GetDevicesSummaryRequest.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDevicesSummaryRequest} returns this - */ -proto.api.GetDevicesSummaryRequest.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDevicesSummaryResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDevicesSummaryResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDevicesSummaryResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDevicesSummaryResponse.toObject = function(includeInstance, msg) { - var f, obj = { - activeCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - inactiveCount: jspb.Message.getFieldWithDefault(msg, 2, 0), - drCountMap: (f = msg.getDrCountMap()) ? f.toObject(includeInstance, undefined) : [], - neverSeenCount: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDevicesSummaryResponse} - */ -proto.api.GetDevicesSummaryResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDevicesSummaryResponse; - return proto.api.GetDevicesSummaryResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDevicesSummaryResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDevicesSummaryResponse} - */ -proto.api.GetDevicesSummaryResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setActiveCount(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setInactiveCount(value); - break; - case 3: - var value = msg.getDrCountMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readUint32, null, 0, 0); - }); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setNeverSeenCount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDevicesSummaryResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDevicesSummaryResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDevicesSummaryResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDevicesSummaryResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getActiveCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getInactiveCount(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getDrCountMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeUint32, jspb.BinaryWriter.prototype.writeUint32); - } - f = message.getNeverSeenCount(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } -}; - - -/** - * optional uint32 active_count = 1; - * @return {number} - */ -proto.api.GetDevicesSummaryResponse.prototype.getActiveCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetDevicesSummaryResponse} returns this - */ -proto.api.GetDevicesSummaryResponse.prototype.setActiveCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 inactive_count = 2; - * @return {number} - */ -proto.api.GetDevicesSummaryResponse.prototype.getInactiveCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetDevicesSummaryResponse} returns this - */ -proto.api.GetDevicesSummaryResponse.prototype.setInactiveCount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * map dr_count = 3; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.GetDevicesSummaryResponse.prototype.getDrCountMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 3, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.GetDevicesSummaryResponse} returns this - */ -proto.api.GetDevicesSummaryResponse.prototype.clearDrCountMap = function() { - this.getDrCountMap().clear(); - return this;}; - - -/** - * optional uint32 never_seen_count = 4; - * @return {number} - */ -proto.api.GetDevicesSummaryResponse.prototype.getNeverSeenCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetDevicesSummaryResponse} returns this - */ -proto.api.GetDevicesSummaryResponse.prototype.setNeverSeenCount = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetGatewaysSummaryRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetGatewaysSummaryRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetGatewaysSummaryRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewaysSummaryRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetGatewaysSummaryRequest} - */ -proto.api.GetGatewaysSummaryRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetGatewaysSummaryRequest; - return proto.api.GetGatewaysSummaryRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetGatewaysSummaryRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetGatewaysSummaryRequest} - */ -proto.api.GetGatewaysSummaryRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetGatewaysSummaryRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetGatewaysSummaryRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetGatewaysSummaryRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewaysSummaryRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.api.GetGatewaysSummaryRequest.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetGatewaysSummaryRequest} returns this - */ -proto.api.GetGatewaysSummaryRequest.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetGatewaysSummaryResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetGatewaysSummaryResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetGatewaysSummaryResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewaysSummaryResponse.toObject = function(includeInstance, msg) { - var f, obj = { - onlineCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - offlineCount: jspb.Message.getFieldWithDefault(msg, 2, 0), - neverSeenCount: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetGatewaysSummaryResponse} - */ -proto.api.GetGatewaysSummaryResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetGatewaysSummaryResponse; - return proto.api.GetGatewaysSummaryResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetGatewaysSummaryResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetGatewaysSummaryResponse} - */ -proto.api.GetGatewaysSummaryResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOnlineCount(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOfflineCount(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setNeverSeenCount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetGatewaysSummaryResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetGatewaysSummaryResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetGatewaysSummaryResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewaysSummaryResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOnlineCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOfflineCount(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getNeverSeenCount(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } -}; - - -/** - * optional uint32 online_count = 1; - * @return {number} - */ -proto.api.GetGatewaysSummaryResponse.prototype.getOnlineCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetGatewaysSummaryResponse} returns this - */ -proto.api.GetGatewaysSummaryResponse.prototype.setOnlineCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offline_count = 2; - * @return {number} - */ -proto.api.GetGatewaysSummaryResponse.prototype.getOfflineCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetGatewaysSummaryResponse} returns this - */ -proto.api.GetGatewaysSummaryResponse.prototype.setOfflineCount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint32 never_seen_count = 3; - * @return {number} - */ -proto.api.GetGatewaysSummaryResponse.prototype.getNeverSeenCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetGatewaysSummaryResponse} returns this - */ -proto.api.GetGatewaysSummaryResponse.prototype.setNeverSeenCount = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.LogItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.LogItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.LogItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LogItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - body: jspb.Message.getFieldWithDefault(msg, 4, ""), - propertiesMap: (f = msg.getPropertiesMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.LogItem} - */ -proto.api.LogItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.LogItem; - return proto.api.LogItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.LogItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.LogItem} - */ -proto.api.LogItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setBody(value); - break; - case 5: - var value = msg.getPropertiesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.LogItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.LogItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.LogItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LogItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getBody(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getPropertiesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.LogItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LogItem} returns this - */ -proto.api.LogItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp time = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.LogItem.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.LogItem} returns this -*/ -proto.api.LogItem.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.LogItem} returns this - */ -proto.api.LogItem.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.LogItem.prototype.hasTime = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.api.LogItem.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LogItem} returns this - */ -proto.api.LogItem.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string body = 4; - * @return {string} - */ -proto.api.LogItem.prototype.getBody = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LogItem} returns this - */ -proto.api.LogItem.prototype.setBody = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * map properties = 5; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.LogItem.prototype.getPropertiesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 5, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.LogItem} returns this - */ -proto.api.LogItem.prototype.clearPropertiesMap = function() { - this.getPropertiesMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.StreamGatewayFramesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.StreamGatewayFramesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.StreamGatewayFramesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.StreamGatewayFramesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.StreamGatewayFramesRequest} - */ -proto.api.StreamGatewayFramesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.StreamGatewayFramesRequest; - return proto.api.StreamGatewayFramesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.StreamGatewayFramesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.StreamGatewayFramesRequest} - */ -proto.api.StreamGatewayFramesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.StreamGatewayFramesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.StreamGatewayFramesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.StreamGatewayFramesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.StreamGatewayFramesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string gateway_id = 1; - * @return {string} - */ -proto.api.StreamGatewayFramesRequest.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.StreamGatewayFramesRequest} returns this - */ -proto.api.StreamGatewayFramesRequest.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.StreamDeviceFramesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.StreamDeviceFramesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.StreamDeviceFramesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.StreamDeviceFramesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.StreamDeviceFramesRequest} - */ -proto.api.StreamDeviceFramesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.StreamDeviceFramesRequest; - return proto.api.StreamDeviceFramesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.StreamDeviceFramesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.StreamDeviceFramesRequest} - */ -proto.api.StreamDeviceFramesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.StreamDeviceFramesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.StreamDeviceFramesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.StreamDeviceFramesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.StreamDeviceFramesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.StreamDeviceFramesRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.StreamDeviceFramesRequest} returns this - */ -proto.api.StreamDeviceFramesRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.StreamDeviceEventsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.StreamDeviceEventsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.StreamDeviceEventsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.StreamDeviceEventsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.StreamDeviceEventsRequest} - */ -proto.api.StreamDeviceEventsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.StreamDeviceEventsRequest; - return proto.api.StreamDeviceEventsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.StreamDeviceEventsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.StreamDeviceEventsRequest} - */ -proto.api.StreamDeviceEventsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.StreamDeviceEventsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.StreamDeviceEventsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.StreamDeviceEventsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.StreamDeviceEventsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.StreamDeviceEventsRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.StreamDeviceEventsRequest} returns this - */ -proto.api.StreamDeviceEventsRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListRegionsResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListRegionsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListRegionsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListRegionsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRegionsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - regionsList: jspb.Message.toObjectList(msg.getRegionsList(), - proto.api.RegionListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListRegionsResponse} - */ -proto.api.ListRegionsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListRegionsResponse; - return proto.api.ListRegionsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListRegionsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListRegionsResponse} - */ -proto.api.ListRegionsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.RegionListItem; - reader.readMessage(value,proto.api.RegionListItem.deserializeBinaryFromReader); - msg.addRegions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListRegionsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListRegionsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListRegionsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRegionsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRegionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.api.RegionListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated RegionListItem regions = 1; - * @return {!Array} - */ -proto.api.ListRegionsResponse.prototype.getRegionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.RegionListItem, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListRegionsResponse} returns this -*/ -proto.api.ListRegionsResponse.prototype.setRegionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.api.RegionListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.RegionListItem} - */ -proto.api.ListRegionsResponse.prototype.addRegions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.api.RegionListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListRegionsResponse} returns this - */ -proto.api.ListRegionsResponse.prototype.clearRegionsList = function() { - return this.setRegionsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.RegionListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.RegionListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.RegionListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RegionListItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - region: jspb.Message.getFieldWithDefault(msg, 2, 0), - description: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.RegionListItem} - */ -proto.api.RegionListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.RegionListItem; - return proto.api.RegionListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.RegionListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.RegionListItem} - */ -proto.api.RegionListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {!proto.common.Region} */ (reader.readEnum()); - msg.setRegion(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.RegionListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.RegionListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.RegionListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RegionListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRegion(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.RegionListItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RegionListItem} returns this - */ -proto.api.RegionListItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional common.Region region = 2; - * @return {!proto.common.Region} - */ -proto.api.RegionListItem.prototype.getRegion = function() { - return /** @type {!proto.common.Region} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.common.Region} value - * @return {!proto.api.RegionListItem} returns this - */ -proto.api.RegionListItem.prototype.setRegion = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.api.RegionListItem.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RegionListItem} returns this - */ -proto.api.RegionListItem.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetRegionRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetRegionRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetRegionRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetRegionRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetRegionRequest} - */ -proto.api.GetRegionRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetRegionRequest; - return proto.api.GetRegionRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetRegionRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetRegionRequest} - */ -proto.api.GetRegionRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetRegionRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetRegionRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetRegionRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetRegionRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.GetRegionRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetRegionRequest} returns this - */ -proto.api.GetRegionRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.GetRegionResponse.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetRegionResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetRegionResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetRegionResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetRegionResponse.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - region: jspb.Message.getFieldWithDefault(msg, 2, 0), - userInfo: jspb.Message.getFieldWithDefault(msg, 3, ""), - uplinkChannelsList: jspb.Message.toObjectList(msg.getUplinkChannelsList(), - proto.api.RegionChannel.toObject, includeInstance), - rx1Delay: jspb.Message.getFieldWithDefault(msg, 5, 0), - rx1DrOffset: jspb.Message.getFieldWithDefault(msg, 6, 0), - rx2Dr: jspb.Message.getFieldWithDefault(msg, 7, 0), - rx2Frequency: jspb.Message.getFieldWithDefault(msg, 8, 0), - classBPingSlotDr: jspb.Message.getFieldWithDefault(msg, 9, 0), - classBPingSlotFrequency: jspb.Message.getFieldWithDefault(msg, 10, 0), - description: jspb.Message.getFieldWithDefault(msg, 11, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetRegionResponse} - */ -proto.api.GetRegionResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetRegionResponse; - return proto.api.GetRegionResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetRegionResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetRegionResponse} - */ -proto.api.GetRegionResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {!proto.common.Region} */ (reader.readEnum()); - msg.setRegion(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setUserInfo(value); - break; - case 4: - var value = new proto.api.RegionChannel; - reader.readMessage(value,proto.api.RegionChannel.deserializeBinaryFromReader); - msg.addUplinkChannels(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRx1Delay(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRx1DrOffset(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRx2Dr(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRx2Frequency(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotDr(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotFrequency(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetRegionResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetRegionResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetRegionResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetRegionResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRegion(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getUserInfo(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getUplinkChannelsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.api.RegionChannel.serializeBinaryToWriter - ); - } - f = message.getRx1Delay(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getRx1DrOffset(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } - f = message.getRx2Dr(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getRx2Frequency(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getClassBPingSlotDr(); - if (f !== 0) { - writer.writeUint32( - 9, - f - ); - } - f = message.getClassBPingSlotFrequency(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.GetRegionResponse.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional common.Region region = 2; - * @return {!proto.common.Region} - */ -proto.api.GetRegionResponse.prototype.getRegion = function() { - return /** @type {!proto.common.Region} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.common.Region} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setRegion = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string user_info = 3; - * @return {string} - */ -proto.api.GetRegionResponse.prototype.getUserInfo = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setUserInfo = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated RegionChannel uplink_channels = 4; - * @return {!Array} - */ -proto.api.GetRegionResponse.prototype.getUplinkChannelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.RegionChannel, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.GetRegionResponse} returns this -*/ -proto.api.GetRegionResponse.prototype.setUplinkChannelsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.api.RegionChannel=} opt_value - * @param {number=} opt_index - * @return {!proto.api.RegionChannel} - */ -proto.api.GetRegionResponse.prototype.addUplinkChannels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.api.RegionChannel, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.clearUplinkChannelsList = function() { - return this.setUplinkChannelsList([]); -}; - - -/** - * optional uint32 rx1_delay = 5; - * @return {number} - */ -proto.api.GetRegionResponse.prototype.getRx1Delay = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setRx1Delay = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional uint32 rx1_dr_offset = 6; - * @return {number} - */ -proto.api.GetRegionResponse.prototype.getRx1DrOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setRx1DrOffset = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional uint32 rx2_dr = 7; - * @return {number} - */ -proto.api.GetRegionResponse.prototype.getRx2Dr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setRx2Dr = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional uint32 rx2_frequency = 8; - * @return {number} - */ -proto.api.GetRegionResponse.prototype.getRx2Frequency = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setRx2Frequency = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional uint32 class_b_ping_slot_dr = 9; - * @return {number} - */ -proto.api.GetRegionResponse.prototype.getClassBPingSlotDr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setClassBPingSlotDr = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - - -/** - * optional uint32 class_b_ping_slot_frequency = 10; - * @return {number} - */ -proto.api.GetRegionResponse.prototype.getClassBPingSlotFrequency = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setClassBPingSlotFrequency = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional string description = 11; - * @return {string} - */ -proto.api.GetRegionResponse.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.RegionChannel.prototype.toObject = function(opt_includeInstance) { - return proto.api.RegionChannel.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.RegionChannel} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RegionChannel.toObject = function(includeInstance, msg) { - var f, obj = { - frequency: jspb.Message.getFieldWithDefault(msg, 1, 0), - drMin: jspb.Message.getFieldWithDefault(msg, 2, 0), - drMax: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.RegionChannel} - */ -proto.api.RegionChannel.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.RegionChannel; - return proto.api.RegionChannel.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.RegionChannel} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.RegionChannel} - */ -proto.api.RegionChannel.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFrequency(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDrMin(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDrMax(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.RegionChannel.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.RegionChannel.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.RegionChannel} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RegionChannel.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFrequency(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getDrMin(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getDrMax(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } -}; - - -/** - * optional uint32 frequency = 1; - * @return {number} - */ -proto.api.RegionChannel.prototype.getFrequency = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.RegionChannel} returns this - */ -proto.api.RegionChannel.prototype.setFrequency = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 dr_min = 2; - * @return {number} - */ -proto.api.RegionChannel.prototype.getDrMin = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.RegionChannel} returns this - */ -proto.api.RegionChannel.prototype.setDrMin = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint32 dr_max = 3; - * @return {number} - */ -proto.api.RegionChannel.prototype.getDrMax = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.RegionChannel} returns this - */ -proto.api.RegionChannel.prototype.setDrMax = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetVersionResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetVersionResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetVersionResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetVersionResponse.toObject = function(includeInstance, msg) { - var f, obj = { - version: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetVersionResponse} - */ -proto.api.GetVersionResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetVersionResponse; - return proto.api.GetVersionResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetVersionResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetVersionResponse} - */ -proto.api.GetVersionResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetVersionResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetVersionResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetVersionResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetVersionResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string version = 1; - * @return {string} - */ -proto.api.GetVersionResponse.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetVersionResponse} returns this - */ -proto.api.GetVersionResponse.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -goog.object.extend(exports, proto.api); diff --git a/api/grpc-web/api/multicast_group_grpc_web_pb.d.ts b/api/grpc-web/api/multicast_group_grpc_web_pb.d.ts deleted file mode 100644 index d3f6a638..00000000 --- a/api/grpc-web/api/multicast_group_grpc_web_pb.d.ts +++ /dev/null @@ -1,164 +0,0 @@ -import * as grpcWeb from 'grpc-web'; - -import * as api_multicast_group_pb from '../api/multicast_group_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; - - -export class MulticastGroupServiceClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - create( - request: api_multicast_group_pb.CreateMulticastGroupRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_multicast_group_pb.CreateMulticastGroupResponse) => void - ): grpcWeb.ClientReadableStream; - - get( - request: api_multicast_group_pb.GetMulticastGroupRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_multicast_group_pb.GetMulticastGroupResponse) => void - ): grpcWeb.ClientReadableStream; - - update( - request: api_multicast_group_pb.UpdateMulticastGroupRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - delete( - request: api_multicast_group_pb.DeleteMulticastGroupRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - list( - request: api_multicast_group_pb.ListMulticastGroupsRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_multicast_group_pb.ListMulticastGroupsResponse) => void - ): grpcWeb.ClientReadableStream; - - addDevice( - request: api_multicast_group_pb.AddDeviceToMulticastGroupRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - removeDevice( - request: api_multicast_group_pb.RemoveDeviceFromMulticastGroupRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - addGateway( - request: api_multicast_group_pb.AddGatewayToMulticastGroupRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - removeGateway( - request: api_multicast_group_pb.RemoveGatewayFromMulticastGroupRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - enqueue( - request: api_multicast_group_pb.EnqueueMulticastGroupQueueItemRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_multicast_group_pb.EnqueueMulticastGroupQueueItemResponse) => void - ): grpcWeb.ClientReadableStream; - - flushQueue( - request: api_multicast_group_pb.FlushMulticastGroupQueueRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - listQueue( - request: api_multicast_group_pb.ListMulticastGroupQueueRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_multicast_group_pb.ListMulticastGroupQueueResponse) => void - ): grpcWeb.ClientReadableStream; - -} - -export class MulticastGroupServicePromiseClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - create( - request: api_multicast_group_pb.CreateMulticastGroupRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - get( - request: api_multicast_group_pb.GetMulticastGroupRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - update( - request: api_multicast_group_pb.UpdateMulticastGroupRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - delete( - request: api_multicast_group_pb.DeleteMulticastGroupRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - list( - request: api_multicast_group_pb.ListMulticastGroupsRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - addDevice( - request: api_multicast_group_pb.AddDeviceToMulticastGroupRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - removeDevice( - request: api_multicast_group_pb.RemoveDeviceFromMulticastGroupRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - addGateway( - request: api_multicast_group_pb.AddGatewayToMulticastGroupRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - removeGateway( - request: api_multicast_group_pb.RemoveGatewayFromMulticastGroupRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - enqueue( - request: api_multicast_group_pb.EnqueueMulticastGroupQueueItemRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - flushQueue( - request: api_multicast_group_pb.FlushMulticastGroupQueueRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - listQueue( - request: api_multicast_group_pb.ListMulticastGroupQueueRequest, - metadata?: grpcWeb.Metadata - ): Promise; - -} - diff --git a/api/grpc-web/api/multicast_group_grpc_web_pb.js b/api/grpc-web/api/multicast_group_grpc_web_pb.js deleted file mode 100644 index 9613270f..00000000 --- a/api/grpc-web/api/multicast_group_grpc_web_pb.js +++ /dev/null @@ -1,818 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for api - * @enhanceable - * @public - */ - -// Code generated by protoc-gen-grpc-web. DO NOT EDIT. -// versions: -// protoc-gen-grpc-web v1.4.2 -// protoc v3.12.4 -// source: api/multicast_group.proto - - -/* eslint-disable */ -// @ts-nocheck - - - -const grpc = {}; -grpc.web = require('grpc-web'); - - -var google_api_annotations_pb = require('../google/api/annotations_pb.js') - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js') - -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js') - -var common_common_pb = require('../common/common_pb.js') -const proto = {}; -proto.api = require('./multicast_group_pb.js'); - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.MulticastGroupServiceClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.MulticastGroupServicePromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateMulticastGroupRequest, - * !proto.api.CreateMulticastGroupResponse>} - */ -const methodDescriptor_MulticastGroupService_Create = new grpc.web.MethodDescriptor( - '/api.MulticastGroupService/Create', - grpc.web.MethodType.UNARY, - proto.api.CreateMulticastGroupRequest, - proto.api.CreateMulticastGroupResponse, - /** - * @param {!proto.api.CreateMulticastGroupRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.CreateMulticastGroupResponse.deserializeBinary -); - - -/** - * @param {!proto.api.CreateMulticastGroupRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.CreateMulticastGroupResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.MulticastGroupServiceClient.prototype.create = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.MulticastGroupService/Create', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_Create, - callback); -}; - - -/** - * @param {!proto.api.CreateMulticastGroupRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.MulticastGroupServicePromiseClient.prototype.create = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.MulticastGroupService/Create', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_Create); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetMulticastGroupRequest, - * !proto.api.GetMulticastGroupResponse>} - */ -const methodDescriptor_MulticastGroupService_Get = new grpc.web.MethodDescriptor( - '/api.MulticastGroupService/Get', - grpc.web.MethodType.UNARY, - proto.api.GetMulticastGroupRequest, - proto.api.GetMulticastGroupResponse, - /** - * @param {!proto.api.GetMulticastGroupRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetMulticastGroupResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetMulticastGroupRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetMulticastGroupResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.MulticastGroupServiceClient.prototype.get = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.MulticastGroupService/Get', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_Get, - callback); -}; - - -/** - * @param {!proto.api.GetMulticastGroupRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.MulticastGroupServicePromiseClient.prototype.get = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.MulticastGroupService/Get', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_Get); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateMulticastGroupRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_MulticastGroupService_Update = new grpc.web.MethodDescriptor( - '/api.MulticastGroupService/Update', - grpc.web.MethodType.UNARY, - proto.api.UpdateMulticastGroupRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateMulticastGroupRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateMulticastGroupRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.MulticastGroupServiceClient.prototype.update = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.MulticastGroupService/Update', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_Update, - callback); -}; - - -/** - * @param {!proto.api.UpdateMulticastGroupRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.MulticastGroupServicePromiseClient.prototype.update = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.MulticastGroupService/Update', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_Update); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteMulticastGroupRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_MulticastGroupService_Delete = new grpc.web.MethodDescriptor( - '/api.MulticastGroupService/Delete', - grpc.web.MethodType.UNARY, - proto.api.DeleteMulticastGroupRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteMulticastGroupRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteMulticastGroupRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.MulticastGroupServiceClient.prototype.delete = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.MulticastGroupService/Delete', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_Delete, - callback); -}; - - -/** - * @param {!proto.api.DeleteMulticastGroupRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.MulticastGroupServicePromiseClient.prototype.delete = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.MulticastGroupService/Delete', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_Delete); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.ListMulticastGroupsRequest, - * !proto.api.ListMulticastGroupsResponse>} - */ -const methodDescriptor_MulticastGroupService_List = new grpc.web.MethodDescriptor( - '/api.MulticastGroupService/List', - grpc.web.MethodType.UNARY, - proto.api.ListMulticastGroupsRequest, - proto.api.ListMulticastGroupsResponse, - /** - * @param {!proto.api.ListMulticastGroupsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.ListMulticastGroupsResponse.deserializeBinary -); - - -/** - * @param {!proto.api.ListMulticastGroupsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.ListMulticastGroupsResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.MulticastGroupServiceClient.prototype.list = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.MulticastGroupService/List', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_List, - callback); -}; - - -/** - * @param {!proto.api.ListMulticastGroupsRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.MulticastGroupServicePromiseClient.prototype.list = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.MulticastGroupService/List', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_List); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.AddDeviceToMulticastGroupRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_MulticastGroupService_AddDevice = new grpc.web.MethodDescriptor( - '/api.MulticastGroupService/AddDevice', - grpc.web.MethodType.UNARY, - proto.api.AddDeviceToMulticastGroupRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.AddDeviceToMulticastGroupRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.AddDeviceToMulticastGroupRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.MulticastGroupServiceClient.prototype.addDevice = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.MulticastGroupService/AddDevice', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_AddDevice, - callback); -}; - - -/** - * @param {!proto.api.AddDeviceToMulticastGroupRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.MulticastGroupServicePromiseClient.prototype.addDevice = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.MulticastGroupService/AddDevice', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_AddDevice); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.RemoveDeviceFromMulticastGroupRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_MulticastGroupService_RemoveDevice = new grpc.web.MethodDescriptor( - '/api.MulticastGroupService/RemoveDevice', - grpc.web.MethodType.UNARY, - proto.api.RemoveDeviceFromMulticastGroupRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.RemoveDeviceFromMulticastGroupRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.RemoveDeviceFromMulticastGroupRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.MulticastGroupServiceClient.prototype.removeDevice = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.MulticastGroupService/RemoveDevice', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_RemoveDevice, - callback); -}; - - -/** - * @param {!proto.api.RemoveDeviceFromMulticastGroupRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.MulticastGroupServicePromiseClient.prototype.removeDevice = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.MulticastGroupService/RemoveDevice', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_RemoveDevice); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.AddGatewayToMulticastGroupRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_MulticastGroupService_AddGateway = new grpc.web.MethodDescriptor( - '/api.MulticastGroupService/AddGateway', - grpc.web.MethodType.UNARY, - proto.api.AddGatewayToMulticastGroupRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.AddGatewayToMulticastGroupRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.AddGatewayToMulticastGroupRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.MulticastGroupServiceClient.prototype.addGateway = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.MulticastGroupService/AddGateway', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_AddGateway, - callback); -}; - - -/** - * @param {!proto.api.AddGatewayToMulticastGroupRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.MulticastGroupServicePromiseClient.prototype.addGateway = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.MulticastGroupService/AddGateway', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_AddGateway); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.RemoveGatewayFromMulticastGroupRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_MulticastGroupService_RemoveGateway = new grpc.web.MethodDescriptor( - '/api.MulticastGroupService/RemoveGateway', - grpc.web.MethodType.UNARY, - proto.api.RemoveGatewayFromMulticastGroupRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.RemoveGatewayFromMulticastGroupRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.RemoveGatewayFromMulticastGroupRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.MulticastGroupServiceClient.prototype.removeGateway = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.MulticastGroupService/RemoveGateway', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_RemoveGateway, - callback); -}; - - -/** - * @param {!proto.api.RemoveGatewayFromMulticastGroupRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.MulticastGroupServicePromiseClient.prototype.removeGateway = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.MulticastGroupService/RemoveGateway', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_RemoveGateway); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.EnqueueMulticastGroupQueueItemRequest, - * !proto.api.EnqueueMulticastGroupQueueItemResponse>} - */ -const methodDescriptor_MulticastGroupService_Enqueue = new grpc.web.MethodDescriptor( - '/api.MulticastGroupService/Enqueue', - grpc.web.MethodType.UNARY, - proto.api.EnqueueMulticastGroupQueueItemRequest, - proto.api.EnqueueMulticastGroupQueueItemResponse, - /** - * @param {!proto.api.EnqueueMulticastGroupQueueItemRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.EnqueueMulticastGroupQueueItemResponse.deserializeBinary -); - - -/** - * @param {!proto.api.EnqueueMulticastGroupQueueItemRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.EnqueueMulticastGroupQueueItemResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.MulticastGroupServiceClient.prototype.enqueue = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.MulticastGroupService/Enqueue', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_Enqueue, - callback); -}; - - -/** - * @param {!proto.api.EnqueueMulticastGroupQueueItemRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.MulticastGroupServicePromiseClient.prototype.enqueue = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.MulticastGroupService/Enqueue', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_Enqueue); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.FlushMulticastGroupQueueRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_MulticastGroupService_FlushQueue = new grpc.web.MethodDescriptor( - '/api.MulticastGroupService/FlushQueue', - grpc.web.MethodType.UNARY, - proto.api.FlushMulticastGroupQueueRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.FlushMulticastGroupQueueRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.FlushMulticastGroupQueueRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.MulticastGroupServiceClient.prototype.flushQueue = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.MulticastGroupService/FlushQueue', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_FlushQueue, - callback); -}; - - -/** - * @param {!proto.api.FlushMulticastGroupQueueRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.MulticastGroupServicePromiseClient.prototype.flushQueue = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.MulticastGroupService/FlushQueue', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_FlushQueue); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.ListMulticastGroupQueueRequest, - * !proto.api.ListMulticastGroupQueueResponse>} - */ -const methodDescriptor_MulticastGroupService_ListQueue = new grpc.web.MethodDescriptor( - '/api.MulticastGroupService/ListQueue', - grpc.web.MethodType.UNARY, - proto.api.ListMulticastGroupQueueRequest, - proto.api.ListMulticastGroupQueueResponse, - /** - * @param {!proto.api.ListMulticastGroupQueueRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.ListMulticastGroupQueueResponse.deserializeBinary -); - - -/** - * @param {!proto.api.ListMulticastGroupQueueRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.ListMulticastGroupQueueResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.MulticastGroupServiceClient.prototype.listQueue = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.MulticastGroupService/ListQueue', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_ListQueue, - callback); -}; - - -/** - * @param {!proto.api.ListMulticastGroupQueueRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.MulticastGroupServicePromiseClient.prototype.listQueue = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.MulticastGroupService/ListQueue', - request, - metadata || {}, - methodDescriptor_MulticastGroupService_ListQueue); -}; - - -module.exports = proto.api; - diff --git a/api/grpc-web/api/multicast_group_pb.d.ts b/api/grpc-web/api/multicast_group_pb.d.ts deleted file mode 100644 index f8415298..00000000 --- a/api/grpc-web/api/multicast_group_pb.d.ts +++ /dev/null @@ -1,522 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_api_annotations_pb from '../google/api/annotations_pb'; -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; -import * as common_common_pb from '../common/common_pb'; - - -export class MulticastGroup extends jspb.Message { - getId(): string; - setId(value: string): MulticastGroup; - - getName(): string; - setName(value: string): MulticastGroup; - - getApplicationId(): string; - setApplicationId(value: string): MulticastGroup; - - getRegion(): common_common_pb.Region; - setRegion(value: common_common_pb.Region): MulticastGroup; - - getMcAddr(): string; - setMcAddr(value: string): MulticastGroup; - - getMcNwkSKey(): string; - setMcNwkSKey(value: string): MulticastGroup; - - getMcAppSKey(): string; - setMcAppSKey(value: string): MulticastGroup; - - getFCnt(): number; - setFCnt(value: number): MulticastGroup; - - getGroupType(): MulticastGroupType; - setGroupType(value: MulticastGroupType): MulticastGroup; - - getDr(): number; - setDr(value: number): MulticastGroup; - - getFrequency(): number; - setFrequency(value: number): MulticastGroup; - - getClassBPingSlotPeriod(): number; - setClassBPingSlotPeriod(value: number): MulticastGroup; - - getClassBPingSlotNbK(): number; - setClassBPingSlotNbK(value: number): MulticastGroup; - - getClassCSchedulingType(): MulticastGroupSchedulingType; - setClassCSchedulingType(value: MulticastGroupSchedulingType): MulticastGroup; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MulticastGroup.AsObject; - static toObject(includeInstance: boolean, msg: MulticastGroup): MulticastGroup.AsObject; - static serializeBinaryToWriter(message: MulticastGroup, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MulticastGroup; - static deserializeBinaryFromReader(message: MulticastGroup, reader: jspb.BinaryReader): MulticastGroup; -} - -export namespace MulticastGroup { - export type AsObject = { - id: string, - name: string, - applicationId: string, - region: common_common_pb.Region, - mcAddr: string, - mcNwkSKey: string, - mcAppSKey: string, - fCnt: number, - groupType: MulticastGroupType, - dr: number, - frequency: number, - classBPingSlotPeriod: number, - classBPingSlotNbK: number, - classCSchedulingType: MulticastGroupSchedulingType, - } -} - -export class MulticastGroupListItem extends jspb.Message { - getId(): string; - setId(value: string): MulticastGroupListItem; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): MulticastGroupListItem; - hasCreatedAt(): boolean; - clearCreatedAt(): MulticastGroupListItem; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): MulticastGroupListItem; - hasUpdatedAt(): boolean; - clearUpdatedAt(): MulticastGroupListItem; - - getName(): string; - setName(value: string): MulticastGroupListItem; - - getRegion(): common_common_pb.Region; - setRegion(value: common_common_pb.Region): MulticastGroupListItem; - - getGroupType(): MulticastGroupType; - setGroupType(value: MulticastGroupType): MulticastGroupListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MulticastGroupListItem.AsObject; - static toObject(includeInstance: boolean, msg: MulticastGroupListItem): MulticastGroupListItem.AsObject; - static serializeBinaryToWriter(message: MulticastGroupListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MulticastGroupListItem; - static deserializeBinaryFromReader(message: MulticastGroupListItem, reader: jspb.BinaryReader): MulticastGroupListItem; -} - -export namespace MulticastGroupListItem { - export type AsObject = { - id: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - name: string, - region: common_common_pb.Region, - groupType: MulticastGroupType, - } -} - -export class CreateMulticastGroupRequest extends jspb.Message { - getMulticastGroup(): MulticastGroup | undefined; - setMulticastGroup(value?: MulticastGroup): CreateMulticastGroupRequest; - hasMulticastGroup(): boolean; - clearMulticastGroup(): CreateMulticastGroupRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateMulticastGroupRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateMulticastGroupRequest): CreateMulticastGroupRequest.AsObject; - static serializeBinaryToWriter(message: CreateMulticastGroupRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateMulticastGroupRequest; - static deserializeBinaryFromReader(message: CreateMulticastGroupRequest, reader: jspb.BinaryReader): CreateMulticastGroupRequest; -} - -export namespace CreateMulticastGroupRequest { - export type AsObject = { - multicastGroup?: MulticastGroup.AsObject, - } -} - -export class CreateMulticastGroupResponse extends jspb.Message { - getId(): string; - setId(value: string): CreateMulticastGroupResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateMulticastGroupResponse.AsObject; - static toObject(includeInstance: boolean, msg: CreateMulticastGroupResponse): CreateMulticastGroupResponse.AsObject; - static serializeBinaryToWriter(message: CreateMulticastGroupResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateMulticastGroupResponse; - static deserializeBinaryFromReader(message: CreateMulticastGroupResponse, reader: jspb.BinaryReader): CreateMulticastGroupResponse; -} - -export namespace CreateMulticastGroupResponse { - export type AsObject = { - id: string, - } -} - -export class GetMulticastGroupRequest extends jspb.Message { - getId(): string; - setId(value: string): GetMulticastGroupRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetMulticastGroupRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetMulticastGroupRequest): GetMulticastGroupRequest.AsObject; - static serializeBinaryToWriter(message: GetMulticastGroupRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetMulticastGroupRequest; - static deserializeBinaryFromReader(message: GetMulticastGroupRequest, reader: jspb.BinaryReader): GetMulticastGroupRequest; -} - -export namespace GetMulticastGroupRequest { - export type AsObject = { - id: string, - } -} - -export class GetMulticastGroupResponse extends jspb.Message { - getMulticastGroup(): MulticastGroup | undefined; - setMulticastGroup(value?: MulticastGroup): GetMulticastGroupResponse; - hasMulticastGroup(): boolean; - clearMulticastGroup(): GetMulticastGroupResponse; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetMulticastGroupResponse; - hasCreatedAt(): boolean; - clearCreatedAt(): GetMulticastGroupResponse; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetMulticastGroupResponse; - hasUpdatedAt(): boolean; - clearUpdatedAt(): GetMulticastGroupResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetMulticastGroupResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetMulticastGroupResponse): GetMulticastGroupResponse.AsObject; - static serializeBinaryToWriter(message: GetMulticastGroupResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetMulticastGroupResponse; - static deserializeBinaryFromReader(message: GetMulticastGroupResponse, reader: jspb.BinaryReader): GetMulticastGroupResponse; -} - -export namespace GetMulticastGroupResponse { - export type AsObject = { - multicastGroup?: MulticastGroup.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateMulticastGroupRequest extends jspb.Message { - getMulticastGroup(): MulticastGroup | undefined; - setMulticastGroup(value?: MulticastGroup): UpdateMulticastGroupRequest; - hasMulticastGroup(): boolean; - clearMulticastGroup(): UpdateMulticastGroupRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateMulticastGroupRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateMulticastGroupRequest): UpdateMulticastGroupRequest.AsObject; - static serializeBinaryToWriter(message: UpdateMulticastGroupRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateMulticastGroupRequest; - static deserializeBinaryFromReader(message: UpdateMulticastGroupRequest, reader: jspb.BinaryReader): UpdateMulticastGroupRequest; -} - -export namespace UpdateMulticastGroupRequest { - export type AsObject = { - multicastGroup?: MulticastGroup.AsObject, - } -} - -export class DeleteMulticastGroupRequest extends jspb.Message { - getId(): string; - setId(value: string): DeleteMulticastGroupRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteMulticastGroupRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteMulticastGroupRequest): DeleteMulticastGroupRequest.AsObject; - static serializeBinaryToWriter(message: DeleteMulticastGroupRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteMulticastGroupRequest; - static deserializeBinaryFromReader(message: DeleteMulticastGroupRequest, reader: jspb.BinaryReader): DeleteMulticastGroupRequest; -} - -export namespace DeleteMulticastGroupRequest { - export type AsObject = { - id: string, - } -} - -export class ListMulticastGroupsRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): ListMulticastGroupsRequest; - - getOffset(): number; - setOffset(value: number): ListMulticastGroupsRequest; - - getSearch(): string; - setSearch(value: string): ListMulticastGroupsRequest; - - getApplicationId(): string; - setApplicationId(value: string): ListMulticastGroupsRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListMulticastGroupsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListMulticastGroupsRequest): ListMulticastGroupsRequest.AsObject; - static serializeBinaryToWriter(message: ListMulticastGroupsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListMulticastGroupsRequest; - static deserializeBinaryFromReader(message: ListMulticastGroupsRequest, reader: jspb.BinaryReader): ListMulticastGroupsRequest; -} - -export namespace ListMulticastGroupsRequest { - export type AsObject = { - limit: number, - offset: number, - search: string, - applicationId: string, - } -} - -export class ListMulticastGroupsResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): ListMulticastGroupsResponse; - - getResultList(): Array; - setResultList(value: Array): ListMulticastGroupsResponse; - clearResultList(): ListMulticastGroupsResponse; - addResult(value?: MulticastGroupListItem, index?: number): MulticastGroupListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListMulticastGroupsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListMulticastGroupsResponse): ListMulticastGroupsResponse.AsObject; - static serializeBinaryToWriter(message: ListMulticastGroupsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListMulticastGroupsResponse; - static deserializeBinaryFromReader(message: ListMulticastGroupsResponse, reader: jspb.BinaryReader): ListMulticastGroupsResponse; -} - -export namespace ListMulticastGroupsResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class AddDeviceToMulticastGroupRequest extends jspb.Message { - getMulticastGroupId(): string; - setMulticastGroupId(value: string): AddDeviceToMulticastGroupRequest; - - getDevEui(): string; - setDevEui(value: string): AddDeviceToMulticastGroupRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AddDeviceToMulticastGroupRequest.AsObject; - static toObject(includeInstance: boolean, msg: AddDeviceToMulticastGroupRequest): AddDeviceToMulticastGroupRequest.AsObject; - static serializeBinaryToWriter(message: AddDeviceToMulticastGroupRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AddDeviceToMulticastGroupRequest; - static deserializeBinaryFromReader(message: AddDeviceToMulticastGroupRequest, reader: jspb.BinaryReader): AddDeviceToMulticastGroupRequest; -} - -export namespace AddDeviceToMulticastGroupRequest { - export type AsObject = { - multicastGroupId: string, - devEui: string, - } -} - -export class RemoveDeviceFromMulticastGroupRequest extends jspb.Message { - getMulticastGroupId(): string; - setMulticastGroupId(value: string): RemoveDeviceFromMulticastGroupRequest; - - getDevEui(): string; - setDevEui(value: string): RemoveDeviceFromMulticastGroupRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveDeviceFromMulticastGroupRequest.AsObject; - static toObject(includeInstance: boolean, msg: RemoveDeviceFromMulticastGroupRequest): RemoveDeviceFromMulticastGroupRequest.AsObject; - static serializeBinaryToWriter(message: RemoveDeviceFromMulticastGroupRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveDeviceFromMulticastGroupRequest; - static deserializeBinaryFromReader(message: RemoveDeviceFromMulticastGroupRequest, reader: jspb.BinaryReader): RemoveDeviceFromMulticastGroupRequest; -} - -export namespace RemoveDeviceFromMulticastGroupRequest { - export type AsObject = { - multicastGroupId: string, - devEui: string, - } -} - -export class AddGatewayToMulticastGroupRequest extends jspb.Message { - getMulticastGroupId(): string; - setMulticastGroupId(value: string): AddGatewayToMulticastGroupRequest; - - getGatewayId(): string; - setGatewayId(value: string): AddGatewayToMulticastGroupRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AddGatewayToMulticastGroupRequest.AsObject; - static toObject(includeInstance: boolean, msg: AddGatewayToMulticastGroupRequest): AddGatewayToMulticastGroupRequest.AsObject; - static serializeBinaryToWriter(message: AddGatewayToMulticastGroupRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AddGatewayToMulticastGroupRequest; - static deserializeBinaryFromReader(message: AddGatewayToMulticastGroupRequest, reader: jspb.BinaryReader): AddGatewayToMulticastGroupRequest; -} - -export namespace AddGatewayToMulticastGroupRequest { - export type AsObject = { - multicastGroupId: string, - gatewayId: string, - } -} - -export class RemoveGatewayFromMulticastGroupRequest extends jspb.Message { - getMulticastGroupId(): string; - setMulticastGroupId(value: string): RemoveGatewayFromMulticastGroupRequest; - - getGatewayId(): string; - setGatewayId(value: string): RemoveGatewayFromMulticastGroupRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveGatewayFromMulticastGroupRequest.AsObject; - static toObject(includeInstance: boolean, msg: RemoveGatewayFromMulticastGroupRequest): RemoveGatewayFromMulticastGroupRequest.AsObject; - static serializeBinaryToWriter(message: RemoveGatewayFromMulticastGroupRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveGatewayFromMulticastGroupRequest; - static deserializeBinaryFromReader(message: RemoveGatewayFromMulticastGroupRequest, reader: jspb.BinaryReader): RemoveGatewayFromMulticastGroupRequest; -} - -export namespace RemoveGatewayFromMulticastGroupRequest { - export type AsObject = { - multicastGroupId: string, - gatewayId: string, - } -} - -export class MulticastGroupQueueItem extends jspb.Message { - getMulticastGroupId(): string; - setMulticastGroupId(value: string): MulticastGroupQueueItem; - - getFCnt(): number; - setFCnt(value: number): MulticastGroupQueueItem; - - getFPort(): number; - setFPort(value: number): MulticastGroupQueueItem; - - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): MulticastGroupQueueItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MulticastGroupQueueItem.AsObject; - static toObject(includeInstance: boolean, msg: MulticastGroupQueueItem): MulticastGroupQueueItem.AsObject; - static serializeBinaryToWriter(message: MulticastGroupQueueItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MulticastGroupQueueItem; - static deserializeBinaryFromReader(message: MulticastGroupQueueItem, reader: jspb.BinaryReader): MulticastGroupQueueItem; -} - -export namespace MulticastGroupQueueItem { - export type AsObject = { - multicastGroupId: string, - fCnt: number, - fPort: number, - data: Uint8Array | string, - } -} - -export class EnqueueMulticastGroupQueueItemRequest extends jspb.Message { - getQueueItem(): MulticastGroupQueueItem | undefined; - setQueueItem(value?: MulticastGroupQueueItem): EnqueueMulticastGroupQueueItemRequest; - hasQueueItem(): boolean; - clearQueueItem(): EnqueueMulticastGroupQueueItemRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EnqueueMulticastGroupQueueItemRequest.AsObject; - static toObject(includeInstance: boolean, msg: EnqueueMulticastGroupQueueItemRequest): EnqueueMulticastGroupQueueItemRequest.AsObject; - static serializeBinaryToWriter(message: EnqueueMulticastGroupQueueItemRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EnqueueMulticastGroupQueueItemRequest; - static deserializeBinaryFromReader(message: EnqueueMulticastGroupQueueItemRequest, reader: jspb.BinaryReader): EnqueueMulticastGroupQueueItemRequest; -} - -export namespace EnqueueMulticastGroupQueueItemRequest { - export type AsObject = { - queueItem?: MulticastGroupQueueItem.AsObject, - } -} - -export class EnqueueMulticastGroupQueueItemResponse extends jspb.Message { - getFCnt(): number; - setFCnt(value: number): EnqueueMulticastGroupQueueItemResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EnqueueMulticastGroupQueueItemResponse.AsObject; - static toObject(includeInstance: boolean, msg: EnqueueMulticastGroupQueueItemResponse): EnqueueMulticastGroupQueueItemResponse.AsObject; - static serializeBinaryToWriter(message: EnqueueMulticastGroupQueueItemResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EnqueueMulticastGroupQueueItemResponse; - static deserializeBinaryFromReader(message: EnqueueMulticastGroupQueueItemResponse, reader: jspb.BinaryReader): EnqueueMulticastGroupQueueItemResponse; -} - -export namespace EnqueueMulticastGroupQueueItemResponse { - export type AsObject = { - fCnt: number, - } -} - -export class FlushMulticastGroupQueueRequest extends jspb.Message { - getMulticastGroupId(): string; - setMulticastGroupId(value: string): FlushMulticastGroupQueueRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FlushMulticastGroupQueueRequest.AsObject; - static toObject(includeInstance: boolean, msg: FlushMulticastGroupQueueRequest): FlushMulticastGroupQueueRequest.AsObject; - static serializeBinaryToWriter(message: FlushMulticastGroupQueueRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FlushMulticastGroupQueueRequest; - static deserializeBinaryFromReader(message: FlushMulticastGroupQueueRequest, reader: jspb.BinaryReader): FlushMulticastGroupQueueRequest; -} - -export namespace FlushMulticastGroupQueueRequest { - export type AsObject = { - multicastGroupId: string, - } -} - -export class ListMulticastGroupQueueRequest extends jspb.Message { - getMulticastGroupId(): string; - setMulticastGroupId(value: string): ListMulticastGroupQueueRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListMulticastGroupQueueRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListMulticastGroupQueueRequest): ListMulticastGroupQueueRequest.AsObject; - static serializeBinaryToWriter(message: ListMulticastGroupQueueRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListMulticastGroupQueueRequest; - static deserializeBinaryFromReader(message: ListMulticastGroupQueueRequest, reader: jspb.BinaryReader): ListMulticastGroupQueueRequest; -} - -export namespace ListMulticastGroupQueueRequest { - export type AsObject = { - multicastGroupId: string, - } -} - -export class ListMulticastGroupQueueResponse extends jspb.Message { - getItemsList(): Array; - setItemsList(value: Array): ListMulticastGroupQueueResponse; - clearItemsList(): ListMulticastGroupQueueResponse; - addItems(value?: MulticastGroupQueueItem, index?: number): MulticastGroupQueueItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListMulticastGroupQueueResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListMulticastGroupQueueResponse): ListMulticastGroupQueueResponse.AsObject; - static serializeBinaryToWriter(message: ListMulticastGroupQueueResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListMulticastGroupQueueResponse; - static deserializeBinaryFromReader(message: ListMulticastGroupQueueResponse, reader: jspb.BinaryReader): ListMulticastGroupQueueResponse; -} - -export namespace ListMulticastGroupQueueResponse { - export type AsObject = { - itemsList: Array, - } -} - -export enum MulticastGroupType { - CLASS_C = 0, - CLASS_B = 1, -} -export enum MulticastGroupSchedulingType { - DELAY = 0, - GPS_TIME = 1, -} diff --git a/api/grpc-web/api/multicast_group_pb.js b/api/grpc-web/api/multicast_group_pb.js deleted file mode 100644 index 8a34b300..00000000 --- a/api/grpc-web/api/multicast_group_pb.js +++ /dev/null @@ -1,4263 +0,0 @@ -// source: api/multicast_group.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -goog.exportSymbol('proto.api.AddDeviceToMulticastGroupRequest', null, global); -goog.exportSymbol('proto.api.AddGatewayToMulticastGroupRequest', null, global); -goog.exportSymbol('proto.api.CreateMulticastGroupRequest', null, global); -goog.exportSymbol('proto.api.CreateMulticastGroupResponse', null, global); -goog.exportSymbol('proto.api.DeleteMulticastGroupRequest', null, global); -goog.exportSymbol('proto.api.EnqueueMulticastGroupQueueItemRequest', null, global); -goog.exportSymbol('proto.api.EnqueueMulticastGroupQueueItemResponse', null, global); -goog.exportSymbol('proto.api.FlushMulticastGroupQueueRequest', null, global); -goog.exportSymbol('proto.api.GetMulticastGroupRequest', null, global); -goog.exportSymbol('proto.api.GetMulticastGroupResponse', null, global); -goog.exportSymbol('proto.api.ListMulticastGroupQueueRequest', null, global); -goog.exportSymbol('proto.api.ListMulticastGroupQueueResponse', null, global); -goog.exportSymbol('proto.api.ListMulticastGroupsRequest', null, global); -goog.exportSymbol('proto.api.ListMulticastGroupsResponse', null, global); -goog.exportSymbol('proto.api.MulticastGroup', null, global); -goog.exportSymbol('proto.api.MulticastGroupListItem', null, global); -goog.exportSymbol('proto.api.MulticastGroupQueueItem', null, global); -goog.exportSymbol('proto.api.MulticastGroupSchedulingType', null, global); -goog.exportSymbol('proto.api.MulticastGroupType', null, global); -goog.exportSymbol('proto.api.RemoveDeviceFromMulticastGroupRequest', null, global); -goog.exportSymbol('proto.api.RemoveGatewayFromMulticastGroupRequest', null, global); -goog.exportSymbol('proto.api.UpdateMulticastGroupRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.MulticastGroup = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.MulticastGroup, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.MulticastGroup.displayName = 'proto.api.MulticastGroup'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.MulticastGroupListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.MulticastGroupListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.MulticastGroupListItem.displayName = 'proto.api.MulticastGroupListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateMulticastGroupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateMulticastGroupRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateMulticastGroupRequest.displayName = 'proto.api.CreateMulticastGroupRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateMulticastGroupResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateMulticastGroupResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateMulticastGroupResponse.displayName = 'proto.api.CreateMulticastGroupResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetMulticastGroupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetMulticastGroupRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetMulticastGroupRequest.displayName = 'proto.api.GetMulticastGroupRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetMulticastGroupResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetMulticastGroupResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetMulticastGroupResponse.displayName = 'proto.api.GetMulticastGroupResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateMulticastGroupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateMulticastGroupRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateMulticastGroupRequest.displayName = 'proto.api.UpdateMulticastGroupRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteMulticastGroupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteMulticastGroupRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteMulticastGroupRequest.displayName = 'proto.api.DeleteMulticastGroupRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListMulticastGroupsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListMulticastGroupsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListMulticastGroupsRequest.displayName = 'proto.api.ListMulticastGroupsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListMulticastGroupsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListMulticastGroupsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListMulticastGroupsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListMulticastGroupsResponse.displayName = 'proto.api.ListMulticastGroupsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.AddDeviceToMulticastGroupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.AddDeviceToMulticastGroupRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.AddDeviceToMulticastGroupRequest.displayName = 'proto.api.AddDeviceToMulticastGroupRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.RemoveDeviceFromMulticastGroupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.RemoveDeviceFromMulticastGroupRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.RemoveDeviceFromMulticastGroupRequest.displayName = 'proto.api.RemoveDeviceFromMulticastGroupRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.AddGatewayToMulticastGroupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.AddGatewayToMulticastGroupRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.AddGatewayToMulticastGroupRequest.displayName = 'proto.api.AddGatewayToMulticastGroupRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.RemoveGatewayFromMulticastGroupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.RemoveGatewayFromMulticastGroupRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.RemoveGatewayFromMulticastGroupRequest.displayName = 'proto.api.RemoveGatewayFromMulticastGroupRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.MulticastGroupQueueItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.MulticastGroupQueueItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.MulticastGroupQueueItem.displayName = 'proto.api.MulticastGroupQueueItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.EnqueueMulticastGroupQueueItemRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.EnqueueMulticastGroupQueueItemRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.EnqueueMulticastGroupQueueItemRequest.displayName = 'proto.api.EnqueueMulticastGroupQueueItemRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.EnqueueMulticastGroupQueueItemResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.EnqueueMulticastGroupQueueItemResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.EnqueueMulticastGroupQueueItemResponse.displayName = 'proto.api.EnqueueMulticastGroupQueueItemResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.FlushMulticastGroupQueueRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.FlushMulticastGroupQueueRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.FlushMulticastGroupQueueRequest.displayName = 'proto.api.FlushMulticastGroupQueueRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListMulticastGroupQueueRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListMulticastGroupQueueRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListMulticastGroupQueueRequest.displayName = 'proto.api.ListMulticastGroupQueueRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListMulticastGroupQueueResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListMulticastGroupQueueResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListMulticastGroupQueueResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListMulticastGroupQueueResponse.displayName = 'proto.api.ListMulticastGroupQueueResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.MulticastGroup.prototype.toObject = function(opt_includeInstance) { - return proto.api.MulticastGroup.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.MulticastGroup} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.MulticastGroup.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - applicationId: jspb.Message.getFieldWithDefault(msg, 3, ""), - region: jspb.Message.getFieldWithDefault(msg, 4, 0), - mcAddr: jspb.Message.getFieldWithDefault(msg, 5, ""), - mcNwkSKey: jspb.Message.getFieldWithDefault(msg, 6, ""), - mcAppSKey: jspb.Message.getFieldWithDefault(msg, 7, ""), - fCnt: jspb.Message.getFieldWithDefault(msg, 8, 0), - groupType: jspb.Message.getFieldWithDefault(msg, 9, 0), - dr: jspb.Message.getFieldWithDefault(msg, 10, 0), - frequency: jspb.Message.getFieldWithDefault(msg, 11, 0), - classBPingSlotPeriod: jspb.Message.getFieldWithDefault(msg, 12, 0), - classBPingSlotNbK: jspb.Message.getFieldWithDefault(msg, 14, 0), - classCSchedulingType: jspb.Message.getFieldWithDefault(msg, 13, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.MulticastGroup} - */ -proto.api.MulticastGroup.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.MulticastGroup; - return proto.api.MulticastGroup.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.MulticastGroup} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.MulticastGroup} - */ -proto.api.MulticastGroup.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 4: - var value = /** @type {!proto.common.Region} */ (reader.readEnum()); - msg.setRegion(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setMcAddr(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setMcNwkSKey(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setMcAppSKey(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCnt(value); - break; - case 9: - var value = /** @type {!proto.api.MulticastGroupType} */ (reader.readEnum()); - msg.setGroupType(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDr(value); - break; - case 11: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFrequency(value); - break; - case 12: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotPeriod(value); - break; - case 14: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotNbK(value); - break; - case 13: - var value = /** @type {!proto.api.MulticastGroupSchedulingType} */ (reader.readEnum()); - msg.setClassCSchedulingType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.MulticastGroup.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.MulticastGroup.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.MulticastGroup} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.MulticastGroup.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getRegion(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getMcAddr(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getMcNwkSKey(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getMcAppSKey(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getFCnt(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getGroupType(); - if (f !== 0.0) { - writer.writeEnum( - 9, - f - ); - } - f = message.getDr(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getFrequency(); - if (f !== 0) { - writer.writeUint32( - 11, - f - ); - } - f = message.getClassBPingSlotPeriod(); - if (f !== 0) { - writer.writeUint32( - 12, - f - ); - } - f = message.getClassBPingSlotNbK(); - if (f !== 0) { - writer.writeUint32( - 14, - f - ); - } - f = message.getClassCSchedulingType(); - if (f !== 0.0) { - writer.writeEnum( - 13, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.MulticastGroup.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.MulticastGroup.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string application_id = 3; - * @return {string} - */ -proto.api.MulticastGroup.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional common.Region region = 4; - * @return {!proto.common.Region} - */ -proto.api.MulticastGroup.prototype.getRegion = function() { - return /** @type {!proto.common.Region} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.common.Region} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setRegion = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional string mc_addr = 5; - * @return {string} - */ -proto.api.MulticastGroup.prototype.getMcAddr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setMcAddr = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string mc_nwk_s_key = 6; - * @return {string} - */ -proto.api.MulticastGroup.prototype.getMcNwkSKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setMcNwkSKey = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string mc_app_s_key = 7; - * @return {string} - */ -proto.api.MulticastGroup.prototype.getMcAppSKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setMcAppSKey = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional uint32 f_cnt = 8; - * @return {number} - */ -proto.api.MulticastGroup.prototype.getFCnt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setFCnt = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional MulticastGroupType group_type = 9; - * @return {!proto.api.MulticastGroupType} - */ -proto.api.MulticastGroup.prototype.getGroupType = function() { - return /** @type {!proto.api.MulticastGroupType} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {!proto.api.MulticastGroupType} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setGroupType = function(value) { - return jspb.Message.setProto3EnumField(this, 9, value); -}; - - -/** - * optional uint32 dr = 10; - * @return {number} - */ -proto.api.MulticastGroup.prototype.getDr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setDr = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional uint32 frequency = 11; - * @return {number} - */ -proto.api.MulticastGroup.prototype.getFrequency = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setFrequency = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional uint32 class_b_ping_slot_period = 12; - * @return {number} - */ -proto.api.MulticastGroup.prototype.getClassBPingSlotPeriod = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setClassBPingSlotPeriod = function(value) { - return jspb.Message.setProto3IntField(this, 12, value); -}; - - -/** - * optional uint32 class_b_ping_slot_nb_k = 14; - * @return {number} - */ -proto.api.MulticastGroup.prototype.getClassBPingSlotNbK = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setClassBPingSlotNbK = function(value) { - return jspb.Message.setProto3IntField(this, 14, value); -}; - - -/** - * optional MulticastGroupSchedulingType class_c_scheduling_type = 13; - * @return {!proto.api.MulticastGroupSchedulingType} - */ -proto.api.MulticastGroup.prototype.getClassCSchedulingType = function() { - return /** @type {!proto.api.MulticastGroupSchedulingType} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); -}; - - -/** - * @param {!proto.api.MulticastGroupSchedulingType} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setClassCSchedulingType = function(value) { - return jspb.Message.setProto3EnumField(this, 13, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.MulticastGroupListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.MulticastGroupListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.MulticastGroupListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.MulticastGroupListItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 4, ""), - region: jspb.Message.getFieldWithDefault(msg, 5, 0), - groupType: jspb.Message.getFieldWithDefault(msg, 6, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.MulticastGroupListItem} - */ -proto.api.MulticastGroupListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.MulticastGroupListItem; - return proto.api.MulticastGroupListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.MulticastGroupListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.MulticastGroupListItem} - */ -proto.api.MulticastGroupListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 5: - var value = /** @type {!proto.common.Region} */ (reader.readEnum()); - msg.setRegion(value); - break; - case 6: - var value = /** @type {!proto.api.MulticastGroupType} */ (reader.readEnum()); - msg.setGroupType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.MulticastGroupListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.MulticastGroupListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.MulticastGroupListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.MulticastGroupListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRegion(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } - f = message.getGroupType(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.MulticastGroupListItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MulticastGroupListItem} returns this - */ -proto.api.MulticastGroupListItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.MulticastGroupListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.MulticastGroupListItem} returns this -*/ -proto.api.MulticastGroupListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.MulticastGroupListItem} returns this - */ -proto.api.MulticastGroupListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.MulticastGroupListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.MulticastGroupListItem.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.MulticastGroupListItem} returns this -*/ -proto.api.MulticastGroupListItem.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.MulticastGroupListItem} returns this - */ -proto.api.MulticastGroupListItem.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.MulticastGroupListItem.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string name = 4; - * @return {string} - */ -proto.api.MulticastGroupListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MulticastGroupListItem} returns this - */ -proto.api.MulticastGroupListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional common.Region region = 5; - * @return {!proto.common.Region} - */ -proto.api.MulticastGroupListItem.prototype.getRegion = function() { - return /** @type {!proto.common.Region} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {!proto.common.Region} value - * @return {!proto.api.MulticastGroupListItem} returns this - */ -proto.api.MulticastGroupListItem.prototype.setRegion = function(value) { - return jspb.Message.setProto3EnumField(this, 5, value); -}; - - -/** - * optional MulticastGroupType group_type = 6; - * @return {!proto.api.MulticastGroupType} - */ -proto.api.MulticastGroupListItem.prototype.getGroupType = function() { - return /** @type {!proto.api.MulticastGroupType} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.api.MulticastGroupType} value - * @return {!proto.api.MulticastGroupListItem} returns this - */ -proto.api.MulticastGroupListItem.prototype.setGroupType = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateMulticastGroupRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateMulticastGroupRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateMulticastGroupRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateMulticastGroupRequest.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroup: (f = msg.getMulticastGroup()) && proto.api.MulticastGroup.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateMulticastGroupRequest} - */ -proto.api.CreateMulticastGroupRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateMulticastGroupRequest; - return proto.api.CreateMulticastGroupRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateMulticastGroupRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateMulticastGroupRequest} - */ -proto.api.CreateMulticastGroupRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.MulticastGroup; - reader.readMessage(value,proto.api.MulticastGroup.deserializeBinaryFromReader); - msg.setMulticastGroup(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateMulticastGroupRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateMulticastGroupRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateMulticastGroupRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateMulticastGroupRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroup(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.MulticastGroup.serializeBinaryToWriter - ); - } -}; - - -/** - * optional MulticastGroup multicast_group = 1; - * @return {?proto.api.MulticastGroup} - */ -proto.api.CreateMulticastGroupRequest.prototype.getMulticastGroup = function() { - return /** @type{?proto.api.MulticastGroup} */ ( - jspb.Message.getWrapperField(this, proto.api.MulticastGroup, 1)); -}; - - -/** - * @param {?proto.api.MulticastGroup|undefined} value - * @return {!proto.api.CreateMulticastGroupRequest} returns this -*/ -proto.api.CreateMulticastGroupRequest.prototype.setMulticastGroup = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateMulticastGroupRequest} returns this - */ -proto.api.CreateMulticastGroupRequest.prototype.clearMulticastGroup = function() { - return this.setMulticastGroup(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateMulticastGroupRequest.prototype.hasMulticastGroup = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateMulticastGroupResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateMulticastGroupResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateMulticastGroupResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateMulticastGroupResponse.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateMulticastGroupResponse} - */ -proto.api.CreateMulticastGroupResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateMulticastGroupResponse; - return proto.api.CreateMulticastGroupResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateMulticastGroupResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateMulticastGroupResponse} - */ -proto.api.CreateMulticastGroupResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateMulticastGroupResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateMulticastGroupResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateMulticastGroupResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateMulticastGroupResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.CreateMulticastGroupResponse.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.CreateMulticastGroupResponse} returns this - */ -proto.api.CreateMulticastGroupResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetMulticastGroupRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetMulticastGroupRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetMulticastGroupRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetMulticastGroupRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetMulticastGroupRequest} - */ -proto.api.GetMulticastGroupRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetMulticastGroupRequest; - return proto.api.GetMulticastGroupRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetMulticastGroupRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetMulticastGroupRequest} - */ -proto.api.GetMulticastGroupRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetMulticastGroupRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetMulticastGroupRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetMulticastGroupRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetMulticastGroupRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.GetMulticastGroupRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetMulticastGroupRequest} returns this - */ -proto.api.GetMulticastGroupRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetMulticastGroupResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetMulticastGroupResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetMulticastGroupResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetMulticastGroupResponse.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroup: (f = msg.getMulticastGroup()) && proto.api.MulticastGroup.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetMulticastGroupResponse} - */ -proto.api.GetMulticastGroupResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetMulticastGroupResponse; - return proto.api.GetMulticastGroupResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetMulticastGroupResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetMulticastGroupResponse} - */ -proto.api.GetMulticastGroupResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.MulticastGroup; - reader.readMessage(value,proto.api.MulticastGroup.deserializeBinaryFromReader); - msg.setMulticastGroup(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetMulticastGroupResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetMulticastGroupResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetMulticastGroupResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetMulticastGroupResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroup(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.MulticastGroup.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional MulticastGroup multicast_group = 1; - * @return {?proto.api.MulticastGroup} - */ -proto.api.GetMulticastGroupResponse.prototype.getMulticastGroup = function() { - return /** @type{?proto.api.MulticastGroup} */ ( - jspb.Message.getWrapperField(this, proto.api.MulticastGroup, 1)); -}; - - -/** - * @param {?proto.api.MulticastGroup|undefined} value - * @return {!proto.api.GetMulticastGroupResponse} returns this -*/ -proto.api.GetMulticastGroupResponse.prototype.setMulticastGroup = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetMulticastGroupResponse} returns this - */ -proto.api.GetMulticastGroupResponse.prototype.clearMulticastGroup = function() { - return this.setMulticastGroup(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetMulticastGroupResponse.prototype.hasMulticastGroup = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetMulticastGroupResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetMulticastGroupResponse} returns this -*/ -proto.api.GetMulticastGroupResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetMulticastGroupResponse} returns this - */ -proto.api.GetMulticastGroupResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetMulticastGroupResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetMulticastGroupResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetMulticastGroupResponse} returns this -*/ -proto.api.GetMulticastGroupResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetMulticastGroupResponse} returns this - */ -proto.api.GetMulticastGroupResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetMulticastGroupResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateMulticastGroupRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateMulticastGroupRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateMulticastGroupRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateMulticastGroupRequest.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroup: (f = msg.getMulticastGroup()) && proto.api.MulticastGroup.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateMulticastGroupRequest} - */ -proto.api.UpdateMulticastGroupRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateMulticastGroupRequest; - return proto.api.UpdateMulticastGroupRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateMulticastGroupRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateMulticastGroupRequest} - */ -proto.api.UpdateMulticastGroupRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.MulticastGroup; - reader.readMessage(value,proto.api.MulticastGroup.deserializeBinaryFromReader); - msg.setMulticastGroup(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateMulticastGroupRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateMulticastGroupRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateMulticastGroupRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateMulticastGroupRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroup(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.MulticastGroup.serializeBinaryToWriter - ); - } -}; - - -/** - * optional MulticastGroup multicast_group = 1; - * @return {?proto.api.MulticastGroup} - */ -proto.api.UpdateMulticastGroupRequest.prototype.getMulticastGroup = function() { - return /** @type{?proto.api.MulticastGroup} */ ( - jspb.Message.getWrapperField(this, proto.api.MulticastGroup, 1)); -}; - - -/** - * @param {?proto.api.MulticastGroup|undefined} value - * @return {!proto.api.UpdateMulticastGroupRequest} returns this -*/ -proto.api.UpdateMulticastGroupRequest.prototype.setMulticastGroup = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateMulticastGroupRequest} returns this - */ -proto.api.UpdateMulticastGroupRequest.prototype.clearMulticastGroup = function() { - return this.setMulticastGroup(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateMulticastGroupRequest.prototype.hasMulticastGroup = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteMulticastGroupRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteMulticastGroupRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteMulticastGroupRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteMulticastGroupRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteMulticastGroupRequest} - */ -proto.api.DeleteMulticastGroupRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteMulticastGroupRequest; - return proto.api.DeleteMulticastGroupRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteMulticastGroupRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteMulticastGroupRequest} - */ -proto.api.DeleteMulticastGroupRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteMulticastGroupRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteMulticastGroupRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteMulticastGroupRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteMulticastGroupRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeleteMulticastGroupRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteMulticastGroupRequest} returns this - */ -proto.api.DeleteMulticastGroupRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListMulticastGroupsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListMulticastGroupsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListMulticastGroupsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListMulticastGroupsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - search: jspb.Message.getFieldWithDefault(msg, 3, ""), - applicationId: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListMulticastGroupsRequest} - */ -proto.api.ListMulticastGroupsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListMulticastGroupsRequest; - return proto.api.ListMulticastGroupsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListMulticastGroupsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListMulticastGroupsRequest} - */ -proto.api.ListMulticastGroupsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSearch(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListMulticastGroupsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListMulticastGroupsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListMulticastGroupsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListMulticastGroupsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getSearch(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListMulticastGroupsRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListMulticastGroupsRequest} returns this - */ -proto.api.ListMulticastGroupsRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListMulticastGroupsRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListMulticastGroupsRequest} returns this - */ -proto.api.ListMulticastGroupsRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string search = 3; - * @return {string} - */ -proto.api.ListMulticastGroupsRequest.prototype.getSearch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListMulticastGroupsRequest} returns this - */ -proto.api.ListMulticastGroupsRequest.prototype.setSearch = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string application_id = 4; - * @return {string} - */ -proto.api.ListMulticastGroupsRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListMulticastGroupsRequest} returns this - */ -proto.api.ListMulticastGroupsRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListMulticastGroupsResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListMulticastGroupsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListMulticastGroupsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListMulticastGroupsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListMulticastGroupsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.MulticastGroupListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListMulticastGroupsResponse} - */ -proto.api.ListMulticastGroupsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListMulticastGroupsResponse; - return proto.api.ListMulticastGroupsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListMulticastGroupsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListMulticastGroupsResponse} - */ -proto.api.ListMulticastGroupsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.MulticastGroupListItem; - reader.readMessage(value,proto.api.MulticastGroupListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListMulticastGroupsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListMulticastGroupsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListMulticastGroupsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListMulticastGroupsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.MulticastGroupListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListMulticastGroupsResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListMulticastGroupsResponse} returns this - */ -proto.api.ListMulticastGroupsResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated MulticastGroupListItem result = 2; - * @return {!Array} - */ -proto.api.ListMulticastGroupsResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.MulticastGroupListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListMulticastGroupsResponse} returns this -*/ -proto.api.ListMulticastGroupsResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.MulticastGroupListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.MulticastGroupListItem} - */ -proto.api.ListMulticastGroupsResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.MulticastGroupListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListMulticastGroupsResponse} returns this - */ -proto.api.ListMulticastGroupsResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.AddDeviceToMulticastGroupRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.AddDeviceToMulticastGroupRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.AddDeviceToMulticastGroupRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AddDeviceToMulticastGroupRequest.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 1, ""), - devEui: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.AddDeviceToMulticastGroupRequest} - */ -proto.api.AddDeviceToMulticastGroupRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.AddDeviceToMulticastGroupRequest; - return proto.api.AddDeviceToMulticastGroupRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.AddDeviceToMulticastGroupRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.AddDeviceToMulticastGroupRequest} - */ -proto.api.AddDeviceToMulticastGroupRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.AddDeviceToMulticastGroupRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.AddDeviceToMulticastGroupRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.AddDeviceToMulticastGroupRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AddDeviceToMulticastGroupRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string multicast_group_id = 1; - * @return {string} - */ -proto.api.AddDeviceToMulticastGroupRequest.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AddDeviceToMulticastGroupRequest} returns this - */ -proto.api.AddDeviceToMulticastGroupRequest.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string dev_eui = 2; - * @return {string} - */ -proto.api.AddDeviceToMulticastGroupRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AddDeviceToMulticastGroupRequest} returns this - */ -proto.api.AddDeviceToMulticastGroupRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.RemoveDeviceFromMulticastGroupRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.RemoveDeviceFromMulticastGroupRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 1, ""), - devEui: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.RemoveDeviceFromMulticastGroupRequest} - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.RemoveDeviceFromMulticastGroupRequest; - return proto.api.RemoveDeviceFromMulticastGroupRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.RemoveDeviceFromMulticastGroupRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.RemoveDeviceFromMulticastGroupRequest} - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.RemoveDeviceFromMulticastGroupRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.RemoveDeviceFromMulticastGroupRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string multicast_group_id = 1; - * @return {string} - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RemoveDeviceFromMulticastGroupRequest} returns this - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string dev_eui = 2; - * @return {string} - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RemoveDeviceFromMulticastGroupRequest} returns this - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.AddGatewayToMulticastGroupRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.AddGatewayToMulticastGroupRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.AddGatewayToMulticastGroupRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AddGatewayToMulticastGroupRequest.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 1, ""), - gatewayId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.AddGatewayToMulticastGroupRequest} - */ -proto.api.AddGatewayToMulticastGroupRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.AddGatewayToMulticastGroupRequest; - return proto.api.AddGatewayToMulticastGroupRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.AddGatewayToMulticastGroupRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.AddGatewayToMulticastGroupRequest} - */ -proto.api.AddGatewayToMulticastGroupRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.AddGatewayToMulticastGroupRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.AddGatewayToMulticastGroupRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.AddGatewayToMulticastGroupRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AddGatewayToMulticastGroupRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string multicast_group_id = 1; - * @return {string} - */ -proto.api.AddGatewayToMulticastGroupRequest.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AddGatewayToMulticastGroupRequest} returns this - */ -proto.api.AddGatewayToMulticastGroupRequest.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string gateway_id = 2; - * @return {string} - */ -proto.api.AddGatewayToMulticastGroupRequest.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AddGatewayToMulticastGroupRequest} returns this - */ -proto.api.AddGatewayToMulticastGroupRequest.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.RemoveGatewayFromMulticastGroupRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.RemoveGatewayFromMulticastGroupRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 1, ""), - gatewayId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.RemoveGatewayFromMulticastGroupRequest} - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.RemoveGatewayFromMulticastGroupRequest; - return proto.api.RemoveGatewayFromMulticastGroupRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.RemoveGatewayFromMulticastGroupRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.RemoveGatewayFromMulticastGroupRequest} - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.RemoveGatewayFromMulticastGroupRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.RemoveGatewayFromMulticastGroupRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string multicast_group_id = 1; - * @return {string} - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RemoveGatewayFromMulticastGroupRequest} returns this - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string gateway_id = 2; - * @return {string} - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RemoveGatewayFromMulticastGroupRequest} returns this - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.MulticastGroupQueueItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.MulticastGroupQueueItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.MulticastGroupQueueItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.MulticastGroupQueueItem.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 1, ""), - fCnt: jspb.Message.getFieldWithDefault(msg, 2, 0), - fPort: jspb.Message.getFieldWithDefault(msg, 3, 0), - data: msg.getData_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.MulticastGroupQueueItem} - */ -proto.api.MulticastGroupQueueItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.MulticastGroupQueueItem; - return proto.api.MulticastGroupQueueItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.MulticastGroupQueueItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.MulticastGroupQueueItem} - */ -proto.api.MulticastGroupQueueItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCnt(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFPort(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.MulticastGroupQueueItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.MulticastGroupQueueItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.MulticastGroupQueueItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.MulticastGroupQueueItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getFCnt(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getFPort(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } -}; - - -/** - * optional string multicast_group_id = 1; - * @return {string} - */ -proto.api.MulticastGroupQueueItem.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MulticastGroupQueueItem} returns this - */ -proto.api.MulticastGroupQueueItem.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint32 f_cnt = 2; - * @return {number} - */ -proto.api.MulticastGroupQueueItem.prototype.getFCnt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.MulticastGroupQueueItem} returns this - */ -proto.api.MulticastGroupQueueItem.prototype.setFCnt = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint32 f_port = 3; - * @return {number} - */ -proto.api.MulticastGroupQueueItem.prototype.getFPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.MulticastGroupQueueItem} returns this - */ -proto.api.MulticastGroupQueueItem.prototype.setFPort = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bytes data = 4; - * @return {string} - */ -proto.api.MulticastGroupQueueItem.prototype.getData = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes data = 4; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.api.MulticastGroupQueueItem.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.api.MulticastGroupQueueItem.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.api.MulticastGroupQueueItem} returns this - */ -proto.api.MulticastGroupQueueItem.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.EnqueueMulticastGroupQueueItemRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.EnqueueMulticastGroupQueueItemRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.EnqueueMulticastGroupQueueItemRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.EnqueueMulticastGroupQueueItemRequest.toObject = function(includeInstance, msg) { - var f, obj = { - queueItem: (f = msg.getQueueItem()) && proto.api.MulticastGroupQueueItem.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.EnqueueMulticastGroupQueueItemRequest} - */ -proto.api.EnqueueMulticastGroupQueueItemRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.EnqueueMulticastGroupQueueItemRequest; - return proto.api.EnqueueMulticastGroupQueueItemRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.EnqueueMulticastGroupQueueItemRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.EnqueueMulticastGroupQueueItemRequest} - */ -proto.api.EnqueueMulticastGroupQueueItemRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.MulticastGroupQueueItem; - reader.readMessage(value,proto.api.MulticastGroupQueueItem.deserializeBinaryFromReader); - msg.setQueueItem(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.EnqueueMulticastGroupQueueItemRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.EnqueueMulticastGroupQueueItemRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.EnqueueMulticastGroupQueueItemRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.EnqueueMulticastGroupQueueItemRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getQueueItem(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.MulticastGroupQueueItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional MulticastGroupQueueItem queue_item = 1; - * @return {?proto.api.MulticastGroupQueueItem} - */ -proto.api.EnqueueMulticastGroupQueueItemRequest.prototype.getQueueItem = function() { - return /** @type{?proto.api.MulticastGroupQueueItem} */ ( - jspb.Message.getWrapperField(this, proto.api.MulticastGroupQueueItem, 1)); -}; - - -/** - * @param {?proto.api.MulticastGroupQueueItem|undefined} value - * @return {!proto.api.EnqueueMulticastGroupQueueItemRequest} returns this -*/ -proto.api.EnqueueMulticastGroupQueueItemRequest.prototype.setQueueItem = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.EnqueueMulticastGroupQueueItemRequest} returns this - */ -proto.api.EnqueueMulticastGroupQueueItemRequest.prototype.clearQueueItem = function() { - return this.setQueueItem(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.EnqueueMulticastGroupQueueItemRequest.prototype.hasQueueItem = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.EnqueueMulticastGroupQueueItemResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.EnqueueMulticastGroupQueueItemResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.EnqueueMulticastGroupQueueItemResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.EnqueueMulticastGroupQueueItemResponse.toObject = function(includeInstance, msg) { - var f, obj = { - fCnt: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.EnqueueMulticastGroupQueueItemResponse} - */ -proto.api.EnqueueMulticastGroupQueueItemResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.EnqueueMulticastGroupQueueItemResponse; - return proto.api.EnqueueMulticastGroupQueueItemResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.EnqueueMulticastGroupQueueItemResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.EnqueueMulticastGroupQueueItemResponse} - */ -proto.api.EnqueueMulticastGroupQueueItemResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCnt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.EnqueueMulticastGroupQueueItemResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.EnqueueMulticastGroupQueueItemResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.EnqueueMulticastGroupQueueItemResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.EnqueueMulticastGroupQueueItemResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFCnt(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } -}; - - -/** - * optional uint32 f_cnt = 1; - * @return {number} - */ -proto.api.EnqueueMulticastGroupQueueItemResponse.prototype.getFCnt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.EnqueueMulticastGroupQueueItemResponse} returns this - */ -proto.api.EnqueueMulticastGroupQueueItemResponse.prototype.setFCnt = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.FlushMulticastGroupQueueRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.FlushMulticastGroupQueueRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.FlushMulticastGroupQueueRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.FlushMulticastGroupQueueRequest.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.FlushMulticastGroupQueueRequest} - */ -proto.api.FlushMulticastGroupQueueRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.FlushMulticastGroupQueueRequest; - return proto.api.FlushMulticastGroupQueueRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.FlushMulticastGroupQueueRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.FlushMulticastGroupQueueRequest} - */ -proto.api.FlushMulticastGroupQueueRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.FlushMulticastGroupQueueRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.FlushMulticastGroupQueueRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.FlushMulticastGroupQueueRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.FlushMulticastGroupQueueRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string multicast_group_id = 1; - * @return {string} - */ -proto.api.FlushMulticastGroupQueueRequest.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.FlushMulticastGroupQueueRequest} returns this - */ -proto.api.FlushMulticastGroupQueueRequest.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListMulticastGroupQueueRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListMulticastGroupQueueRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListMulticastGroupQueueRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListMulticastGroupQueueRequest.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListMulticastGroupQueueRequest} - */ -proto.api.ListMulticastGroupQueueRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListMulticastGroupQueueRequest; - return proto.api.ListMulticastGroupQueueRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListMulticastGroupQueueRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListMulticastGroupQueueRequest} - */ -proto.api.ListMulticastGroupQueueRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListMulticastGroupQueueRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListMulticastGroupQueueRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListMulticastGroupQueueRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListMulticastGroupQueueRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string multicast_group_id = 1; - * @return {string} - */ -proto.api.ListMulticastGroupQueueRequest.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListMulticastGroupQueueRequest} returns this - */ -proto.api.ListMulticastGroupQueueRequest.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListMulticastGroupQueueResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListMulticastGroupQueueResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListMulticastGroupQueueResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListMulticastGroupQueueResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListMulticastGroupQueueResponse.toObject = function(includeInstance, msg) { - var f, obj = { - itemsList: jspb.Message.toObjectList(msg.getItemsList(), - proto.api.MulticastGroupQueueItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListMulticastGroupQueueResponse} - */ -proto.api.ListMulticastGroupQueueResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListMulticastGroupQueueResponse; - return proto.api.ListMulticastGroupQueueResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListMulticastGroupQueueResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListMulticastGroupQueueResponse} - */ -proto.api.ListMulticastGroupQueueResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.MulticastGroupQueueItem; - reader.readMessage(value,proto.api.MulticastGroupQueueItem.deserializeBinaryFromReader); - msg.addItems(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListMulticastGroupQueueResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListMulticastGroupQueueResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListMulticastGroupQueueResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListMulticastGroupQueueResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getItemsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.api.MulticastGroupQueueItem.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated MulticastGroupQueueItem items = 1; - * @return {!Array} - */ -proto.api.ListMulticastGroupQueueResponse.prototype.getItemsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.MulticastGroupQueueItem, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListMulticastGroupQueueResponse} returns this -*/ -proto.api.ListMulticastGroupQueueResponse.prototype.setItemsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.api.MulticastGroupQueueItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.MulticastGroupQueueItem} - */ -proto.api.ListMulticastGroupQueueResponse.prototype.addItems = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.api.MulticastGroupQueueItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListMulticastGroupQueueResponse} returns this - */ -proto.api.ListMulticastGroupQueueResponse.prototype.clearItemsList = function() { - return this.setItemsList([]); -}; - - -/** - * @enum {number} - */ -proto.api.MulticastGroupType = { - CLASS_C: 0, - CLASS_B: 1 -}; - -/** - * @enum {number} - */ -proto.api.MulticastGroupSchedulingType = { - DELAY: 0, - GPS_TIME: 1 -}; - -goog.object.extend(exports, proto.api); diff --git a/api/grpc-web/api/relay_grpc_web_pb.d.ts b/api/grpc-web/api/relay_grpc_web_pb.d.ts deleted file mode 100644 index 04a8d0be..00000000 --- a/api/grpc-web/api/relay_grpc_web_pb.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -import * as grpcWeb from 'grpc-web'; - -import * as api_relay_pb from '../api/relay_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; - - -export class RelayServiceClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - list( - request: api_relay_pb.ListRelaysRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_relay_pb.ListRelaysResponse) => void - ): grpcWeb.ClientReadableStream; - - addDevice( - request: api_relay_pb.AddRelayDeviceRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - removeDevice( - request: api_relay_pb.RemoveRelayDeviceRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - listDevices( - request: api_relay_pb.ListRelayDevicesRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_relay_pb.ListRelayDevicesResponse) => void - ): grpcWeb.ClientReadableStream; - -} - -export class RelayServicePromiseClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - list( - request: api_relay_pb.ListRelaysRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - addDevice( - request: api_relay_pb.AddRelayDeviceRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - removeDevice( - request: api_relay_pb.RemoveRelayDeviceRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - listDevices( - request: api_relay_pb.ListRelayDevicesRequest, - metadata?: grpcWeb.Metadata - ): Promise; - -} - diff --git a/api/grpc-web/api/relay_grpc_web_pb.js b/api/grpc-web/api/relay_grpc_web_pb.js deleted file mode 100644 index 56b93cb0..00000000 --- a/api/grpc-web/api/relay_grpc_web_pb.js +++ /dev/null @@ -1,328 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for api - * @enhanceable - * @public - */ - -// Code generated by protoc-gen-grpc-web. DO NOT EDIT. -// versions: -// protoc-gen-grpc-web v1.4.2 -// protoc v3.12.4 -// source: api/relay.proto - - -/* eslint-disable */ -// @ts-nocheck - - - -const grpc = {}; -grpc.web = require('grpc-web'); - - -var google_api_annotations_pb = require('../google/api/annotations_pb.js') - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js') - -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js') -const proto = {}; -proto.api = require('./relay_pb.js'); - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.RelayServiceClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.RelayServicePromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.ListRelaysRequest, - * !proto.api.ListRelaysResponse>} - */ -const methodDescriptor_RelayService_List = new grpc.web.MethodDescriptor( - '/api.RelayService/List', - grpc.web.MethodType.UNARY, - proto.api.ListRelaysRequest, - proto.api.ListRelaysResponse, - /** - * @param {!proto.api.ListRelaysRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.ListRelaysResponse.deserializeBinary -); - - -/** - * @param {!proto.api.ListRelaysRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.ListRelaysResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.RelayServiceClient.prototype.list = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.RelayService/List', - request, - metadata || {}, - methodDescriptor_RelayService_List, - callback); -}; - - -/** - * @param {!proto.api.ListRelaysRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.RelayServicePromiseClient.prototype.list = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.RelayService/List', - request, - metadata || {}, - methodDescriptor_RelayService_List); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.AddRelayDeviceRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_RelayService_AddDevice = new grpc.web.MethodDescriptor( - '/api.RelayService/AddDevice', - grpc.web.MethodType.UNARY, - proto.api.AddRelayDeviceRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.AddRelayDeviceRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.AddRelayDeviceRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.RelayServiceClient.prototype.addDevice = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.RelayService/AddDevice', - request, - metadata || {}, - methodDescriptor_RelayService_AddDevice, - callback); -}; - - -/** - * @param {!proto.api.AddRelayDeviceRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.RelayServicePromiseClient.prototype.addDevice = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.RelayService/AddDevice', - request, - metadata || {}, - methodDescriptor_RelayService_AddDevice); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.RemoveRelayDeviceRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_RelayService_RemoveDevice = new grpc.web.MethodDescriptor( - '/api.RelayService/RemoveDevice', - grpc.web.MethodType.UNARY, - proto.api.RemoveRelayDeviceRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.RemoveRelayDeviceRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.RemoveRelayDeviceRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.RelayServiceClient.prototype.removeDevice = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.RelayService/RemoveDevice', - request, - metadata || {}, - methodDescriptor_RelayService_RemoveDevice, - callback); -}; - - -/** - * @param {!proto.api.RemoveRelayDeviceRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.RelayServicePromiseClient.prototype.removeDevice = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.RelayService/RemoveDevice', - request, - metadata || {}, - methodDescriptor_RelayService_RemoveDevice); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.ListRelayDevicesRequest, - * !proto.api.ListRelayDevicesResponse>} - */ -const methodDescriptor_RelayService_ListDevices = new grpc.web.MethodDescriptor( - '/api.RelayService/ListDevices', - grpc.web.MethodType.UNARY, - proto.api.ListRelayDevicesRequest, - proto.api.ListRelayDevicesResponse, - /** - * @param {!proto.api.ListRelayDevicesRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.ListRelayDevicesResponse.deserializeBinary -); - - -/** - * @param {!proto.api.ListRelayDevicesRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.ListRelayDevicesResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.RelayServiceClient.prototype.listDevices = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.RelayService/ListDevices', - request, - metadata || {}, - methodDescriptor_RelayService_ListDevices, - callback); -}; - - -/** - * @param {!proto.api.ListRelayDevicesRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.RelayServicePromiseClient.prototype.listDevices = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.RelayService/ListDevices', - request, - metadata || {}, - methodDescriptor_RelayService_ListDevices); -}; - - -module.exports = proto.api; - diff --git a/api/grpc-web/api/relay_pb.d.ts b/api/grpc-web/api/relay_pb.d.ts deleted file mode 100644 index 9d8d9eae..00000000 --- a/api/grpc-web/api/relay_pb.d.ts +++ /dev/null @@ -1,201 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_api_annotations_pb from '../google/api/annotations_pb'; -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; - - -export class RelayListItem extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): RelayListItem; - - getName(): string; - setName(value: string): RelayListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RelayListItem.AsObject; - static toObject(includeInstance: boolean, msg: RelayListItem): RelayListItem.AsObject; - static serializeBinaryToWriter(message: RelayListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RelayListItem; - static deserializeBinaryFromReader(message: RelayListItem, reader: jspb.BinaryReader): RelayListItem; -} - -export namespace RelayListItem { - export type AsObject = { - devEui: string, - name: string, - } -} - -export class ListRelaysRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): ListRelaysRequest; - - getOffset(): number; - setOffset(value: number): ListRelaysRequest; - - getApplicationId(): string; - setApplicationId(value: string): ListRelaysRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListRelaysRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListRelaysRequest): ListRelaysRequest.AsObject; - static serializeBinaryToWriter(message: ListRelaysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListRelaysRequest; - static deserializeBinaryFromReader(message: ListRelaysRequest, reader: jspb.BinaryReader): ListRelaysRequest; -} - -export namespace ListRelaysRequest { - export type AsObject = { - limit: number, - offset: number, - applicationId: string, - } -} - -export class ListRelaysResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): ListRelaysResponse; - - getResultList(): Array; - setResultList(value: Array): ListRelaysResponse; - clearResultList(): ListRelaysResponse; - addResult(value?: RelayListItem, index?: number): RelayListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListRelaysResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListRelaysResponse): ListRelaysResponse.AsObject; - static serializeBinaryToWriter(message: ListRelaysResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListRelaysResponse; - static deserializeBinaryFromReader(message: ListRelaysResponse, reader: jspb.BinaryReader): ListRelaysResponse; -} - -export namespace ListRelaysResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class AddRelayDeviceRequest extends jspb.Message { - getRelayDevEui(): string; - setRelayDevEui(value: string): AddRelayDeviceRequest; - - getDeviceDevEui(): string; - setDeviceDevEui(value: string): AddRelayDeviceRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AddRelayDeviceRequest.AsObject; - static toObject(includeInstance: boolean, msg: AddRelayDeviceRequest): AddRelayDeviceRequest.AsObject; - static serializeBinaryToWriter(message: AddRelayDeviceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AddRelayDeviceRequest; - static deserializeBinaryFromReader(message: AddRelayDeviceRequest, reader: jspb.BinaryReader): AddRelayDeviceRequest; -} - -export namespace AddRelayDeviceRequest { - export type AsObject = { - relayDevEui: string, - deviceDevEui: string, - } -} - -export class RemoveRelayDeviceRequest extends jspb.Message { - getRelayDevEui(): string; - setRelayDevEui(value: string): RemoveRelayDeviceRequest; - - getDeviceDevEui(): string; - setDeviceDevEui(value: string): RemoveRelayDeviceRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveRelayDeviceRequest.AsObject; - static toObject(includeInstance: boolean, msg: RemoveRelayDeviceRequest): RemoveRelayDeviceRequest.AsObject; - static serializeBinaryToWriter(message: RemoveRelayDeviceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveRelayDeviceRequest; - static deserializeBinaryFromReader(message: RemoveRelayDeviceRequest, reader: jspb.BinaryReader): RemoveRelayDeviceRequest; -} - -export namespace RemoveRelayDeviceRequest { - export type AsObject = { - relayDevEui: string, - deviceDevEui: string, - } -} - -export class ListRelayDevicesRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): ListRelayDevicesRequest; - - getOffset(): number; - setOffset(value: number): ListRelayDevicesRequest; - - getRelayDevEui(): string; - setRelayDevEui(value: string): ListRelayDevicesRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListRelayDevicesRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListRelayDevicesRequest): ListRelayDevicesRequest.AsObject; - static serializeBinaryToWriter(message: ListRelayDevicesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListRelayDevicesRequest; - static deserializeBinaryFromReader(message: ListRelayDevicesRequest, reader: jspb.BinaryReader): ListRelayDevicesRequest; -} - -export namespace ListRelayDevicesRequest { - export type AsObject = { - limit: number, - offset: number, - relayDevEui: string, - } -} - -export class RelayDeviceListItem extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): RelayDeviceListItem; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): RelayDeviceListItem; - hasCreatedAt(): boolean; - clearCreatedAt(): RelayDeviceListItem; - - getName(): string; - setName(value: string): RelayDeviceListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RelayDeviceListItem.AsObject; - static toObject(includeInstance: boolean, msg: RelayDeviceListItem): RelayDeviceListItem.AsObject; - static serializeBinaryToWriter(message: RelayDeviceListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RelayDeviceListItem; - static deserializeBinaryFromReader(message: RelayDeviceListItem, reader: jspb.BinaryReader): RelayDeviceListItem; -} - -export namespace RelayDeviceListItem { - export type AsObject = { - devEui: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - name: string, - } -} - -export class ListRelayDevicesResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): ListRelayDevicesResponse; - - getResultList(): Array; - setResultList(value: Array): ListRelayDevicesResponse; - clearResultList(): ListRelayDevicesResponse; - addResult(value?: RelayDeviceListItem, index?: number): RelayDeviceListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListRelayDevicesResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListRelayDevicesResponse): ListRelayDevicesResponse.AsObject; - static serializeBinaryToWriter(message: ListRelayDevicesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListRelayDevicesResponse; - static deserializeBinaryFromReader(message: ListRelayDevicesResponse, reader: jspb.BinaryReader): ListRelayDevicesResponse; -} - -export namespace ListRelayDevicesResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - diff --git a/api/grpc-web/api/relay_pb.js b/api/grpc-web/api/relay_pb.js deleted file mode 100644 index 306bfbc3..00000000 --- a/api/grpc-web/api/relay_pb.js +++ /dev/null @@ -1,1648 +0,0 @@ -// source: api/relay.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -goog.exportSymbol('proto.api.AddRelayDeviceRequest', null, global); -goog.exportSymbol('proto.api.ListRelayDevicesRequest', null, global); -goog.exportSymbol('proto.api.ListRelayDevicesResponse', null, global); -goog.exportSymbol('proto.api.ListRelaysRequest', null, global); -goog.exportSymbol('proto.api.ListRelaysResponse', null, global); -goog.exportSymbol('proto.api.RelayDeviceListItem', null, global); -goog.exportSymbol('proto.api.RelayListItem', null, global); -goog.exportSymbol('proto.api.RemoveRelayDeviceRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.RelayListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.RelayListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.RelayListItem.displayName = 'proto.api.RelayListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListRelaysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListRelaysRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListRelaysRequest.displayName = 'proto.api.ListRelaysRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListRelaysResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListRelaysResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListRelaysResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListRelaysResponse.displayName = 'proto.api.ListRelaysResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.AddRelayDeviceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.AddRelayDeviceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.AddRelayDeviceRequest.displayName = 'proto.api.AddRelayDeviceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.RemoveRelayDeviceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.RemoveRelayDeviceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.RemoveRelayDeviceRequest.displayName = 'proto.api.RemoveRelayDeviceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListRelayDevicesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListRelayDevicesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListRelayDevicesRequest.displayName = 'proto.api.ListRelayDevicesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.RelayDeviceListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.RelayDeviceListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.RelayDeviceListItem.displayName = 'proto.api.RelayDeviceListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListRelayDevicesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListRelayDevicesResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListRelayDevicesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListRelayDevicesResponse.displayName = 'proto.api.ListRelayDevicesResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.RelayListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.RelayListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.RelayListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RelayListItem.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.RelayListItem} - */ -proto.api.RelayListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.RelayListItem; - return proto.api.RelayListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.RelayListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.RelayListItem} - */ -proto.api.RelayListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.RelayListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.RelayListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.RelayListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RelayListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.RelayListItem.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RelayListItem} returns this - */ -proto.api.RelayListItem.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.RelayListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RelayListItem} returns this - */ -proto.api.RelayListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListRelaysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListRelaysRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListRelaysRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRelaysRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - applicationId: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListRelaysRequest} - */ -proto.api.ListRelaysRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListRelaysRequest; - return proto.api.ListRelaysRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListRelaysRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListRelaysRequest} - */ -proto.api.ListRelaysRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListRelaysRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListRelaysRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListRelaysRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRelaysRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListRelaysRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListRelaysRequest} returns this - */ -proto.api.ListRelaysRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListRelaysRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListRelaysRequest} returns this - */ -proto.api.ListRelaysRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string application_id = 3; - * @return {string} - */ -proto.api.ListRelaysRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListRelaysRequest} returns this - */ -proto.api.ListRelaysRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListRelaysResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListRelaysResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListRelaysResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListRelaysResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRelaysResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.RelayListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListRelaysResponse} - */ -proto.api.ListRelaysResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListRelaysResponse; - return proto.api.ListRelaysResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListRelaysResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListRelaysResponse} - */ -proto.api.ListRelaysResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.RelayListItem; - reader.readMessage(value,proto.api.RelayListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListRelaysResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListRelaysResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListRelaysResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRelaysResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.RelayListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListRelaysResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListRelaysResponse} returns this - */ -proto.api.ListRelaysResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated RelayListItem result = 2; - * @return {!Array} - */ -proto.api.ListRelaysResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.RelayListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListRelaysResponse} returns this -*/ -proto.api.ListRelaysResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.RelayListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.RelayListItem} - */ -proto.api.ListRelaysResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.RelayListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListRelaysResponse} returns this - */ -proto.api.ListRelaysResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.AddRelayDeviceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.AddRelayDeviceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.AddRelayDeviceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AddRelayDeviceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - relayDevEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - deviceDevEui: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.AddRelayDeviceRequest} - */ -proto.api.AddRelayDeviceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.AddRelayDeviceRequest; - return proto.api.AddRelayDeviceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.AddRelayDeviceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.AddRelayDeviceRequest} - */ -proto.api.AddRelayDeviceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setRelayDevEui(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.AddRelayDeviceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.AddRelayDeviceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.AddRelayDeviceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AddRelayDeviceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRelayDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDeviceDevEui(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string relay_dev_eui = 1; - * @return {string} - */ -proto.api.AddRelayDeviceRequest.prototype.getRelayDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AddRelayDeviceRequest} returns this - */ -proto.api.AddRelayDeviceRequest.prototype.setRelayDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string device_dev_eui = 2; - * @return {string} - */ -proto.api.AddRelayDeviceRequest.prototype.getDeviceDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AddRelayDeviceRequest} returns this - */ -proto.api.AddRelayDeviceRequest.prototype.setDeviceDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.RemoveRelayDeviceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.RemoveRelayDeviceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.RemoveRelayDeviceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RemoveRelayDeviceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - relayDevEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - deviceDevEui: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.RemoveRelayDeviceRequest} - */ -proto.api.RemoveRelayDeviceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.RemoveRelayDeviceRequest; - return proto.api.RemoveRelayDeviceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.RemoveRelayDeviceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.RemoveRelayDeviceRequest} - */ -proto.api.RemoveRelayDeviceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setRelayDevEui(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.RemoveRelayDeviceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.RemoveRelayDeviceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.RemoveRelayDeviceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RemoveRelayDeviceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRelayDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDeviceDevEui(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string relay_dev_eui = 1; - * @return {string} - */ -proto.api.RemoveRelayDeviceRequest.prototype.getRelayDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RemoveRelayDeviceRequest} returns this - */ -proto.api.RemoveRelayDeviceRequest.prototype.setRelayDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string device_dev_eui = 2; - * @return {string} - */ -proto.api.RemoveRelayDeviceRequest.prototype.getDeviceDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RemoveRelayDeviceRequest} returns this - */ -proto.api.RemoveRelayDeviceRequest.prototype.setDeviceDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListRelayDevicesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListRelayDevicesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListRelayDevicesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRelayDevicesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - relayDevEui: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListRelayDevicesRequest} - */ -proto.api.ListRelayDevicesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListRelayDevicesRequest; - return proto.api.ListRelayDevicesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListRelayDevicesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListRelayDevicesRequest} - */ -proto.api.ListRelayDevicesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setRelayDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListRelayDevicesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListRelayDevicesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListRelayDevicesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRelayDevicesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getRelayDevEui(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListRelayDevicesRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListRelayDevicesRequest} returns this - */ -proto.api.ListRelayDevicesRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListRelayDevicesRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListRelayDevicesRequest} returns this - */ -proto.api.ListRelayDevicesRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string relay_dev_eui = 3; - * @return {string} - */ -proto.api.ListRelayDevicesRequest.prototype.getRelayDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListRelayDevicesRequest} returns this - */ -proto.api.ListRelayDevicesRequest.prototype.setRelayDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.RelayDeviceListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.RelayDeviceListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.RelayDeviceListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RelayDeviceListItem.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.RelayDeviceListItem} - */ -proto.api.RelayDeviceListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.RelayDeviceListItem; - return proto.api.RelayDeviceListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.RelayDeviceListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.RelayDeviceListItem} - */ -proto.api.RelayDeviceListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.RelayDeviceListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.RelayDeviceListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.RelayDeviceListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RelayDeviceListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.RelayDeviceListItem.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RelayDeviceListItem} returns this - */ -proto.api.RelayDeviceListItem.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.RelayDeviceListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.RelayDeviceListItem} returns this -*/ -proto.api.RelayDeviceListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.RelayDeviceListItem} returns this - */ -proto.api.RelayDeviceListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.RelayDeviceListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string name = 3; - * @return {string} - */ -proto.api.RelayDeviceListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RelayDeviceListItem} returns this - */ -proto.api.RelayDeviceListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListRelayDevicesResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListRelayDevicesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListRelayDevicesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListRelayDevicesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRelayDevicesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.RelayDeviceListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListRelayDevicesResponse} - */ -proto.api.ListRelayDevicesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListRelayDevicesResponse; - return proto.api.ListRelayDevicesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListRelayDevicesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListRelayDevicesResponse} - */ -proto.api.ListRelayDevicesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.RelayDeviceListItem; - reader.readMessage(value,proto.api.RelayDeviceListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListRelayDevicesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListRelayDevicesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListRelayDevicesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRelayDevicesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.RelayDeviceListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListRelayDevicesResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListRelayDevicesResponse} returns this - */ -proto.api.ListRelayDevicesResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated RelayDeviceListItem result = 2; - * @return {!Array} - */ -proto.api.ListRelayDevicesResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.RelayDeviceListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListRelayDevicesResponse} returns this -*/ -proto.api.ListRelayDevicesResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.RelayDeviceListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.RelayDeviceListItem} - */ -proto.api.ListRelayDevicesResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.RelayDeviceListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListRelayDevicesResponse} returns this - */ -proto.api.ListRelayDevicesResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - -goog.object.extend(exports, proto.api); diff --git a/api/grpc-web/api/tenant_grpc_web_pb.d.ts b/api/grpc-web/api/tenant_grpc_web_pb.d.ts deleted file mode 100644 index d5812b56..00000000 --- a/api/grpc-web/api/tenant_grpc_web_pb.d.ts +++ /dev/null @@ -1,140 +0,0 @@ -import * as grpcWeb from 'grpc-web'; - -import * as api_tenant_pb from '../api/tenant_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; - - -export class TenantServiceClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - create( - request: api_tenant_pb.CreateTenantRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_tenant_pb.CreateTenantResponse) => void - ): grpcWeb.ClientReadableStream; - - get( - request: api_tenant_pb.GetTenantRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_tenant_pb.GetTenantResponse) => void - ): grpcWeb.ClientReadableStream; - - update( - request: api_tenant_pb.UpdateTenantRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - delete( - request: api_tenant_pb.DeleteTenantRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - list( - request: api_tenant_pb.ListTenantsRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_tenant_pb.ListTenantsResponse) => void - ): grpcWeb.ClientReadableStream; - - addUser( - request: api_tenant_pb.AddTenantUserRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - getUser( - request: api_tenant_pb.GetTenantUserRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_tenant_pb.GetTenantUserResponse) => void - ): grpcWeb.ClientReadableStream; - - updateUser( - request: api_tenant_pb.UpdateTenantUserRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - deleteUser( - request: api_tenant_pb.DeleteTenantUserRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - listUsers( - request: api_tenant_pb.ListTenantUsersRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_tenant_pb.ListTenantUsersResponse) => void - ): grpcWeb.ClientReadableStream; - -} - -export class TenantServicePromiseClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - create( - request: api_tenant_pb.CreateTenantRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - get( - request: api_tenant_pb.GetTenantRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - update( - request: api_tenant_pb.UpdateTenantRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - delete( - request: api_tenant_pb.DeleteTenantRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - list( - request: api_tenant_pb.ListTenantsRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - addUser( - request: api_tenant_pb.AddTenantUserRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - getUser( - request: api_tenant_pb.GetTenantUserRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - updateUser( - request: api_tenant_pb.UpdateTenantUserRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - deleteUser( - request: api_tenant_pb.DeleteTenantUserRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - listUsers( - request: api_tenant_pb.ListTenantUsersRequest, - metadata?: grpcWeb.Metadata - ): Promise; - -} - diff --git a/api/grpc-web/api/tenant_grpc_web_pb.js b/api/grpc-web/api/tenant_grpc_web_pb.js deleted file mode 100644 index ab991dc0..00000000 --- a/api/grpc-web/api/tenant_grpc_web_pb.js +++ /dev/null @@ -1,694 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for api - * @enhanceable - * @public - */ - -// Code generated by protoc-gen-grpc-web. DO NOT EDIT. -// versions: -// protoc-gen-grpc-web v1.4.2 -// protoc v3.12.4 -// source: api/tenant.proto - - -/* eslint-disable */ -// @ts-nocheck - - - -const grpc = {}; -grpc.web = require('grpc-web'); - - -var google_api_annotations_pb = require('../google/api/annotations_pb.js') - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js') - -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js') -const proto = {}; -proto.api = require('./tenant_pb.js'); - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.TenantServiceClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.TenantServicePromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateTenantRequest, - * !proto.api.CreateTenantResponse>} - */ -const methodDescriptor_TenantService_Create = new grpc.web.MethodDescriptor( - '/api.TenantService/Create', - grpc.web.MethodType.UNARY, - proto.api.CreateTenantRequest, - proto.api.CreateTenantResponse, - /** - * @param {!proto.api.CreateTenantRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.CreateTenantResponse.deserializeBinary -); - - -/** - * @param {!proto.api.CreateTenantRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.CreateTenantResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.TenantServiceClient.prototype.create = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.TenantService/Create', - request, - metadata || {}, - methodDescriptor_TenantService_Create, - callback); -}; - - -/** - * @param {!proto.api.CreateTenantRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.TenantServicePromiseClient.prototype.create = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.TenantService/Create', - request, - metadata || {}, - methodDescriptor_TenantService_Create); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetTenantRequest, - * !proto.api.GetTenantResponse>} - */ -const methodDescriptor_TenantService_Get = new grpc.web.MethodDescriptor( - '/api.TenantService/Get', - grpc.web.MethodType.UNARY, - proto.api.GetTenantRequest, - proto.api.GetTenantResponse, - /** - * @param {!proto.api.GetTenantRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetTenantResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetTenantRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetTenantResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.TenantServiceClient.prototype.get = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.TenantService/Get', - request, - metadata || {}, - methodDescriptor_TenantService_Get, - callback); -}; - - -/** - * @param {!proto.api.GetTenantRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.TenantServicePromiseClient.prototype.get = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.TenantService/Get', - request, - metadata || {}, - methodDescriptor_TenantService_Get); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateTenantRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_TenantService_Update = new grpc.web.MethodDescriptor( - '/api.TenantService/Update', - grpc.web.MethodType.UNARY, - proto.api.UpdateTenantRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateTenantRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateTenantRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.TenantServiceClient.prototype.update = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.TenantService/Update', - request, - metadata || {}, - methodDescriptor_TenantService_Update, - callback); -}; - - -/** - * @param {!proto.api.UpdateTenantRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.TenantServicePromiseClient.prototype.update = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.TenantService/Update', - request, - metadata || {}, - methodDescriptor_TenantService_Update); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteTenantRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_TenantService_Delete = new grpc.web.MethodDescriptor( - '/api.TenantService/Delete', - grpc.web.MethodType.UNARY, - proto.api.DeleteTenantRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteTenantRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteTenantRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.TenantServiceClient.prototype.delete = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.TenantService/Delete', - request, - metadata || {}, - methodDescriptor_TenantService_Delete, - callback); -}; - - -/** - * @param {!proto.api.DeleteTenantRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.TenantServicePromiseClient.prototype.delete = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.TenantService/Delete', - request, - metadata || {}, - methodDescriptor_TenantService_Delete); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.ListTenantsRequest, - * !proto.api.ListTenantsResponse>} - */ -const methodDescriptor_TenantService_List = new grpc.web.MethodDescriptor( - '/api.TenantService/List', - grpc.web.MethodType.UNARY, - proto.api.ListTenantsRequest, - proto.api.ListTenantsResponse, - /** - * @param {!proto.api.ListTenantsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.ListTenantsResponse.deserializeBinary -); - - -/** - * @param {!proto.api.ListTenantsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.ListTenantsResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.TenantServiceClient.prototype.list = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.TenantService/List', - request, - metadata || {}, - methodDescriptor_TenantService_List, - callback); -}; - - -/** - * @param {!proto.api.ListTenantsRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.TenantServicePromiseClient.prototype.list = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.TenantService/List', - request, - metadata || {}, - methodDescriptor_TenantService_List); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.AddTenantUserRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_TenantService_AddUser = new grpc.web.MethodDescriptor( - '/api.TenantService/AddUser', - grpc.web.MethodType.UNARY, - proto.api.AddTenantUserRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.AddTenantUserRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.AddTenantUserRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.TenantServiceClient.prototype.addUser = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.TenantService/AddUser', - request, - metadata || {}, - methodDescriptor_TenantService_AddUser, - callback); -}; - - -/** - * @param {!proto.api.AddTenantUserRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.TenantServicePromiseClient.prototype.addUser = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.TenantService/AddUser', - request, - metadata || {}, - methodDescriptor_TenantService_AddUser); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetTenantUserRequest, - * !proto.api.GetTenantUserResponse>} - */ -const methodDescriptor_TenantService_GetUser = new grpc.web.MethodDescriptor( - '/api.TenantService/GetUser', - grpc.web.MethodType.UNARY, - proto.api.GetTenantUserRequest, - proto.api.GetTenantUserResponse, - /** - * @param {!proto.api.GetTenantUserRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetTenantUserResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetTenantUserRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetTenantUserResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.TenantServiceClient.prototype.getUser = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.TenantService/GetUser', - request, - metadata || {}, - methodDescriptor_TenantService_GetUser, - callback); -}; - - -/** - * @param {!proto.api.GetTenantUserRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.TenantServicePromiseClient.prototype.getUser = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.TenantService/GetUser', - request, - metadata || {}, - methodDescriptor_TenantService_GetUser); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateTenantUserRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_TenantService_UpdateUser = new grpc.web.MethodDescriptor( - '/api.TenantService/UpdateUser', - grpc.web.MethodType.UNARY, - proto.api.UpdateTenantUserRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateTenantUserRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateTenantUserRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.TenantServiceClient.prototype.updateUser = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.TenantService/UpdateUser', - request, - metadata || {}, - methodDescriptor_TenantService_UpdateUser, - callback); -}; - - -/** - * @param {!proto.api.UpdateTenantUserRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.TenantServicePromiseClient.prototype.updateUser = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.TenantService/UpdateUser', - request, - metadata || {}, - methodDescriptor_TenantService_UpdateUser); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteTenantUserRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_TenantService_DeleteUser = new grpc.web.MethodDescriptor( - '/api.TenantService/DeleteUser', - grpc.web.MethodType.UNARY, - proto.api.DeleteTenantUserRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteTenantUserRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteTenantUserRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.TenantServiceClient.prototype.deleteUser = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.TenantService/DeleteUser', - request, - metadata || {}, - methodDescriptor_TenantService_DeleteUser, - callback); -}; - - -/** - * @param {!proto.api.DeleteTenantUserRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.TenantServicePromiseClient.prototype.deleteUser = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.TenantService/DeleteUser', - request, - metadata || {}, - methodDescriptor_TenantService_DeleteUser); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.ListTenantUsersRequest, - * !proto.api.ListTenantUsersResponse>} - */ -const methodDescriptor_TenantService_ListUsers = new grpc.web.MethodDescriptor( - '/api.TenantService/ListUsers', - grpc.web.MethodType.UNARY, - proto.api.ListTenantUsersRequest, - proto.api.ListTenantUsersResponse, - /** - * @param {!proto.api.ListTenantUsersRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.ListTenantUsersResponse.deserializeBinary -); - - -/** - * @param {!proto.api.ListTenantUsersRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.ListTenantUsersResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.TenantServiceClient.prototype.listUsers = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.TenantService/ListUsers', - request, - metadata || {}, - methodDescriptor_TenantService_ListUsers, - callback); -}; - - -/** - * @param {!proto.api.ListTenantUsersRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.TenantServicePromiseClient.prototype.listUsers = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.TenantService/ListUsers', - request, - metadata || {}, - methodDescriptor_TenantService_ListUsers); -}; - - -module.exports = proto.api; - diff --git a/api/grpc-web/api/tenant_pb.d.ts b/api/grpc-web/api/tenant_pb.d.ts deleted file mode 100644 index 24db3042..00000000 --- a/api/grpc-web/api/tenant_pb.d.ts +++ /dev/null @@ -1,545 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_api_annotations_pb from '../google/api/annotations_pb'; -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; - - -export class Tenant extends jspb.Message { - getId(): string; - setId(value: string): Tenant; - - getName(): string; - setName(value: string): Tenant; - - getDescription(): string; - setDescription(value: string): Tenant; - - getCanHaveGateways(): boolean; - setCanHaveGateways(value: boolean): Tenant; - - getMaxGatewayCount(): number; - setMaxGatewayCount(value: number): Tenant; - - getMaxDeviceCount(): number; - setMaxDeviceCount(value: number): Tenant; - - getPrivateGatewaysUp(): boolean; - setPrivateGatewaysUp(value: boolean): Tenant; - - getPrivateGatewaysDown(): boolean; - setPrivateGatewaysDown(value: boolean): Tenant; - - getTagsMap(): jspb.Map; - clearTagsMap(): Tenant; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Tenant.AsObject; - static toObject(includeInstance: boolean, msg: Tenant): Tenant.AsObject; - static serializeBinaryToWriter(message: Tenant, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Tenant; - static deserializeBinaryFromReader(message: Tenant, reader: jspb.BinaryReader): Tenant; -} - -export namespace Tenant { - export type AsObject = { - id: string, - name: string, - description: string, - canHaveGateways: boolean, - maxGatewayCount: number, - maxDeviceCount: number, - privateGatewaysUp: boolean, - privateGatewaysDown: boolean, - tagsMap: Array<[string, string]>, - } -} - -export class TenantListItem extends jspb.Message { - getId(): string; - setId(value: string): TenantListItem; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): TenantListItem; - hasCreatedAt(): boolean; - clearCreatedAt(): TenantListItem; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): TenantListItem; - hasUpdatedAt(): boolean; - clearUpdatedAt(): TenantListItem; - - getName(): string; - setName(value: string): TenantListItem; - - getCanHaveGateways(): boolean; - setCanHaveGateways(value: boolean): TenantListItem; - - getPrivateGatewaysUp(): boolean; - setPrivateGatewaysUp(value: boolean): TenantListItem; - - getPrivateGatewaysDown(): boolean; - setPrivateGatewaysDown(value: boolean): TenantListItem; - - getMaxGatewayCount(): number; - setMaxGatewayCount(value: number): TenantListItem; - - getMaxDeviceCount(): number; - setMaxDeviceCount(value: number): TenantListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TenantListItem.AsObject; - static toObject(includeInstance: boolean, msg: TenantListItem): TenantListItem.AsObject; - static serializeBinaryToWriter(message: TenantListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TenantListItem; - static deserializeBinaryFromReader(message: TenantListItem, reader: jspb.BinaryReader): TenantListItem; -} - -export namespace TenantListItem { - export type AsObject = { - id: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - name: string, - canHaveGateways: boolean, - privateGatewaysUp: boolean, - privateGatewaysDown: boolean, - maxGatewayCount: number, - maxDeviceCount: number, - } -} - -export class CreateTenantRequest extends jspb.Message { - getTenant(): Tenant | undefined; - setTenant(value?: Tenant): CreateTenantRequest; - hasTenant(): boolean; - clearTenant(): CreateTenantRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateTenantRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateTenantRequest): CreateTenantRequest.AsObject; - static serializeBinaryToWriter(message: CreateTenantRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateTenantRequest; - static deserializeBinaryFromReader(message: CreateTenantRequest, reader: jspb.BinaryReader): CreateTenantRequest; -} - -export namespace CreateTenantRequest { - export type AsObject = { - tenant?: Tenant.AsObject, - } -} - -export class CreateTenantResponse extends jspb.Message { - getId(): string; - setId(value: string): CreateTenantResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateTenantResponse.AsObject; - static toObject(includeInstance: boolean, msg: CreateTenantResponse): CreateTenantResponse.AsObject; - static serializeBinaryToWriter(message: CreateTenantResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateTenantResponse; - static deserializeBinaryFromReader(message: CreateTenantResponse, reader: jspb.BinaryReader): CreateTenantResponse; -} - -export namespace CreateTenantResponse { - export type AsObject = { - id: string, - } -} - -export class GetTenantRequest extends jspb.Message { - getId(): string; - setId(value: string): GetTenantRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetTenantRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetTenantRequest): GetTenantRequest.AsObject; - static serializeBinaryToWriter(message: GetTenantRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetTenantRequest; - static deserializeBinaryFromReader(message: GetTenantRequest, reader: jspb.BinaryReader): GetTenantRequest; -} - -export namespace GetTenantRequest { - export type AsObject = { - id: string, - } -} - -export class GetTenantResponse extends jspb.Message { - getTenant(): Tenant | undefined; - setTenant(value?: Tenant): GetTenantResponse; - hasTenant(): boolean; - clearTenant(): GetTenantResponse; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetTenantResponse; - hasCreatedAt(): boolean; - clearCreatedAt(): GetTenantResponse; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetTenantResponse; - hasUpdatedAt(): boolean; - clearUpdatedAt(): GetTenantResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetTenantResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetTenantResponse): GetTenantResponse.AsObject; - static serializeBinaryToWriter(message: GetTenantResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetTenantResponse; - static deserializeBinaryFromReader(message: GetTenantResponse, reader: jspb.BinaryReader): GetTenantResponse; -} - -export namespace GetTenantResponse { - export type AsObject = { - tenant?: Tenant.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateTenantRequest extends jspb.Message { - getTenant(): Tenant | undefined; - setTenant(value?: Tenant): UpdateTenantRequest; - hasTenant(): boolean; - clearTenant(): UpdateTenantRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateTenantRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateTenantRequest): UpdateTenantRequest.AsObject; - static serializeBinaryToWriter(message: UpdateTenantRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateTenantRequest; - static deserializeBinaryFromReader(message: UpdateTenantRequest, reader: jspb.BinaryReader): UpdateTenantRequest; -} - -export namespace UpdateTenantRequest { - export type AsObject = { - tenant?: Tenant.AsObject, - } -} - -export class DeleteTenantRequest extends jspb.Message { - getId(): string; - setId(value: string): DeleteTenantRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteTenantRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteTenantRequest): DeleteTenantRequest.AsObject; - static serializeBinaryToWriter(message: DeleteTenantRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteTenantRequest; - static deserializeBinaryFromReader(message: DeleteTenantRequest, reader: jspb.BinaryReader): DeleteTenantRequest; -} - -export namespace DeleteTenantRequest { - export type AsObject = { - id: string, - } -} - -export class ListTenantsRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): ListTenantsRequest; - - getOffset(): number; - setOffset(value: number): ListTenantsRequest; - - getSearch(): string; - setSearch(value: string): ListTenantsRequest; - - getUserId(): string; - setUserId(value: string): ListTenantsRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListTenantsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListTenantsRequest): ListTenantsRequest.AsObject; - static serializeBinaryToWriter(message: ListTenantsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListTenantsRequest; - static deserializeBinaryFromReader(message: ListTenantsRequest, reader: jspb.BinaryReader): ListTenantsRequest; -} - -export namespace ListTenantsRequest { - export type AsObject = { - limit: number, - offset: number, - search: string, - userId: string, - } -} - -export class ListTenantsResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): ListTenantsResponse; - - getResultList(): Array; - setResultList(value: Array): ListTenantsResponse; - clearResultList(): ListTenantsResponse; - addResult(value?: TenantListItem, index?: number): TenantListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListTenantsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListTenantsResponse): ListTenantsResponse.AsObject; - static serializeBinaryToWriter(message: ListTenantsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListTenantsResponse; - static deserializeBinaryFromReader(message: ListTenantsResponse, reader: jspb.BinaryReader): ListTenantsResponse; -} - -export namespace ListTenantsResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class TenantUser extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): TenantUser; - - getUserId(): string; - setUserId(value: string): TenantUser; - - getIsAdmin(): boolean; - setIsAdmin(value: boolean): TenantUser; - - getIsDeviceAdmin(): boolean; - setIsDeviceAdmin(value: boolean): TenantUser; - - getIsGatewayAdmin(): boolean; - setIsGatewayAdmin(value: boolean): TenantUser; - - getEmail(): string; - setEmail(value: string): TenantUser; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TenantUser.AsObject; - static toObject(includeInstance: boolean, msg: TenantUser): TenantUser.AsObject; - static serializeBinaryToWriter(message: TenantUser, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TenantUser; - static deserializeBinaryFromReader(message: TenantUser, reader: jspb.BinaryReader): TenantUser; -} - -export namespace TenantUser { - export type AsObject = { - tenantId: string, - userId: string, - isAdmin: boolean, - isDeviceAdmin: boolean, - isGatewayAdmin: boolean, - email: string, - } -} - -export class TenantUserListItem extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): TenantUserListItem; - - getUserId(): string; - setUserId(value: string): TenantUserListItem; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): TenantUserListItem; - hasCreatedAt(): boolean; - clearCreatedAt(): TenantUserListItem; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): TenantUserListItem; - hasUpdatedAt(): boolean; - clearUpdatedAt(): TenantUserListItem; - - getEmail(): string; - setEmail(value: string): TenantUserListItem; - - getIsAdmin(): boolean; - setIsAdmin(value: boolean): TenantUserListItem; - - getIsDeviceAdmin(): boolean; - setIsDeviceAdmin(value: boolean): TenantUserListItem; - - getIsGatewayAdmin(): boolean; - setIsGatewayAdmin(value: boolean): TenantUserListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TenantUserListItem.AsObject; - static toObject(includeInstance: boolean, msg: TenantUserListItem): TenantUserListItem.AsObject; - static serializeBinaryToWriter(message: TenantUserListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TenantUserListItem; - static deserializeBinaryFromReader(message: TenantUserListItem, reader: jspb.BinaryReader): TenantUserListItem; -} - -export namespace TenantUserListItem { - export type AsObject = { - tenantId: string, - userId: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - email: string, - isAdmin: boolean, - isDeviceAdmin: boolean, - isGatewayAdmin: boolean, - } -} - -export class AddTenantUserRequest extends jspb.Message { - getTenantUser(): TenantUser | undefined; - setTenantUser(value?: TenantUser): AddTenantUserRequest; - hasTenantUser(): boolean; - clearTenantUser(): AddTenantUserRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AddTenantUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: AddTenantUserRequest): AddTenantUserRequest.AsObject; - static serializeBinaryToWriter(message: AddTenantUserRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AddTenantUserRequest; - static deserializeBinaryFromReader(message: AddTenantUserRequest, reader: jspb.BinaryReader): AddTenantUserRequest; -} - -export namespace AddTenantUserRequest { - export type AsObject = { - tenantUser?: TenantUser.AsObject, - } -} - -export class GetTenantUserRequest extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): GetTenantUserRequest; - - getUserId(): string; - setUserId(value: string): GetTenantUserRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetTenantUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetTenantUserRequest): GetTenantUserRequest.AsObject; - static serializeBinaryToWriter(message: GetTenantUserRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetTenantUserRequest; - static deserializeBinaryFromReader(message: GetTenantUserRequest, reader: jspb.BinaryReader): GetTenantUserRequest; -} - -export namespace GetTenantUserRequest { - export type AsObject = { - tenantId: string, - userId: string, - } -} - -export class GetTenantUserResponse extends jspb.Message { - getTenantUser(): TenantUser | undefined; - setTenantUser(value?: TenantUser): GetTenantUserResponse; - hasTenantUser(): boolean; - clearTenantUser(): GetTenantUserResponse; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetTenantUserResponse; - hasCreatedAt(): boolean; - clearCreatedAt(): GetTenantUserResponse; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetTenantUserResponse; - hasUpdatedAt(): boolean; - clearUpdatedAt(): GetTenantUserResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetTenantUserResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetTenantUserResponse): GetTenantUserResponse.AsObject; - static serializeBinaryToWriter(message: GetTenantUserResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetTenantUserResponse; - static deserializeBinaryFromReader(message: GetTenantUserResponse, reader: jspb.BinaryReader): GetTenantUserResponse; -} - -export namespace GetTenantUserResponse { - export type AsObject = { - tenantUser?: TenantUser.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateTenantUserRequest extends jspb.Message { - getTenantUser(): TenantUser | undefined; - setTenantUser(value?: TenantUser): UpdateTenantUserRequest; - hasTenantUser(): boolean; - clearTenantUser(): UpdateTenantUserRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateTenantUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateTenantUserRequest): UpdateTenantUserRequest.AsObject; - static serializeBinaryToWriter(message: UpdateTenantUserRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateTenantUserRequest; - static deserializeBinaryFromReader(message: UpdateTenantUserRequest, reader: jspb.BinaryReader): UpdateTenantUserRequest; -} - -export namespace UpdateTenantUserRequest { - export type AsObject = { - tenantUser?: TenantUser.AsObject, - } -} - -export class DeleteTenantUserRequest extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): DeleteTenantUserRequest; - - getUserId(): string; - setUserId(value: string): DeleteTenantUserRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteTenantUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteTenantUserRequest): DeleteTenantUserRequest.AsObject; - static serializeBinaryToWriter(message: DeleteTenantUserRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteTenantUserRequest; - static deserializeBinaryFromReader(message: DeleteTenantUserRequest, reader: jspb.BinaryReader): DeleteTenantUserRequest; -} - -export namespace DeleteTenantUserRequest { - export type AsObject = { - tenantId: string, - userId: string, - } -} - -export class ListTenantUsersRequest extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): ListTenantUsersRequest; - - getLimit(): number; - setLimit(value: number): ListTenantUsersRequest; - - getOffset(): number; - setOffset(value: number): ListTenantUsersRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListTenantUsersRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListTenantUsersRequest): ListTenantUsersRequest.AsObject; - static serializeBinaryToWriter(message: ListTenantUsersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListTenantUsersRequest; - static deserializeBinaryFromReader(message: ListTenantUsersRequest, reader: jspb.BinaryReader): ListTenantUsersRequest; -} - -export namespace ListTenantUsersRequest { - export type AsObject = { - tenantId: string, - limit: number, - offset: number, - } -} - -export class ListTenantUsersResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): ListTenantUsersResponse; - - getResultList(): Array; - setResultList(value: Array): ListTenantUsersResponse; - clearResultList(): ListTenantUsersResponse; - addResult(value?: TenantUserListItem, index?: number): TenantUserListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListTenantUsersResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListTenantUsersResponse): ListTenantUsersResponse.AsObject; - static serializeBinaryToWriter(message: ListTenantUsersResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListTenantUsersResponse; - static deserializeBinaryFromReader(message: ListTenantUsersResponse, reader: jspb.BinaryReader): ListTenantUsersResponse; -} - -export namespace ListTenantUsersResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - diff --git a/api/grpc-web/api/tenant_pb.js b/api/grpc-web/api/tenant_pb.js deleted file mode 100644 index 91a61da0..00000000 --- a/api/grpc-web/api/tenant_pb.js +++ /dev/null @@ -1,4496 +0,0 @@ -// source: api/tenant.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -goog.exportSymbol('proto.api.AddTenantUserRequest', null, global); -goog.exportSymbol('proto.api.CreateTenantRequest', null, global); -goog.exportSymbol('proto.api.CreateTenantResponse', null, global); -goog.exportSymbol('proto.api.DeleteTenantRequest', null, global); -goog.exportSymbol('proto.api.DeleteTenantUserRequest', null, global); -goog.exportSymbol('proto.api.GetTenantRequest', null, global); -goog.exportSymbol('proto.api.GetTenantResponse', null, global); -goog.exportSymbol('proto.api.GetTenantUserRequest', null, global); -goog.exportSymbol('proto.api.GetTenantUserResponse', null, global); -goog.exportSymbol('proto.api.ListTenantUsersRequest', null, global); -goog.exportSymbol('proto.api.ListTenantUsersResponse', null, global); -goog.exportSymbol('proto.api.ListTenantsRequest', null, global); -goog.exportSymbol('proto.api.ListTenantsResponse', null, global); -goog.exportSymbol('proto.api.Tenant', null, global); -goog.exportSymbol('proto.api.TenantListItem', null, global); -goog.exportSymbol('proto.api.TenantUser', null, global); -goog.exportSymbol('proto.api.TenantUserListItem', null, global); -goog.exportSymbol('proto.api.UpdateTenantRequest', null, global); -goog.exportSymbol('proto.api.UpdateTenantUserRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.Tenant = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.Tenant, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.Tenant.displayName = 'proto.api.Tenant'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.TenantListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.TenantListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.TenantListItem.displayName = 'proto.api.TenantListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateTenantRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateTenantRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateTenantRequest.displayName = 'proto.api.CreateTenantRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateTenantResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateTenantResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateTenantResponse.displayName = 'proto.api.CreateTenantResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetTenantRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetTenantRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetTenantRequest.displayName = 'proto.api.GetTenantRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetTenantResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetTenantResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetTenantResponse.displayName = 'proto.api.GetTenantResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateTenantRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateTenantRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateTenantRequest.displayName = 'proto.api.UpdateTenantRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteTenantRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteTenantRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteTenantRequest.displayName = 'proto.api.DeleteTenantRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListTenantsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListTenantsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListTenantsRequest.displayName = 'proto.api.ListTenantsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListTenantsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListTenantsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListTenantsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListTenantsResponse.displayName = 'proto.api.ListTenantsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.TenantUser = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.TenantUser, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.TenantUser.displayName = 'proto.api.TenantUser'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.TenantUserListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.TenantUserListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.TenantUserListItem.displayName = 'proto.api.TenantUserListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.AddTenantUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.AddTenantUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.AddTenantUserRequest.displayName = 'proto.api.AddTenantUserRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetTenantUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetTenantUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetTenantUserRequest.displayName = 'proto.api.GetTenantUserRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetTenantUserResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetTenantUserResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetTenantUserResponse.displayName = 'proto.api.GetTenantUserResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateTenantUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateTenantUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateTenantUserRequest.displayName = 'proto.api.UpdateTenantUserRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteTenantUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteTenantUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteTenantUserRequest.displayName = 'proto.api.DeleteTenantUserRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListTenantUsersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListTenantUsersRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListTenantUsersRequest.displayName = 'proto.api.ListTenantUsersRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListTenantUsersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListTenantUsersResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListTenantUsersResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListTenantUsersResponse.displayName = 'proto.api.ListTenantUsersResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.Tenant.prototype.toObject = function(opt_includeInstance) { - return proto.api.Tenant.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.Tenant} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Tenant.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - canHaveGateways: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - maxGatewayCount: jspb.Message.getFieldWithDefault(msg, 5, 0), - maxDeviceCount: jspb.Message.getFieldWithDefault(msg, 6, 0), - privateGatewaysUp: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - privateGatewaysDown: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.Tenant} - */ -proto.api.Tenant.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.Tenant; - return proto.api.Tenant.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.Tenant} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.Tenant} - */ -proto.api.Tenant.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCanHaveGateways(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setMaxGatewayCount(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setMaxDeviceCount(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPrivateGatewaysUp(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPrivateGatewaysDown(value); - break; - case 9: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.Tenant.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.Tenant.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.Tenant} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Tenant.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getCanHaveGateways(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getMaxGatewayCount(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getMaxDeviceCount(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } - f = message.getPrivateGatewaysUp(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getPrivateGatewaysDown(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.Tenant.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Tenant} returns this - */ -proto.api.Tenant.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.Tenant.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Tenant} returns this - */ -proto.api.Tenant.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.api.Tenant.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Tenant} returns this - */ -proto.api.Tenant.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional bool can_have_gateways = 4; - * @return {boolean} - */ -proto.api.Tenant.prototype.getCanHaveGateways = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.Tenant} returns this - */ -proto.api.Tenant.prototype.setCanHaveGateways = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional uint32 max_gateway_count = 5; - * @return {number} - */ -proto.api.Tenant.prototype.getMaxGatewayCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.Tenant} returns this - */ -proto.api.Tenant.prototype.setMaxGatewayCount = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional uint32 max_device_count = 6; - * @return {number} - */ -proto.api.Tenant.prototype.getMaxDeviceCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.Tenant} returns this - */ -proto.api.Tenant.prototype.setMaxDeviceCount = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional bool private_gateways_up = 7; - * @return {boolean} - */ -proto.api.Tenant.prototype.getPrivateGatewaysUp = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.Tenant} returns this - */ -proto.api.Tenant.prototype.setPrivateGatewaysUp = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * optional bool private_gateways_down = 8; - * @return {boolean} - */ -proto.api.Tenant.prototype.getPrivateGatewaysDown = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.Tenant} returns this - */ -proto.api.Tenant.prototype.setPrivateGatewaysDown = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); -}; - - -/** - * map tags = 9; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.Tenant.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 9, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.Tenant} returns this - */ -proto.api.Tenant.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.TenantListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.TenantListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.TenantListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.TenantListItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 4, ""), - canHaveGateways: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - privateGatewaysUp: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - privateGatewaysDown: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - maxGatewayCount: jspb.Message.getFieldWithDefault(msg, 7, 0), - maxDeviceCount: jspb.Message.getFieldWithDefault(msg, 8, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.TenantListItem} - */ -proto.api.TenantListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.TenantListItem; - return proto.api.TenantListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.TenantListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.TenantListItem} - */ -proto.api.TenantListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCanHaveGateways(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPrivateGatewaysUp(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPrivateGatewaysDown(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setMaxGatewayCount(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setMaxDeviceCount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.TenantListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.TenantListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.TenantListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.TenantListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getCanHaveGateways(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getPrivateGatewaysUp(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getPrivateGatewaysDown(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getMaxGatewayCount(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getMaxDeviceCount(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.TenantListItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.TenantListItem} returns this - */ -proto.api.TenantListItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.TenantListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.TenantListItem} returns this -*/ -proto.api.TenantListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.TenantListItem} returns this - */ -proto.api.TenantListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.TenantListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.TenantListItem.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.TenantListItem} returns this -*/ -proto.api.TenantListItem.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.TenantListItem} returns this - */ -proto.api.TenantListItem.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.TenantListItem.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string name = 4; - * @return {string} - */ -proto.api.TenantListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.TenantListItem} returns this - */ -proto.api.TenantListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool can_have_gateways = 5; - * @return {boolean} - */ -proto.api.TenantListItem.prototype.getCanHaveGateways = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.TenantListItem} returns this - */ -proto.api.TenantListItem.prototype.setCanHaveGateways = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool private_gateways_up = 6; - * @return {boolean} - */ -proto.api.TenantListItem.prototype.getPrivateGatewaysUp = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.TenantListItem} returns this - */ -proto.api.TenantListItem.prototype.setPrivateGatewaysUp = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional bool private_gateways_down = 9; - * @return {boolean} - */ -proto.api.TenantListItem.prototype.getPrivateGatewaysDown = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.TenantListItem} returns this - */ -proto.api.TenantListItem.prototype.setPrivateGatewaysDown = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - -/** - * optional uint32 max_gateway_count = 7; - * @return {number} - */ -proto.api.TenantListItem.prototype.getMaxGatewayCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.TenantListItem} returns this - */ -proto.api.TenantListItem.prototype.setMaxGatewayCount = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional uint32 max_device_count = 8; - * @return {number} - */ -proto.api.TenantListItem.prototype.getMaxDeviceCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.TenantListItem} returns this - */ -proto.api.TenantListItem.prototype.setMaxDeviceCount = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateTenantRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateTenantRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateTenantRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateTenantRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tenant: (f = msg.getTenant()) && proto.api.Tenant.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateTenantRequest} - */ -proto.api.CreateTenantRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateTenantRequest; - return proto.api.CreateTenantRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateTenantRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateTenantRequest} - */ -proto.api.CreateTenantRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Tenant; - reader.readMessage(value,proto.api.Tenant.deserializeBinaryFromReader); - msg.setTenant(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateTenantRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateTenantRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateTenantRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateTenantRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenant(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Tenant.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Tenant tenant = 1; - * @return {?proto.api.Tenant} - */ -proto.api.CreateTenantRequest.prototype.getTenant = function() { - return /** @type{?proto.api.Tenant} */ ( - jspb.Message.getWrapperField(this, proto.api.Tenant, 1)); -}; - - -/** - * @param {?proto.api.Tenant|undefined} value - * @return {!proto.api.CreateTenantRequest} returns this -*/ -proto.api.CreateTenantRequest.prototype.setTenant = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateTenantRequest} returns this - */ -proto.api.CreateTenantRequest.prototype.clearTenant = function() { - return this.setTenant(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateTenantRequest.prototype.hasTenant = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateTenantResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateTenantResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateTenantResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateTenantResponse.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateTenantResponse} - */ -proto.api.CreateTenantResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateTenantResponse; - return proto.api.CreateTenantResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateTenantResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateTenantResponse} - */ -proto.api.CreateTenantResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateTenantResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateTenantResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateTenantResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateTenantResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.CreateTenantResponse.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.CreateTenantResponse} returns this - */ -proto.api.CreateTenantResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetTenantRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetTenantRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetTenantRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetTenantRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetTenantRequest} - */ -proto.api.GetTenantRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetTenantRequest; - return proto.api.GetTenantRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetTenantRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetTenantRequest} - */ -proto.api.GetTenantRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetTenantRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetTenantRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetTenantRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetTenantRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.GetTenantRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetTenantRequest} returns this - */ -proto.api.GetTenantRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetTenantResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetTenantResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetTenantResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetTenantResponse.toObject = function(includeInstance, msg) { - var f, obj = { - tenant: (f = msg.getTenant()) && proto.api.Tenant.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetTenantResponse} - */ -proto.api.GetTenantResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetTenantResponse; - return proto.api.GetTenantResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetTenantResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetTenantResponse} - */ -proto.api.GetTenantResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Tenant; - reader.readMessage(value,proto.api.Tenant.deserializeBinaryFromReader); - msg.setTenant(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetTenantResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetTenantResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetTenantResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetTenantResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenant(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Tenant.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Tenant tenant = 1; - * @return {?proto.api.Tenant} - */ -proto.api.GetTenantResponse.prototype.getTenant = function() { - return /** @type{?proto.api.Tenant} */ ( - jspb.Message.getWrapperField(this, proto.api.Tenant, 1)); -}; - - -/** - * @param {?proto.api.Tenant|undefined} value - * @return {!proto.api.GetTenantResponse} returns this -*/ -proto.api.GetTenantResponse.prototype.setTenant = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetTenantResponse} returns this - */ -proto.api.GetTenantResponse.prototype.clearTenant = function() { - return this.setTenant(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetTenantResponse.prototype.hasTenant = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetTenantResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetTenantResponse} returns this -*/ -proto.api.GetTenantResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetTenantResponse} returns this - */ -proto.api.GetTenantResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetTenantResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetTenantResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetTenantResponse} returns this -*/ -proto.api.GetTenantResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetTenantResponse} returns this - */ -proto.api.GetTenantResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetTenantResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateTenantRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateTenantRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateTenantRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateTenantRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tenant: (f = msg.getTenant()) && proto.api.Tenant.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateTenantRequest} - */ -proto.api.UpdateTenantRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateTenantRequest; - return proto.api.UpdateTenantRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateTenantRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateTenantRequest} - */ -proto.api.UpdateTenantRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Tenant; - reader.readMessage(value,proto.api.Tenant.deserializeBinaryFromReader); - msg.setTenant(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateTenantRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateTenantRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateTenantRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateTenantRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenant(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Tenant.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Tenant tenant = 1; - * @return {?proto.api.Tenant} - */ -proto.api.UpdateTenantRequest.prototype.getTenant = function() { - return /** @type{?proto.api.Tenant} */ ( - jspb.Message.getWrapperField(this, proto.api.Tenant, 1)); -}; - - -/** - * @param {?proto.api.Tenant|undefined} value - * @return {!proto.api.UpdateTenantRequest} returns this -*/ -proto.api.UpdateTenantRequest.prototype.setTenant = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateTenantRequest} returns this - */ -proto.api.UpdateTenantRequest.prototype.clearTenant = function() { - return this.setTenant(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateTenantRequest.prototype.hasTenant = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteTenantRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteTenantRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteTenantRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteTenantRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteTenantRequest} - */ -proto.api.DeleteTenantRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteTenantRequest; - return proto.api.DeleteTenantRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteTenantRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteTenantRequest} - */ -proto.api.DeleteTenantRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteTenantRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteTenantRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteTenantRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteTenantRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeleteTenantRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteTenantRequest} returns this - */ -proto.api.DeleteTenantRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListTenantsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListTenantsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListTenantsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListTenantsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - search: jspb.Message.getFieldWithDefault(msg, 3, ""), - userId: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListTenantsRequest} - */ -proto.api.ListTenantsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListTenantsRequest; - return proto.api.ListTenantsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListTenantsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListTenantsRequest} - */ -proto.api.ListTenantsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSearch(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListTenantsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListTenantsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListTenantsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListTenantsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getSearch(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListTenantsRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListTenantsRequest} returns this - */ -proto.api.ListTenantsRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListTenantsRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListTenantsRequest} returns this - */ -proto.api.ListTenantsRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string search = 3; - * @return {string} - */ -proto.api.ListTenantsRequest.prototype.getSearch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListTenantsRequest} returns this - */ -proto.api.ListTenantsRequest.prototype.setSearch = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string user_id = 4; - * @return {string} - */ -proto.api.ListTenantsRequest.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListTenantsRequest} returns this - */ -proto.api.ListTenantsRequest.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListTenantsResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListTenantsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListTenantsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListTenantsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListTenantsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.TenantListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListTenantsResponse} - */ -proto.api.ListTenantsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListTenantsResponse; - return proto.api.ListTenantsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListTenantsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListTenantsResponse} - */ -proto.api.ListTenantsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.TenantListItem; - reader.readMessage(value,proto.api.TenantListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListTenantsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListTenantsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListTenantsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListTenantsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.TenantListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListTenantsResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListTenantsResponse} returns this - */ -proto.api.ListTenantsResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated TenantListItem result = 2; - * @return {!Array} - */ -proto.api.ListTenantsResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.TenantListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListTenantsResponse} returns this -*/ -proto.api.ListTenantsResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.TenantListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.TenantListItem} - */ -proto.api.ListTenantsResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.TenantListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListTenantsResponse} returns this - */ -proto.api.ListTenantsResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.TenantUser.prototype.toObject = function(opt_includeInstance) { - return proto.api.TenantUser.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.TenantUser} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.TenantUser.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, ""), - userId: jspb.Message.getFieldWithDefault(msg, 2, ""), - isAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - isDeviceAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - isGatewayAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - email: jspb.Message.getFieldWithDefault(msg, 6, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.TenantUser} - */ -proto.api.TenantUser.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.TenantUser; - return proto.api.TenantUser.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.TenantUser} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.TenantUser} - */ -proto.api.TenantUser.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAdmin(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsDeviceAdmin(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsGatewayAdmin(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.TenantUser.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.TenantUser.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.TenantUser} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.TenantUser.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getIsAdmin(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getIsDeviceAdmin(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getIsGatewayAdmin(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.api.TenantUser.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.TenantUser} returns this - */ -proto.api.TenantUser.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_id = 2; - * @return {string} - */ -proto.api.TenantUser.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.TenantUser} returns this - */ -proto.api.TenantUser.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool is_admin = 3; - * @return {boolean} - */ -proto.api.TenantUser.prototype.getIsAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.TenantUser} returns this - */ -proto.api.TenantUser.prototype.setIsAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional bool is_device_admin = 4; - * @return {boolean} - */ -proto.api.TenantUser.prototype.getIsDeviceAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.TenantUser} returns this - */ -proto.api.TenantUser.prototype.setIsDeviceAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional bool is_gateway_admin = 5; - * @return {boolean} - */ -proto.api.TenantUser.prototype.getIsGatewayAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.TenantUser} returns this - */ -proto.api.TenantUser.prototype.setIsGatewayAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional string email = 6; - * @return {string} - */ -proto.api.TenantUser.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.TenantUser} returns this - */ -proto.api.TenantUser.prototype.setEmail = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.TenantUserListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.TenantUserListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.TenantUserListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.TenantUserListItem.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, ""), - userId: jspb.Message.getFieldWithDefault(msg, 2, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - email: jspb.Message.getFieldWithDefault(msg, 5, ""), - isAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - isDeviceAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - isGatewayAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 8, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.TenantUserListItem} - */ -proto.api.TenantUserListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.TenantUserListItem; - return proto.api.TenantUserListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.TenantUserListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.TenantUserListItem} - */ -proto.api.TenantUserListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAdmin(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsDeviceAdmin(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsGatewayAdmin(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.TenantUserListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.TenantUserListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.TenantUserListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.TenantUserListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getIsAdmin(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getIsDeviceAdmin(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getIsGatewayAdmin(); - if (f) { - writer.writeBool( - 8, - f - ); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.api.TenantUserListItem.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.TenantUserListItem} returns this - */ -proto.api.TenantUserListItem.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_id = 2; - * @return {string} - */ -proto.api.TenantUserListItem.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.TenantUserListItem} returns this - */ -proto.api.TenantUserListItem.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.TenantUserListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.TenantUserListItem} returns this -*/ -proto.api.TenantUserListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.TenantUserListItem} returns this - */ -proto.api.TenantUserListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.TenantUserListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.TenantUserListItem.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.TenantUserListItem} returns this -*/ -proto.api.TenantUserListItem.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.TenantUserListItem} returns this - */ -proto.api.TenantUserListItem.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.TenantUserListItem.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string email = 5; - * @return {string} - */ -proto.api.TenantUserListItem.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.TenantUserListItem} returns this - */ -proto.api.TenantUserListItem.prototype.setEmail = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional bool is_admin = 6; - * @return {boolean} - */ -proto.api.TenantUserListItem.prototype.getIsAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.TenantUserListItem} returns this - */ -proto.api.TenantUserListItem.prototype.setIsAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional bool is_device_admin = 7; - * @return {boolean} - */ -proto.api.TenantUserListItem.prototype.getIsDeviceAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.TenantUserListItem} returns this - */ -proto.api.TenantUserListItem.prototype.setIsDeviceAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * optional bool is_gateway_admin = 8; - * @return {boolean} - */ -proto.api.TenantUserListItem.prototype.getIsGatewayAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.TenantUserListItem} returns this - */ -proto.api.TenantUserListItem.prototype.setIsGatewayAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.AddTenantUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.AddTenantUserRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.AddTenantUserRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AddTenantUserRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tenantUser: (f = msg.getTenantUser()) && proto.api.TenantUser.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.AddTenantUserRequest} - */ -proto.api.AddTenantUserRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.AddTenantUserRequest; - return proto.api.AddTenantUserRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.AddTenantUserRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.AddTenantUserRequest} - */ -proto.api.AddTenantUserRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.TenantUser; - reader.readMessage(value,proto.api.TenantUser.deserializeBinaryFromReader); - msg.setTenantUser(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.AddTenantUserRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.AddTenantUserRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.AddTenantUserRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AddTenantUserRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantUser(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.TenantUser.serializeBinaryToWriter - ); - } -}; - - -/** - * optional TenantUser tenant_user = 1; - * @return {?proto.api.TenantUser} - */ -proto.api.AddTenantUserRequest.prototype.getTenantUser = function() { - return /** @type{?proto.api.TenantUser} */ ( - jspb.Message.getWrapperField(this, proto.api.TenantUser, 1)); -}; - - -/** - * @param {?proto.api.TenantUser|undefined} value - * @return {!proto.api.AddTenantUserRequest} returns this -*/ -proto.api.AddTenantUserRequest.prototype.setTenantUser = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.AddTenantUserRequest} returns this - */ -proto.api.AddTenantUserRequest.prototype.clearTenantUser = function() { - return this.setTenantUser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.AddTenantUserRequest.prototype.hasTenantUser = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetTenantUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetTenantUserRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetTenantUserRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetTenantUserRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, ""), - userId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetTenantUserRequest} - */ -proto.api.GetTenantUserRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetTenantUserRequest; - return proto.api.GetTenantUserRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetTenantUserRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetTenantUserRequest} - */ -proto.api.GetTenantUserRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetTenantUserRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetTenantUserRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetTenantUserRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetTenantUserRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.api.GetTenantUserRequest.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetTenantUserRequest} returns this - */ -proto.api.GetTenantUserRequest.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_id = 2; - * @return {string} - */ -proto.api.GetTenantUserRequest.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetTenantUserRequest} returns this - */ -proto.api.GetTenantUserRequest.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetTenantUserResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetTenantUserResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetTenantUserResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetTenantUserResponse.toObject = function(includeInstance, msg) { - var f, obj = { - tenantUser: (f = msg.getTenantUser()) && proto.api.TenantUser.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetTenantUserResponse} - */ -proto.api.GetTenantUserResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetTenantUserResponse; - return proto.api.GetTenantUserResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetTenantUserResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetTenantUserResponse} - */ -proto.api.GetTenantUserResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.TenantUser; - reader.readMessage(value,proto.api.TenantUser.deserializeBinaryFromReader); - msg.setTenantUser(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetTenantUserResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetTenantUserResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetTenantUserResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetTenantUserResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantUser(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.TenantUser.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional TenantUser tenant_user = 1; - * @return {?proto.api.TenantUser} - */ -proto.api.GetTenantUserResponse.prototype.getTenantUser = function() { - return /** @type{?proto.api.TenantUser} */ ( - jspb.Message.getWrapperField(this, proto.api.TenantUser, 1)); -}; - - -/** - * @param {?proto.api.TenantUser|undefined} value - * @return {!proto.api.GetTenantUserResponse} returns this -*/ -proto.api.GetTenantUserResponse.prototype.setTenantUser = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetTenantUserResponse} returns this - */ -proto.api.GetTenantUserResponse.prototype.clearTenantUser = function() { - return this.setTenantUser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetTenantUserResponse.prototype.hasTenantUser = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetTenantUserResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetTenantUserResponse} returns this -*/ -proto.api.GetTenantUserResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetTenantUserResponse} returns this - */ -proto.api.GetTenantUserResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetTenantUserResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetTenantUserResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetTenantUserResponse} returns this -*/ -proto.api.GetTenantUserResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetTenantUserResponse} returns this - */ -proto.api.GetTenantUserResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetTenantUserResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateTenantUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateTenantUserRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateTenantUserRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateTenantUserRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tenantUser: (f = msg.getTenantUser()) && proto.api.TenantUser.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateTenantUserRequest} - */ -proto.api.UpdateTenantUserRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateTenantUserRequest; - return proto.api.UpdateTenantUserRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateTenantUserRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateTenantUserRequest} - */ -proto.api.UpdateTenantUserRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.TenantUser; - reader.readMessage(value,proto.api.TenantUser.deserializeBinaryFromReader); - msg.setTenantUser(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateTenantUserRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateTenantUserRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateTenantUserRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateTenantUserRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantUser(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.TenantUser.serializeBinaryToWriter - ); - } -}; - - -/** - * optional TenantUser tenant_user = 1; - * @return {?proto.api.TenantUser} - */ -proto.api.UpdateTenantUserRequest.prototype.getTenantUser = function() { - return /** @type{?proto.api.TenantUser} */ ( - jspb.Message.getWrapperField(this, proto.api.TenantUser, 1)); -}; - - -/** - * @param {?proto.api.TenantUser|undefined} value - * @return {!proto.api.UpdateTenantUserRequest} returns this -*/ -proto.api.UpdateTenantUserRequest.prototype.setTenantUser = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateTenantUserRequest} returns this - */ -proto.api.UpdateTenantUserRequest.prototype.clearTenantUser = function() { - return this.setTenantUser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateTenantUserRequest.prototype.hasTenantUser = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteTenantUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteTenantUserRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteTenantUserRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteTenantUserRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, ""), - userId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteTenantUserRequest} - */ -proto.api.DeleteTenantUserRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteTenantUserRequest; - return proto.api.DeleteTenantUserRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteTenantUserRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteTenantUserRequest} - */ -proto.api.DeleteTenantUserRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteTenantUserRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteTenantUserRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteTenantUserRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteTenantUserRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.api.DeleteTenantUserRequest.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteTenantUserRequest} returns this - */ -proto.api.DeleteTenantUserRequest.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_id = 2; - * @return {string} - */ -proto.api.DeleteTenantUserRequest.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteTenantUserRequest} returns this - */ -proto.api.DeleteTenantUserRequest.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListTenantUsersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListTenantUsersRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListTenantUsersRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListTenantUsersRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, ""), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - offset: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListTenantUsersRequest} - */ -proto.api.ListTenantUsersRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListTenantUsersRequest; - return proto.api.ListTenantUsersRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListTenantUsersRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListTenantUsersRequest} - */ -proto.api.ListTenantUsersRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListTenantUsersRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListTenantUsersRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListTenantUsersRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListTenantUsersRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.api.ListTenantUsersRequest.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListTenantUsersRequest} returns this - */ -proto.api.ListTenantUsersRequest.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint32 limit = 2; - * @return {number} - */ -proto.api.ListTenantUsersRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListTenantUsersRequest} returns this - */ -proto.api.ListTenantUsersRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint32 offset = 3; - * @return {number} - */ -proto.api.ListTenantUsersRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListTenantUsersRequest} returns this - */ -proto.api.ListTenantUsersRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListTenantUsersResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListTenantUsersResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListTenantUsersResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListTenantUsersResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListTenantUsersResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.TenantUserListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListTenantUsersResponse} - */ -proto.api.ListTenantUsersResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListTenantUsersResponse; - return proto.api.ListTenantUsersResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListTenantUsersResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListTenantUsersResponse} - */ -proto.api.ListTenantUsersResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.TenantUserListItem; - reader.readMessage(value,proto.api.TenantUserListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListTenantUsersResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListTenantUsersResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListTenantUsersResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListTenantUsersResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.TenantUserListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListTenantUsersResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListTenantUsersResponse} returns this - */ -proto.api.ListTenantUsersResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated TenantUserListItem result = 2; - * @return {!Array} - */ -proto.api.ListTenantUsersResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.TenantUserListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListTenantUsersResponse} returns this -*/ -proto.api.ListTenantUsersResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.TenantUserListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.TenantUserListItem} - */ -proto.api.ListTenantUsersResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.TenantUserListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListTenantUsersResponse} returns this - */ -proto.api.ListTenantUsersResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - -goog.object.extend(exports, proto.api); diff --git a/api/grpc-web/api/user_grpc_web_pb.d.ts b/api/grpc-web/api/user_grpc_web_pb.d.ts deleted file mode 100644 index 1f0d47a7..00000000 --- a/api/grpc-web/api/user_grpc_web_pb.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -import * as grpcWeb from 'grpc-web'; - -import * as api_user_pb from '../api/user_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; - - -export class UserServiceClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - create( - request: api_user_pb.CreateUserRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_user_pb.CreateUserResponse) => void - ): grpcWeb.ClientReadableStream; - - get( - request: api_user_pb.GetUserRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_user_pb.GetUserResponse) => void - ): grpcWeb.ClientReadableStream; - - update( - request: api_user_pb.UpdateUserRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - delete( - request: api_user_pb.DeleteUserRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - - list( - request: api_user_pb.ListUsersRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: api_user_pb.ListUsersResponse) => void - ): grpcWeb.ClientReadableStream; - - updatePassword( - request: api_user_pb.UpdateUserPasswordRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.RpcError, - response: google_protobuf_empty_pb.Empty) => void - ): grpcWeb.ClientReadableStream; - -} - -export class UserServicePromiseClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: any; }); - - create( - request: api_user_pb.CreateUserRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - get( - request: api_user_pb.GetUserRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - update( - request: api_user_pb.UpdateUserRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - delete( - request: api_user_pb.DeleteUserRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - list( - request: api_user_pb.ListUsersRequest, - metadata?: grpcWeb.Metadata - ): Promise; - - updatePassword( - request: api_user_pb.UpdateUserPasswordRequest, - metadata?: grpcWeb.Metadata - ): Promise; - -} - diff --git a/api/grpc-web/api/user_grpc_web_pb.js b/api/grpc-web/api/user_grpc_web_pb.js deleted file mode 100644 index 13e5046d..00000000 --- a/api/grpc-web/api/user_grpc_web_pb.js +++ /dev/null @@ -1,450 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for api - * @enhanceable - * @public - */ - -// Code generated by protoc-gen-grpc-web. DO NOT EDIT. -// versions: -// protoc-gen-grpc-web v1.4.2 -// protoc v3.12.4 -// source: api/user.proto - - -/* eslint-disable */ -// @ts-nocheck - - - -const grpc = {}; -grpc.web = require('grpc-web'); - - -var google_api_annotations_pb = require('../google/api/annotations_pb.js') - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js') - -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js') -const proto = {}; -proto.api = require('./user_pb.js'); - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.UserServiceClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?grpc.web.ClientOptions} options - * @constructor - * @struct - * @final - */ -proto.api.UserServicePromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options.format = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname.replace(/\/+$/, ''); - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.CreateUserRequest, - * !proto.api.CreateUserResponse>} - */ -const methodDescriptor_UserService_Create = new grpc.web.MethodDescriptor( - '/api.UserService/Create', - grpc.web.MethodType.UNARY, - proto.api.CreateUserRequest, - proto.api.CreateUserResponse, - /** - * @param {!proto.api.CreateUserRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.CreateUserResponse.deserializeBinary -); - - -/** - * @param {!proto.api.CreateUserRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.CreateUserResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.UserServiceClient.prototype.create = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.UserService/Create', - request, - metadata || {}, - methodDescriptor_UserService_Create, - callback); -}; - - -/** - * @param {!proto.api.CreateUserRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.UserServicePromiseClient.prototype.create = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.UserService/Create', - request, - metadata || {}, - methodDescriptor_UserService_Create); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.GetUserRequest, - * !proto.api.GetUserResponse>} - */ -const methodDescriptor_UserService_Get = new grpc.web.MethodDescriptor( - '/api.UserService/Get', - grpc.web.MethodType.UNARY, - proto.api.GetUserRequest, - proto.api.GetUserResponse, - /** - * @param {!proto.api.GetUserRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.GetUserResponse.deserializeBinary -); - - -/** - * @param {!proto.api.GetUserRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.GetUserResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.UserServiceClient.prototype.get = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.UserService/Get', - request, - metadata || {}, - methodDescriptor_UserService_Get, - callback); -}; - - -/** - * @param {!proto.api.GetUserRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.UserServicePromiseClient.prototype.get = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.UserService/Get', - request, - metadata || {}, - methodDescriptor_UserService_Get); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateUserRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_UserService_Update = new grpc.web.MethodDescriptor( - '/api.UserService/Update', - grpc.web.MethodType.UNARY, - proto.api.UpdateUserRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateUserRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateUserRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.UserServiceClient.prototype.update = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.UserService/Update', - request, - metadata || {}, - methodDescriptor_UserService_Update, - callback); -}; - - -/** - * @param {!proto.api.UpdateUserRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.UserServicePromiseClient.prototype.update = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.UserService/Update', - request, - metadata || {}, - methodDescriptor_UserService_Update); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.DeleteUserRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_UserService_Delete = new grpc.web.MethodDescriptor( - '/api.UserService/Delete', - grpc.web.MethodType.UNARY, - proto.api.DeleteUserRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.DeleteUserRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.DeleteUserRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.UserServiceClient.prototype.delete = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.UserService/Delete', - request, - metadata || {}, - methodDescriptor_UserService_Delete, - callback); -}; - - -/** - * @param {!proto.api.DeleteUserRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.UserServicePromiseClient.prototype.delete = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.UserService/Delete', - request, - metadata || {}, - methodDescriptor_UserService_Delete); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.ListUsersRequest, - * !proto.api.ListUsersResponse>} - */ -const methodDescriptor_UserService_List = new grpc.web.MethodDescriptor( - '/api.UserService/List', - grpc.web.MethodType.UNARY, - proto.api.ListUsersRequest, - proto.api.ListUsersResponse, - /** - * @param {!proto.api.ListUsersRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.api.ListUsersResponse.deserializeBinary -); - - -/** - * @param {!proto.api.ListUsersRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.api.ListUsersResponse)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.UserServiceClient.prototype.list = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.UserService/List', - request, - metadata || {}, - methodDescriptor_UserService_List, - callback); -}; - - -/** - * @param {!proto.api.ListUsersRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.UserServicePromiseClient.prototype.list = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.UserService/List', - request, - metadata || {}, - methodDescriptor_UserService_List); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.api.UpdateUserPasswordRequest, - * !proto.google.protobuf.Empty>} - */ -const methodDescriptor_UserService_UpdatePassword = new grpc.web.MethodDescriptor( - '/api.UserService/UpdatePassword', - grpc.web.MethodType.UNARY, - proto.api.UpdateUserPasswordRequest, - google_protobuf_empty_pb.Empty, - /** - * @param {!proto.api.UpdateUserPasswordRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - google_protobuf_empty_pb.Empty.deserializeBinary -); - - -/** - * @param {!proto.api.UpdateUserPasswordRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.api.UserServiceClient.prototype.updatePassword = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/api.UserService/UpdatePassword', - request, - metadata || {}, - methodDescriptor_UserService_UpdatePassword, - callback); -}; - - -/** - * @param {!proto.api.UpdateUserPasswordRequest} request The - * request proto - * @param {?Object=} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.api.UserServicePromiseClient.prototype.updatePassword = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/api.UserService/UpdatePassword', - request, - metadata || {}, - methodDescriptor_UserService_UpdatePassword); -}; - - -module.exports = proto.api; - diff --git a/api/grpc-web/api/user_pb.d.ts b/api/grpc-web/api/user_pb.d.ts deleted file mode 100644 index 5535b0f9..00000000 --- a/api/grpc-web/api/user_pb.d.ts +++ /dev/null @@ -1,317 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_api_annotations_pb from '../google/api/annotations_pb'; -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; -import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; - - -export class User extends jspb.Message { - getId(): string; - setId(value: string): User; - - getIsAdmin(): boolean; - setIsAdmin(value: boolean): User; - - getIsActive(): boolean; - setIsActive(value: boolean): User; - - getEmail(): string; - setEmail(value: string): User; - - getNote(): string; - setNote(value: string): User; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): User.AsObject; - static toObject(includeInstance: boolean, msg: User): User.AsObject; - static serializeBinaryToWriter(message: User, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): User; - static deserializeBinaryFromReader(message: User, reader: jspb.BinaryReader): User; -} - -export namespace User { - export type AsObject = { - id: string, - isAdmin: boolean, - isActive: boolean, - email: string, - note: string, - } -} - -export class UserListItem extends jspb.Message { - getId(): string; - setId(value: string): UserListItem; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): UserListItem; - hasCreatedAt(): boolean; - clearCreatedAt(): UserListItem; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): UserListItem; - hasUpdatedAt(): boolean; - clearUpdatedAt(): UserListItem; - - getEmail(): string; - setEmail(value: string): UserListItem; - - getIsAdmin(): boolean; - setIsAdmin(value: boolean): UserListItem; - - getIsActive(): boolean; - setIsActive(value: boolean): UserListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserListItem.AsObject; - static toObject(includeInstance: boolean, msg: UserListItem): UserListItem.AsObject; - static serializeBinaryToWriter(message: UserListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserListItem; - static deserializeBinaryFromReader(message: UserListItem, reader: jspb.BinaryReader): UserListItem; -} - -export namespace UserListItem { - export type AsObject = { - id: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - email: string, - isAdmin: boolean, - isActive: boolean, - } -} - -export class UserTenant extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): UserTenant; - - getIsAdmin(): boolean; - setIsAdmin(value: boolean): UserTenant; - - getIsDeviceAdmin(): boolean; - setIsDeviceAdmin(value: boolean): UserTenant; - - getIsGatewayAdmin(): boolean; - setIsGatewayAdmin(value: boolean): UserTenant; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserTenant.AsObject; - static toObject(includeInstance: boolean, msg: UserTenant): UserTenant.AsObject; - static serializeBinaryToWriter(message: UserTenant, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserTenant; - static deserializeBinaryFromReader(message: UserTenant, reader: jspb.BinaryReader): UserTenant; -} - -export namespace UserTenant { - export type AsObject = { - tenantId: string, - isAdmin: boolean, - isDeviceAdmin: boolean, - isGatewayAdmin: boolean, - } -} - -export class CreateUserRequest extends jspb.Message { - getUser(): User | undefined; - setUser(value?: User): CreateUserRequest; - hasUser(): boolean; - clearUser(): CreateUserRequest; - - getPassword(): string; - setPassword(value: string): CreateUserRequest; - - getTenantsList(): Array; - setTenantsList(value: Array): CreateUserRequest; - clearTenantsList(): CreateUserRequest; - addTenants(value?: UserTenant, index?: number): UserTenant; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateUserRequest): CreateUserRequest.AsObject; - static serializeBinaryToWriter(message: CreateUserRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateUserRequest; - static deserializeBinaryFromReader(message: CreateUserRequest, reader: jspb.BinaryReader): CreateUserRequest; -} - -export namespace CreateUserRequest { - export type AsObject = { - user?: User.AsObject, - password: string, - tenantsList: Array, - } -} - -export class CreateUserResponse extends jspb.Message { - getId(): string; - setId(value: string): CreateUserResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateUserResponse.AsObject; - static toObject(includeInstance: boolean, msg: CreateUserResponse): CreateUserResponse.AsObject; - static serializeBinaryToWriter(message: CreateUserResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateUserResponse; - static deserializeBinaryFromReader(message: CreateUserResponse, reader: jspb.BinaryReader): CreateUserResponse; -} - -export namespace CreateUserResponse { - export type AsObject = { - id: string, - } -} - -export class GetUserRequest extends jspb.Message { - getId(): string; - setId(value: string): GetUserRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetUserRequest): GetUserRequest.AsObject; - static serializeBinaryToWriter(message: GetUserRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetUserRequest; - static deserializeBinaryFromReader(message: GetUserRequest, reader: jspb.BinaryReader): GetUserRequest; -} - -export namespace GetUserRequest { - export type AsObject = { - id: string, - } -} - -export class GetUserResponse extends jspb.Message { - getUser(): User | undefined; - setUser(value?: User): GetUserResponse; - hasUser(): boolean; - clearUser(): GetUserResponse; - - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetUserResponse; - hasCreatedAt(): boolean; - clearCreatedAt(): GetUserResponse; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): GetUserResponse; - hasUpdatedAt(): boolean; - clearUpdatedAt(): GetUserResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetUserResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetUserResponse): GetUserResponse.AsObject; - static serializeBinaryToWriter(message: GetUserResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetUserResponse; - static deserializeBinaryFromReader(message: GetUserResponse, reader: jspb.BinaryReader): GetUserResponse; -} - -export namespace GetUserResponse { - export type AsObject = { - user?: User.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateUserRequest extends jspb.Message { - getUser(): User | undefined; - setUser(value?: User): UpdateUserRequest; - hasUser(): boolean; - clearUser(): UpdateUserRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateUserRequest): UpdateUserRequest.AsObject; - static serializeBinaryToWriter(message: UpdateUserRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateUserRequest; - static deserializeBinaryFromReader(message: UpdateUserRequest, reader: jspb.BinaryReader): UpdateUserRequest; -} - -export namespace UpdateUserRequest { - export type AsObject = { - user?: User.AsObject, - } -} - -export class DeleteUserRequest extends jspb.Message { - getId(): string; - setId(value: string): DeleteUserRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteUserRequest): DeleteUserRequest.AsObject; - static serializeBinaryToWriter(message: DeleteUserRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteUserRequest; - static deserializeBinaryFromReader(message: DeleteUserRequest, reader: jspb.BinaryReader): DeleteUserRequest; -} - -export namespace DeleteUserRequest { - export type AsObject = { - id: string, - } -} - -export class ListUsersRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): ListUsersRequest; - - getOffset(): number; - setOffset(value: number): ListUsersRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListUsersRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListUsersRequest): ListUsersRequest.AsObject; - static serializeBinaryToWriter(message: ListUsersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListUsersRequest; - static deserializeBinaryFromReader(message: ListUsersRequest, reader: jspb.BinaryReader): ListUsersRequest; -} - -export namespace ListUsersRequest { - export type AsObject = { - limit: number, - offset: number, - } -} - -export class ListUsersResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): ListUsersResponse; - - getResultList(): Array; - setResultList(value: Array): ListUsersResponse; - clearResultList(): ListUsersResponse; - addResult(value?: UserListItem, index?: number): UserListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListUsersResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListUsersResponse): ListUsersResponse.AsObject; - static serializeBinaryToWriter(message: ListUsersResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListUsersResponse; - static deserializeBinaryFromReader(message: ListUsersResponse, reader: jspb.BinaryReader): ListUsersResponse; -} - -export namespace ListUsersResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class UpdateUserPasswordRequest extends jspb.Message { - getUserId(): string; - setUserId(value: string): UpdateUserPasswordRequest; - - getPassword(): string; - setPassword(value: string): UpdateUserPasswordRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateUserPasswordRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateUserPasswordRequest): UpdateUserPasswordRequest.AsObject; - static serializeBinaryToWriter(message: UpdateUserPasswordRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateUserPasswordRequest; - static deserializeBinaryFromReader(message: UpdateUserPasswordRequest, reader: jspb.BinaryReader): UpdateUserPasswordRequest; -} - -export namespace UpdateUserPasswordRequest { - export type AsObject = { - userId: string, - password: string, - } -} - diff --git a/api/grpc-web/api/user_pb.js b/api/grpc-web/api/user_pb.js deleted file mode 100644 index 17925758..00000000 --- a/api/grpc-web/api/user_pb.js +++ /dev/null @@ -1,2622 +0,0 @@ -// source: api/user.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -goog.exportSymbol('proto.api.CreateUserRequest', null, global); -goog.exportSymbol('proto.api.CreateUserResponse', null, global); -goog.exportSymbol('proto.api.DeleteUserRequest', null, global); -goog.exportSymbol('proto.api.GetUserRequest', null, global); -goog.exportSymbol('proto.api.GetUserResponse', null, global); -goog.exportSymbol('proto.api.ListUsersRequest', null, global); -goog.exportSymbol('proto.api.ListUsersResponse', null, global); -goog.exportSymbol('proto.api.UpdateUserPasswordRequest', null, global); -goog.exportSymbol('proto.api.UpdateUserRequest', null, global); -goog.exportSymbol('proto.api.User', null, global); -goog.exportSymbol('proto.api.UserListItem', null, global); -goog.exportSymbol('proto.api.UserTenant', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.User = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.User, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.User.displayName = 'proto.api.User'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UserListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UserListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UserListItem.displayName = 'proto.api.UserListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UserTenant = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UserTenant, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UserTenant.displayName = 'proto.api.UserTenant'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.CreateUserRequest.repeatedFields_, null); -}; -goog.inherits(proto.api.CreateUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateUserRequest.displayName = 'proto.api.CreateUserRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateUserResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateUserResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateUserResponse.displayName = 'proto.api.CreateUserResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetUserRequest.displayName = 'proto.api.GetUserRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetUserResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetUserResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetUserResponse.displayName = 'proto.api.GetUserResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateUserRequest.displayName = 'proto.api.UpdateUserRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteUserRequest.displayName = 'proto.api.DeleteUserRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListUsersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListUsersRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListUsersRequest.displayName = 'proto.api.ListUsersRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListUsersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListUsersResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListUsersResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListUsersResponse.displayName = 'proto.api.ListUsersResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateUserPasswordRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateUserPasswordRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateUserPasswordRequest.displayName = 'proto.api.UpdateUserPasswordRequest'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.User.prototype.toObject = function(opt_includeInstance) { - return proto.api.User.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.User} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.User.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - isAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - isActive: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - email: jspb.Message.getFieldWithDefault(msg, 6, ""), - note: jspb.Message.getFieldWithDefault(msg, 7, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.User} - */ -proto.api.User.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.User; - return proto.api.User.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.User} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.User} - */ -proto.api.User.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAdmin(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsActive(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setNote(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.User.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.User.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.User} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.User.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getIsAdmin(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getIsActive(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getNote(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.User.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.User} returns this - */ -proto.api.User.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool is_admin = 4; - * @return {boolean} - */ -proto.api.User.prototype.getIsAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.User} returns this - */ -proto.api.User.prototype.setIsAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional bool is_active = 5; - * @return {boolean} - */ -proto.api.User.prototype.getIsActive = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.User} returns this - */ -proto.api.User.prototype.setIsActive = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional string email = 6; - * @return {string} - */ -proto.api.User.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.User} returns this - */ -proto.api.User.prototype.setEmail = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string note = 7; - * @return {string} - */ -proto.api.User.prototype.getNote = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.User} returns this - */ -proto.api.User.prototype.setNote = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UserListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.UserListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UserListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UserListItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - email: jspb.Message.getFieldWithDefault(msg, 4, ""), - isAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - isActive: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UserListItem} - */ -proto.api.UserListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UserListItem; - return proto.api.UserListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UserListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UserListItem} - */ -proto.api.UserListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAdmin(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsActive(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UserListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UserListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UserListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UserListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getIsAdmin(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getIsActive(); - if (f) { - writer.writeBool( - 6, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.UserListItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.UserListItem} returns this - */ -proto.api.UserListItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.UserListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.UserListItem} returns this -*/ -proto.api.UserListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UserListItem} returns this - */ -proto.api.UserListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UserListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.UserListItem.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.UserListItem} returns this -*/ -proto.api.UserListItem.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UserListItem} returns this - */ -proto.api.UserListItem.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UserListItem.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string email = 4; - * @return {string} - */ -proto.api.UserListItem.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.UserListItem} returns this - */ -proto.api.UserListItem.prototype.setEmail = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool is_admin = 5; - * @return {boolean} - */ -proto.api.UserListItem.prototype.getIsAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.UserListItem} returns this - */ -proto.api.UserListItem.prototype.setIsAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool is_active = 6; - * @return {boolean} - */ -proto.api.UserListItem.prototype.getIsActive = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.UserListItem} returns this - */ -proto.api.UserListItem.prototype.setIsActive = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UserTenant.prototype.toObject = function(opt_includeInstance) { - return proto.api.UserTenant.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UserTenant} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UserTenant.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, ""), - isAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - isDeviceAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - isGatewayAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UserTenant} - */ -proto.api.UserTenant.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UserTenant; - return proto.api.UserTenant.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UserTenant} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UserTenant} - */ -proto.api.UserTenant.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAdmin(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsDeviceAdmin(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsGatewayAdmin(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UserTenant.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UserTenant.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UserTenant} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UserTenant.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getIsAdmin(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getIsDeviceAdmin(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getIsGatewayAdmin(); - if (f) { - writer.writeBool( - 4, - f - ); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.api.UserTenant.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.UserTenant} returns this - */ -proto.api.UserTenant.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool is_admin = 2; - * @return {boolean} - */ -proto.api.UserTenant.prototype.getIsAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.UserTenant} returns this - */ -proto.api.UserTenant.prototype.setIsAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional bool is_device_admin = 3; - * @return {boolean} - */ -proto.api.UserTenant.prototype.getIsDeviceAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.UserTenant} returns this - */ -proto.api.UserTenant.prototype.setIsDeviceAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional bool is_gateway_admin = 4; - * @return {boolean} - */ -proto.api.UserTenant.prototype.getIsGatewayAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.UserTenant} returns this - */ -proto.api.UserTenant.prototype.setIsGatewayAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.CreateUserRequest.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateUserRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateUserRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateUserRequest.toObject = function(includeInstance, msg) { - var f, obj = { - user: (f = msg.getUser()) && proto.api.User.toObject(includeInstance, f), - password: jspb.Message.getFieldWithDefault(msg, 2, ""), - tenantsList: jspb.Message.toObjectList(msg.getTenantsList(), - proto.api.UserTenant.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateUserRequest} - */ -proto.api.CreateUserRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateUserRequest; - return proto.api.CreateUserRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateUserRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateUserRequest} - */ -proto.api.CreateUserRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.User; - reader.readMessage(value,proto.api.User.deserializeBinaryFromReader); - msg.setUser(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - case 3: - var value = new proto.api.UserTenant; - reader.readMessage(value,proto.api.UserTenant.deserializeBinaryFromReader); - msg.addTenants(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateUserRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateUserRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateUserRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateUserRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUser(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.User.serializeBinaryToWriter - ); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getTenantsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.api.UserTenant.serializeBinaryToWriter - ); - } -}; - - -/** - * optional User user = 1; - * @return {?proto.api.User} - */ -proto.api.CreateUserRequest.prototype.getUser = function() { - return /** @type{?proto.api.User} */ ( - jspb.Message.getWrapperField(this, proto.api.User, 1)); -}; - - -/** - * @param {?proto.api.User|undefined} value - * @return {!proto.api.CreateUserRequest} returns this -*/ -proto.api.CreateUserRequest.prototype.setUser = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateUserRequest} returns this - */ -proto.api.CreateUserRequest.prototype.clearUser = function() { - return this.setUser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateUserRequest.prototype.hasUser = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string password = 2; - * @return {string} - */ -proto.api.CreateUserRequest.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.CreateUserRequest} returns this - */ -proto.api.CreateUserRequest.prototype.setPassword = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated UserTenant tenants = 3; - * @return {!Array} - */ -proto.api.CreateUserRequest.prototype.getTenantsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.UserTenant, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.CreateUserRequest} returns this -*/ -proto.api.CreateUserRequest.prototype.setTenantsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.api.UserTenant=} opt_value - * @param {number=} opt_index - * @return {!proto.api.UserTenant} - */ -proto.api.CreateUserRequest.prototype.addTenants = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.api.UserTenant, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.CreateUserRequest} returns this - */ -proto.api.CreateUserRequest.prototype.clearTenantsList = function() { - return this.setTenantsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateUserResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateUserResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateUserResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateUserResponse.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateUserResponse} - */ -proto.api.CreateUserResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateUserResponse; - return proto.api.CreateUserResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateUserResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateUserResponse} - */ -proto.api.CreateUserResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateUserResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateUserResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateUserResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateUserResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.CreateUserResponse.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.CreateUserResponse} returns this - */ -proto.api.CreateUserResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetUserRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetUserRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetUserRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetUserRequest} - */ -proto.api.GetUserRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetUserRequest; - return proto.api.GetUserRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetUserRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetUserRequest} - */ -proto.api.GetUserRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetUserRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetUserRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetUserRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetUserRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.GetUserRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetUserRequest} returns this - */ -proto.api.GetUserRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetUserResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetUserResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetUserResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetUserResponse.toObject = function(includeInstance, msg) { - var f, obj = { - user: (f = msg.getUser()) && proto.api.User.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetUserResponse} - */ -proto.api.GetUserResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetUserResponse; - return proto.api.GetUserResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetUserResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetUserResponse} - */ -proto.api.GetUserResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.User; - reader.readMessage(value,proto.api.User.deserializeBinaryFromReader); - msg.setUser(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetUserResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetUserResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetUserResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetUserResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUser(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.User.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional User user = 1; - * @return {?proto.api.User} - */ -proto.api.GetUserResponse.prototype.getUser = function() { - return /** @type{?proto.api.User} */ ( - jspb.Message.getWrapperField(this, proto.api.User, 1)); -}; - - -/** - * @param {?proto.api.User|undefined} value - * @return {!proto.api.GetUserResponse} returns this -*/ -proto.api.GetUserResponse.prototype.setUser = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetUserResponse} returns this - */ -proto.api.GetUserResponse.prototype.clearUser = function() { - return this.setUser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetUserResponse.prototype.hasUser = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetUserResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetUserResponse} returns this -*/ -proto.api.GetUserResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetUserResponse} returns this - */ -proto.api.GetUserResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetUserResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetUserResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetUserResponse} returns this -*/ -proto.api.GetUserResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetUserResponse} returns this - */ -proto.api.GetUserResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetUserResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateUserRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateUserRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateUserRequest.toObject = function(includeInstance, msg) { - var f, obj = { - user: (f = msg.getUser()) && proto.api.User.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateUserRequest} - */ -proto.api.UpdateUserRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateUserRequest; - return proto.api.UpdateUserRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateUserRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateUserRequest} - */ -proto.api.UpdateUserRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.User; - reader.readMessage(value,proto.api.User.deserializeBinaryFromReader); - msg.setUser(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateUserRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateUserRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateUserRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateUserRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUser(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.User.serializeBinaryToWriter - ); - } -}; - - -/** - * optional User user = 1; - * @return {?proto.api.User} - */ -proto.api.UpdateUserRequest.prototype.getUser = function() { - return /** @type{?proto.api.User} */ ( - jspb.Message.getWrapperField(this, proto.api.User, 1)); -}; - - -/** - * @param {?proto.api.User|undefined} value - * @return {!proto.api.UpdateUserRequest} returns this -*/ -proto.api.UpdateUserRequest.prototype.setUser = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateUserRequest} returns this - */ -proto.api.UpdateUserRequest.prototype.clearUser = function() { - return this.setUser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateUserRequest.prototype.hasUser = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteUserRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteUserRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteUserRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteUserRequest} - */ -proto.api.DeleteUserRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteUserRequest; - return proto.api.DeleteUserRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteUserRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteUserRequest} - */ -proto.api.DeleteUserRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteUserRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteUserRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteUserRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteUserRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeleteUserRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteUserRequest} returns this - */ -proto.api.DeleteUserRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListUsersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListUsersRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListUsersRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListUsersRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListUsersRequest} - */ -proto.api.ListUsersRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListUsersRequest; - return proto.api.ListUsersRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListUsersRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListUsersRequest} - */ -proto.api.ListUsersRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListUsersRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListUsersRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListUsersRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListUsersRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListUsersRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListUsersRequest} returns this - */ -proto.api.ListUsersRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListUsersRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListUsersRequest} returns this - */ -proto.api.ListUsersRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListUsersResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListUsersResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListUsersResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListUsersResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListUsersResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.UserListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListUsersResponse} - */ -proto.api.ListUsersResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListUsersResponse; - return proto.api.ListUsersResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListUsersResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListUsersResponse} - */ -proto.api.ListUsersResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.UserListItem; - reader.readMessage(value,proto.api.UserListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListUsersResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListUsersResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListUsersResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListUsersResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.UserListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListUsersResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListUsersResponse} returns this - */ -proto.api.ListUsersResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated UserListItem result = 2; - * @return {!Array} - */ -proto.api.ListUsersResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.UserListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListUsersResponse} returns this -*/ -proto.api.ListUsersResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.UserListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.UserListItem} - */ -proto.api.ListUsersResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.UserListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListUsersResponse} returns this - */ -proto.api.ListUsersResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateUserPasswordRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateUserPasswordRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateUserPasswordRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateUserPasswordRequest.toObject = function(includeInstance, msg) { - var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, ""), - password: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateUserPasswordRequest} - */ -proto.api.UpdateUserPasswordRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateUserPasswordRequest; - return proto.api.UpdateUserPasswordRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateUserPasswordRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateUserPasswordRequest} - */ -proto.api.UpdateUserPasswordRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateUserPasswordRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateUserPasswordRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateUserPasswordRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateUserPasswordRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string user_id = 1; - * @return {string} - */ -proto.api.UpdateUserPasswordRequest.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.UpdateUserPasswordRequest} returns this - */ -proto.api.UpdateUserPasswordRequest.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string password = 2; - * @return {string} - */ -proto.api.UpdateUserPasswordRequest.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.UpdateUserPasswordRequest} returns this - */ -proto.api.UpdateUserPasswordRequest.prototype.setPassword = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -goog.object.extend(exports, proto.api); diff --git a/api/grpc-web/common/common_pb.d.ts b/api/grpc-web/common/common_pb.d.ts deleted file mode 100644 index 800e12d2..00000000 --- a/api/grpc-web/common/common_pb.d.ts +++ /dev/null @@ -1,216 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; - - -export class Location extends jspb.Message { - getLatitude(): number; - setLatitude(value: number): Location; - - getLongitude(): number; - setLongitude(value: number): Location; - - getAltitude(): number; - setAltitude(value: number): Location; - - getSource(): LocationSource; - setSource(value: LocationSource): Location; - - getAccuracy(): number; - setAccuracy(value: number): Location; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Location.AsObject; - static toObject(includeInstance: boolean, msg: Location): Location.AsObject; - static serializeBinaryToWriter(message: Location, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Location; - static deserializeBinaryFromReader(message: Location, reader: jspb.BinaryReader): Location; -} - -export namespace Location { - export type AsObject = { - latitude: number, - longitude: number, - altitude: number, - source: LocationSource, - accuracy: number, - } -} - -export class KeyEnvelope extends jspb.Message { - getKekLabel(): string; - setKekLabel(value: string): KeyEnvelope; - - getAesKey(): Uint8Array | string; - getAesKey_asU8(): Uint8Array; - getAesKey_asB64(): string; - setAesKey(value: Uint8Array | string): KeyEnvelope; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): KeyEnvelope.AsObject; - static toObject(includeInstance: boolean, msg: KeyEnvelope): KeyEnvelope.AsObject; - static serializeBinaryToWriter(message: KeyEnvelope, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): KeyEnvelope; - static deserializeBinaryFromReader(message: KeyEnvelope, reader: jspb.BinaryReader): KeyEnvelope; -} - -export namespace KeyEnvelope { - export type AsObject = { - kekLabel: string, - aesKey: Uint8Array | string, - } -} - -export class Metric extends jspb.Message { - getName(): string; - setName(value: string): Metric; - - getTimestampsList(): Array; - setTimestampsList(value: Array): Metric; - clearTimestampsList(): Metric; - addTimestamps(value?: google_protobuf_timestamp_pb.Timestamp, index?: number): google_protobuf_timestamp_pb.Timestamp; - - getDatasetsList(): Array; - setDatasetsList(value: Array): Metric; - clearDatasetsList(): Metric; - addDatasets(value?: MetricDataset, index?: number): MetricDataset; - - getKind(): MetricKind; - setKind(value: MetricKind): Metric; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Metric.AsObject; - static toObject(includeInstance: boolean, msg: Metric): Metric.AsObject; - static serializeBinaryToWriter(message: Metric, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Metric; - static deserializeBinaryFromReader(message: Metric, reader: jspb.BinaryReader): Metric; -} - -export namespace Metric { - export type AsObject = { - name: string, - timestampsList: Array, - datasetsList: Array, - kind: MetricKind, - } -} - -export class MetricDataset extends jspb.Message { - getLabel(): string; - setLabel(value: string): MetricDataset; - - getDataList(): Array; - setDataList(value: Array): MetricDataset; - clearDataList(): MetricDataset; - addData(value: number, index?: number): MetricDataset; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MetricDataset.AsObject; - static toObject(includeInstance: boolean, msg: MetricDataset): MetricDataset.AsObject; - static serializeBinaryToWriter(message: MetricDataset, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MetricDataset; - static deserializeBinaryFromReader(message: MetricDataset, reader: jspb.BinaryReader): MetricDataset; -} - -export namespace MetricDataset { - export type AsObject = { - label: string, - dataList: Array, - } -} - -export class JoinServerContext extends jspb.Message { - getSessionKeyId(): string; - setSessionKeyId(value: string): JoinServerContext; - - getAppSKey(): KeyEnvelope | undefined; - setAppSKey(value?: KeyEnvelope): JoinServerContext; - hasAppSKey(): boolean; - clearAppSKey(): JoinServerContext; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): JoinServerContext.AsObject; - static toObject(includeInstance: boolean, msg: JoinServerContext): JoinServerContext.AsObject; - static serializeBinaryToWriter(message: JoinServerContext, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): JoinServerContext; - static deserializeBinaryFromReader(message: JoinServerContext, reader: jspb.BinaryReader): JoinServerContext; -} - -export namespace JoinServerContext { - export type AsObject = { - sessionKeyId: string, - appSKey?: KeyEnvelope.AsObject, - } -} - -export enum Modulation { - LORA = 0, - FSK = 1, - LR_FHSS = 2, -} -export enum Region { - EU868 = 0, - US915 = 2, - CN779 = 3, - EU433 = 4, - AU915 = 5, - CN470 = 6, - AS923 = 7, - AS923_2 = 12, - AS923_3 = 13, - AS923_4 = 14, - KR920 = 8, - IN865 = 9, - RU864 = 10, - ISM2400 = 11, -} -export enum MType { - JOIN_REQUEST = 0, - JOIN_ACCEPT = 1, - UNCONFIRMED_DATA_UP = 2, - UNCONFIRMED_DATA_DOWN = 3, - CONFIRMED_DATA_UP = 4, - CONFIRMED_DATA_DOWN = 5, - REJOIN_REQUEST = 6, - PROPRIETARY = 7, -} -export enum MacVersion { - LORAWAN_1_0_0 = 0, - LORAWAN_1_0_1 = 1, - LORAWAN_1_0_2 = 2, - LORAWAN_1_0_3 = 3, - LORAWAN_1_0_4 = 4, - LORAWAN_1_1_0 = 5, -} -export enum RegParamsRevision { - A = 0, - B = 1, - RP002_1_0_0 = 2, - RP002_1_0_1 = 3, - RP002_1_0_2 = 4, - RP002_1_0_3 = 5, -} -export enum LocationSource { - UNKNOWN = 0, - GPS = 1, - CONFIG = 2, - GEO_RESOLVER_TDOA = 3, - GEO_RESOLVER_RSSI = 4, - GEO_RESOLVER_GNSS = 5, - GEO_RESOLVER_WIFI = 6, -} -export enum Aggregation { - HOUR = 0, - DAY = 1, - MONTH = 2, -} -export enum MetricKind { - COUNTER = 0, - ABSOLUTE = 1, - GAUGE = 2, -} -export enum DeviceClass { - CLASS_A = 0, - CLASS_B = 1, - CLASS_C = 2, -} diff --git a/api/grpc-web/common/common_pb.js b/api/grpc-web/common/common_pb.js deleted file mode 100644 index 6f775118..00000000 --- a/api/grpc-web/common/common_pb.js +++ /dev/null @@ -1,1317 +0,0 @@ -// source: common/common.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -goog.exportSymbol('proto.common.Aggregation', null, global); -goog.exportSymbol('proto.common.DeviceClass', null, global); -goog.exportSymbol('proto.common.JoinServerContext', null, global); -goog.exportSymbol('proto.common.KeyEnvelope', null, global); -goog.exportSymbol('proto.common.Location', null, global); -goog.exportSymbol('proto.common.LocationSource', null, global); -goog.exportSymbol('proto.common.MType', null, global); -goog.exportSymbol('proto.common.MacVersion', null, global); -goog.exportSymbol('proto.common.Metric', null, global); -goog.exportSymbol('proto.common.MetricDataset', null, global); -goog.exportSymbol('proto.common.MetricKind', null, global); -goog.exportSymbol('proto.common.Modulation', null, global); -goog.exportSymbol('proto.common.RegParamsRevision', null, global); -goog.exportSymbol('proto.common.Region', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.common.Location = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.common.Location, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.common.Location.displayName = 'proto.common.Location'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.common.KeyEnvelope = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.common.KeyEnvelope, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.common.KeyEnvelope.displayName = 'proto.common.KeyEnvelope'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.common.Metric = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.common.Metric.repeatedFields_, null); -}; -goog.inherits(proto.common.Metric, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.common.Metric.displayName = 'proto.common.Metric'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.common.MetricDataset = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.common.MetricDataset.repeatedFields_, null); -}; -goog.inherits(proto.common.MetricDataset, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.common.MetricDataset.displayName = 'proto.common.MetricDataset'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.common.JoinServerContext = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.common.JoinServerContext, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.common.JoinServerContext.displayName = 'proto.common.JoinServerContext'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.common.Location.prototype.toObject = function(opt_includeInstance) { - return proto.common.Location.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.common.Location} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.Location.toObject = function(includeInstance, msg) { - var f, obj = { - latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), - longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - altitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), - source: jspb.Message.getFieldWithDefault(msg, 4, 0), - accuracy: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.common.Location} - */ -proto.common.Location.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.common.Location; - return proto.common.Location.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.common.Location} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.common.Location} - */ -proto.common.Location.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readDouble()); - msg.setLatitude(value); - break; - case 2: - var value = /** @type {number} */ (reader.readDouble()); - msg.setLongitude(value); - break; - case 3: - var value = /** @type {number} */ (reader.readDouble()); - msg.setAltitude(value); - break; - case 4: - var value = /** @type {!proto.common.LocationSource} */ (reader.readEnum()); - msg.setSource(value); - break; - case 5: - var value = /** @type {number} */ (reader.readFloat()); - msg.setAccuracy(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.common.Location.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.common.Location.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.common.Location} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.Location.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLatitude(); - if (f !== 0.0) { - writer.writeDouble( - 1, - f - ); - } - f = message.getLongitude(); - if (f !== 0.0) { - writer.writeDouble( - 2, - f - ); - } - f = message.getAltitude(); - if (f !== 0.0) { - writer.writeDouble( - 3, - f - ); - } - f = message.getSource(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getAccuracy(); - if (f !== 0.0) { - writer.writeFloat( - 5, - f - ); - } -}; - - -/** - * optional double latitude = 1; - * @return {number} - */ -proto.common.Location.prototype.getLatitude = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.common.Location} returns this - */ -proto.common.Location.prototype.setLatitude = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); -}; - - -/** - * optional double longitude = 2; - * @return {number} - */ -proto.common.Location.prototype.getLongitude = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.common.Location} returns this - */ -proto.common.Location.prototype.setLongitude = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - -/** - * optional double altitude = 3; - * @return {number} - */ -proto.common.Location.prototype.getAltitude = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.common.Location} returns this - */ -proto.common.Location.prototype.setAltitude = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; - - -/** - * optional LocationSource source = 4; - * @return {!proto.common.LocationSource} - */ -proto.common.Location.prototype.getSource = function() { - return /** @type {!proto.common.LocationSource} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.common.LocationSource} value - * @return {!proto.common.Location} returns this - */ -proto.common.Location.prototype.setSource = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional float accuracy = 5; - * @return {number} - */ -proto.common.Location.prototype.getAccuracy = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.common.Location} returns this - */ -proto.common.Location.prototype.setAccuracy = function(value) { - return jspb.Message.setProto3FloatField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.common.KeyEnvelope.prototype.toObject = function(opt_includeInstance) { - return proto.common.KeyEnvelope.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.common.KeyEnvelope} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.KeyEnvelope.toObject = function(includeInstance, msg) { - var f, obj = { - kekLabel: jspb.Message.getFieldWithDefault(msg, 1, ""), - aesKey: msg.getAesKey_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.common.KeyEnvelope} - */ -proto.common.KeyEnvelope.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.common.KeyEnvelope; - return proto.common.KeyEnvelope.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.common.KeyEnvelope} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.common.KeyEnvelope} - */ -proto.common.KeyEnvelope.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setKekLabel(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setAesKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.common.KeyEnvelope.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.common.KeyEnvelope.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.common.KeyEnvelope} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.KeyEnvelope.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKekLabel(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAesKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } -}; - - -/** - * optional string kek_label = 1; - * @return {string} - */ -proto.common.KeyEnvelope.prototype.getKekLabel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.common.KeyEnvelope} returns this - */ -proto.common.KeyEnvelope.prototype.setKekLabel = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes aes_key = 2; - * @return {string} - */ -proto.common.KeyEnvelope.prototype.getAesKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes aes_key = 2; - * This is a type-conversion wrapper around `getAesKey()` - * @return {string} - */ -proto.common.KeyEnvelope.prototype.getAesKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getAesKey())); -}; - - -/** - * optional bytes aes_key = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getAesKey()` - * @return {!Uint8Array} - */ -proto.common.KeyEnvelope.prototype.getAesKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAesKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.common.KeyEnvelope} returns this - */ -proto.common.KeyEnvelope.prototype.setAesKey = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.common.Metric.repeatedFields_ = [2,3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.common.Metric.prototype.toObject = function(opt_includeInstance) { - return proto.common.Metric.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.common.Metric} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.Metric.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - timestampsList: jspb.Message.toObjectList(msg.getTimestampsList(), - google_protobuf_timestamp_pb.Timestamp.toObject, includeInstance), - datasetsList: jspb.Message.toObjectList(msg.getDatasetsList(), - proto.common.MetricDataset.toObject, includeInstance), - kind: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.common.Metric} - */ -proto.common.Metric.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.common.Metric; - return proto.common.Metric.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.common.Metric} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.common.Metric} - */ -proto.common.Metric.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.addTimestamps(value); - break; - case 3: - var value = new proto.common.MetricDataset; - reader.readMessage(value,proto.common.MetricDataset.deserializeBinaryFromReader); - msg.addDatasets(value); - break; - case 4: - var value = /** @type {!proto.common.MetricKind} */ (reader.readEnum()); - msg.setKind(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.common.Metric.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.common.Metric.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.common.Metric} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.Metric.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTimestampsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDatasetsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.common.MetricDataset.serializeBinaryToWriter - ); - } - f = message.getKind(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.common.Metric.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.common.Metric} returns this - */ -proto.common.Metric.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated google.protobuf.Timestamp timestamps = 2; - * @return {!Array} - */ -proto.common.Metric.prototype.getTimestampsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.common.Metric} returns this -*/ -proto.common.Metric.prototype.setTimestampsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.protobuf.Timestamp=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.Timestamp} - */ -proto.common.Metric.prototype.addTimestamps = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.Timestamp, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.common.Metric} returns this - */ -proto.common.Metric.prototype.clearTimestampsList = function() { - return this.setTimestampsList([]); -}; - - -/** - * repeated MetricDataset datasets = 3; - * @return {!Array} - */ -proto.common.Metric.prototype.getDatasetsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.common.MetricDataset, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.common.Metric} returns this -*/ -proto.common.Metric.prototype.setDatasetsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.common.MetricDataset=} opt_value - * @param {number=} opt_index - * @return {!proto.common.MetricDataset} - */ -proto.common.Metric.prototype.addDatasets = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.common.MetricDataset, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.common.Metric} returns this - */ -proto.common.Metric.prototype.clearDatasetsList = function() { - return this.setDatasetsList([]); -}; - - -/** - * optional MetricKind kind = 4; - * @return {!proto.common.MetricKind} - */ -proto.common.Metric.prototype.getKind = function() { - return /** @type {!proto.common.MetricKind} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.common.MetricKind} value - * @return {!proto.common.Metric} returns this - */ -proto.common.Metric.prototype.setKind = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.common.MetricDataset.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.common.MetricDataset.prototype.toObject = function(opt_includeInstance) { - return proto.common.MetricDataset.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.common.MetricDataset} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.MetricDataset.toObject = function(includeInstance, msg) { - var f, obj = { - label: jspb.Message.getFieldWithDefault(msg, 1, ""), - dataList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.common.MetricDataset} - */ -proto.common.MetricDataset.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.common.MetricDataset; - return proto.common.MetricDataset.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.common.MetricDataset} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.common.MetricDataset} - */ -proto.common.MetricDataset.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setLabel(value); - break; - case 2: - var value = /** @type {!Array} */ (reader.readPackedFloat()); - msg.setDataList(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.common.MetricDataset.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.common.MetricDataset.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.common.MetricDataset} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.MetricDataset.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLabel(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDataList(); - if (f.length > 0) { - writer.writePackedFloat( - 2, - f - ); - } -}; - - -/** - * optional string label = 1; - * @return {string} - */ -proto.common.MetricDataset.prototype.getLabel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.common.MetricDataset} returns this - */ -proto.common.MetricDataset.prototype.setLabel = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated float data = 2; - * @return {!Array} - */ -proto.common.MetricDataset.prototype.getDataList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.common.MetricDataset} returns this - */ -proto.common.MetricDataset.prototype.setDataList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.common.MetricDataset} returns this - */ -proto.common.MetricDataset.prototype.addData = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.common.MetricDataset} returns this - */ -proto.common.MetricDataset.prototype.clearDataList = function() { - return this.setDataList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.common.JoinServerContext.prototype.toObject = function(opt_includeInstance) { - return proto.common.JoinServerContext.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.common.JoinServerContext} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.JoinServerContext.toObject = function(includeInstance, msg) { - var f, obj = { - sessionKeyId: jspb.Message.getFieldWithDefault(msg, 1, ""), - appSKey: (f = msg.getAppSKey()) && proto.common.KeyEnvelope.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.common.JoinServerContext} - */ -proto.common.JoinServerContext.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.common.JoinServerContext; - return proto.common.JoinServerContext.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.common.JoinServerContext} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.common.JoinServerContext} - */ -proto.common.JoinServerContext.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSessionKeyId(value); - break; - case 2: - var value = new proto.common.KeyEnvelope; - reader.readMessage(value,proto.common.KeyEnvelope.deserializeBinaryFromReader); - msg.setAppSKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.common.JoinServerContext.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.common.JoinServerContext.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.common.JoinServerContext} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.JoinServerContext.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSessionKeyId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAppSKey(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.common.KeyEnvelope.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string session_key_id = 1; - * @return {string} - */ -proto.common.JoinServerContext.prototype.getSessionKeyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.common.JoinServerContext} returns this - */ -proto.common.JoinServerContext.prototype.setSessionKeyId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional KeyEnvelope app_s_key = 2; - * @return {?proto.common.KeyEnvelope} - */ -proto.common.JoinServerContext.prototype.getAppSKey = function() { - return /** @type{?proto.common.KeyEnvelope} */ ( - jspb.Message.getWrapperField(this, proto.common.KeyEnvelope, 2)); -}; - - -/** - * @param {?proto.common.KeyEnvelope|undefined} value - * @return {!proto.common.JoinServerContext} returns this -*/ -proto.common.JoinServerContext.prototype.setAppSKey = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.common.JoinServerContext} returns this - */ -proto.common.JoinServerContext.prototype.clearAppSKey = function() { - return this.setAppSKey(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.common.JoinServerContext.prototype.hasAppSKey = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * @enum {number} - */ -proto.common.Modulation = { - LORA: 0, - FSK: 1, - LR_FHSS: 2 -}; - -/** - * @enum {number} - */ -proto.common.Region = { - EU868: 0, - US915: 2, - CN779: 3, - EU433: 4, - AU915: 5, - CN470: 6, - AS923: 7, - AS923_2: 12, - AS923_3: 13, - AS923_4: 14, - KR920: 8, - IN865: 9, - RU864: 10, - ISM2400: 11 -}; - -/** - * @enum {number} - */ -proto.common.MType = { - JOIN_REQUEST: 0, - JOIN_ACCEPT: 1, - UNCONFIRMED_DATA_UP: 2, - UNCONFIRMED_DATA_DOWN: 3, - CONFIRMED_DATA_UP: 4, - CONFIRMED_DATA_DOWN: 5, - REJOIN_REQUEST: 6, - PROPRIETARY: 7 -}; - -/** - * @enum {number} - */ -proto.common.MacVersion = { - LORAWAN_1_0_0: 0, - LORAWAN_1_0_1: 1, - LORAWAN_1_0_2: 2, - LORAWAN_1_0_3: 3, - LORAWAN_1_0_4: 4, - LORAWAN_1_1_0: 5 -}; - -/** - * @enum {number} - */ -proto.common.RegParamsRevision = { - A: 0, - B: 1, - RP002_1_0_0: 2, - RP002_1_0_1: 3, - RP002_1_0_2: 4, - RP002_1_0_3: 5 -}; - -/** - * @enum {number} - */ -proto.common.LocationSource = { - UNKNOWN: 0, - GPS: 1, - CONFIG: 2, - GEO_RESOLVER_TDOA: 3, - GEO_RESOLVER_RSSI: 4, - GEO_RESOLVER_GNSS: 5, - GEO_RESOLVER_WIFI: 6 -}; - -/** - * @enum {number} - */ -proto.common.Aggregation = { - HOUR: 0, - DAY: 1, - MONTH: 2 -}; - -/** - * @enum {number} - */ -proto.common.MetricKind = { - COUNTER: 0, - ABSOLUTE: 1, - GAUGE: 2 -}; - -/** - * @enum {number} - */ -proto.common.DeviceClass = { - CLASS_A: 0, - CLASS_B: 1, - CLASS_C: 2 -}; - -goog.object.extend(exports, proto.common); diff --git a/api/grpc-web/google/api/annotations_pb.d.ts b/api/grpc-web/google/api/annotations_pb.d.ts deleted file mode 100644 index 0fe21dbc..00000000 --- a/api/grpc-web/google/api/annotations_pb.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_api_http_pb from '../../google/api/http_pb'; -import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb'; - - diff --git a/api/grpc-web/google/api/annotations_pb.js b/api/grpc-web/google/api/annotations_pb.js deleted file mode 100644 index 2341dbed..00000000 --- a/api/grpc-web/google/api/annotations_pb.js +++ /dev/null @@ -1,45 +0,0 @@ -// source: google/api/annotations.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_http_pb = require('../../google/api/http_pb.js'); -goog.object.extend(proto, google_api_http_pb); -var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); -goog.object.extend(proto, google_protobuf_descriptor_pb); -goog.exportSymbol('proto.google.api.http', null, global); - -/** - * A tuple of {field number, class constructor} for the extension - * field named `http`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.http = new jspb.ExtensionFieldInfo( - 72295728, - {http: 0}, - google_api_http_pb.HttpRule, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - google_api_http_pb.HttpRule.toObject), - 0); - -google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295728] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.http, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - google_api_http_pb.HttpRule.serializeBinaryToWriter, - google_api_http_pb.HttpRule.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MethodOptions.extensions[72295728] = proto.google.api.http; - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/auth_pb.d.ts b/api/grpc-web/google/api/auth_pb.d.ts deleted file mode 100644 index 93ae85f9..00000000 --- a/api/grpc-web/google/api/auth_pb.d.ts +++ /dev/null @@ -1,183 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export class Authentication extends jspb.Message { - getRulesList(): Array; - setRulesList(value: Array): Authentication; - clearRulesList(): Authentication; - addRules(value?: AuthenticationRule, index?: number): AuthenticationRule; - - getProvidersList(): Array; - setProvidersList(value: Array): Authentication; - clearProvidersList(): Authentication; - addProviders(value?: AuthProvider, index?: number): AuthProvider; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Authentication.AsObject; - static toObject(includeInstance: boolean, msg: Authentication): Authentication.AsObject; - static serializeBinaryToWriter(message: Authentication, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Authentication; - static deserializeBinaryFromReader(message: Authentication, reader: jspb.BinaryReader): Authentication; -} - -export namespace Authentication { - export type AsObject = { - rulesList: Array, - providersList: Array, - } -} - -export class AuthenticationRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): AuthenticationRule; - - getOauth(): OAuthRequirements | undefined; - setOauth(value?: OAuthRequirements): AuthenticationRule; - hasOauth(): boolean; - clearOauth(): AuthenticationRule; - - getAllowWithoutCredential(): boolean; - setAllowWithoutCredential(value: boolean): AuthenticationRule; - - getRequirementsList(): Array; - setRequirementsList(value: Array): AuthenticationRule; - clearRequirementsList(): AuthenticationRule; - addRequirements(value?: AuthRequirement, index?: number): AuthRequirement; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AuthenticationRule.AsObject; - static toObject(includeInstance: boolean, msg: AuthenticationRule): AuthenticationRule.AsObject; - static serializeBinaryToWriter(message: AuthenticationRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AuthenticationRule; - static deserializeBinaryFromReader(message: AuthenticationRule, reader: jspb.BinaryReader): AuthenticationRule; -} - -export namespace AuthenticationRule { - export type AsObject = { - selector: string, - oauth?: OAuthRequirements.AsObject, - allowWithoutCredential: boolean, - requirementsList: Array, - } -} - -export class JwtLocation extends jspb.Message { - getHeader(): string; - setHeader(value: string): JwtLocation; - - getQuery(): string; - setQuery(value: string): JwtLocation; - - getCookie(): string; - setCookie(value: string): JwtLocation; - - getValuePrefix(): string; - setValuePrefix(value: string): JwtLocation; - - getInCase(): JwtLocation.InCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): JwtLocation.AsObject; - static toObject(includeInstance: boolean, msg: JwtLocation): JwtLocation.AsObject; - static serializeBinaryToWriter(message: JwtLocation, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): JwtLocation; - static deserializeBinaryFromReader(message: JwtLocation, reader: jspb.BinaryReader): JwtLocation; -} - -export namespace JwtLocation { - export type AsObject = { - header: string, - query: string, - cookie: string, - valuePrefix: string, - } - - export enum InCase { - IN_NOT_SET = 0, - HEADER = 1, - QUERY = 2, - COOKIE = 4, - } -} - -export class AuthProvider extends jspb.Message { - getId(): string; - setId(value: string): AuthProvider; - - getIssuer(): string; - setIssuer(value: string): AuthProvider; - - getJwksUri(): string; - setJwksUri(value: string): AuthProvider; - - getAudiences(): string; - setAudiences(value: string): AuthProvider; - - getAuthorizationUrl(): string; - setAuthorizationUrl(value: string): AuthProvider; - - getJwtLocationsList(): Array; - setJwtLocationsList(value: Array): AuthProvider; - clearJwtLocationsList(): AuthProvider; - addJwtLocations(value?: JwtLocation, index?: number): JwtLocation; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AuthProvider.AsObject; - static toObject(includeInstance: boolean, msg: AuthProvider): AuthProvider.AsObject; - static serializeBinaryToWriter(message: AuthProvider, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AuthProvider; - static deserializeBinaryFromReader(message: AuthProvider, reader: jspb.BinaryReader): AuthProvider; -} - -export namespace AuthProvider { - export type AsObject = { - id: string, - issuer: string, - jwksUri: string, - audiences: string, - authorizationUrl: string, - jwtLocationsList: Array, - } -} - -export class OAuthRequirements extends jspb.Message { - getCanonicalScopes(): string; - setCanonicalScopes(value: string): OAuthRequirements; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OAuthRequirements.AsObject; - static toObject(includeInstance: boolean, msg: OAuthRequirements): OAuthRequirements.AsObject; - static serializeBinaryToWriter(message: OAuthRequirements, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OAuthRequirements; - static deserializeBinaryFromReader(message: OAuthRequirements, reader: jspb.BinaryReader): OAuthRequirements; -} - -export namespace OAuthRequirements { - export type AsObject = { - canonicalScopes: string, - } -} - -export class AuthRequirement extends jspb.Message { - getProviderId(): string; - setProviderId(value: string): AuthRequirement; - - getAudiences(): string; - setAudiences(value: string): AuthRequirement; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AuthRequirement.AsObject; - static toObject(includeInstance: boolean, msg: AuthRequirement): AuthRequirement.AsObject; - static serializeBinaryToWriter(message: AuthRequirement, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AuthRequirement; - static deserializeBinaryFromReader(message: AuthRequirement, reader: jspb.BinaryReader): AuthRequirement; -} - -export namespace AuthRequirement { - export type AsObject = { - providerId: string, - audiences: string, - } -} - diff --git a/api/grpc-web/google/api/auth_pb.js b/api/grpc-web/google/api/auth_pb.js deleted file mode 100644 index 2982711c..00000000 --- a/api/grpc-web/google/api/auth_pb.js +++ /dev/null @@ -1,1533 +0,0 @@ -// source: google/api/auth.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.AuthProvider', null, global); -goog.exportSymbol('proto.google.api.AuthRequirement', null, global); -goog.exportSymbol('proto.google.api.Authentication', null, global); -goog.exportSymbol('proto.google.api.AuthenticationRule', null, global); -goog.exportSymbol('proto.google.api.JwtLocation', null, global); -goog.exportSymbol('proto.google.api.JwtLocation.InCase', null, global); -goog.exportSymbol('proto.google.api.OAuthRequirements', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Authentication = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Authentication.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Authentication, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Authentication.displayName = 'proto.google.api.Authentication'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.AuthenticationRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.AuthenticationRule.repeatedFields_, null); -}; -goog.inherits(proto.google.api.AuthenticationRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.AuthenticationRule.displayName = 'proto.google.api.AuthenticationRule'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.JwtLocation = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.JwtLocation.oneofGroups_); -}; -goog.inherits(proto.google.api.JwtLocation, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.JwtLocation.displayName = 'proto.google.api.JwtLocation'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.AuthProvider = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.AuthProvider.repeatedFields_, null); -}; -goog.inherits(proto.google.api.AuthProvider, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.AuthProvider.displayName = 'proto.google.api.AuthProvider'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.OAuthRequirements = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.OAuthRequirements, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.OAuthRequirements.displayName = 'proto.google.api.OAuthRequirements'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.AuthRequirement = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.AuthRequirement, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.AuthRequirement.displayName = 'proto.google.api.AuthRequirement'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Authentication.repeatedFields_ = [3,4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Authentication.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Authentication.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Authentication} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Authentication.toObject = function(includeInstance, msg) { - var f, obj = { - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.google.api.AuthenticationRule.toObject, includeInstance), - providersList: jspb.Message.toObjectList(msg.getProvidersList(), - proto.google.api.AuthProvider.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Authentication} - */ -proto.google.api.Authentication.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Authentication; - return proto.google.api.Authentication.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Authentication} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Authentication} - */ -proto.google.api.Authentication.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 3: - var value = new proto.google.api.AuthenticationRule; - reader.readMessage(value,proto.google.api.AuthenticationRule.deserializeBinaryFromReader); - msg.addRules(value); - break; - case 4: - var value = new proto.google.api.AuthProvider; - reader.readMessage(value,proto.google.api.AuthProvider.deserializeBinaryFromReader); - msg.addProviders(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Authentication.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Authentication.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Authentication} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Authentication.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.google.api.AuthenticationRule.serializeBinaryToWriter - ); - } - f = message.getProvidersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.google.api.AuthProvider.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated AuthenticationRule rules = 3; - * @return {!Array} - */ -proto.google.api.Authentication.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.AuthenticationRule, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Authentication} returns this -*/ -proto.google.api.Authentication.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.google.api.AuthenticationRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.AuthenticationRule} - */ -proto.google.api.Authentication.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.AuthenticationRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Authentication} returns this - */ -proto.google.api.Authentication.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - -/** - * repeated AuthProvider providers = 4; - * @return {!Array} - */ -proto.google.api.Authentication.prototype.getProvidersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.AuthProvider, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Authentication} returns this -*/ -proto.google.api.Authentication.prototype.setProvidersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.google.api.AuthProvider=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.AuthProvider} - */ -proto.google.api.Authentication.prototype.addProviders = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.api.AuthProvider, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Authentication} returns this - */ -proto.google.api.Authentication.prototype.clearProvidersList = function() { - return this.setProvidersList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.AuthenticationRule.repeatedFields_ = [7]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.AuthenticationRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.AuthenticationRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.AuthenticationRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.AuthenticationRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - oauth: (f = msg.getOauth()) && proto.google.api.OAuthRequirements.toObject(includeInstance, f), - allowWithoutCredential: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - requirementsList: jspb.Message.toObjectList(msg.getRequirementsList(), - proto.google.api.AuthRequirement.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.AuthenticationRule} - */ -proto.google.api.AuthenticationRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.AuthenticationRule; - return proto.google.api.AuthenticationRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.AuthenticationRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.AuthenticationRule} - */ -proto.google.api.AuthenticationRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = new proto.google.api.OAuthRequirements; - reader.readMessage(value,proto.google.api.OAuthRequirements.deserializeBinaryFromReader); - msg.setOauth(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAllowWithoutCredential(value); - break; - case 7: - var value = new proto.google.api.AuthRequirement; - reader.readMessage(value,proto.google.api.AuthRequirement.deserializeBinaryFromReader); - msg.addRequirements(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.AuthenticationRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.AuthenticationRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.AuthenticationRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.AuthenticationRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getOauth(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.google.api.OAuthRequirements.serializeBinaryToWriter - ); - } - f = message.getAllowWithoutCredential(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getRequirementsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - proto.google.api.AuthRequirement.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.AuthenticationRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.AuthenticationRule} returns this - */ -proto.google.api.AuthenticationRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional OAuthRequirements oauth = 2; - * @return {?proto.google.api.OAuthRequirements} - */ -proto.google.api.AuthenticationRule.prototype.getOauth = function() { - return /** @type{?proto.google.api.OAuthRequirements} */ ( - jspb.Message.getWrapperField(this, proto.google.api.OAuthRequirements, 2)); -}; - - -/** - * @param {?proto.google.api.OAuthRequirements|undefined} value - * @return {!proto.google.api.AuthenticationRule} returns this -*/ -proto.google.api.AuthenticationRule.prototype.setOauth = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.AuthenticationRule} returns this - */ -proto.google.api.AuthenticationRule.prototype.clearOauth = function() { - return this.setOauth(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.AuthenticationRule.prototype.hasOauth = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional bool allow_without_credential = 5; - * @return {boolean} - */ -proto.google.api.AuthenticationRule.prototype.getAllowWithoutCredential = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.api.AuthenticationRule} returns this - */ -proto.google.api.AuthenticationRule.prototype.setAllowWithoutCredential = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * repeated AuthRequirement requirements = 7; - * @return {!Array} - */ -proto.google.api.AuthenticationRule.prototype.getRequirementsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.AuthRequirement, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.AuthenticationRule} returns this -*/ -proto.google.api.AuthenticationRule.prototype.setRequirementsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); -}; - - -/** - * @param {!proto.google.api.AuthRequirement=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.AuthRequirement} - */ -proto.google.api.AuthenticationRule.prototype.addRequirements = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.google.api.AuthRequirement, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.AuthenticationRule} returns this - */ -proto.google.api.AuthenticationRule.prototype.clearRequirementsList = function() { - return this.setRequirementsList([]); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.google.api.JwtLocation.oneofGroups_ = [[1,2,4]]; - -/** - * @enum {number} - */ -proto.google.api.JwtLocation.InCase = { - IN_NOT_SET: 0, - HEADER: 1, - QUERY: 2, - COOKIE: 4 -}; - -/** - * @return {proto.google.api.JwtLocation.InCase} - */ -proto.google.api.JwtLocation.prototype.getInCase = function() { - return /** @type {proto.google.api.JwtLocation.InCase} */(jspb.Message.computeOneofCase(this, proto.google.api.JwtLocation.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.JwtLocation.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.JwtLocation.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.JwtLocation} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.JwtLocation.toObject = function(includeInstance, msg) { - var f, obj = { - header: jspb.Message.getFieldWithDefault(msg, 1, ""), - query: jspb.Message.getFieldWithDefault(msg, 2, ""), - cookie: jspb.Message.getFieldWithDefault(msg, 4, ""), - valuePrefix: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.JwtLocation} - */ -proto.google.api.JwtLocation.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.JwtLocation; - return proto.google.api.JwtLocation.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.JwtLocation} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.JwtLocation} - */ -proto.google.api.JwtLocation.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setHeader(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setQuery(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setCookie(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValuePrefix(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.JwtLocation.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.JwtLocation.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.JwtLocation} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.JwtLocation.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeString( - 2, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeString( - 4, - f - ); - } - f = message.getValuePrefix(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string header = 1; - * @return {string} - */ -proto.google.api.JwtLocation.prototype.getHeader = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.JwtLocation} returns this - */ -proto.google.api.JwtLocation.prototype.setHeader = function(value) { - return jspb.Message.setOneofField(this, 1, proto.google.api.JwtLocation.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.JwtLocation} returns this - */ -proto.google.api.JwtLocation.prototype.clearHeader = function() { - return jspb.Message.setOneofField(this, 1, proto.google.api.JwtLocation.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.JwtLocation.prototype.hasHeader = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string query = 2; - * @return {string} - */ -proto.google.api.JwtLocation.prototype.getQuery = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.JwtLocation} returns this - */ -proto.google.api.JwtLocation.prototype.setQuery = function(value) { - return jspb.Message.setOneofField(this, 2, proto.google.api.JwtLocation.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.JwtLocation} returns this - */ -proto.google.api.JwtLocation.prototype.clearQuery = function() { - return jspb.Message.setOneofField(this, 2, proto.google.api.JwtLocation.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.JwtLocation.prototype.hasQuery = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string cookie = 4; - * @return {string} - */ -proto.google.api.JwtLocation.prototype.getCookie = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.JwtLocation} returns this - */ -proto.google.api.JwtLocation.prototype.setCookie = function(value) { - return jspb.Message.setOneofField(this, 4, proto.google.api.JwtLocation.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.JwtLocation} returns this - */ -proto.google.api.JwtLocation.prototype.clearCookie = function() { - return jspb.Message.setOneofField(this, 4, proto.google.api.JwtLocation.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.JwtLocation.prototype.hasCookie = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string value_prefix = 3; - * @return {string} - */ -proto.google.api.JwtLocation.prototype.getValuePrefix = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.JwtLocation} returns this - */ -proto.google.api.JwtLocation.prototype.setValuePrefix = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.AuthProvider.repeatedFields_ = [6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.AuthProvider.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.AuthProvider.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.AuthProvider} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.AuthProvider.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - issuer: jspb.Message.getFieldWithDefault(msg, 2, ""), - jwksUri: jspb.Message.getFieldWithDefault(msg, 3, ""), - audiences: jspb.Message.getFieldWithDefault(msg, 4, ""), - authorizationUrl: jspb.Message.getFieldWithDefault(msg, 5, ""), - jwtLocationsList: jspb.Message.toObjectList(msg.getJwtLocationsList(), - proto.google.api.JwtLocation.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.AuthProvider} - */ -proto.google.api.AuthProvider.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.AuthProvider; - return proto.google.api.AuthProvider.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.AuthProvider} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.AuthProvider} - */ -proto.google.api.AuthProvider.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setIssuer(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setJwksUri(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setAudiences(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setAuthorizationUrl(value); - break; - case 6: - var value = new proto.google.api.JwtLocation; - reader.readMessage(value,proto.google.api.JwtLocation.deserializeBinaryFromReader); - msg.addJwtLocations(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.AuthProvider.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.AuthProvider.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.AuthProvider} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.AuthProvider.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getIssuer(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getJwksUri(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getAudiences(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getAuthorizationUrl(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getJwtLocationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.google.api.JwtLocation.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.google.api.AuthProvider.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.AuthProvider} returns this - */ -proto.google.api.AuthProvider.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string issuer = 2; - * @return {string} - */ -proto.google.api.AuthProvider.prototype.getIssuer = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.AuthProvider} returns this - */ -proto.google.api.AuthProvider.prototype.setIssuer = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string jwks_uri = 3; - * @return {string} - */ -proto.google.api.AuthProvider.prototype.getJwksUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.AuthProvider} returns this - */ -proto.google.api.AuthProvider.prototype.setJwksUri = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string audiences = 4; - * @return {string} - */ -proto.google.api.AuthProvider.prototype.getAudiences = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.AuthProvider} returns this - */ -proto.google.api.AuthProvider.prototype.setAudiences = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string authorization_url = 5; - * @return {string} - */ -proto.google.api.AuthProvider.prototype.getAuthorizationUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.AuthProvider} returns this - */ -proto.google.api.AuthProvider.prototype.setAuthorizationUrl = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * repeated JwtLocation jwt_locations = 6; - * @return {!Array} - */ -proto.google.api.AuthProvider.prototype.getJwtLocationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.JwtLocation, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.AuthProvider} returns this -*/ -proto.google.api.AuthProvider.prototype.setJwtLocationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.google.api.JwtLocation=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.JwtLocation} - */ -proto.google.api.AuthProvider.prototype.addJwtLocations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.google.api.JwtLocation, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.AuthProvider} returns this - */ -proto.google.api.AuthProvider.prototype.clearJwtLocationsList = function() { - return this.setJwtLocationsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.OAuthRequirements.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.OAuthRequirements.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.OAuthRequirements} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.OAuthRequirements.toObject = function(includeInstance, msg) { - var f, obj = { - canonicalScopes: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.OAuthRequirements} - */ -proto.google.api.OAuthRequirements.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.OAuthRequirements; - return proto.google.api.OAuthRequirements.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.OAuthRequirements} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.OAuthRequirements} - */ -proto.google.api.OAuthRequirements.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setCanonicalScopes(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.OAuthRequirements.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.OAuthRequirements.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.OAuthRequirements} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.OAuthRequirements.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCanonicalScopes(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string canonical_scopes = 1; - * @return {string} - */ -proto.google.api.OAuthRequirements.prototype.getCanonicalScopes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.OAuthRequirements} returns this - */ -proto.google.api.OAuthRequirements.prototype.setCanonicalScopes = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.AuthRequirement.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.AuthRequirement.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.AuthRequirement} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.AuthRequirement.toObject = function(includeInstance, msg) { - var f, obj = { - providerId: jspb.Message.getFieldWithDefault(msg, 1, ""), - audiences: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.AuthRequirement} - */ -proto.google.api.AuthRequirement.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.AuthRequirement; - return proto.google.api.AuthRequirement.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.AuthRequirement} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.AuthRequirement} - */ -proto.google.api.AuthRequirement.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProviderId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAudiences(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.AuthRequirement.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.AuthRequirement.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.AuthRequirement} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.AuthRequirement.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProviderId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAudiences(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string provider_id = 1; - * @return {string} - */ -proto.google.api.AuthRequirement.prototype.getProviderId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.AuthRequirement} returns this - */ -proto.google.api.AuthRequirement.prototype.setProviderId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string audiences = 2; - * @return {string} - */ -proto.google.api.AuthRequirement.prototype.getAudiences = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.AuthRequirement} returns this - */ -proto.google.api.AuthRequirement.prototype.setAudiences = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/backend_pb.d.ts b/api/grpc-web/google/api/backend_pb.d.ts deleted file mode 100644 index 9b342d41..00000000 --- a/api/grpc-web/google/api/backend_pb.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export class Backend extends jspb.Message { - getRulesList(): Array; - setRulesList(value: Array): Backend; - clearRulesList(): Backend; - addRules(value?: BackendRule, index?: number): BackendRule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Backend.AsObject; - static toObject(includeInstance: boolean, msg: Backend): Backend.AsObject; - static serializeBinaryToWriter(message: Backend, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Backend; - static deserializeBinaryFromReader(message: Backend, reader: jspb.BinaryReader): Backend; -} - -export namespace Backend { - export type AsObject = { - rulesList: Array, - } -} - -export class BackendRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): BackendRule; - - getAddress(): string; - setAddress(value: string): BackendRule; - - getDeadline(): number; - setDeadline(value: number): BackendRule; - - getMinDeadline(): number; - setMinDeadline(value: number): BackendRule; - - getOperationDeadline(): number; - setOperationDeadline(value: number): BackendRule; - - getPathTranslation(): BackendRule.PathTranslation; - setPathTranslation(value: BackendRule.PathTranslation): BackendRule; - - getJwtAudience(): string; - setJwtAudience(value: string): BackendRule; - - getDisableAuth(): boolean; - setDisableAuth(value: boolean): BackendRule; - - getProtocol(): string; - setProtocol(value: string): BackendRule; - - getOverridesByRequestProtocolMap(): jspb.Map; - clearOverridesByRequestProtocolMap(): BackendRule; - - getAuthenticationCase(): BackendRule.AuthenticationCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BackendRule.AsObject; - static toObject(includeInstance: boolean, msg: BackendRule): BackendRule.AsObject; - static serializeBinaryToWriter(message: BackendRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BackendRule; - static deserializeBinaryFromReader(message: BackendRule, reader: jspb.BinaryReader): BackendRule; -} - -export namespace BackendRule { - export type AsObject = { - selector: string, - address: string, - deadline: number, - minDeadline: number, - operationDeadline: number, - pathTranslation: BackendRule.PathTranslation, - jwtAudience: string, - disableAuth: boolean, - protocol: string, - overridesByRequestProtocolMap: Array<[string, BackendRule.AsObject]>, - } - - export enum PathTranslation { - PATH_TRANSLATION_UNSPECIFIED = 0, - CONSTANT_ADDRESS = 1, - APPEND_PATH_TO_ADDRESS = 2, - } - - export enum AuthenticationCase { - AUTHENTICATION_NOT_SET = 0, - JWT_AUDIENCE = 7, - DISABLE_AUTH = 8, - } -} - diff --git a/api/grpc-web/google/api/backend_pb.js b/api/grpc-web/google/api/backend_pb.js deleted file mode 100644 index 8dfb7ff7..00000000 --- a/api/grpc-web/google/api/backend_pb.js +++ /dev/null @@ -1,695 +0,0 @@ -// source: google/api/backend.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Backend', null, global); -goog.exportSymbol('proto.google.api.BackendRule', null, global); -goog.exportSymbol('proto.google.api.BackendRule.AuthenticationCase', null, global); -goog.exportSymbol('proto.google.api.BackendRule.PathTranslation', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Backend = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Backend.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Backend, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Backend.displayName = 'proto.google.api.Backend'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.BackendRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.BackendRule.oneofGroups_); -}; -goog.inherits(proto.google.api.BackendRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.BackendRule.displayName = 'proto.google.api.BackendRule'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Backend.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Backend.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Backend.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Backend} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Backend.toObject = function(includeInstance, msg) { - var f, obj = { - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.google.api.BackendRule.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Backend} - */ -proto.google.api.Backend.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Backend; - return proto.google.api.Backend.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Backend} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Backend} - */ -proto.google.api.Backend.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.BackendRule; - reader.readMessage(value,proto.google.api.BackendRule.deserializeBinaryFromReader); - msg.addRules(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Backend.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Backend.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Backend} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Backend.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.api.BackendRule.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated BackendRule rules = 1; - * @return {!Array} - */ -proto.google.api.Backend.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.BackendRule, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Backend} returns this -*/ -proto.google.api.Backend.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.api.BackendRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.BackendRule} - */ -proto.google.api.Backend.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.BackendRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Backend} returns this - */ -proto.google.api.Backend.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.google.api.BackendRule.oneofGroups_ = [[7,8]]; - -/** - * @enum {number} - */ -proto.google.api.BackendRule.AuthenticationCase = { - AUTHENTICATION_NOT_SET: 0, - JWT_AUDIENCE: 7, - DISABLE_AUTH: 8 -}; - -/** - * @return {proto.google.api.BackendRule.AuthenticationCase} - */ -proto.google.api.BackendRule.prototype.getAuthenticationCase = function() { - return /** @type {proto.google.api.BackendRule.AuthenticationCase} */(jspb.Message.computeOneofCase(this, proto.google.api.BackendRule.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.BackendRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.BackendRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.BackendRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.BackendRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - address: jspb.Message.getFieldWithDefault(msg, 2, ""), - deadline: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), - minDeadline: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), - operationDeadline: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), - pathTranslation: jspb.Message.getFieldWithDefault(msg, 6, 0), - jwtAudience: jspb.Message.getFieldWithDefault(msg, 7, ""), - disableAuth: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - protocol: jspb.Message.getFieldWithDefault(msg, 9, ""), - overridesByRequestProtocolMap: (f = msg.getOverridesByRequestProtocolMap()) ? f.toObject(includeInstance, proto.google.api.BackendRule.toObject) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.BackendRule} - */ -proto.google.api.BackendRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.BackendRule; - return proto.google.api.BackendRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.BackendRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.BackendRule} - */ -proto.google.api.BackendRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAddress(value); - break; - case 3: - var value = /** @type {number} */ (reader.readDouble()); - msg.setDeadline(value); - break; - case 4: - var value = /** @type {number} */ (reader.readDouble()); - msg.setMinDeadline(value); - break; - case 5: - var value = /** @type {number} */ (reader.readDouble()); - msg.setOperationDeadline(value); - break; - case 6: - var value = /** @type {!proto.google.api.BackendRule.PathTranslation} */ (reader.readEnum()); - msg.setPathTranslation(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setJwtAudience(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDisableAuth(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setProtocol(value); - break; - case 10: - var value = msg.getOverridesByRequestProtocolMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.api.BackendRule.deserializeBinaryFromReader, "", new proto.google.api.BackendRule()); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.BackendRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.BackendRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.BackendRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.BackendRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAddress(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDeadline(); - if (f !== 0.0) { - writer.writeDouble( - 3, - f - ); - } - f = message.getMinDeadline(); - if (f !== 0.0) { - writer.writeDouble( - 4, - f - ); - } - f = message.getOperationDeadline(); - if (f !== 0.0) { - writer.writeDouble( - 5, - f - ); - } - f = message.getPathTranslation(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeString( - 7, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 8)); - if (f != null) { - writer.writeBool( - 8, - f - ); - } - f = message.getProtocol(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getOverridesByRequestProtocolMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(10, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.api.BackendRule.serializeBinaryToWriter); - } -}; - - -/** - * @enum {number} - */ -proto.google.api.BackendRule.PathTranslation = { - PATH_TRANSLATION_UNSPECIFIED: 0, - CONSTANT_ADDRESS: 1, - APPEND_PATH_TO_ADDRESS: 2 -}; - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.BackendRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string address = 2; - * @return {string} - */ -proto.google.api.BackendRule.prototype.getAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.setAddress = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional double deadline = 3; - * @return {number} - */ -proto.google.api.BackendRule.prototype.getDeadline = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.setDeadline = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; - - -/** - * optional double min_deadline = 4; - * @return {number} - */ -proto.google.api.BackendRule.prototype.getMinDeadline = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.setMinDeadline = function(value) { - return jspb.Message.setProto3FloatField(this, 4, value); -}; - - -/** - * optional double operation_deadline = 5; - * @return {number} - */ -proto.google.api.BackendRule.prototype.getOperationDeadline = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.setOperationDeadline = function(value) { - return jspb.Message.setProto3FloatField(this, 5, value); -}; - - -/** - * optional PathTranslation path_translation = 6; - * @return {!proto.google.api.BackendRule.PathTranslation} - */ -proto.google.api.BackendRule.prototype.getPathTranslation = function() { - return /** @type {!proto.google.api.BackendRule.PathTranslation} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.google.api.BackendRule.PathTranslation} value - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.setPathTranslation = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional string jwt_audience = 7; - * @return {string} - */ -proto.google.api.BackendRule.prototype.getJwtAudience = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.setJwtAudience = function(value) { - return jspb.Message.setOneofField(this, 7, proto.google.api.BackendRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.clearJwtAudience = function() { - return jspb.Message.setOneofField(this, 7, proto.google.api.BackendRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.BackendRule.prototype.hasJwtAudience = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional bool disable_auth = 8; - * @return {boolean} - */ -proto.google.api.BackendRule.prototype.getDisableAuth = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.setDisableAuth = function(value) { - return jspb.Message.setOneofField(this, 8, proto.google.api.BackendRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.clearDisableAuth = function() { - return jspb.Message.setOneofField(this, 8, proto.google.api.BackendRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.BackendRule.prototype.hasDisableAuth = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional string protocol = 9; - * @return {string} - */ -proto.google.api.BackendRule.prototype.getProtocol = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.setProtocol = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * map overrides_by_request_protocol = 10; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.google.api.BackendRule.prototype.getOverridesByRequestProtocolMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 10, opt_noLazyCreate, - proto.google.api.BackendRule)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.clearOverridesByRequestProtocolMap = function() { - this.getOverridesByRequestProtocolMap().clear(); - return this;}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/billing_pb.d.ts b/api/grpc-web/google/api/billing_pb.d.ts deleted file mode 100644 index 9c781b98..00000000 --- a/api/grpc-web/google/api/billing_pb.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export class Billing extends jspb.Message { - getConsumerDestinationsList(): Array; - setConsumerDestinationsList(value: Array): Billing; - clearConsumerDestinationsList(): Billing; - addConsumerDestinations(value?: Billing.BillingDestination, index?: number): Billing.BillingDestination; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Billing.AsObject; - static toObject(includeInstance: boolean, msg: Billing): Billing.AsObject; - static serializeBinaryToWriter(message: Billing, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Billing; - static deserializeBinaryFromReader(message: Billing, reader: jspb.BinaryReader): Billing; -} - -export namespace Billing { - export type AsObject = { - consumerDestinationsList: Array, - } - - export class BillingDestination extends jspb.Message { - getMonitoredResource(): string; - setMonitoredResource(value: string): BillingDestination; - - getMetricsList(): Array; - setMetricsList(value: Array): BillingDestination; - clearMetricsList(): BillingDestination; - addMetrics(value: string, index?: number): BillingDestination; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BillingDestination.AsObject; - static toObject(includeInstance: boolean, msg: BillingDestination): BillingDestination.AsObject; - static serializeBinaryToWriter(message: BillingDestination, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BillingDestination; - static deserializeBinaryFromReader(message: BillingDestination, reader: jspb.BinaryReader): BillingDestination; - } - - export namespace BillingDestination { - export type AsObject = { - monitoredResource: string, - metricsList: Array, - } - } - -} - diff --git a/api/grpc-web/google/api/billing_pb.js b/api/grpc-web/google/api/billing_pb.js deleted file mode 100644 index 1232e8f7..00000000 --- a/api/grpc-web/google/api/billing_pb.js +++ /dev/null @@ -1,405 +0,0 @@ -// source: google/api/billing.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Billing', null, global); -goog.exportSymbol('proto.google.api.Billing.BillingDestination', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Billing = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Billing.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Billing, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Billing.displayName = 'proto.google.api.Billing'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Billing.BillingDestination = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Billing.BillingDestination.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Billing.BillingDestination, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Billing.BillingDestination.displayName = 'proto.google.api.Billing.BillingDestination'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Billing.repeatedFields_ = [8]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Billing.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Billing.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Billing} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Billing.toObject = function(includeInstance, msg) { - var f, obj = { - consumerDestinationsList: jspb.Message.toObjectList(msg.getConsumerDestinationsList(), - proto.google.api.Billing.BillingDestination.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Billing} - */ -proto.google.api.Billing.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Billing; - return proto.google.api.Billing.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Billing} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Billing} - */ -proto.google.api.Billing.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 8: - var value = new proto.google.api.Billing.BillingDestination; - reader.readMessage(value,proto.google.api.Billing.BillingDestination.deserializeBinaryFromReader); - msg.addConsumerDestinations(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Billing.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Billing.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Billing} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Billing.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getConsumerDestinationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 8, - f, - proto.google.api.Billing.BillingDestination.serializeBinaryToWriter - ); - } -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Billing.BillingDestination.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Billing.BillingDestination.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Billing.BillingDestination.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Billing.BillingDestination} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Billing.BillingDestination.toObject = function(includeInstance, msg) { - var f, obj = { - monitoredResource: jspb.Message.getFieldWithDefault(msg, 1, ""), - metricsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Billing.BillingDestination} - */ -proto.google.api.Billing.BillingDestination.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Billing.BillingDestination; - return proto.google.api.Billing.BillingDestination.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Billing.BillingDestination} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Billing.BillingDestination} - */ -proto.google.api.Billing.BillingDestination.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMonitoredResource(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addMetrics(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Billing.BillingDestination.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Billing.BillingDestination.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Billing.BillingDestination} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Billing.BillingDestination.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMonitoredResource(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMetricsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } -}; - - -/** - * optional string monitored_resource = 1; - * @return {string} - */ -proto.google.api.Billing.BillingDestination.prototype.getMonitoredResource = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Billing.BillingDestination} returns this - */ -proto.google.api.Billing.BillingDestination.prototype.setMonitoredResource = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string metrics = 2; - * @return {!Array} - */ -proto.google.api.Billing.BillingDestination.prototype.getMetricsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Billing.BillingDestination} returns this - */ -proto.google.api.Billing.BillingDestination.prototype.setMetricsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.Billing.BillingDestination} returns this - */ -proto.google.api.Billing.BillingDestination.prototype.addMetrics = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Billing.BillingDestination} returns this - */ -proto.google.api.Billing.BillingDestination.prototype.clearMetricsList = function() { - return this.setMetricsList([]); -}; - - -/** - * repeated BillingDestination consumer_destinations = 8; - * @return {!Array} - */ -proto.google.api.Billing.prototype.getConsumerDestinationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Billing.BillingDestination, 8)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Billing} returns this -*/ -proto.google.api.Billing.prototype.setConsumerDestinationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 8, value); -}; - - -/** - * @param {!proto.google.api.Billing.BillingDestination=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Billing.BillingDestination} - */ -proto.google.api.Billing.prototype.addConsumerDestinations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.google.api.Billing.BillingDestination, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Billing} returns this - */ -proto.google.api.Billing.prototype.clearConsumerDestinationsList = function() { - return this.setConsumerDestinationsList([]); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/client_pb.d.ts b/api/grpc-web/google/api/client_pb.d.ts deleted file mode 100644 index 08ed4fd9..00000000 --- a/api/grpc-web/google/api/client_pb.d.ts +++ /dev/null @@ -1,435 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_api_launch_stage_pb from '../../google/api/launch_stage_pb'; -import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb'; -import * as google_protobuf_duration_pb from 'google-protobuf/google/protobuf/duration_pb'; - - -export class CommonLanguageSettings extends jspb.Message { - getReferenceDocsUri(): string; - setReferenceDocsUri(value: string): CommonLanguageSettings; - - getDestinationsList(): Array; - setDestinationsList(value: Array): CommonLanguageSettings; - clearDestinationsList(): CommonLanguageSettings; - addDestinations(value: ClientLibraryDestination, index?: number): CommonLanguageSettings; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CommonLanguageSettings.AsObject; - static toObject(includeInstance: boolean, msg: CommonLanguageSettings): CommonLanguageSettings.AsObject; - static serializeBinaryToWriter(message: CommonLanguageSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CommonLanguageSettings; - static deserializeBinaryFromReader(message: CommonLanguageSettings, reader: jspb.BinaryReader): CommonLanguageSettings; -} - -export namespace CommonLanguageSettings { - export type AsObject = { - referenceDocsUri: string, - destinationsList: Array, - } -} - -export class ClientLibrarySettings extends jspb.Message { - getVersion(): string; - setVersion(value: string): ClientLibrarySettings; - - getLaunchStage(): google_api_launch_stage_pb.LaunchStage; - setLaunchStage(value: google_api_launch_stage_pb.LaunchStage): ClientLibrarySettings; - - getRestNumericEnums(): boolean; - setRestNumericEnums(value: boolean): ClientLibrarySettings; - - getJavaSettings(): JavaSettings | undefined; - setJavaSettings(value?: JavaSettings): ClientLibrarySettings; - hasJavaSettings(): boolean; - clearJavaSettings(): ClientLibrarySettings; - - getCppSettings(): CppSettings | undefined; - setCppSettings(value?: CppSettings): ClientLibrarySettings; - hasCppSettings(): boolean; - clearCppSettings(): ClientLibrarySettings; - - getPhpSettings(): PhpSettings | undefined; - setPhpSettings(value?: PhpSettings): ClientLibrarySettings; - hasPhpSettings(): boolean; - clearPhpSettings(): ClientLibrarySettings; - - getPythonSettings(): PythonSettings | undefined; - setPythonSettings(value?: PythonSettings): ClientLibrarySettings; - hasPythonSettings(): boolean; - clearPythonSettings(): ClientLibrarySettings; - - getNodeSettings(): NodeSettings | undefined; - setNodeSettings(value?: NodeSettings): ClientLibrarySettings; - hasNodeSettings(): boolean; - clearNodeSettings(): ClientLibrarySettings; - - getDotnetSettings(): DotnetSettings | undefined; - setDotnetSettings(value?: DotnetSettings): ClientLibrarySettings; - hasDotnetSettings(): boolean; - clearDotnetSettings(): ClientLibrarySettings; - - getRubySettings(): RubySettings | undefined; - setRubySettings(value?: RubySettings): ClientLibrarySettings; - hasRubySettings(): boolean; - clearRubySettings(): ClientLibrarySettings; - - getGoSettings(): GoSettings | undefined; - setGoSettings(value?: GoSettings): ClientLibrarySettings; - hasGoSettings(): boolean; - clearGoSettings(): ClientLibrarySettings; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ClientLibrarySettings.AsObject; - static toObject(includeInstance: boolean, msg: ClientLibrarySettings): ClientLibrarySettings.AsObject; - static serializeBinaryToWriter(message: ClientLibrarySettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ClientLibrarySettings; - static deserializeBinaryFromReader(message: ClientLibrarySettings, reader: jspb.BinaryReader): ClientLibrarySettings; -} - -export namespace ClientLibrarySettings { - export type AsObject = { - version: string, - launchStage: google_api_launch_stage_pb.LaunchStage, - restNumericEnums: boolean, - javaSettings?: JavaSettings.AsObject, - cppSettings?: CppSettings.AsObject, - phpSettings?: PhpSettings.AsObject, - pythonSettings?: PythonSettings.AsObject, - nodeSettings?: NodeSettings.AsObject, - dotnetSettings?: DotnetSettings.AsObject, - rubySettings?: RubySettings.AsObject, - goSettings?: GoSettings.AsObject, - } -} - -export class Publishing extends jspb.Message { - getMethodSettingsList(): Array; - setMethodSettingsList(value: Array): Publishing; - clearMethodSettingsList(): Publishing; - addMethodSettings(value?: MethodSettings, index?: number): MethodSettings; - - getNewIssueUri(): string; - setNewIssueUri(value: string): Publishing; - - getDocumentationUri(): string; - setDocumentationUri(value: string): Publishing; - - getApiShortName(): string; - setApiShortName(value: string): Publishing; - - getGithubLabel(): string; - setGithubLabel(value: string): Publishing; - - getCodeownerGithubTeamsList(): Array; - setCodeownerGithubTeamsList(value: Array): Publishing; - clearCodeownerGithubTeamsList(): Publishing; - addCodeownerGithubTeams(value: string, index?: number): Publishing; - - getDocTagPrefix(): string; - setDocTagPrefix(value: string): Publishing; - - getOrganization(): ClientLibraryOrganization; - setOrganization(value: ClientLibraryOrganization): Publishing; - - getLibrarySettingsList(): Array; - setLibrarySettingsList(value: Array): Publishing; - clearLibrarySettingsList(): Publishing; - addLibrarySettings(value?: ClientLibrarySettings, index?: number): ClientLibrarySettings; - - getProtoReferenceDocumentationUri(): string; - setProtoReferenceDocumentationUri(value: string): Publishing; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Publishing.AsObject; - static toObject(includeInstance: boolean, msg: Publishing): Publishing.AsObject; - static serializeBinaryToWriter(message: Publishing, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Publishing; - static deserializeBinaryFromReader(message: Publishing, reader: jspb.BinaryReader): Publishing; -} - -export namespace Publishing { - export type AsObject = { - methodSettingsList: Array, - newIssueUri: string, - documentationUri: string, - apiShortName: string, - githubLabel: string, - codeownerGithubTeamsList: Array, - docTagPrefix: string, - organization: ClientLibraryOrganization, - librarySettingsList: Array, - protoReferenceDocumentationUri: string, - } -} - -export class JavaSettings extends jspb.Message { - getLibraryPackage(): string; - setLibraryPackage(value: string): JavaSettings; - - getServiceClassNamesMap(): jspb.Map; - clearServiceClassNamesMap(): JavaSettings; - - getCommon(): CommonLanguageSettings | undefined; - setCommon(value?: CommonLanguageSettings): JavaSettings; - hasCommon(): boolean; - clearCommon(): JavaSettings; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): JavaSettings.AsObject; - static toObject(includeInstance: boolean, msg: JavaSettings): JavaSettings.AsObject; - static serializeBinaryToWriter(message: JavaSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): JavaSettings; - static deserializeBinaryFromReader(message: JavaSettings, reader: jspb.BinaryReader): JavaSettings; -} - -export namespace JavaSettings { - export type AsObject = { - libraryPackage: string, - serviceClassNamesMap: Array<[string, string]>, - common?: CommonLanguageSettings.AsObject, - } -} - -export class CppSettings extends jspb.Message { - getCommon(): CommonLanguageSettings | undefined; - setCommon(value?: CommonLanguageSettings): CppSettings; - hasCommon(): boolean; - clearCommon(): CppSettings; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CppSettings.AsObject; - static toObject(includeInstance: boolean, msg: CppSettings): CppSettings.AsObject; - static serializeBinaryToWriter(message: CppSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CppSettings; - static deserializeBinaryFromReader(message: CppSettings, reader: jspb.BinaryReader): CppSettings; -} - -export namespace CppSettings { - export type AsObject = { - common?: CommonLanguageSettings.AsObject, - } -} - -export class PhpSettings extends jspb.Message { - getCommon(): CommonLanguageSettings | undefined; - setCommon(value?: CommonLanguageSettings): PhpSettings; - hasCommon(): boolean; - clearCommon(): PhpSettings; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PhpSettings.AsObject; - static toObject(includeInstance: boolean, msg: PhpSettings): PhpSettings.AsObject; - static serializeBinaryToWriter(message: PhpSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PhpSettings; - static deserializeBinaryFromReader(message: PhpSettings, reader: jspb.BinaryReader): PhpSettings; -} - -export namespace PhpSettings { - export type AsObject = { - common?: CommonLanguageSettings.AsObject, - } -} - -export class PythonSettings extends jspb.Message { - getCommon(): CommonLanguageSettings | undefined; - setCommon(value?: CommonLanguageSettings): PythonSettings; - hasCommon(): boolean; - clearCommon(): PythonSettings; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PythonSettings.AsObject; - static toObject(includeInstance: boolean, msg: PythonSettings): PythonSettings.AsObject; - static serializeBinaryToWriter(message: PythonSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PythonSettings; - static deserializeBinaryFromReader(message: PythonSettings, reader: jspb.BinaryReader): PythonSettings; -} - -export namespace PythonSettings { - export type AsObject = { - common?: CommonLanguageSettings.AsObject, - } -} - -export class NodeSettings extends jspb.Message { - getCommon(): CommonLanguageSettings | undefined; - setCommon(value?: CommonLanguageSettings): NodeSettings; - hasCommon(): boolean; - clearCommon(): NodeSettings; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NodeSettings.AsObject; - static toObject(includeInstance: boolean, msg: NodeSettings): NodeSettings.AsObject; - static serializeBinaryToWriter(message: NodeSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NodeSettings; - static deserializeBinaryFromReader(message: NodeSettings, reader: jspb.BinaryReader): NodeSettings; -} - -export namespace NodeSettings { - export type AsObject = { - common?: CommonLanguageSettings.AsObject, - } -} - -export class DotnetSettings extends jspb.Message { - getCommon(): CommonLanguageSettings | undefined; - setCommon(value?: CommonLanguageSettings): DotnetSettings; - hasCommon(): boolean; - clearCommon(): DotnetSettings; - - getRenamedServicesMap(): jspb.Map; - clearRenamedServicesMap(): DotnetSettings; - - getRenamedResourcesMap(): jspb.Map; - clearRenamedResourcesMap(): DotnetSettings; - - getIgnoredResourcesList(): Array; - setIgnoredResourcesList(value: Array): DotnetSettings; - clearIgnoredResourcesList(): DotnetSettings; - addIgnoredResources(value: string, index?: number): DotnetSettings; - - getForcedNamespaceAliasesList(): Array; - setForcedNamespaceAliasesList(value: Array): DotnetSettings; - clearForcedNamespaceAliasesList(): DotnetSettings; - addForcedNamespaceAliases(value: string, index?: number): DotnetSettings; - - getHandwrittenSignaturesList(): Array; - setHandwrittenSignaturesList(value: Array): DotnetSettings; - clearHandwrittenSignaturesList(): DotnetSettings; - addHandwrittenSignatures(value: string, index?: number): DotnetSettings; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DotnetSettings.AsObject; - static toObject(includeInstance: boolean, msg: DotnetSettings): DotnetSettings.AsObject; - static serializeBinaryToWriter(message: DotnetSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DotnetSettings; - static deserializeBinaryFromReader(message: DotnetSettings, reader: jspb.BinaryReader): DotnetSettings; -} - -export namespace DotnetSettings { - export type AsObject = { - common?: CommonLanguageSettings.AsObject, - renamedServicesMap: Array<[string, string]>, - renamedResourcesMap: Array<[string, string]>, - ignoredResourcesList: Array, - forcedNamespaceAliasesList: Array, - handwrittenSignaturesList: Array, - } -} - -export class RubySettings extends jspb.Message { - getCommon(): CommonLanguageSettings | undefined; - setCommon(value?: CommonLanguageSettings): RubySettings; - hasCommon(): boolean; - clearCommon(): RubySettings; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RubySettings.AsObject; - static toObject(includeInstance: boolean, msg: RubySettings): RubySettings.AsObject; - static serializeBinaryToWriter(message: RubySettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RubySettings; - static deserializeBinaryFromReader(message: RubySettings, reader: jspb.BinaryReader): RubySettings; -} - -export namespace RubySettings { - export type AsObject = { - common?: CommonLanguageSettings.AsObject, - } -} - -export class GoSettings extends jspb.Message { - getCommon(): CommonLanguageSettings | undefined; - setCommon(value?: CommonLanguageSettings): GoSettings; - hasCommon(): boolean; - clearCommon(): GoSettings; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GoSettings.AsObject; - static toObject(includeInstance: boolean, msg: GoSettings): GoSettings.AsObject; - static serializeBinaryToWriter(message: GoSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GoSettings; - static deserializeBinaryFromReader(message: GoSettings, reader: jspb.BinaryReader): GoSettings; -} - -export namespace GoSettings { - export type AsObject = { - common?: CommonLanguageSettings.AsObject, - } -} - -export class MethodSettings extends jspb.Message { - getSelector(): string; - setSelector(value: string): MethodSettings; - - getLongRunning(): MethodSettings.LongRunning | undefined; - setLongRunning(value?: MethodSettings.LongRunning): MethodSettings; - hasLongRunning(): boolean; - clearLongRunning(): MethodSettings; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MethodSettings.AsObject; - static toObject(includeInstance: boolean, msg: MethodSettings): MethodSettings.AsObject; - static serializeBinaryToWriter(message: MethodSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MethodSettings; - static deserializeBinaryFromReader(message: MethodSettings, reader: jspb.BinaryReader): MethodSettings; -} - -export namespace MethodSettings { - export type AsObject = { - selector: string, - longRunning?: MethodSettings.LongRunning.AsObject, - } - - export class LongRunning extends jspb.Message { - getInitialPollDelay(): google_protobuf_duration_pb.Duration | undefined; - setInitialPollDelay(value?: google_protobuf_duration_pb.Duration): LongRunning; - hasInitialPollDelay(): boolean; - clearInitialPollDelay(): LongRunning; - - getPollDelayMultiplier(): number; - setPollDelayMultiplier(value: number): LongRunning; - - getMaxPollDelay(): google_protobuf_duration_pb.Duration | undefined; - setMaxPollDelay(value?: google_protobuf_duration_pb.Duration): LongRunning; - hasMaxPollDelay(): boolean; - clearMaxPollDelay(): LongRunning; - - getTotalPollTimeout(): google_protobuf_duration_pb.Duration | undefined; - setTotalPollTimeout(value?: google_protobuf_duration_pb.Duration): LongRunning; - hasTotalPollTimeout(): boolean; - clearTotalPollTimeout(): LongRunning; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LongRunning.AsObject; - static toObject(includeInstance: boolean, msg: LongRunning): LongRunning.AsObject; - static serializeBinaryToWriter(message: LongRunning, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LongRunning; - static deserializeBinaryFromReader(message: LongRunning, reader: jspb.BinaryReader): LongRunning; - } - - export namespace LongRunning { - export type AsObject = { - initialPollDelay?: google_protobuf_duration_pb.Duration.AsObject, - pollDelayMultiplier: number, - maxPollDelay?: google_protobuf_duration_pb.Duration.AsObject, - totalPollTimeout?: google_protobuf_duration_pb.Duration.AsObject, - } - } - -} - -export enum ClientLibraryOrganization { - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0, - CLOUD = 1, - ADS = 2, - PHOTOS = 3, - STREET_VIEW = 4, - SHOPPING = 5, - GEO = 6, - GENERATIVE_AI = 7, -} -export enum ClientLibraryDestination { - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0, - GITHUB = 10, - PACKAGE_MANAGER = 20, -} diff --git a/api/grpc-web/google/api/client_pb.js b/api/grpc-web/google/api/client_pb.js deleted file mode 100644 index e51c4c74..00000000 --- a/api/grpc-web/google/api/client_pb.js +++ /dev/null @@ -1,3621 +0,0 @@ -// source: google/api/client.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_launch_stage_pb = require('../../google/api/launch_stage_pb.js'); -goog.object.extend(proto, google_api_launch_stage_pb); -var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); -goog.object.extend(proto, google_protobuf_descriptor_pb); -var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); -goog.object.extend(proto, google_protobuf_duration_pb); -goog.exportSymbol('proto.google.api.ClientLibraryDestination', null, global); -goog.exportSymbol('proto.google.api.ClientLibraryOrganization', null, global); -goog.exportSymbol('proto.google.api.ClientLibrarySettings', null, global); -goog.exportSymbol('proto.google.api.CommonLanguageSettings', null, global); -goog.exportSymbol('proto.google.api.CppSettings', null, global); -goog.exportSymbol('proto.google.api.DotnetSettings', null, global); -goog.exportSymbol('proto.google.api.GoSettings', null, global); -goog.exportSymbol('proto.google.api.JavaSettings', null, global); -goog.exportSymbol('proto.google.api.MethodSettings', null, global); -goog.exportSymbol('proto.google.api.MethodSettings.LongRunning', null, global); -goog.exportSymbol('proto.google.api.NodeSettings', null, global); -goog.exportSymbol('proto.google.api.PhpSettings', null, global); -goog.exportSymbol('proto.google.api.Publishing', null, global); -goog.exportSymbol('proto.google.api.PythonSettings', null, global); -goog.exportSymbol('proto.google.api.RubySettings', null, global); -goog.exportSymbol('proto.google.api.defaultHost', null, global); -goog.exportSymbol('proto.google.api.methodSignatureList', null, global); -goog.exportSymbol('proto.google.api.oauthScopes', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.CommonLanguageSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.CommonLanguageSettings.repeatedFields_, null); -}; -goog.inherits(proto.google.api.CommonLanguageSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.CommonLanguageSettings.displayName = 'proto.google.api.CommonLanguageSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.ClientLibrarySettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.ClientLibrarySettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.ClientLibrarySettings.displayName = 'proto.google.api.ClientLibrarySettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Publishing = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Publishing.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Publishing, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Publishing.displayName = 'proto.google.api.Publishing'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.JavaSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.JavaSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.JavaSettings.displayName = 'proto.google.api.JavaSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.CppSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.CppSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.CppSettings.displayName = 'proto.google.api.CppSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.PhpSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.PhpSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.PhpSettings.displayName = 'proto.google.api.PhpSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.PythonSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.PythonSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.PythonSettings.displayName = 'proto.google.api.PythonSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.NodeSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.NodeSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.NodeSettings.displayName = 'proto.google.api.NodeSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.DotnetSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.DotnetSettings.repeatedFields_, null); -}; -goog.inherits(proto.google.api.DotnetSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.DotnetSettings.displayName = 'proto.google.api.DotnetSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.RubySettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.RubySettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.RubySettings.displayName = 'proto.google.api.RubySettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.GoSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.GoSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.GoSettings.displayName = 'proto.google.api.GoSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.MethodSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.MethodSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.MethodSettings.displayName = 'proto.google.api.MethodSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.MethodSettings.LongRunning = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.MethodSettings.LongRunning, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.MethodSettings.LongRunning.displayName = 'proto.google.api.MethodSettings.LongRunning'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.CommonLanguageSettings.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.CommonLanguageSettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.CommonLanguageSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.CommonLanguageSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.CommonLanguageSettings.toObject = function(includeInstance, msg) { - var f, obj = { - referenceDocsUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - destinationsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.CommonLanguageSettings} - */ -proto.google.api.CommonLanguageSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.CommonLanguageSettings; - return proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.CommonLanguageSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.CommonLanguageSettings} - */ -proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setReferenceDocsUri(value); - break; - case 2: - var value = /** @type {!Array} */ (reader.readPackedEnum()); - msg.setDestinationsList(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.CommonLanguageSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.CommonLanguageSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.CommonLanguageSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.CommonLanguageSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getReferenceDocsUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDestinationsList(); - if (f.length > 0) { - writer.writePackedEnum( - 2, - f - ); - } -}; - - -/** - * optional string reference_docs_uri = 1; - * @return {string} - */ -proto.google.api.CommonLanguageSettings.prototype.getReferenceDocsUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.CommonLanguageSettings} returns this - */ -proto.google.api.CommonLanguageSettings.prototype.setReferenceDocsUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated ClientLibraryDestination destinations = 2; - * @return {!Array} - */ -proto.google.api.CommonLanguageSettings.prototype.getDestinationsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.CommonLanguageSettings} returns this - */ -proto.google.api.CommonLanguageSettings.prototype.setDestinationsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {!proto.google.api.ClientLibraryDestination} value - * @param {number=} opt_index - * @return {!proto.google.api.CommonLanguageSettings} returns this - */ -proto.google.api.CommonLanguageSettings.prototype.addDestinations = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.CommonLanguageSettings} returns this - */ -proto.google.api.CommonLanguageSettings.prototype.clearDestinationsList = function() { - return this.setDestinationsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.ClientLibrarySettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.ClientLibrarySettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.ClientLibrarySettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ClientLibrarySettings.toObject = function(includeInstance, msg) { - var f, obj = { - version: jspb.Message.getFieldWithDefault(msg, 1, ""), - launchStage: jspb.Message.getFieldWithDefault(msg, 2, 0), - restNumericEnums: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - javaSettings: (f = msg.getJavaSettings()) && proto.google.api.JavaSettings.toObject(includeInstance, f), - cppSettings: (f = msg.getCppSettings()) && proto.google.api.CppSettings.toObject(includeInstance, f), - phpSettings: (f = msg.getPhpSettings()) && proto.google.api.PhpSettings.toObject(includeInstance, f), - pythonSettings: (f = msg.getPythonSettings()) && proto.google.api.PythonSettings.toObject(includeInstance, f), - nodeSettings: (f = msg.getNodeSettings()) && proto.google.api.NodeSettings.toObject(includeInstance, f), - dotnetSettings: (f = msg.getDotnetSettings()) && proto.google.api.DotnetSettings.toObject(includeInstance, f), - rubySettings: (f = msg.getRubySettings()) && proto.google.api.RubySettings.toObject(includeInstance, f), - goSettings: (f = msg.getGoSettings()) && proto.google.api.GoSettings.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.ClientLibrarySettings} - */ -proto.google.api.ClientLibrarySettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.ClientLibrarySettings; - return proto.google.api.ClientLibrarySettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.ClientLibrarySettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.ClientLibrarySettings} - */ -proto.google.api.ClientLibrarySettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; - case 2: - var value = /** @type {!proto.google.api.LaunchStage} */ (reader.readEnum()); - msg.setLaunchStage(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setRestNumericEnums(value); - break; - case 21: - var value = new proto.google.api.JavaSettings; - reader.readMessage(value,proto.google.api.JavaSettings.deserializeBinaryFromReader); - msg.setJavaSettings(value); - break; - case 22: - var value = new proto.google.api.CppSettings; - reader.readMessage(value,proto.google.api.CppSettings.deserializeBinaryFromReader); - msg.setCppSettings(value); - break; - case 23: - var value = new proto.google.api.PhpSettings; - reader.readMessage(value,proto.google.api.PhpSettings.deserializeBinaryFromReader); - msg.setPhpSettings(value); - break; - case 24: - var value = new proto.google.api.PythonSettings; - reader.readMessage(value,proto.google.api.PythonSettings.deserializeBinaryFromReader); - msg.setPythonSettings(value); - break; - case 25: - var value = new proto.google.api.NodeSettings; - reader.readMessage(value,proto.google.api.NodeSettings.deserializeBinaryFromReader); - msg.setNodeSettings(value); - break; - case 26: - var value = new proto.google.api.DotnetSettings; - reader.readMessage(value,proto.google.api.DotnetSettings.deserializeBinaryFromReader); - msg.setDotnetSettings(value); - break; - case 27: - var value = new proto.google.api.RubySettings; - reader.readMessage(value,proto.google.api.RubySettings.deserializeBinaryFromReader); - msg.setRubySettings(value); - break; - case 28: - var value = new proto.google.api.GoSettings; - reader.readMessage(value,proto.google.api.GoSettings.deserializeBinaryFromReader); - msg.setGoSettings(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.ClientLibrarySettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.ClientLibrarySettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.ClientLibrarySettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ClientLibrarySettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLaunchStage(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getRestNumericEnums(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getJavaSettings(); - if (f != null) { - writer.writeMessage( - 21, - f, - proto.google.api.JavaSettings.serializeBinaryToWriter - ); - } - f = message.getCppSettings(); - if (f != null) { - writer.writeMessage( - 22, - f, - proto.google.api.CppSettings.serializeBinaryToWriter - ); - } - f = message.getPhpSettings(); - if (f != null) { - writer.writeMessage( - 23, - f, - proto.google.api.PhpSettings.serializeBinaryToWriter - ); - } - f = message.getPythonSettings(); - if (f != null) { - writer.writeMessage( - 24, - f, - proto.google.api.PythonSettings.serializeBinaryToWriter - ); - } - f = message.getNodeSettings(); - if (f != null) { - writer.writeMessage( - 25, - f, - proto.google.api.NodeSettings.serializeBinaryToWriter - ); - } - f = message.getDotnetSettings(); - if (f != null) { - writer.writeMessage( - 26, - f, - proto.google.api.DotnetSettings.serializeBinaryToWriter - ); - } - f = message.getRubySettings(); - if (f != null) { - writer.writeMessage( - 27, - f, - proto.google.api.RubySettings.serializeBinaryToWriter - ); - } - f = message.getGoSettings(); - if (f != null) { - writer.writeMessage( - 28, - f, - proto.google.api.GoSettings.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string version = 1; - * @return {string} - */ -proto.google.api.ClientLibrarySettings.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional LaunchStage launch_stage = 2; - * @return {!proto.google.api.LaunchStage} - */ -proto.google.api.ClientLibrarySettings.prototype.getLaunchStage = function() { - return /** @type {!proto.google.api.LaunchStage} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.google.api.LaunchStage} value - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.setLaunchStage = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional bool rest_numeric_enums = 3; - * @return {boolean} - */ -proto.google.api.ClientLibrarySettings.prototype.getRestNumericEnums = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.setRestNumericEnums = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional JavaSettings java_settings = 21; - * @return {?proto.google.api.JavaSettings} - */ -proto.google.api.ClientLibrarySettings.prototype.getJavaSettings = function() { - return /** @type{?proto.google.api.JavaSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.JavaSettings, 21)); -}; - - -/** - * @param {?proto.google.api.JavaSettings|undefined} value - * @return {!proto.google.api.ClientLibrarySettings} returns this -*/ -proto.google.api.ClientLibrarySettings.prototype.setJavaSettings = function(value) { - return jspb.Message.setWrapperField(this, 21, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.clearJavaSettings = function() { - return this.setJavaSettings(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.ClientLibrarySettings.prototype.hasJavaSettings = function() { - return jspb.Message.getField(this, 21) != null; -}; - - -/** - * optional CppSettings cpp_settings = 22; - * @return {?proto.google.api.CppSettings} - */ -proto.google.api.ClientLibrarySettings.prototype.getCppSettings = function() { - return /** @type{?proto.google.api.CppSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CppSettings, 22)); -}; - - -/** - * @param {?proto.google.api.CppSettings|undefined} value - * @return {!proto.google.api.ClientLibrarySettings} returns this -*/ -proto.google.api.ClientLibrarySettings.prototype.setCppSettings = function(value) { - return jspb.Message.setWrapperField(this, 22, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.clearCppSettings = function() { - return this.setCppSettings(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.ClientLibrarySettings.prototype.hasCppSettings = function() { - return jspb.Message.getField(this, 22) != null; -}; - - -/** - * optional PhpSettings php_settings = 23; - * @return {?proto.google.api.PhpSettings} - */ -proto.google.api.ClientLibrarySettings.prototype.getPhpSettings = function() { - return /** @type{?proto.google.api.PhpSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.PhpSettings, 23)); -}; - - -/** - * @param {?proto.google.api.PhpSettings|undefined} value - * @return {!proto.google.api.ClientLibrarySettings} returns this -*/ -proto.google.api.ClientLibrarySettings.prototype.setPhpSettings = function(value) { - return jspb.Message.setWrapperField(this, 23, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.clearPhpSettings = function() { - return this.setPhpSettings(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.ClientLibrarySettings.prototype.hasPhpSettings = function() { - return jspb.Message.getField(this, 23) != null; -}; - - -/** - * optional PythonSettings python_settings = 24; - * @return {?proto.google.api.PythonSettings} - */ -proto.google.api.ClientLibrarySettings.prototype.getPythonSettings = function() { - return /** @type{?proto.google.api.PythonSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.PythonSettings, 24)); -}; - - -/** - * @param {?proto.google.api.PythonSettings|undefined} value - * @return {!proto.google.api.ClientLibrarySettings} returns this -*/ -proto.google.api.ClientLibrarySettings.prototype.setPythonSettings = function(value) { - return jspb.Message.setWrapperField(this, 24, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.clearPythonSettings = function() { - return this.setPythonSettings(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.ClientLibrarySettings.prototype.hasPythonSettings = function() { - return jspb.Message.getField(this, 24) != null; -}; - - -/** - * optional NodeSettings node_settings = 25; - * @return {?proto.google.api.NodeSettings} - */ -proto.google.api.ClientLibrarySettings.prototype.getNodeSettings = function() { - return /** @type{?proto.google.api.NodeSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.NodeSettings, 25)); -}; - - -/** - * @param {?proto.google.api.NodeSettings|undefined} value - * @return {!proto.google.api.ClientLibrarySettings} returns this -*/ -proto.google.api.ClientLibrarySettings.prototype.setNodeSettings = function(value) { - return jspb.Message.setWrapperField(this, 25, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.clearNodeSettings = function() { - return this.setNodeSettings(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.ClientLibrarySettings.prototype.hasNodeSettings = function() { - return jspb.Message.getField(this, 25) != null; -}; - - -/** - * optional DotnetSettings dotnet_settings = 26; - * @return {?proto.google.api.DotnetSettings} - */ -proto.google.api.ClientLibrarySettings.prototype.getDotnetSettings = function() { - return /** @type{?proto.google.api.DotnetSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.DotnetSettings, 26)); -}; - - -/** - * @param {?proto.google.api.DotnetSettings|undefined} value - * @return {!proto.google.api.ClientLibrarySettings} returns this -*/ -proto.google.api.ClientLibrarySettings.prototype.setDotnetSettings = function(value) { - return jspb.Message.setWrapperField(this, 26, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.clearDotnetSettings = function() { - return this.setDotnetSettings(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.ClientLibrarySettings.prototype.hasDotnetSettings = function() { - return jspb.Message.getField(this, 26) != null; -}; - - -/** - * optional RubySettings ruby_settings = 27; - * @return {?proto.google.api.RubySettings} - */ -proto.google.api.ClientLibrarySettings.prototype.getRubySettings = function() { - return /** @type{?proto.google.api.RubySettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.RubySettings, 27)); -}; - - -/** - * @param {?proto.google.api.RubySettings|undefined} value - * @return {!proto.google.api.ClientLibrarySettings} returns this -*/ -proto.google.api.ClientLibrarySettings.prototype.setRubySettings = function(value) { - return jspb.Message.setWrapperField(this, 27, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.clearRubySettings = function() { - return this.setRubySettings(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.ClientLibrarySettings.prototype.hasRubySettings = function() { - return jspb.Message.getField(this, 27) != null; -}; - - -/** - * optional GoSettings go_settings = 28; - * @return {?proto.google.api.GoSettings} - */ -proto.google.api.ClientLibrarySettings.prototype.getGoSettings = function() { - return /** @type{?proto.google.api.GoSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.GoSettings, 28)); -}; - - -/** - * @param {?proto.google.api.GoSettings|undefined} value - * @return {!proto.google.api.ClientLibrarySettings} returns this -*/ -proto.google.api.ClientLibrarySettings.prototype.setGoSettings = function(value) { - return jspb.Message.setWrapperField(this, 28, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.clearGoSettings = function() { - return this.setGoSettings(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.ClientLibrarySettings.prototype.hasGoSettings = function() { - return jspb.Message.getField(this, 28) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Publishing.repeatedFields_ = [2,105,109]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Publishing.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Publishing.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Publishing} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Publishing.toObject = function(includeInstance, msg) { - var f, obj = { - methodSettingsList: jspb.Message.toObjectList(msg.getMethodSettingsList(), - proto.google.api.MethodSettings.toObject, includeInstance), - newIssueUri: jspb.Message.getFieldWithDefault(msg, 101, ""), - documentationUri: jspb.Message.getFieldWithDefault(msg, 102, ""), - apiShortName: jspb.Message.getFieldWithDefault(msg, 103, ""), - githubLabel: jspb.Message.getFieldWithDefault(msg, 104, ""), - codeownerGithubTeamsList: (f = jspb.Message.getRepeatedField(msg, 105)) == null ? undefined : f, - docTagPrefix: jspb.Message.getFieldWithDefault(msg, 106, ""), - organization: jspb.Message.getFieldWithDefault(msg, 107, 0), - librarySettingsList: jspb.Message.toObjectList(msg.getLibrarySettingsList(), - proto.google.api.ClientLibrarySettings.toObject, includeInstance), - protoReferenceDocumentationUri: jspb.Message.getFieldWithDefault(msg, 110, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Publishing} - */ -proto.google.api.Publishing.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Publishing; - return proto.google.api.Publishing.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Publishing} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Publishing} - */ -proto.google.api.Publishing.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = new proto.google.api.MethodSettings; - reader.readMessage(value,proto.google.api.MethodSettings.deserializeBinaryFromReader); - msg.addMethodSettings(value); - break; - case 101: - var value = /** @type {string} */ (reader.readString()); - msg.setNewIssueUri(value); - break; - case 102: - var value = /** @type {string} */ (reader.readString()); - msg.setDocumentationUri(value); - break; - case 103: - var value = /** @type {string} */ (reader.readString()); - msg.setApiShortName(value); - break; - case 104: - var value = /** @type {string} */ (reader.readString()); - msg.setGithubLabel(value); - break; - case 105: - var value = /** @type {string} */ (reader.readString()); - msg.addCodeownerGithubTeams(value); - break; - case 106: - var value = /** @type {string} */ (reader.readString()); - msg.setDocTagPrefix(value); - break; - case 107: - var value = /** @type {!proto.google.api.ClientLibraryOrganization} */ (reader.readEnum()); - msg.setOrganization(value); - break; - case 109: - var value = new proto.google.api.ClientLibrarySettings; - reader.readMessage(value,proto.google.api.ClientLibrarySettings.deserializeBinaryFromReader); - msg.addLibrarySettings(value); - break; - case 110: - var value = /** @type {string} */ (reader.readString()); - msg.setProtoReferenceDocumentationUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Publishing.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Publishing.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Publishing} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Publishing.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMethodSettingsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.google.api.MethodSettings.serializeBinaryToWriter - ); - } - f = message.getNewIssueUri(); - if (f.length > 0) { - writer.writeString( - 101, - f - ); - } - f = message.getDocumentationUri(); - if (f.length > 0) { - writer.writeString( - 102, - f - ); - } - f = message.getApiShortName(); - if (f.length > 0) { - writer.writeString( - 103, - f - ); - } - f = message.getGithubLabel(); - if (f.length > 0) { - writer.writeString( - 104, - f - ); - } - f = message.getCodeownerGithubTeamsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 105, - f - ); - } - f = message.getDocTagPrefix(); - if (f.length > 0) { - writer.writeString( - 106, - f - ); - } - f = message.getOrganization(); - if (f !== 0.0) { - writer.writeEnum( - 107, - f - ); - } - f = message.getLibrarySettingsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 109, - f, - proto.google.api.ClientLibrarySettings.serializeBinaryToWriter - ); - } - f = message.getProtoReferenceDocumentationUri(); - if (f.length > 0) { - writer.writeString( - 110, - f - ); - } -}; - - -/** - * repeated MethodSettings method_settings = 2; - * @return {!Array} - */ -proto.google.api.Publishing.prototype.getMethodSettingsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.MethodSettings, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Publishing} returns this -*/ -proto.google.api.Publishing.prototype.setMethodSettingsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.api.MethodSettings=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.MethodSettings} - */ -proto.google.api.Publishing.prototype.addMethodSettings = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.MethodSettings, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.clearMethodSettingsList = function() { - return this.setMethodSettingsList([]); -}; - - -/** - * optional string new_issue_uri = 101; - * @return {string} - */ -proto.google.api.Publishing.prototype.getNewIssueUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 101, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.setNewIssueUri = function(value) { - return jspb.Message.setProto3StringField(this, 101, value); -}; - - -/** - * optional string documentation_uri = 102; - * @return {string} - */ -proto.google.api.Publishing.prototype.getDocumentationUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 102, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.setDocumentationUri = function(value) { - return jspb.Message.setProto3StringField(this, 102, value); -}; - - -/** - * optional string api_short_name = 103; - * @return {string} - */ -proto.google.api.Publishing.prototype.getApiShortName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 103, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.setApiShortName = function(value) { - return jspb.Message.setProto3StringField(this, 103, value); -}; - - -/** - * optional string github_label = 104; - * @return {string} - */ -proto.google.api.Publishing.prototype.getGithubLabel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 104, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.setGithubLabel = function(value) { - return jspb.Message.setProto3StringField(this, 104, value); -}; - - -/** - * repeated string codeowner_github_teams = 105; - * @return {!Array} - */ -proto.google.api.Publishing.prototype.getCodeownerGithubTeamsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 105)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.setCodeownerGithubTeamsList = function(value) { - return jspb.Message.setField(this, 105, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.addCodeownerGithubTeams = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 105, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.clearCodeownerGithubTeamsList = function() { - return this.setCodeownerGithubTeamsList([]); -}; - - -/** - * optional string doc_tag_prefix = 106; - * @return {string} - */ -proto.google.api.Publishing.prototype.getDocTagPrefix = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 106, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.setDocTagPrefix = function(value) { - return jspb.Message.setProto3StringField(this, 106, value); -}; - - -/** - * optional ClientLibraryOrganization organization = 107; - * @return {!proto.google.api.ClientLibraryOrganization} - */ -proto.google.api.Publishing.prototype.getOrganization = function() { - return /** @type {!proto.google.api.ClientLibraryOrganization} */ (jspb.Message.getFieldWithDefault(this, 107, 0)); -}; - - -/** - * @param {!proto.google.api.ClientLibraryOrganization} value - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.setOrganization = function(value) { - return jspb.Message.setProto3EnumField(this, 107, value); -}; - - -/** - * repeated ClientLibrarySettings library_settings = 109; - * @return {!Array} - */ -proto.google.api.Publishing.prototype.getLibrarySettingsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.ClientLibrarySettings, 109)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Publishing} returns this -*/ -proto.google.api.Publishing.prototype.setLibrarySettingsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 109, value); -}; - - -/** - * @param {!proto.google.api.ClientLibrarySettings=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.ClientLibrarySettings} - */ -proto.google.api.Publishing.prototype.addLibrarySettings = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 109, opt_value, proto.google.api.ClientLibrarySettings, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.clearLibrarySettingsList = function() { - return this.setLibrarySettingsList([]); -}; - - -/** - * optional string proto_reference_documentation_uri = 110; - * @return {string} - */ -proto.google.api.Publishing.prototype.getProtoReferenceDocumentationUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 110, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.setProtoReferenceDocumentationUri = function(value) { - return jspb.Message.setProto3StringField(this, 110, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.JavaSettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.JavaSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.JavaSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.JavaSettings.toObject = function(includeInstance, msg) { - var f, obj = { - libraryPackage: jspb.Message.getFieldWithDefault(msg, 1, ""), - serviceClassNamesMap: (f = msg.getServiceClassNamesMap()) ? f.toObject(includeInstance, undefined) : [], - common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.JavaSettings} - */ -proto.google.api.JavaSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.JavaSettings; - return proto.google.api.JavaSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.JavaSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.JavaSettings} - */ -proto.google.api.JavaSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setLibraryPackage(value); - break; - case 2: - var value = msg.getServiceClassNamesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 3: - var value = new proto.google.api.CommonLanguageSettings; - reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); - msg.setCommon(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.JavaSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.JavaSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.JavaSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.JavaSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLibraryPackage(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getServiceClassNamesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getCommon(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.google.api.CommonLanguageSettings.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string library_package = 1; - * @return {string} - */ -proto.google.api.JavaSettings.prototype.getLibraryPackage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.JavaSettings} returns this - */ -proto.google.api.JavaSettings.prototype.setLibraryPackage = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * map service_class_names = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.google.api.JavaSettings.prototype.getServiceClassNamesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.google.api.JavaSettings} returns this - */ -proto.google.api.JavaSettings.prototype.clearServiceClassNamesMap = function() { - this.getServiceClassNamesMap().clear(); - return this;}; - - -/** - * optional CommonLanguageSettings common = 3; - * @return {?proto.google.api.CommonLanguageSettings} - */ -proto.google.api.JavaSettings.prototype.getCommon = function() { - return /** @type{?proto.google.api.CommonLanguageSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 3)); -}; - - -/** - * @param {?proto.google.api.CommonLanguageSettings|undefined} value - * @return {!proto.google.api.JavaSettings} returns this -*/ -proto.google.api.JavaSettings.prototype.setCommon = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.JavaSettings} returns this - */ -proto.google.api.JavaSettings.prototype.clearCommon = function() { - return this.setCommon(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.JavaSettings.prototype.hasCommon = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.CppSettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.CppSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.CppSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.CppSettings.toObject = function(includeInstance, msg) { - var f, obj = { - common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.CppSettings} - */ -proto.google.api.CppSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.CppSettings; - return proto.google.api.CppSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.CppSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.CppSettings} - */ -proto.google.api.CppSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.CommonLanguageSettings; - reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); - msg.setCommon(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.CppSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.CppSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.CppSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.CppSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCommon(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.google.api.CommonLanguageSettings.serializeBinaryToWriter - ); - } -}; - - -/** - * optional CommonLanguageSettings common = 1; - * @return {?proto.google.api.CommonLanguageSettings} - */ -proto.google.api.CppSettings.prototype.getCommon = function() { - return /** @type{?proto.google.api.CommonLanguageSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); -}; - - -/** - * @param {?proto.google.api.CommonLanguageSettings|undefined} value - * @return {!proto.google.api.CppSettings} returns this -*/ -proto.google.api.CppSettings.prototype.setCommon = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.CppSettings} returns this - */ -proto.google.api.CppSettings.prototype.clearCommon = function() { - return this.setCommon(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.CppSettings.prototype.hasCommon = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.PhpSettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.PhpSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.PhpSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.PhpSettings.toObject = function(includeInstance, msg) { - var f, obj = { - common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.PhpSettings} - */ -proto.google.api.PhpSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.PhpSettings; - return proto.google.api.PhpSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.PhpSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.PhpSettings} - */ -proto.google.api.PhpSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.CommonLanguageSettings; - reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); - msg.setCommon(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.PhpSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.PhpSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.PhpSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.PhpSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCommon(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.google.api.CommonLanguageSettings.serializeBinaryToWriter - ); - } -}; - - -/** - * optional CommonLanguageSettings common = 1; - * @return {?proto.google.api.CommonLanguageSettings} - */ -proto.google.api.PhpSettings.prototype.getCommon = function() { - return /** @type{?proto.google.api.CommonLanguageSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); -}; - - -/** - * @param {?proto.google.api.CommonLanguageSettings|undefined} value - * @return {!proto.google.api.PhpSettings} returns this -*/ -proto.google.api.PhpSettings.prototype.setCommon = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.PhpSettings} returns this - */ -proto.google.api.PhpSettings.prototype.clearCommon = function() { - return this.setCommon(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.PhpSettings.prototype.hasCommon = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.PythonSettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.PythonSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.PythonSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.PythonSettings.toObject = function(includeInstance, msg) { - var f, obj = { - common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.PythonSettings} - */ -proto.google.api.PythonSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.PythonSettings; - return proto.google.api.PythonSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.PythonSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.PythonSettings} - */ -proto.google.api.PythonSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.CommonLanguageSettings; - reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); - msg.setCommon(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.PythonSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.PythonSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.PythonSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.PythonSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCommon(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.google.api.CommonLanguageSettings.serializeBinaryToWriter - ); - } -}; - - -/** - * optional CommonLanguageSettings common = 1; - * @return {?proto.google.api.CommonLanguageSettings} - */ -proto.google.api.PythonSettings.prototype.getCommon = function() { - return /** @type{?proto.google.api.CommonLanguageSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); -}; - - -/** - * @param {?proto.google.api.CommonLanguageSettings|undefined} value - * @return {!proto.google.api.PythonSettings} returns this -*/ -proto.google.api.PythonSettings.prototype.setCommon = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.PythonSettings} returns this - */ -proto.google.api.PythonSettings.prototype.clearCommon = function() { - return this.setCommon(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.PythonSettings.prototype.hasCommon = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.NodeSettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.NodeSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.NodeSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.NodeSettings.toObject = function(includeInstance, msg) { - var f, obj = { - common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.NodeSettings} - */ -proto.google.api.NodeSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.NodeSettings; - return proto.google.api.NodeSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.NodeSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.NodeSettings} - */ -proto.google.api.NodeSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.CommonLanguageSettings; - reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); - msg.setCommon(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.NodeSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.NodeSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.NodeSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.NodeSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCommon(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.google.api.CommonLanguageSettings.serializeBinaryToWriter - ); - } -}; - - -/** - * optional CommonLanguageSettings common = 1; - * @return {?proto.google.api.CommonLanguageSettings} - */ -proto.google.api.NodeSettings.prototype.getCommon = function() { - return /** @type{?proto.google.api.CommonLanguageSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); -}; - - -/** - * @param {?proto.google.api.CommonLanguageSettings|undefined} value - * @return {!proto.google.api.NodeSettings} returns this -*/ -proto.google.api.NodeSettings.prototype.setCommon = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.NodeSettings} returns this - */ -proto.google.api.NodeSettings.prototype.clearCommon = function() { - return this.setCommon(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.NodeSettings.prototype.hasCommon = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.DotnetSettings.repeatedFields_ = [4,5,6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.DotnetSettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.DotnetSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.DotnetSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.DotnetSettings.toObject = function(includeInstance, msg) { - var f, obj = { - common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f), - renamedServicesMap: (f = msg.getRenamedServicesMap()) ? f.toObject(includeInstance, undefined) : [], - renamedResourcesMap: (f = msg.getRenamedResourcesMap()) ? f.toObject(includeInstance, undefined) : [], - ignoredResourcesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, - forcedNamespaceAliasesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, - handwrittenSignaturesList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.DotnetSettings} - */ -proto.google.api.DotnetSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.DotnetSettings; - return proto.google.api.DotnetSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.DotnetSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.DotnetSettings} - */ -proto.google.api.DotnetSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.CommonLanguageSettings; - reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); - msg.setCommon(value); - break; - case 2: - var value = msg.getRenamedServicesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 3: - var value = msg.getRenamedResourcesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addIgnoredResources(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.addForcedNamespaceAliases(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.addHandwrittenSignatures(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.DotnetSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.DotnetSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.DotnetSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.DotnetSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCommon(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.google.api.CommonLanguageSettings.serializeBinaryToWriter - ); - } - f = message.getRenamedServicesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getRenamedResourcesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getIgnoredResourcesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } - f = message.getForcedNamespaceAliasesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 5, - f - ); - } - f = message.getHandwrittenSignaturesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 6, - f - ); - } -}; - - -/** - * optional CommonLanguageSettings common = 1; - * @return {?proto.google.api.CommonLanguageSettings} - */ -proto.google.api.DotnetSettings.prototype.getCommon = function() { - return /** @type{?proto.google.api.CommonLanguageSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); -}; - - -/** - * @param {?proto.google.api.CommonLanguageSettings|undefined} value - * @return {!proto.google.api.DotnetSettings} returns this -*/ -proto.google.api.DotnetSettings.prototype.setCommon = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.clearCommon = function() { - return this.setCommon(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.DotnetSettings.prototype.hasCommon = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * map renamed_services = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.google.api.DotnetSettings.prototype.getRenamedServicesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.clearRenamedServicesMap = function() { - this.getRenamedServicesMap().clear(); - return this;}; - - -/** - * map renamed_resources = 3; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.google.api.DotnetSettings.prototype.getRenamedResourcesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 3, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.clearRenamedResourcesMap = function() { - this.getRenamedResourcesMap().clear(); - return this;}; - - -/** - * repeated string ignored_resources = 4; - * @return {!Array} - */ -proto.google.api.DotnetSettings.prototype.getIgnoredResourcesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.setIgnoredResourcesList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.addIgnoredResources = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.clearIgnoredResourcesList = function() { - return this.setIgnoredResourcesList([]); -}; - - -/** - * repeated string forced_namespace_aliases = 5; - * @return {!Array} - */ -proto.google.api.DotnetSettings.prototype.getForcedNamespaceAliasesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.setForcedNamespaceAliasesList = function(value) { - return jspb.Message.setField(this, 5, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.addForcedNamespaceAliases = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 5, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.clearForcedNamespaceAliasesList = function() { - return this.setForcedNamespaceAliasesList([]); -}; - - -/** - * repeated string handwritten_signatures = 6; - * @return {!Array} - */ -proto.google.api.DotnetSettings.prototype.getHandwrittenSignaturesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.setHandwrittenSignaturesList = function(value) { - return jspb.Message.setField(this, 6, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.addHandwrittenSignatures = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 6, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.clearHandwrittenSignaturesList = function() { - return this.setHandwrittenSignaturesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.RubySettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.RubySettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.RubySettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.RubySettings.toObject = function(includeInstance, msg) { - var f, obj = { - common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.RubySettings} - */ -proto.google.api.RubySettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.RubySettings; - return proto.google.api.RubySettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.RubySettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.RubySettings} - */ -proto.google.api.RubySettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.CommonLanguageSettings; - reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); - msg.setCommon(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.RubySettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.RubySettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.RubySettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.RubySettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCommon(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.google.api.CommonLanguageSettings.serializeBinaryToWriter - ); - } -}; - - -/** - * optional CommonLanguageSettings common = 1; - * @return {?proto.google.api.CommonLanguageSettings} - */ -proto.google.api.RubySettings.prototype.getCommon = function() { - return /** @type{?proto.google.api.CommonLanguageSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); -}; - - -/** - * @param {?proto.google.api.CommonLanguageSettings|undefined} value - * @return {!proto.google.api.RubySettings} returns this -*/ -proto.google.api.RubySettings.prototype.setCommon = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.RubySettings} returns this - */ -proto.google.api.RubySettings.prototype.clearCommon = function() { - return this.setCommon(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.RubySettings.prototype.hasCommon = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.GoSettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.GoSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.GoSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.GoSettings.toObject = function(includeInstance, msg) { - var f, obj = { - common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.GoSettings} - */ -proto.google.api.GoSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.GoSettings; - return proto.google.api.GoSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.GoSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.GoSettings} - */ -proto.google.api.GoSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.CommonLanguageSettings; - reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); - msg.setCommon(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.GoSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.GoSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.GoSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.GoSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCommon(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.google.api.CommonLanguageSettings.serializeBinaryToWriter - ); - } -}; - - -/** - * optional CommonLanguageSettings common = 1; - * @return {?proto.google.api.CommonLanguageSettings} - */ -proto.google.api.GoSettings.prototype.getCommon = function() { - return /** @type{?proto.google.api.CommonLanguageSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); -}; - - -/** - * @param {?proto.google.api.CommonLanguageSettings|undefined} value - * @return {!proto.google.api.GoSettings} returns this -*/ -proto.google.api.GoSettings.prototype.setCommon = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.GoSettings} returns this - */ -proto.google.api.GoSettings.prototype.clearCommon = function() { - return this.setCommon(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.GoSettings.prototype.hasCommon = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.MethodSettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.MethodSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.MethodSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MethodSettings.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - longRunning: (f = msg.getLongRunning()) && proto.google.api.MethodSettings.LongRunning.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.MethodSettings} - */ -proto.google.api.MethodSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.MethodSettings; - return proto.google.api.MethodSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.MethodSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.MethodSettings} - */ -proto.google.api.MethodSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = new proto.google.api.MethodSettings.LongRunning; - reader.readMessage(value,proto.google.api.MethodSettings.LongRunning.deserializeBinaryFromReader); - msg.setLongRunning(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.MethodSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.MethodSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.MethodSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MethodSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLongRunning(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.google.api.MethodSettings.LongRunning.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.MethodSettings.LongRunning.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.MethodSettings.LongRunning.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.MethodSettings.LongRunning} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MethodSettings.LongRunning.toObject = function(includeInstance, msg) { - var f, obj = { - initialPollDelay: (f = msg.getInitialPollDelay()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), - pollDelayMultiplier: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - maxPollDelay: (f = msg.getMaxPollDelay()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), - totalPollTimeout: (f = msg.getTotalPollTimeout()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.MethodSettings.LongRunning} - */ -proto.google.api.MethodSettings.LongRunning.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.MethodSettings.LongRunning; - return proto.google.api.MethodSettings.LongRunning.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.MethodSettings.LongRunning} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.MethodSettings.LongRunning} - */ -proto.google.api.MethodSettings.LongRunning.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setInitialPollDelay(value); - break; - case 2: - var value = /** @type {number} */ (reader.readFloat()); - msg.setPollDelayMultiplier(value); - break; - case 3: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setMaxPollDelay(value); - break; - case 4: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setTotalPollTimeout(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.MethodSettings.LongRunning.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.MethodSettings.LongRunning.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.MethodSettings.LongRunning} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MethodSettings.LongRunning.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getInitialPollDelay(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } - f = message.getPollDelayMultiplier(); - if (f !== 0.0) { - writer.writeFloat( - 2, - f - ); - } - f = message.getMaxPollDelay(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } - f = message.getTotalPollTimeout(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional google.protobuf.Duration initial_poll_delay = 1; - * @return {?proto.google.protobuf.Duration} - */ -proto.google.api.MethodSettings.LongRunning.prototype.getInitialPollDelay = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.google.api.MethodSettings.LongRunning} returns this -*/ -proto.google.api.MethodSettings.LongRunning.prototype.setInitialPollDelay = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.MethodSettings.LongRunning} returns this - */ -proto.google.api.MethodSettings.LongRunning.prototype.clearInitialPollDelay = function() { - return this.setInitialPollDelay(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.MethodSettings.LongRunning.prototype.hasInitialPollDelay = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional float poll_delay_multiplier = 2; - * @return {number} - */ -proto.google.api.MethodSettings.LongRunning.prototype.getPollDelayMultiplier = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.MethodSettings.LongRunning} returns this - */ -proto.google.api.MethodSettings.LongRunning.prototype.setPollDelayMultiplier = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - -/** - * optional google.protobuf.Duration max_poll_delay = 3; - * @return {?proto.google.protobuf.Duration} - */ -proto.google.api.MethodSettings.LongRunning.prototype.getMaxPollDelay = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.google.api.MethodSettings.LongRunning} returns this -*/ -proto.google.api.MethodSettings.LongRunning.prototype.setMaxPollDelay = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.MethodSettings.LongRunning} returns this - */ -proto.google.api.MethodSettings.LongRunning.prototype.clearMaxPollDelay = function() { - return this.setMaxPollDelay(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.MethodSettings.LongRunning.prototype.hasMaxPollDelay = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Duration total_poll_timeout = 4; - * @return {?proto.google.protobuf.Duration} - */ -proto.google.api.MethodSettings.LongRunning.prototype.getTotalPollTimeout = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.google.api.MethodSettings.LongRunning} returns this -*/ -proto.google.api.MethodSettings.LongRunning.prototype.setTotalPollTimeout = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.MethodSettings.LongRunning} returns this - */ -proto.google.api.MethodSettings.LongRunning.prototype.clearTotalPollTimeout = function() { - return this.setTotalPollTimeout(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.MethodSettings.LongRunning.prototype.hasTotalPollTimeout = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.MethodSettings.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MethodSettings} returns this - */ -proto.google.api.MethodSettings.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional LongRunning long_running = 2; - * @return {?proto.google.api.MethodSettings.LongRunning} - */ -proto.google.api.MethodSettings.prototype.getLongRunning = function() { - return /** @type{?proto.google.api.MethodSettings.LongRunning} */ ( - jspb.Message.getWrapperField(this, proto.google.api.MethodSettings.LongRunning, 2)); -}; - - -/** - * @param {?proto.google.api.MethodSettings.LongRunning|undefined} value - * @return {!proto.google.api.MethodSettings} returns this -*/ -proto.google.api.MethodSettings.prototype.setLongRunning = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.MethodSettings} returns this - */ -proto.google.api.MethodSettings.prototype.clearLongRunning = function() { - return this.setLongRunning(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.MethodSettings.prototype.hasLongRunning = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * @enum {number} - */ -proto.google.api.ClientLibraryOrganization = { - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED: 0, - CLOUD: 1, - ADS: 2, - PHOTOS: 3, - STREET_VIEW: 4, - SHOPPING: 5, - GEO: 6, - GENERATIVE_AI: 7 -}; - -/** - * @enum {number} - */ -proto.google.api.ClientLibraryDestination = { - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED: 0, - GITHUB: 10, - PACKAGE_MANAGER: 20 -}; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `methodSignatureList`. - * @type {!jspb.ExtensionFieldInfo>} - */ -proto.google.api.methodSignatureList = new jspb.ExtensionFieldInfo( - 1051, - {methodSignatureList: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 1); - -google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[1051] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.methodSignatureList, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeRepeatedString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MethodOptions.extensions[1051] = proto.google.api.methodSignatureList; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `defaultHost`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.defaultHost = new jspb.ExtensionFieldInfo( - 1049, - {defaultHost: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.ServiceOptions.extensionsBinary[1049] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.defaultHost, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.ServiceOptions.extensions[1049] = proto.google.api.defaultHost; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `oauthScopes`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.oauthScopes = new jspb.ExtensionFieldInfo( - 1050, - {oauthScopes: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.ServiceOptions.extensionsBinary[1050] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.oauthScopes, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.ServiceOptions.extensions[1050] = proto.google.api.oauthScopes; - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/config_change_pb.d.ts b/api/grpc-web/google/api/config_change_pb.d.ts deleted file mode 100644 index d78c6b9a..00000000 --- a/api/grpc-web/google/api/config_change_pb.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export class ConfigChange extends jspb.Message { - getElement(): string; - setElement(value: string): ConfigChange; - - getOldValue(): string; - setOldValue(value: string): ConfigChange; - - getNewValue(): string; - setNewValue(value: string): ConfigChange; - - getChangeType(): ChangeType; - setChangeType(value: ChangeType): ConfigChange; - - getAdvicesList(): Array; - setAdvicesList(value: Array): ConfigChange; - clearAdvicesList(): ConfigChange; - addAdvices(value?: Advice, index?: number): Advice; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConfigChange.AsObject; - static toObject(includeInstance: boolean, msg: ConfigChange): ConfigChange.AsObject; - static serializeBinaryToWriter(message: ConfigChange, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConfigChange; - static deserializeBinaryFromReader(message: ConfigChange, reader: jspb.BinaryReader): ConfigChange; -} - -export namespace ConfigChange { - export type AsObject = { - element: string, - oldValue: string, - newValue: string, - changeType: ChangeType, - advicesList: Array, - } -} - -export class Advice extends jspb.Message { - getDescription(): string; - setDescription(value: string): Advice; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Advice.AsObject; - static toObject(includeInstance: boolean, msg: Advice): Advice.AsObject; - static serializeBinaryToWriter(message: Advice, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Advice; - static deserializeBinaryFromReader(message: Advice, reader: jspb.BinaryReader): Advice; -} - -export namespace Advice { - export type AsObject = { - description: string, - } -} - -export enum ChangeType { - CHANGE_TYPE_UNSPECIFIED = 0, - ADDED = 1, - REMOVED = 2, - MODIFIED = 3, -} diff --git a/api/grpc-web/google/api/config_change_pb.js b/api/grpc-web/google/api/config_change_pb.js deleted file mode 100644 index 69842b2a..00000000 --- a/api/grpc-web/google/api/config_change_pb.js +++ /dev/null @@ -1,480 +0,0 @@ -// source: google/api/config_change.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Advice', null, global); -goog.exportSymbol('proto.google.api.ChangeType', null, global); -goog.exportSymbol('proto.google.api.ConfigChange', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.ConfigChange = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.ConfigChange.repeatedFields_, null); -}; -goog.inherits(proto.google.api.ConfigChange, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.ConfigChange.displayName = 'proto.google.api.ConfigChange'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Advice = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.Advice, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Advice.displayName = 'proto.google.api.Advice'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.ConfigChange.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.ConfigChange.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.ConfigChange.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.ConfigChange} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ConfigChange.toObject = function(includeInstance, msg) { - var f, obj = { - element: jspb.Message.getFieldWithDefault(msg, 1, ""), - oldValue: jspb.Message.getFieldWithDefault(msg, 2, ""), - newValue: jspb.Message.getFieldWithDefault(msg, 3, ""), - changeType: jspb.Message.getFieldWithDefault(msg, 4, 0), - advicesList: jspb.Message.toObjectList(msg.getAdvicesList(), - proto.google.api.Advice.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.ConfigChange} - */ -proto.google.api.ConfigChange.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.ConfigChange; - return proto.google.api.ConfigChange.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.ConfigChange} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.ConfigChange} - */ -proto.google.api.ConfigChange.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setElement(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setOldValue(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setNewValue(value); - break; - case 4: - var value = /** @type {!proto.google.api.ChangeType} */ (reader.readEnum()); - msg.setChangeType(value); - break; - case 5: - var value = new proto.google.api.Advice; - reader.readMessage(value,proto.google.api.Advice.deserializeBinaryFromReader); - msg.addAdvices(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.ConfigChange.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.ConfigChange.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.ConfigChange} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ConfigChange.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getElement(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getOldValue(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getNewValue(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getChangeType(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getAdvicesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.google.api.Advice.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string element = 1; - * @return {string} - */ -proto.google.api.ConfigChange.prototype.getElement = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ConfigChange} returns this - */ -proto.google.api.ConfigChange.prototype.setElement = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string old_value = 2; - * @return {string} - */ -proto.google.api.ConfigChange.prototype.getOldValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ConfigChange} returns this - */ -proto.google.api.ConfigChange.prototype.setOldValue = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string new_value = 3; - * @return {string} - */ -proto.google.api.ConfigChange.prototype.getNewValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ConfigChange} returns this - */ -proto.google.api.ConfigChange.prototype.setNewValue = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional ChangeType change_type = 4; - * @return {!proto.google.api.ChangeType} - */ -proto.google.api.ConfigChange.prototype.getChangeType = function() { - return /** @type {!proto.google.api.ChangeType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.google.api.ChangeType} value - * @return {!proto.google.api.ConfigChange} returns this - */ -proto.google.api.ConfigChange.prototype.setChangeType = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * repeated Advice advices = 5; - * @return {!Array} - */ -proto.google.api.ConfigChange.prototype.getAdvicesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Advice, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.ConfigChange} returns this -*/ -proto.google.api.ConfigChange.prototype.setAdvicesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.google.api.Advice=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Advice} - */ -proto.google.api.ConfigChange.prototype.addAdvices = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.api.Advice, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.ConfigChange} returns this - */ -proto.google.api.ConfigChange.prototype.clearAdvicesList = function() { - return this.setAdvicesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Advice.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Advice.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Advice} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Advice.toObject = function(includeInstance, msg) { - var f, obj = { - description: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Advice} - */ -proto.google.api.Advice.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Advice; - return proto.google.api.Advice.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Advice} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Advice} - */ -proto.google.api.Advice.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Advice.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Advice.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Advice} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Advice.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.google.api.Advice.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Advice} returns this - */ -proto.google.api.Advice.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * @enum {number} - */ -proto.google.api.ChangeType = { - CHANGE_TYPE_UNSPECIFIED: 0, - ADDED: 1, - REMOVED: 2, - MODIFIED: 3 -}; - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/consumer_pb.d.ts b/api/grpc-web/google/api/consumer_pb.d.ts deleted file mode 100644 index 802b1f81..00000000 --- a/api/grpc-web/google/api/consumer_pb.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export class ProjectProperties extends jspb.Message { - getPropertiesList(): Array; - setPropertiesList(value: Array): ProjectProperties; - clearPropertiesList(): ProjectProperties; - addProperties(value?: Property, index?: number): Property; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectProperties.AsObject; - static toObject(includeInstance: boolean, msg: ProjectProperties): ProjectProperties.AsObject; - static serializeBinaryToWriter(message: ProjectProperties, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectProperties; - static deserializeBinaryFromReader(message: ProjectProperties, reader: jspb.BinaryReader): ProjectProperties; -} - -export namespace ProjectProperties { - export type AsObject = { - propertiesList: Array, - } -} - -export class Property extends jspb.Message { - getName(): string; - setName(value: string): Property; - - getType(): Property.PropertyType; - setType(value: Property.PropertyType): Property; - - getDescription(): string; - setDescription(value: string): Property; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Property.AsObject; - static toObject(includeInstance: boolean, msg: Property): Property.AsObject; - static serializeBinaryToWriter(message: Property, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Property; - static deserializeBinaryFromReader(message: Property, reader: jspb.BinaryReader): Property; -} - -export namespace Property { - export type AsObject = { - name: string, - type: Property.PropertyType, - description: string, - } - - export enum PropertyType { - UNSPECIFIED = 0, - INT64 = 1, - BOOL = 2, - STRING = 3, - DOUBLE = 4, - } -} - diff --git a/api/grpc-web/google/api/consumer_pb.js b/api/grpc-web/google/api/consumer_pb.js deleted file mode 100644 index b2fbf191..00000000 --- a/api/grpc-web/google/api/consumer_pb.js +++ /dev/null @@ -1,421 +0,0 @@ -// source: google/api/consumer.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.ProjectProperties', null, global); -goog.exportSymbol('proto.google.api.Property', null, global); -goog.exportSymbol('proto.google.api.Property.PropertyType', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.ProjectProperties = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.ProjectProperties.repeatedFields_, null); -}; -goog.inherits(proto.google.api.ProjectProperties, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.ProjectProperties.displayName = 'proto.google.api.ProjectProperties'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Property = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.Property, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Property.displayName = 'proto.google.api.Property'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.ProjectProperties.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.ProjectProperties.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.ProjectProperties.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.ProjectProperties} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ProjectProperties.toObject = function(includeInstance, msg) { - var f, obj = { - propertiesList: jspb.Message.toObjectList(msg.getPropertiesList(), - proto.google.api.Property.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.ProjectProperties} - */ -proto.google.api.ProjectProperties.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.ProjectProperties; - return proto.google.api.ProjectProperties.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.ProjectProperties} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.ProjectProperties} - */ -proto.google.api.ProjectProperties.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.Property; - reader.readMessage(value,proto.google.api.Property.deserializeBinaryFromReader); - msg.addProperties(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.ProjectProperties.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.ProjectProperties.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.ProjectProperties} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ProjectProperties.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPropertiesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.api.Property.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Property properties = 1; - * @return {!Array} - */ -proto.google.api.ProjectProperties.prototype.getPropertiesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Property, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.ProjectProperties} returns this -*/ -proto.google.api.ProjectProperties.prototype.setPropertiesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.api.Property=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Property} - */ -proto.google.api.ProjectProperties.prototype.addProperties = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.Property, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.ProjectProperties} returns this - */ -proto.google.api.ProjectProperties.prototype.clearPropertiesList = function() { - return this.setPropertiesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Property.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Property.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Property} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Property.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - type: jspb.Message.getFieldWithDefault(msg, 2, 0), - description: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Property} - */ -proto.google.api.Property.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Property; - return proto.google.api.Property.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Property} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Property} - */ -proto.google.api.Property.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {!proto.google.api.Property.PropertyType} */ (reader.readEnum()); - msg.setType(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Property.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Property.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Property} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Property.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.google.api.Property.PropertyType = { - UNSPECIFIED: 0, - INT64: 1, - BOOL: 2, - STRING: 3, - DOUBLE: 4 -}; - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.api.Property.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Property} returns this - */ -proto.google.api.Property.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional PropertyType type = 2; - * @return {!proto.google.api.Property.PropertyType} - */ -proto.google.api.Property.prototype.getType = function() { - return /** @type {!proto.google.api.Property.PropertyType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.google.api.Property.PropertyType} value - * @return {!proto.google.api.Property} returns this - */ -proto.google.api.Property.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.google.api.Property.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Property} returns this - */ -proto.google.api.Property.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/context_pb.d.ts b/api/grpc-web/google/api/context_pb.d.ts deleted file mode 100644 index 75e04416..00000000 --- a/api/grpc-web/google/api/context_pb.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export class Context extends jspb.Message { - getRulesList(): Array; - setRulesList(value: Array): Context; - clearRulesList(): Context; - addRules(value?: ContextRule, index?: number): ContextRule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Context.AsObject; - static toObject(includeInstance: boolean, msg: Context): Context.AsObject; - static serializeBinaryToWriter(message: Context, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Context; - static deserializeBinaryFromReader(message: Context, reader: jspb.BinaryReader): Context; -} - -export namespace Context { - export type AsObject = { - rulesList: Array, - } -} - -export class ContextRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): ContextRule; - - getRequestedList(): Array; - setRequestedList(value: Array): ContextRule; - clearRequestedList(): ContextRule; - addRequested(value: string, index?: number): ContextRule; - - getProvidedList(): Array; - setProvidedList(value: Array): ContextRule; - clearProvidedList(): ContextRule; - addProvided(value: string, index?: number): ContextRule; - - getAllowedRequestExtensionsList(): Array; - setAllowedRequestExtensionsList(value: Array): ContextRule; - clearAllowedRequestExtensionsList(): ContextRule; - addAllowedRequestExtensions(value: string, index?: number): ContextRule; - - getAllowedResponseExtensionsList(): Array; - setAllowedResponseExtensionsList(value: Array): ContextRule; - clearAllowedResponseExtensionsList(): ContextRule; - addAllowedResponseExtensions(value: string, index?: number): ContextRule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ContextRule.AsObject; - static toObject(includeInstance: boolean, msg: ContextRule): ContextRule.AsObject; - static serializeBinaryToWriter(message: ContextRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ContextRule; - static deserializeBinaryFromReader(message: ContextRule, reader: jspb.BinaryReader): ContextRule; -} - -export namespace ContextRule { - export type AsObject = { - selector: string, - requestedList: Array, - providedList: Array, - allowedRequestExtensionsList: Array, - allowedResponseExtensionsList: Array, - } -} - diff --git a/api/grpc-web/google/api/context_pb.js b/api/grpc-web/google/api/context_pb.js deleted file mode 100644 index ce0134e9..00000000 --- a/api/grpc-web/google/api/context_pb.js +++ /dev/null @@ -1,552 +0,0 @@ -// source: google/api/context.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Context', null, global); -goog.exportSymbol('proto.google.api.ContextRule', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Context = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Context.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Context, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Context.displayName = 'proto.google.api.Context'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.ContextRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.ContextRule.repeatedFields_, null); -}; -goog.inherits(proto.google.api.ContextRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.ContextRule.displayName = 'proto.google.api.ContextRule'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Context.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Context.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Context.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Context} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Context.toObject = function(includeInstance, msg) { - var f, obj = { - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.google.api.ContextRule.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Context} - */ -proto.google.api.Context.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Context; - return proto.google.api.Context.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Context} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Context} - */ -proto.google.api.Context.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.ContextRule; - reader.readMessage(value,proto.google.api.ContextRule.deserializeBinaryFromReader); - msg.addRules(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Context.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Context.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Context} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Context.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.api.ContextRule.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated ContextRule rules = 1; - * @return {!Array} - */ -proto.google.api.Context.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.ContextRule, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Context} returns this -*/ -proto.google.api.Context.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.api.ContextRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.ContextRule} - */ -proto.google.api.Context.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.ContextRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Context} returns this - */ -proto.google.api.Context.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.ContextRule.repeatedFields_ = [2,3,4,5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.ContextRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.ContextRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.ContextRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ContextRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - requestedList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - providedList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - allowedRequestExtensionsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, - allowedResponseExtensionsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.ContextRule} - */ -proto.google.api.ContextRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.ContextRule; - return proto.google.api.ContextRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.ContextRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.ContextRule} - */ -proto.google.api.ContextRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addRequested(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addProvided(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addAllowedRequestExtensions(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.addAllowedResponseExtensions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.ContextRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.ContextRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.ContextRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ContextRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRequestedList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getProvidedList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } - f = message.getAllowedRequestExtensionsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } - f = message.getAllowedResponseExtensionsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 5, - f - ); - } -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.ContextRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string requested = 2; - * @return {!Array} - */ -proto.google.api.ContextRule.prototype.getRequestedList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.setRequestedList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.addRequested = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.clearRequestedList = function() { - return this.setRequestedList([]); -}; - - -/** - * repeated string provided = 3; - * @return {!Array} - */ -proto.google.api.ContextRule.prototype.getProvidedList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.setProvidedList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.addProvided = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.clearProvidedList = function() { - return this.setProvidedList([]); -}; - - -/** - * repeated string allowed_request_extensions = 4; - * @return {!Array} - */ -proto.google.api.ContextRule.prototype.getAllowedRequestExtensionsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.setAllowedRequestExtensionsList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.addAllowedRequestExtensions = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.clearAllowedRequestExtensionsList = function() { - return this.setAllowedRequestExtensionsList([]); -}; - - -/** - * repeated string allowed_response_extensions = 5; - * @return {!Array} - */ -proto.google.api.ContextRule.prototype.getAllowedResponseExtensionsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.setAllowedResponseExtensionsList = function(value) { - return jspb.Message.setField(this, 5, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.addAllowedResponseExtensions = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 5, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.clearAllowedResponseExtensionsList = function() { - return this.setAllowedResponseExtensionsList([]); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/control_pb.d.ts b/api/grpc-web/google/api/control_pb.d.ts deleted file mode 100644 index 35e83713..00000000 --- a/api/grpc-web/google/api/control_pb.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export class Control extends jspb.Message { - getEnvironment(): string; - setEnvironment(value: string): Control; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Control.AsObject; - static toObject(includeInstance: boolean, msg: Control): Control.AsObject; - static serializeBinaryToWriter(message: Control, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Control; - static deserializeBinaryFromReader(message: Control, reader: jspb.BinaryReader): Control; -} - -export namespace Control { - export type AsObject = { - environment: string, - } -} - diff --git a/api/grpc-web/google/api/control_pb.js b/api/grpc-web/google/api/control_pb.js deleted file mode 100644 index 6f1bdfcd..00000000 --- a/api/grpc-web/google/api/control_pb.js +++ /dev/null @@ -1,167 +0,0 @@ -// source: google/api/control.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Control', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Control = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.Control, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Control.displayName = 'proto.google.api.Control'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Control.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Control.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Control} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Control.toObject = function(includeInstance, msg) { - var f, obj = { - environment: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Control} - */ -proto.google.api.Control.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Control; - return proto.google.api.Control.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Control} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Control} - */ -proto.google.api.Control.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setEnvironment(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Control.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Control.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Control} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Control.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEnvironment(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string environment = 1; - * @return {string} - */ -proto.google.api.Control.prototype.getEnvironment = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Control} returns this - */ -proto.google.api.Control.prototype.setEnvironment = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/distribution_pb.d.ts b/api/grpc-web/google/api/distribution_pb.d.ts deleted file mode 100644 index cb548fed..00000000 --- a/api/grpc-web/google/api/distribution_pb.d.ts +++ /dev/null @@ -1,227 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_protobuf_any_pb from 'google-protobuf/google/protobuf/any_pb'; -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; - - -export class Distribution extends jspb.Message { - getCount(): number; - setCount(value: number): Distribution; - - getMean(): number; - setMean(value: number): Distribution; - - getSumOfSquaredDeviation(): number; - setSumOfSquaredDeviation(value: number): Distribution; - - getRange(): Distribution.Range | undefined; - setRange(value?: Distribution.Range): Distribution; - hasRange(): boolean; - clearRange(): Distribution; - - getBucketOptions(): Distribution.BucketOptions | undefined; - setBucketOptions(value?: Distribution.BucketOptions): Distribution; - hasBucketOptions(): boolean; - clearBucketOptions(): Distribution; - - getBucketCountsList(): Array; - setBucketCountsList(value: Array): Distribution; - clearBucketCountsList(): Distribution; - addBucketCounts(value: number, index?: number): Distribution; - - getExemplarsList(): Array; - setExemplarsList(value: Array): Distribution; - clearExemplarsList(): Distribution; - addExemplars(value?: Distribution.Exemplar, index?: number): Distribution.Exemplar; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Distribution.AsObject; - static toObject(includeInstance: boolean, msg: Distribution): Distribution.AsObject; - static serializeBinaryToWriter(message: Distribution, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Distribution; - static deserializeBinaryFromReader(message: Distribution, reader: jspb.BinaryReader): Distribution; -} - -export namespace Distribution { - export type AsObject = { - count: number, - mean: number, - sumOfSquaredDeviation: number, - range?: Distribution.Range.AsObject, - bucketOptions?: Distribution.BucketOptions.AsObject, - bucketCountsList: Array, - exemplarsList: Array, - } - - export class Range extends jspb.Message { - getMin(): number; - setMin(value: number): Range; - - getMax(): number; - setMax(value: number): Range; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Range.AsObject; - static toObject(includeInstance: boolean, msg: Range): Range.AsObject; - static serializeBinaryToWriter(message: Range, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Range; - static deserializeBinaryFromReader(message: Range, reader: jspb.BinaryReader): Range; - } - - export namespace Range { - export type AsObject = { - min: number, - max: number, - } - } - - - export class BucketOptions extends jspb.Message { - getLinearBuckets(): Distribution.BucketOptions.Linear | undefined; - setLinearBuckets(value?: Distribution.BucketOptions.Linear): BucketOptions; - hasLinearBuckets(): boolean; - clearLinearBuckets(): BucketOptions; - - getExponentialBuckets(): Distribution.BucketOptions.Exponential | undefined; - setExponentialBuckets(value?: Distribution.BucketOptions.Exponential): BucketOptions; - hasExponentialBuckets(): boolean; - clearExponentialBuckets(): BucketOptions; - - getExplicitBuckets(): Distribution.BucketOptions.Explicit | undefined; - setExplicitBuckets(value?: Distribution.BucketOptions.Explicit): BucketOptions; - hasExplicitBuckets(): boolean; - clearExplicitBuckets(): BucketOptions; - - getOptionsCase(): BucketOptions.OptionsCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BucketOptions.AsObject; - static toObject(includeInstance: boolean, msg: BucketOptions): BucketOptions.AsObject; - static serializeBinaryToWriter(message: BucketOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BucketOptions; - static deserializeBinaryFromReader(message: BucketOptions, reader: jspb.BinaryReader): BucketOptions; - } - - export namespace BucketOptions { - export type AsObject = { - linearBuckets?: Distribution.BucketOptions.Linear.AsObject, - exponentialBuckets?: Distribution.BucketOptions.Exponential.AsObject, - explicitBuckets?: Distribution.BucketOptions.Explicit.AsObject, - } - - export class Linear extends jspb.Message { - getNumFiniteBuckets(): number; - setNumFiniteBuckets(value: number): Linear; - - getWidth(): number; - setWidth(value: number): Linear; - - getOffset(): number; - setOffset(value: number): Linear; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Linear.AsObject; - static toObject(includeInstance: boolean, msg: Linear): Linear.AsObject; - static serializeBinaryToWriter(message: Linear, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Linear; - static deserializeBinaryFromReader(message: Linear, reader: jspb.BinaryReader): Linear; - } - - export namespace Linear { - export type AsObject = { - numFiniteBuckets: number, - width: number, - offset: number, - } - } - - - export class Exponential extends jspb.Message { - getNumFiniteBuckets(): number; - setNumFiniteBuckets(value: number): Exponential; - - getGrowthFactor(): number; - setGrowthFactor(value: number): Exponential; - - getScale(): number; - setScale(value: number): Exponential; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Exponential.AsObject; - static toObject(includeInstance: boolean, msg: Exponential): Exponential.AsObject; - static serializeBinaryToWriter(message: Exponential, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Exponential; - static deserializeBinaryFromReader(message: Exponential, reader: jspb.BinaryReader): Exponential; - } - - export namespace Exponential { - export type AsObject = { - numFiniteBuckets: number, - growthFactor: number, - scale: number, - } - } - - - export class Explicit extends jspb.Message { - getBoundsList(): Array; - setBoundsList(value: Array): Explicit; - clearBoundsList(): Explicit; - addBounds(value: number, index?: number): Explicit; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Explicit.AsObject; - static toObject(includeInstance: boolean, msg: Explicit): Explicit.AsObject; - static serializeBinaryToWriter(message: Explicit, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Explicit; - static deserializeBinaryFromReader(message: Explicit, reader: jspb.BinaryReader): Explicit; - } - - export namespace Explicit { - export type AsObject = { - boundsList: Array, - } - } - - - export enum OptionsCase { - OPTIONS_NOT_SET = 0, - LINEAR_BUCKETS = 1, - EXPONENTIAL_BUCKETS = 2, - EXPLICIT_BUCKETS = 3, - } - } - - - export class Exemplar extends jspb.Message { - getValue(): number; - setValue(value: number): Exemplar; - - getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): Exemplar; - hasTimestamp(): boolean; - clearTimestamp(): Exemplar; - - getAttachmentsList(): Array; - setAttachmentsList(value: Array): Exemplar; - clearAttachmentsList(): Exemplar; - addAttachments(value?: google_protobuf_any_pb.Any, index?: number): google_protobuf_any_pb.Any; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Exemplar.AsObject; - static toObject(includeInstance: boolean, msg: Exemplar): Exemplar.AsObject; - static serializeBinaryToWriter(message: Exemplar, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Exemplar; - static deserializeBinaryFromReader(message: Exemplar, reader: jspb.BinaryReader): Exemplar; - } - - export namespace Exemplar { - export type AsObject = { - value: number, - timestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject, - attachmentsList: Array, - } - } - -} - diff --git a/api/grpc-web/google/api/distribution_pb.js b/api/grpc-web/google/api/distribution_pb.js deleted file mode 100644 index 85a449c1..00000000 --- a/api/grpc-web/google/api/distribution_pb.js +++ /dev/null @@ -1,1792 +0,0 @@ -// source: google/api/distribution.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); -goog.object.extend(proto, google_protobuf_any_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -goog.exportSymbol('proto.google.api.Distribution', null, global); -goog.exportSymbol('proto.google.api.Distribution.BucketOptions', null, global); -goog.exportSymbol('proto.google.api.Distribution.BucketOptions.Explicit', null, global); -goog.exportSymbol('proto.google.api.Distribution.BucketOptions.Exponential', null, global); -goog.exportSymbol('proto.google.api.Distribution.BucketOptions.Linear', null, global); -goog.exportSymbol('proto.google.api.Distribution.BucketOptions.OptionsCase', null, global); -goog.exportSymbol('proto.google.api.Distribution.Exemplar', null, global); -goog.exportSymbol('proto.google.api.Distribution.Range', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Distribution = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Distribution.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Distribution, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Distribution.displayName = 'proto.google.api.Distribution'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Distribution.Range = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.Distribution.Range, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Distribution.Range.displayName = 'proto.google.api.Distribution.Range'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Distribution.BucketOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.Distribution.BucketOptions.oneofGroups_); -}; -goog.inherits(proto.google.api.Distribution.BucketOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Distribution.BucketOptions.displayName = 'proto.google.api.Distribution.BucketOptions'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Distribution.BucketOptions.Linear = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.Distribution.BucketOptions.Linear, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Distribution.BucketOptions.Linear.displayName = 'proto.google.api.Distribution.BucketOptions.Linear'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Distribution.BucketOptions.Exponential = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.Distribution.BucketOptions.Exponential, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Distribution.BucketOptions.Exponential.displayName = 'proto.google.api.Distribution.BucketOptions.Exponential'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Distribution.BucketOptions.Explicit = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Distribution.BucketOptions.Explicit.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Distribution.BucketOptions.Explicit, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Distribution.BucketOptions.Explicit.displayName = 'proto.google.api.Distribution.BucketOptions.Explicit'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Distribution.Exemplar = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Distribution.Exemplar.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Distribution.Exemplar, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Distribution.Exemplar.displayName = 'proto.google.api.Distribution.Exemplar'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Distribution.repeatedFields_ = [7,10]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Distribution.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Distribution.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Distribution} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.toObject = function(includeInstance, msg) { - var f, obj = { - count: jspb.Message.getFieldWithDefault(msg, 1, 0), - mean: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - sumOfSquaredDeviation: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), - range: (f = msg.getRange()) && proto.google.api.Distribution.Range.toObject(includeInstance, f), - bucketOptions: (f = msg.getBucketOptions()) && proto.google.api.Distribution.BucketOptions.toObject(includeInstance, f), - bucketCountsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f, - exemplarsList: jspb.Message.toObjectList(msg.getExemplarsList(), - proto.google.api.Distribution.Exemplar.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Distribution} - */ -proto.google.api.Distribution.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Distribution; - return proto.google.api.Distribution.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Distribution} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Distribution} - */ -proto.google.api.Distribution.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCount(value); - break; - case 2: - var value = /** @type {number} */ (reader.readDouble()); - msg.setMean(value); - break; - case 3: - var value = /** @type {number} */ (reader.readDouble()); - msg.setSumOfSquaredDeviation(value); - break; - case 4: - var value = new proto.google.api.Distribution.Range; - reader.readMessage(value,proto.google.api.Distribution.Range.deserializeBinaryFromReader); - msg.setRange(value); - break; - case 6: - var value = new proto.google.api.Distribution.BucketOptions; - reader.readMessage(value,proto.google.api.Distribution.BucketOptions.deserializeBinaryFromReader); - msg.setBucketOptions(value); - break; - case 7: - var value = /** @type {!Array} */ (reader.readPackedInt64()); - msg.setBucketCountsList(value); - break; - case 10: - var value = new proto.google.api.Distribution.Exemplar; - reader.readMessage(value,proto.google.api.Distribution.Exemplar.deserializeBinaryFromReader); - msg.addExemplars(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Distribution.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Distribution.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Distribution} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCount(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } - f = message.getMean(); - if (f !== 0.0) { - writer.writeDouble( - 2, - f - ); - } - f = message.getSumOfSquaredDeviation(); - if (f !== 0.0) { - writer.writeDouble( - 3, - f - ); - } - f = message.getRange(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.google.api.Distribution.Range.serializeBinaryToWriter - ); - } - f = message.getBucketOptions(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.google.api.Distribution.BucketOptions.serializeBinaryToWriter - ); - } - f = message.getBucketCountsList(); - if (f.length > 0) { - writer.writePackedInt64( - 7, - f - ); - } - f = message.getExemplarsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 10, - f, - proto.google.api.Distribution.Exemplar.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Distribution.Range.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Distribution.Range.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Distribution.Range} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.Range.toObject = function(includeInstance, msg) { - var f, obj = { - min: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), - max: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Distribution.Range} - */ -proto.google.api.Distribution.Range.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Distribution.Range; - return proto.google.api.Distribution.Range.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Distribution.Range} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Distribution.Range} - */ -proto.google.api.Distribution.Range.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readDouble()); - msg.setMin(value); - break; - case 2: - var value = /** @type {number} */ (reader.readDouble()); - msg.setMax(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Distribution.Range.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Distribution.Range.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Distribution.Range} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.Range.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMin(); - if (f !== 0.0) { - writer.writeDouble( - 1, - f - ); - } - f = message.getMax(); - if (f !== 0.0) { - writer.writeDouble( - 2, - f - ); - } -}; - - -/** - * optional double min = 1; - * @return {number} - */ -proto.google.api.Distribution.Range.prototype.getMin = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution.Range} returns this - */ -proto.google.api.Distribution.Range.prototype.setMin = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); -}; - - -/** - * optional double max = 2; - * @return {number} - */ -proto.google.api.Distribution.Range.prototype.getMax = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution.Range} returns this - */ -proto.google.api.Distribution.Range.prototype.setMax = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.google.api.Distribution.BucketOptions.oneofGroups_ = [[1,2,3]]; - -/** - * @enum {number} - */ -proto.google.api.Distribution.BucketOptions.OptionsCase = { - OPTIONS_NOT_SET: 0, - LINEAR_BUCKETS: 1, - EXPONENTIAL_BUCKETS: 2, - EXPLICIT_BUCKETS: 3 -}; - -/** - * @return {proto.google.api.Distribution.BucketOptions.OptionsCase} - */ -proto.google.api.Distribution.BucketOptions.prototype.getOptionsCase = function() { - return /** @type {proto.google.api.Distribution.BucketOptions.OptionsCase} */(jspb.Message.computeOneofCase(this, proto.google.api.Distribution.BucketOptions.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Distribution.BucketOptions.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Distribution.BucketOptions.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Distribution.BucketOptions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.BucketOptions.toObject = function(includeInstance, msg) { - var f, obj = { - linearBuckets: (f = msg.getLinearBuckets()) && proto.google.api.Distribution.BucketOptions.Linear.toObject(includeInstance, f), - exponentialBuckets: (f = msg.getExponentialBuckets()) && proto.google.api.Distribution.BucketOptions.Exponential.toObject(includeInstance, f), - explicitBuckets: (f = msg.getExplicitBuckets()) && proto.google.api.Distribution.BucketOptions.Explicit.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Distribution.BucketOptions} - */ -proto.google.api.Distribution.BucketOptions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Distribution.BucketOptions; - return proto.google.api.Distribution.BucketOptions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Distribution.BucketOptions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Distribution.BucketOptions} - */ -proto.google.api.Distribution.BucketOptions.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.Distribution.BucketOptions.Linear; - reader.readMessage(value,proto.google.api.Distribution.BucketOptions.Linear.deserializeBinaryFromReader); - msg.setLinearBuckets(value); - break; - case 2: - var value = new proto.google.api.Distribution.BucketOptions.Exponential; - reader.readMessage(value,proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinaryFromReader); - msg.setExponentialBuckets(value); - break; - case 3: - var value = new proto.google.api.Distribution.BucketOptions.Explicit; - reader.readMessage(value,proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinaryFromReader); - msg.setExplicitBuckets(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Distribution.BucketOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Distribution.BucketOptions.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Distribution.BucketOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.BucketOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLinearBuckets(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.google.api.Distribution.BucketOptions.Linear.serializeBinaryToWriter - ); - } - f = message.getExponentialBuckets(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.google.api.Distribution.BucketOptions.Exponential.serializeBinaryToWriter - ); - } - f = message.getExplicitBuckets(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.google.api.Distribution.BucketOptions.Explicit.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Distribution.BucketOptions.Linear.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Distribution.BucketOptions.Linear.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Distribution.BucketOptions.Linear} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.BucketOptions.Linear.toObject = function(includeInstance, msg) { - var f, obj = { - numFiniteBuckets: jspb.Message.getFieldWithDefault(msg, 1, 0), - width: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - offset: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Distribution.BucketOptions.Linear} - */ -proto.google.api.Distribution.BucketOptions.Linear.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Distribution.BucketOptions.Linear; - return proto.google.api.Distribution.BucketOptions.Linear.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Distribution.BucketOptions.Linear} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Distribution.BucketOptions.Linear} - */ -proto.google.api.Distribution.BucketOptions.Linear.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setNumFiniteBuckets(value); - break; - case 2: - var value = /** @type {number} */ (reader.readDouble()); - msg.setWidth(value); - break; - case 3: - var value = /** @type {number} */ (reader.readDouble()); - msg.setOffset(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Distribution.BucketOptions.Linear.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Distribution.BucketOptions.Linear.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Distribution.BucketOptions.Linear} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.BucketOptions.Linear.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNumFiniteBuckets(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getWidth(); - if (f !== 0.0) { - writer.writeDouble( - 2, - f - ); - } - f = message.getOffset(); - if (f !== 0.0) { - writer.writeDouble( - 3, - f - ); - } -}; - - -/** - * optional int32 num_finite_buckets = 1; - * @return {number} - */ -proto.google.api.Distribution.BucketOptions.Linear.prototype.getNumFiniteBuckets = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution.BucketOptions.Linear} returns this - */ -proto.google.api.Distribution.BucketOptions.Linear.prototype.setNumFiniteBuckets = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional double width = 2; - * @return {number} - */ -proto.google.api.Distribution.BucketOptions.Linear.prototype.getWidth = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution.BucketOptions.Linear} returns this - */ -proto.google.api.Distribution.BucketOptions.Linear.prototype.setWidth = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - -/** - * optional double offset = 3; - * @return {number} - */ -proto.google.api.Distribution.BucketOptions.Linear.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution.BucketOptions.Linear} returns this - */ -proto.google.api.Distribution.BucketOptions.Linear.prototype.setOffset = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Distribution.BucketOptions.Exponential.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Distribution.BucketOptions.Exponential.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Distribution.BucketOptions.Exponential} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.BucketOptions.Exponential.toObject = function(includeInstance, msg) { - var f, obj = { - numFiniteBuckets: jspb.Message.getFieldWithDefault(msg, 1, 0), - growthFactor: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - scale: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Distribution.BucketOptions.Exponential} - */ -proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Distribution.BucketOptions.Exponential; - return proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Distribution.BucketOptions.Exponential} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Distribution.BucketOptions.Exponential} - */ -proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setNumFiniteBuckets(value); - break; - case 2: - var value = /** @type {number} */ (reader.readDouble()); - msg.setGrowthFactor(value); - break; - case 3: - var value = /** @type {number} */ (reader.readDouble()); - msg.setScale(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Distribution.BucketOptions.Exponential.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Distribution.BucketOptions.Exponential.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Distribution.BucketOptions.Exponential} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.BucketOptions.Exponential.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNumFiniteBuckets(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getGrowthFactor(); - if (f !== 0.0) { - writer.writeDouble( - 2, - f - ); - } - f = message.getScale(); - if (f !== 0.0) { - writer.writeDouble( - 3, - f - ); - } -}; - - -/** - * optional int32 num_finite_buckets = 1; - * @return {number} - */ -proto.google.api.Distribution.BucketOptions.Exponential.prototype.getNumFiniteBuckets = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution.BucketOptions.Exponential} returns this - */ -proto.google.api.Distribution.BucketOptions.Exponential.prototype.setNumFiniteBuckets = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional double growth_factor = 2; - * @return {number} - */ -proto.google.api.Distribution.BucketOptions.Exponential.prototype.getGrowthFactor = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution.BucketOptions.Exponential} returns this - */ -proto.google.api.Distribution.BucketOptions.Exponential.prototype.setGrowthFactor = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - -/** - * optional double scale = 3; - * @return {number} - */ -proto.google.api.Distribution.BucketOptions.Exponential.prototype.getScale = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution.BucketOptions.Exponential} returns this - */ -proto.google.api.Distribution.BucketOptions.Exponential.prototype.setScale = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Distribution.BucketOptions.Explicit.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Distribution.BucketOptions.Explicit.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Distribution.BucketOptions.Explicit.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Distribution.BucketOptions.Explicit} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.BucketOptions.Explicit.toObject = function(includeInstance, msg) { - var f, obj = { - boundsList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 1)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Distribution.BucketOptions.Explicit} - */ -proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Distribution.BucketOptions.Explicit; - return proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Distribution.BucketOptions.Explicit} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Distribution.BucketOptions.Explicit} - */ -proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Array} */ (reader.readPackedDouble()); - msg.setBoundsList(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Distribution.BucketOptions.Explicit.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Distribution.BucketOptions.Explicit.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Distribution.BucketOptions.Explicit} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.BucketOptions.Explicit.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBoundsList(); - if (f.length > 0) { - writer.writePackedDouble( - 1, - f - ); - } -}; - - -/** - * repeated double bounds = 1; - * @return {!Array} - */ -proto.google.api.Distribution.BucketOptions.Explicit.prototype.getBoundsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Distribution.BucketOptions.Explicit} returns this - */ -proto.google.api.Distribution.BucketOptions.Explicit.prototype.setBoundsList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.google.api.Distribution.BucketOptions.Explicit} returns this - */ -proto.google.api.Distribution.BucketOptions.Explicit.prototype.addBounds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Distribution.BucketOptions.Explicit} returns this - */ -proto.google.api.Distribution.BucketOptions.Explicit.prototype.clearBoundsList = function() { - return this.setBoundsList([]); -}; - - -/** - * optional Linear linear_buckets = 1; - * @return {?proto.google.api.Distribution.BucketOptions.Linear} - */ -proto.google.api.Distribution.BucketOptions.prototype.getLinearBuckets = function() { - return /** @type{?proto.google.api.Distribution.BucketOptions.Linear} */ ( - jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions.Linear, 1)); -}; - - -/** - * @param {?proto.google.api.Distribution.BucketOptions.Linear|undefined} value - * @return {!proto.google.api.Distribution.BucketOptions} returns this -*/ -proto.google.api.Distribution.BucketOptions.prototype.setLinearBuckets = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.google.api.Distribution.BucketOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Distribution.BucketOptions} returns this - */ -proto.google.api.Distribution.BucketOptions.prototype.clearLinearBuckets = function() { - return this.setLinearBuckets(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Distribution.BucketOptions.prototype.hasLinearBuckets = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Exponential exponential_buckets = 2; - * @return {?proto.google.api.Distribution.BucketOptions.Exponential} - */ -proto.google.api.Distribution.BucketOptions.prototype.getExponentialBuckets = function() { - return /** @type{?proto.google.api.Distribution.BucketOptions.Exponential} */ ( - jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions.Exponential, 2)); -}; - - -/** - * @param {?proto.google.api.Distribution.BucketOptions.Exponential|undefined} value - * @return {!proto.google.api.Distribution.BucketOptions} returns this -*/ -proto.google.api.Distribution.BucketOptions.prototype.setExponentialBuckets = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.google.api.Distribution.BucketOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Distribution.BucketOptions} returns this - */ -proto.google.api.Distribution.BucketOptions.prototype.clearExponentialBuckets = function() { - return this.setExponentialBuckets(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Distribution.BucketOptions.prototype.hasExponentialBuckets = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional Explicit explicit_buckets = 3; - * @return {?proto.google.api.Distribution.BucketOptions.Explicit} - */ -proto.google.api.Distribution.BucketOptions.prototype.getExplicitBuckets = function() { - return /** @type{?proto.google.api.Distribution.BucketOptions.Explicit} */ ( - jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions.Explicit, 3)); -}; - - -/** - * @param {?proto.google.api.Distribution.BucketOptions.Explicit|undefined} value - * @return {!proto.google.api.Distribution.BucketOptions} returns this -*/ -proto.google.api.Distribution.BucketOptions.prototype.setExplicitBuckets = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.google.api.Distribution.BucketOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Distribution.BucketOptions} returns this - */ -proto.google.api.Distribution.BucketOptions.prototype.clearExplicitBuckets = function() { - return this.setExplicitBuckets(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Distribution.BucketOptions.prototype.hasExplicitBuckets = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Distribution.Exemplar.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Distribution.Exemplar.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Distribution.Exemplar.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Distribution.Exemplar} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.Exemplar.toObject = function(includeInstance, msg) { - var f, obj = { - value: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), - timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - attachmentsList: jspb.Message.toObjectList(msg.getAttachmentsList(), - google_protobuf_any_pb.Any.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Distribution.Exemplar} - */ -proto.google.api.Distribution.Exemplar.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Distribution.Exemplar; - return proto.google.api.Distribution.Exemplar.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Distribution.Exemplar} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Distribution.Exemplar} - */ -proto.google.api.Distribution.Exemplar.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readDouble()); - msg.setValue(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTimestamp(value); - break; - case 3: - var value = new google_protobuf_any_pb.Any; - reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); - msg.addAttachments(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Distribution.Exemplar.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Distribution.Exemplar.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Distribution.Exemplar} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.Exemplar.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValue(); - if (f !== 0.0) { - writer.writeDouble( - 1, - f - ); - } - f = message.getTimestamp(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getAttachmentsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - google_protobuf_any_pb.Any.serializeBinaryToWriter - ); - } -}; - - -/** - * optional double value = 1; - * @return {number} - */ -proto.google.api.Distribution.Exemplar.prototype.getValue = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution.Exemplar} returns this - */ -proto.google.api.Distribution.Exemplar.prototype.setValue = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp timestamp = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.google.api.Distribution.Exemplar.prototype.getTimestamp = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.google.api.Distribution.Exemplar} returns this -*/ -proto.google.api.Distribution.Exemplar.prototype.setTimestamp = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Distribution.Exemplar} returns this - */ -proto.google.api.Distribution.Exemplar.prototype.clearTimestamp = function() { - return this.setTimestamp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Distribution.Exemplar.prototype.hasTimestamp = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * repeated google.protobuf.Any attachments = 3; - * @return {!Array} - */ -proto.google.api.Distribution.Exemplar.prototype.getAttachmentsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_protobuf_any_pb.Any, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Distribution.Exemplar} returns this -*/ -proto.google.api.Distribution.Exemplar.prototype.setAttachmentsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.google.protobuf.Any=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.Any} - */ -proto.google.api.Distribution.Exemplar.prototype.addAttachments = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.Any, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Distribution.Exemplar} returns this - */ -proto.google.api.Distribution.Exemplar.prototype.clearAttachmentsList = function() { - return this.setAttachmentsList([]); -}; - - -/** - * optional int64 count = 1; - * @return {number} - */ -proto.google.api.Distribution.prototype.getCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution} returns this - */ -proto.google.api.Distribution.prototype.setCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional double mean = 2; - * @return {number} - */ -proto.google.api.Distribution.prototype.getMean = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution} returns this - */ -proto.google.api.Distribution.prototype.setMean = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - -/** - * optional double sum_of_squared_deviation = 3; - * @return {number} - */ -proto.google.api.Distribution.prototype.getSumOfSquaredDeviation = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution} returns this - */ -proto.google.api.Distribution.prototype.setSumOfSquaredDeviation = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; - - -/** - * optional Range range = 4; - * @return {?proto.google.api.Distribution.Range} - */ -proto.google.api.Distribution.prototype.getRange = function() { - return /** @type{?proto.google.api.Distribution.Range} */ ( - jspb.Message.getWrapperField(this, proto.google.api.Distribution.Range, 4)); -}; - - -/** - * @param {?proto.google.api.Distribution.Range|undefined} value - * @return {!proto.google.api.Distribution} returns this -*/ -proto.google.api.Distribution.prototype.setRange = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Distribution} returns this - */ -proto.google.api.Distribution.prototype.clearRange = function() { - return this.setRange(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Distribution.prototype.hasRange = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional BucketOptions bucket_options = 6; - * @return {?proto.google.api.Distribution.BucketOptions} - */ -proto.google.api.Distribution.prototype.getBucketOptions = function() { - return /** @type{?proto.google.api.Distribution.BucketOptions} */ ( - jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions, 6)); -}; - - -/** - * @param {?proto.google.api.Distribution.BucketOptions|undefined} value - * @return {!proto.google.api.Distribution} returns this -*/ -proto.google.api.Distribution.prototype.setBucketOptions = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Distribution} returns this - */ -proto.google.api.Distribution.prototype.clearBucketOptions = function() { - return this.setBucketOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Distribution.prototype.hasBucketOptions = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * repeated int64 bucket_counts = 7; - * @return {!Array} - */ -proto.google.api.Distribution.prototype.getBucketCountsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Distribution} returns this - */ -proto.google.api.Distribution.prototype.setBucketCountsList = function(value) { - return jspb.Message.setField(this, 7, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.google.api.Distribution} returns this - */ -proto.google.api.Distribution.prototype.addBucketCounts = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 7, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Distribution} returns this - */ -proto.google.api.Distribution.prototype.clearBucketCountsList = function() { - return this.setBucketCountsList([]); -}; - - -/** - * repeated Exemplar exemplars = 10; - * @return {!Array} - */ -proto.google.api.Distribution.prototype.getExemplarsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Distribution.Exemplar, 10)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Distribution} returns this -*/ -proto.google.api.Distribution.prototype.setExemplarsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 10, value); -}; - - -/** - * @param {!proto.google.api.Distribution.Exemplar=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Distribution.Exemplar} - */ -proto.google.api.Distribution.prototype.addExemplars = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.google.api.Distribution.Exemplar, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Distribution} returns this - */ -proto.google.api.Distribution.prototype.clearExemplarsList = function() { - return this.setExemplarsList([]); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/documentation_pb.d.ts b/api/grpc-web/google/api/documentation_pb.d.ts deleted file mode 100644 index b3b6b26c..00000000 --- a/api/grpc-web/google/api/documentation_pb.d.ts +++ /dev/null @@ -1,100 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export class Documentation extends jspb.Message { - getSummary(): string; - setSummary(value: string): Documentation; - - getPagesList(): Array; - setPagesList(value: Array): Documentation; - clearPagesList(): Documentation; - addPages(value?: Page, index?: number): Page; - - getRulesList(): Array; - setRulesList(value: Array): Documentation; - clearRulesList(): Documentation; - addRules(value?: DocumentationRule, index?: number): DocumentationRule; - - getDocumentationRootUrl(): string; - setDocumentationRootUrl(value: string): Documentation; - - getServiceRootUrl(): string; - setServiceRootUrl(value: string): Documentation; - - getOverview(): string; - setOverview(value: string): Documentation; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Documentation.AsObject; - static toObject(includeInstance: boolean, msg: Documentation): Documentation.AsObject; - static serializeBinaryToWriter(message: Documentation, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Documentation; - static deserializeBinaryFromReader(message: Documentation, reader: jspb.BinaryReader): Documentation; -} - -export namespace Documentation { - export type AsObject = { - summary: string, - pagesList: Array, - rulesList: Array, - documentationRootUrl: string, - serviceRootUrl: string, - overview: string, - } -} - -export class DocumentationRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): DocumentationRule; - - getDescription(): string; - setDescription(value: string): DocumentationRule; - - getDeprecationDescription(): string; - setDeprecationDescription(value: string): DocumentationRule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DocumentationRule.AsObject; - static toObject(includeInstance: boolean, msg: DocumentationRule): DocumentationRule.AsObject; - static serializeBinaryToWriter(message: DocumentationRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DocumentationRule; - static deserializeBinaryFromReader(message: DocumentationRule, reader: jspb.BinaryReader): DocumentationRule; -} - -export namespace DocumentationRule { - export type AsObject = { - selector: string, - description: string, - deprecationDescription: string, - } -} - -export class Page extends jspb.Message { - getName(): string; - setName(value: string): Page; - - getContent(): string; - setContent(value: string): Page; - - getSubpagesList(): Array; - setSubpagesList(value: Array): Page; - clearSubpagesList(): Page; - addSubpages(value?: Page, index?: number): Page; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Page.AsObject; - static toObject(includeInstance: boolean, msg: Page): Page.AsObject; - static serializeBinaryToWriter(message: Page, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Page; - static deserializeBinaryFromReader(message: Page, reader: jspb.BinaryReader): Page; -} - -export namespace Page { - export type AsObject = { - name: string, - content: string, - subpagesList: Array, - } -} - diff --git a/api/grpc-web/google/api/documentation_pb.js b/api/grpc-web/google/api/documentation_pb.js deleted file mode 100644 index e84f0a47..00000000 --- a/api/grpc-web/google/api/documentation_pb.js +++ /dev/null @@ -1,824 +0,0 @@ -// source: google/api/documentation.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Documentation', null, global); -goog.exportSymbol('proto.google.api.DocumentationRule', null, global); -goog.exportSymbol('proto.google.api.Page', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Documentation = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Documentation.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Documentation, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Documentation.displayName = 'proto.google.api.Documentation'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.DocumentationRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.DocumentationRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.DocumentationRule.displayName = 'proto.google.api.DocumentationRule'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Page = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Page.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Page, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Page.displayName = 'proto.google.api.Page'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Documentation.repeatedFields_ = [5,3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Documentation.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Documentation.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Documentation} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Documentation.toObject = function(includeInstance, msg) { - var f, obj = { - summary: jspb.Message.getFieldWithDefault(msg, 1, ""), - pagesList: jspb.Message.toObjectList(msg.getPagesList(), - proto.google.api.Page.toObject, includeInstance), - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.google.api.DocumentationRule.toObject, includeInstance), - documentationRootUrl: jspb.Message.getFieldWithDefault(msg, 4, ""), - serviceRootUrl: jspb.Message.getFieldWithDefault(msg, 6, ""), - overview: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Documentation} - */ -proto.google.api.Documentation.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Documentation; - return proto.google.api.Documentation.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Documentation} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Documentation} - */ -proto.google.api.Documentation.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSummary(value); - break; - case 5: - var value = new proto.google.api.Page; - reader.readMessage(value,proto.google.api.Page.deserializeBinaryFromReader); - msg.addPages(value); - break; - case 3: - var value = new proto.google.api.DocumentationRule; - reader.readMessage(value,proto.google.api.DocumentationRule.deserializeBinaryFromReader); - msg.addRules(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDocumentationRootUrl(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setServiceRootUrl(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setOverview(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Documentation.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Documentation.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Documentation} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Documentation.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSummary(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPagesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.google.api.Page.serializeBinaryToWriter - ); - } - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.google.api.DocumentationRule.serializeBinaryToWriter - ); - } - f = message.getDocumentationRootUrl(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getServiceRootUrl(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getOverview(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string summary = 1; - * @return {string} - */ -proto.google.api.Documentation.prototype.getSummary = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Documentation} returns this - */ -proto.google.api.Documentation.prototype.setSummary = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated Page pages = 5; - * @return {!Array} - */ -proto.google.api.Documentation.prototype.getPagesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Page, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Documentation} returns this -*/ -proto.google.api.Documentation.prototype.setPagesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.google.api.Page=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Page} - */ -proto.google.api.Documentation.prototype.addPages = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.api.Page, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Documentation} returns this - */ -proto.google.api.Documentation.prototype.clearPagesList = function() { - return this.setPagesList([]); -}; - - -/** - * repeated DocumentationRule rules = 3; - * @return {!Array} - */ -proto.google.api.Documentation.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.DocumentationRule, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Documentation} returns this -*/ -proto.google.api.Documentation.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.google.api.DocumentationRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.DocumentationRule} - */ -proto.google.api.Documentation.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.DocumentationRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Documentation} returns this - */ -proto.google.api.Documentation.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - -/** - * optional string documentation_root_url = 4; - * @return {string} - */ -proto.google.api.Documentation.prototype.getDocumentationRootUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Documentation} returns this - */ -proto.google.api.Documentation.prototype.setDocumentationRootUrl = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string service_root_url = 6; - * @return {string} - */ -proto.google.api.Documentation.prototype.getServiceRootUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Documentation} returns this - */ -proto.google.api.Documentation.prototype.setServiceRootUrl = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string overview = 2; - * @return {string} - */ -proto.google.api.Documentation.prototype.getOverview = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Documentation} returns this - */ -proto.google.api.Documentation.prototype.setOverview = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.DocumentationRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.DocumentationRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.DocumentationRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.DocumentationRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - deprecationDescription: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.DocumentationRule} - */ -proto.google.api.DocumentationRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.DocumentationRule; - return proto.google.api.DocumentationRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.DocumentationRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.DocumentationRule} - */ -proto.google.api.DocumentationRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDeprecationDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.DocumentationRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.DocumentationRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.DocumentationRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.DocumentationRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDeprecationDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.DocumentationRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.DocumentationRule} returns this - */ -proto.google.api.DocumentationRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.google.api.DocumentationRule.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.DocumentationRule} returns this - */ -proto.google.api.DocumentationRule.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string deprecation_description = 3; - * @return {string} - */ -proto.google.api.DocumentationRule.prototype.getDeprecationDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.DocumentationRule} returns this - */ -proto.google.api.DocumentationRule.prototype.setDeprecationDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Page.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Page.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Page.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Page} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Page.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - content: jspb.Message.getFieldWithDefault(msg, 2, ""), - subpagesList: jspb.Message.toObjectList(msg.getSubpagesList(), - proto.google.api.Page.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Page} - */ -proto.google.api.Page.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Page; - return proto.google.api.Page.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Page} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Page} - */ -proto.google.api.Page.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setContent(value); - break; - case 3: - var value = new proto.google.api.Page; - reader.readMessage(value,proto.google.api.Page.deserializeBinaryFromReader); - msg.addSubpages(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Page.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Page.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Page} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Page.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getContent(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSubpagesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.google.api.Page.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.api.Page.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Page} returns this - */ -proto.google.api.Page.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string content = 2; - * @return {string} - */ -proto.google.api.Page.prototype.getContent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Page} returns this - */ -proto.google.api.Page.prototype.setContent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated Page subpages = 3; - * @return {!Array} - */ -proto.google.api.Page.prototype.getSubpagesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Page, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Page} returns this -*/ -proto.google.api.Page.prototype.setSubpagesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.google.api.Page=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Page} - */ -proto.google.api.Page.prototype.addSubpages = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.Page, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Page} returns this - */ -proto.google.api.Page.prototype.clearSubpagesList = function() { - return this.setSubpagesList([]); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/endpoint_pb.d.ts b/api/grpc-web/google/api/endpoint_pb.d.ts deleted file mode 100644 index 2391d281..00000000 --- a/api/grpc-web/google/api/endpoint_pb.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export class Endpoint extends jspb.Message { - getName(): string; - setName(value: string): Endpoint; - - getAliasesList(): Array; - setAliasesList(value: Array): Endpoint; - clearAliasesList(): Endpoint; - addAliases(value: string, index?: number): Endpoint; - - getTarget(): string; - setTarget(value: string): Endpoint; - - getAllowCors(): boolean; - setAllowCors(value: boolean): Endpoint; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Endpoint.AsObject; - static toObject(includeInstance: boolean, msg: Endpoint): Endpoint.AsObject; - static serializeBinaryToWriter(message: Endpoint, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Endpoint; - static deserializeBinaryFromReader(message: Endpoint, reader: jspb.BinaryReader): Endpoint; -} - -export namespace Endpoint { - export type AsObject = { - name: string, - aliasesList: Array, - target: string, - allowCors: boolean, - } -} - diff --git a/api/grpc-web/google/api/endpoint_pb.js b/api/grpc-web/google/api/endpoint_pb.js deleted file mode 100644 index 250da1f2..00000000 --- a/api/grpc-web/google/api/endpoint_pb.js +++ /dev/null @@ -1,283 +0,0 @@ -// source: google/api/endpoint.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Endpoint', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Endpoint = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Endpoint.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Endpoint, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Endpoint.displayName = 'proto.google.api.Endpoint'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Endpoint.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Endpoint.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Endpoint.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Endpoint} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Endpoint.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - aliasesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - target: jspb.Message.getFieldWithDefault(msg, 101, ""), - allowCors: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Endpoint} - */ -proto.google.api.Endpoint.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Endpoint; - return proto.google.api.Endpoint.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Endpoint} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Endpoint} - */ -proto.google.api.Endpoint.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addAliases(value); - break; - case 101: - var value = /** @type {string} */ (reader.readString()); - msg.setTarget(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAllowCors(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Endpoint.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Endpoint.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Endpoint} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Endpoint.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAliasesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getTarget(); - if (f.length > 0) { - writer.writeString( - 101, - f - ); - } - f = message.getAllowCors(); - if (f) { - writer.writeBool( - 5, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.api.Endpoint.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Endpoint} returns this - */ -proto.google.api.Endpoint.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string aliases = 2; - * @return {!Array} - */ -proto.google.api.Endpoint.prototype.getAliasesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Endpoint} returns this - */ -proto.google.api.Endpoint.prototype.setAliasesList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.Endpoint} returns this - */ -proto.google.api.Endpoint.prototype.addAliases = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Endpoint} returns this - */ -proto.google.api.Endpoint.prototype.clearAliasesList = function() { - return this.setAliasesList([]); -}; - - -/** - * optional string target = 101; - * @return {string} - */ -proto.google.api.Endpoint.prototype.getTarget = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 101, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Endpoint} returns this - */ -proto.google.api.Endpoint.prototype.setTarget = function(value) { - return jspb.Message.setProto3StringField(this, 101, value); -}; - - -/** - * optional bool allow_cors = 5; - * @return {boolean} - */ -proto.google.api.Endpoint.prototype.getAllowCors = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.api.Endpoint} returns this - */ -proto.google.api.Endpoint.prototype.setAllowCors = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/error_reason_pb.d.ts b/api/grpc-web/google/api/error_reason_pb.d.ts deleted file mode 100644 index 1a7c2e08..00000000 --- a/api/grpc-web/google/api/error_reason_pb.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export enum ErrorReason { - ERROR_REASON_UNSPECIFIED = 0, - SERVICE_DISABLED = 1, - BILLING_DISABLED = 2, - API_KEY_INVALID = 3, - API_KEY_SERVICE_BLOCKED = 4, - API_KEY_HTTP_REFERRER_BLOCKED = 7, - API_KEY_IP_ADDRESS_BLOCKED = 8, - API_KEY_ANDROID_APP_BLOCKED = 9, - API_KEY_IOS_APP_BLOCKED = 13, - RATE_LIMIT_EXCEEDED = 5, - RESOURCE_QUOTA_EXCEEDED = 6, - LOCATION_TAX_POLICY_VIOLATED = 10, - USER_PROJECT_DENIED = 11, - CONSUMER_SUSPENDED = 12, - CONSUMER_INVALID = 14, - SECURITY_POLICY_VIOLATED = 15, - ACCESS_TOKEN_EXPIRED = 16, - ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17, - ACCOUNT_STATE_INVALID = 18, - ACCESS_TOKEN_TYPE_UNSUPPORTED = 19, - CREDENTIALS_MISSING = 20, - RESOURCE_PROJECT_INVALID = 21, - SESSION_COOKIE_INVALID = 23, - USER_BLOCKED_BY_ADMIN = 24, - RESOURCE_USAGE_RESTRICTION_VIOLATED = 25, - SYSTEM_PARAMETER_UNSUPPORTED = 26, - ORG_RESTRICTION_VIOLATION = 27, - ORG_RESTRICTION_HEADER_INVALID = 28, - SERVICE_NOT_VISIBLE = 29, - GCP_SUSPENDED = 30, -} diff --git a/api/grpc-web/google/api/error_reason_pb.js b/api/grpc-web/google/api/error_reason_pb.js deleted file mode 100644 index 725ef6d8..00000000 --- a/api/grpc-web/google/api/error_reason_pb.js +++ /dev/null @@ -1,52 +0,0 @@ -// source: google/api/error_reason.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.ErrorReason', null, global); -/** - * @enum {number} - */ -proto.google.api.ErrorReason = { - ERROR_REASON_UNSPECIFIED: 0, - SERVICE_DISABLED: 1, - BILLING_DISABLED: 2, - API_KEY_INVALID: 3, - API_KEY_SERVICE_BLOCKED: 4, - API_KEY_HTTP_REFERRER_BLOCKED: 7, - API_KEY_IP_ADDRESS_BLOCKED: 8, - API_KEY_ANDROID_APP_BLOCKED: 9, - API_KEY_IOS_APP_BLOCKED: 13, - RATE_LIMIT_EXCEEDED: 5, - RESOURCE_QUOTA_EXCEEDED: 6, - LOCATION_TAX_POLICY_VIOLATED: 10, - USER_PROJECT_DENIED: 11, - CONSUMER_SUSPENDED: 12, - CONSUMER_INVALID: 14, - SECURITY_POLICY_VIOLATED: 15, - ACCESS_TOKEN_EXPIRED: 16, - ACCESS_TOKEN_SCOPE_INSUFFICIENT: 17, - ACCOUNT_STATE_INVALID: 18, - ACCESS_TOKEN_TYPE_UNSUPPORTED: 19, - CREDENTIALS_MISSING: 20, - RESOURCE_PROJECT_INVALID: 21, - SESSION_COOKIE_INVALID: 23, - USER_BLOCKED_BY_ADMIN: 24, - RESOURCE_USAGE_RESTRICTION_VIOLATED: 25, - SYSTEM_PARAMETER_UNSUPPORTED: 26, - ORG_RESTRICTION_VIOLATION: 27, - ORG_RESTRICTION_HEADER_INVALID: 28, - SERVICE_NOT_VISIBLE: 29, - GCP_SUSPENDED: 30 -}; - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/field_behavior_pb.d.ts b/api/grpc-web/google/api/field_behavior_pb.d.ts deleted file mode 100644 index 9f51fc3a..00000000 --- a/api/grpc-web/google/api/field_behavior_pb.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb'; - - -export enum FieldBehavior { - FIELD_BEHAVIOR_UNSPECIFIED = 0, - OPTIONAL = 1, - REQUIRED = 2, - OUTPUT_ONLY = 3, - INPUT_ONLY = 4, - IMMUTABLE = 5, - UNORDERED_LIST = 6, - NON_EMPTY_DEFAULT = 7, -} diff --git a/api/grpc-web/google/api/field_behavior_pb.js b/api/grpc-web/google/api/field_behavior_pb.js deleted file mode 100644 index afb83b49..00000000 --- a/api/grpc-web/google/api/field_behavior_pb.js +++ /dev/null @@ -1,58 +0,0 @@ -// source: google/api/field_behavior.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); -goog.object.extend(proto, google_protobuf_descriptor_pb); -goog.exportSymbol('proto.google.api.FieldBehavior', null, global); -goog.exportSymbol('proto.google.api.fieldBehaviorList', null, global); -/** - * @enum {number} - */ -proto.google.api.FieldBehavior = { - FIELD_BEHAVIOR_UNSPECIFIED: 0, - OPTIONAL: 1, - REQUIRED: 2, - OUTPUT_ONLY: 3, - INPUT_ONLY: 4, - IMMUTABLE: 5, - UNORDERED_LIST: 6, - NON_EMPTY_DEFAULT: 7 -}; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `fieldBehaviorList`. - * @type {!jspb.ExtensionFieldInfo>} - */ -proto.google.api.fieldBehaviorList = new jspb.ExtensionFieldInfo( - 1052, - {fieldBehaviorList: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 1); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[1052] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.fieldBehaviorList, - jspb.BinaryReader.prototype.readPackedEnum, - jspb.BinaryWriter.prototype.writePackedEnum, - undefined, - undefined, - true); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[1052] = proto.google.api.fieldBehaviorList; - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/http_pb.d.ts b/api/grpc-web/google/api/http_pb.d.ts deleted file mode 100644 index c8441203..00000000 --- a/api/grpc-web/google/api/http_pb.d.ts +++ /dev/null @@ -1,120 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export class Http extends jspb.Message { - getRulesList(): Array; - setRulesList(value: Array): Http; - clearRulesList(): Http; - addRules(value?: HttpRule, index?: number): HttpRule; - - getFullyDecodeReservedExpansion(): boolean; - setFullyDecodeReservedExpansion(value: boolean): Http; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Http.AsObject; - static toObject(includeInstance: boolean, msg: Http): Http.AsObject; - static serializeBinaryToWriter(message: Http, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Http; - static deserializeBinaryFromReader(message: Http, reader: jspb.BinaryReader): Http; -} - -export namespace Http { - export type AsObject = { - rulesList: Array, - fullyDecodeReservedExpansion: boolean, - } -} - -export class HttpRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): HttpRule; - - getGet(): string; - setGet(value: string): HttpRule; - - getPut(): string; - setPut(value: string): HttpRule; - - getPost(): string; - setPost(value: string): HttpRule; - - getDelete(): string; - setDelete(value: string): HttpRule; - - getPatch(): string; - setPatch(value: string): HttpRule; - - getCustom(): CustomHttpPattern | undefined; - setCustom(value?: CustomHttpPattern): HttpRule; - hasCustom(): boolean; - clearCustom(): HttpRule; - - getBody(): string; - setBody(value: string): HttpRule; - - getResponseBody(): string; - setResponseBody(value: string): HttpRule; - - getAdditionalBindingsList(): Array; - setAdditionalBindingsList(value: Array): HttpRule; - clearAdditionalBindingsList(): HttpRule; - addAdditionalBindings(value?: HttpRule, index?: number): HttpRule; - - getPatternCase(): HttpRule.PatternCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HttpRule.AsObject; - static toObject(includeInstance: boolean, msg: HttpRule): HttpRule.AsObject; - static serializeBinaryToWriter(message: HttpRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HttpRule; - static deserializeBinaryFromReader(message: HttpRule, reader: jspb.BinaryReader): HttpRule; -} - -export namespace HttpRule { - export type AsObject = { - selector: string, - get: string, - put: string, - post: string, - pb_delete: string, - patch: string, - custom?: CustomHttpPattern.AsObject, - body: string, - responseBody: string, - additionalBindingsList: Array, - } - - export enum PatternCase { - PATTERN_NOT_SET = 0, - GET = 2, - PUT = 3, - POST = 4, - DELETE = 5, - PATCH = 6, - CUSTOM = 8, - } -} - -export class CustomHttpPattern extends jspb.Message { - getKind(): string; - setKind(value: string): CustomHttpPattern; - - getPath(): string; - setPath(value: string): CustomHttpPattern; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CustomHttpPattern.AsObject; - static toObject(includeInstance: boolean, msg: CustomHttpPattern): CustomHttpPattern.AsObject; - static serializeBinaryToWriter(message: CustomHttpPattern, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CustomHttpPattern; - static deserializeBinaryFromReader(message: CustomHttpPattern, reader: jspb.BinaryReader): CustomHttpPattern; -} - -export namespace CustomHttpPattern { - export type AsObject = { - kind: string, - path: string, - } -} - diff --git a/api/grpc-web/google/api/http_pb.js b/api/grpc-web/google/api/http_pb.js deleted file mode 100644 index b59093d9..00000000 --- a/api/grpc-web/google/api/http_pb.js +++ /dev/null @@ -1,1003 +0,0 @@ -// source: google/api/http.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.CustomHttpPattern', null, global); -goog.exportSymbol('proto.google.api.Http', null, global); -goog.exportSymbol('proto.google.api.HttpRule', null, global); -goog.exportSymbol('proto.google.api.HttpRule.PatternCase', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Http = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Http.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Http, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Http.displayName = 'proto.google.api.Http'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.HttpRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.HttpRule.repeatedFields_, proto.google.api.HttpRule.oneofGroups_); -}; -goog.inherits(proto.google.api.HttpRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.HttpRule.displayName = 'proto.google.api.HttpRule'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.CustomHttpPattern = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.CustomHttpPattern, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.CustomHttpPattern.displayName = 'proto.google.api.CustomHttpPattern'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Http.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Http.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Http.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Http} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Http.toObject = function(includeInstance, msg) { - var f, obj = { - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.google.api.HttpRule.toObject, includeInstance), - fullyDecodeReservedExpansion: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Http} - */ -proto.google.api.Http.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Http; - return proto.google.api.Http.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Http} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Http} - */ -proto.google.api.Http.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.HttpRule; - reader.readMessage(value,proto.google.api.HttpRule.deserializeBinaryFromReader); - msg.addRules(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setFullyDecodeReservedExpansion(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Http.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Http.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Http} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Http.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.api.HttpRule.serializeBinaryToWriter - ); - } - f = message.getFullyDecodeReservedExpansion(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * repeated HttpRule rules = 1; - * @return {!Array} - */ -proto.google.api.Http.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.HttpRule, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Http} returns this -*/ -proto.google.api.Http.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.api.HttpRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.HttpRule} - */ -proto.google.api.Http.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.HttpRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Http} returns this - */ -proto.google.api.Http.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - -/** - * optional bool fully_decode_reserved_expansion = 2; - * @return {boolean} - */ -proto.google.api.Http.prototype.getFullyDecodeReservedExpansion = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.api.Http} returns this - */ -proto.google.api.Http.prototype.setFullyDecodeReservedExpansion = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.HttpRule.repeatedFields_ = [11]; - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.google.api.HttpRule.oneofGroups_ = [[2,3,4,5,6,8]]; - -/** - * @enum {number} - */ -proto.google.api.HttpRule.PatternCase = { - PATTERN_NOT_SET: 0, - GET: 2, - PUT: 3, - POST: 4, - DELETE: 5, - PATCH: 6, - CUSTOM: 8 -}; - -/** - * @return {proto.google.api.HttpRule.PatternCase} - */ -proto.google.api.HttpRule.prototype.getPatternCase = function() { - return /** @type {proto.google.api.HttpRule.PatternCase} */(jspb.Message.computeOneofCase(this, proto.google.api.HttpRule.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.HttpRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.HttpRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.HttpRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.HttpRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - get: jspb.Message.getFieldWithDefault(msg, 2, ""), - put: jspb.Message.getFieldWithDefault(msg, 3, ""), - post: jspb.Message.getFieldWithDefault(msg, 4, ""), - pb_delete: jspb.Message.getFieldWithDefault(msg, 5, ""), - patch: jspb.Message.getFieldWithDefault(msg, 6, ""), - custom: (f = msg.getCustom()) && proto.google.api.CustomHttpPattern.toObject(includeInstance, f), - body: jspb.Message.getFieldWithDefault(msg, 7, ""), - responseBody: jspb.Message.getFieldWithDefault(msg, 12, ""), - additionalBindingsList: jspb.Message.toObjectList(msg.getAdditionalBindingsList(), - proto.google.api.HttpRule.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.HttpRule} - */ -proto.google.api.HttpRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.HttpRule; - return proto.google.api.HttpRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.HttpRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.HttpRule} - */ -proto.google.api.HttpRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGet(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setPut(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPost(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDelete(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setPatch(value); - break; - case 8: - var value = new proto.google.api.CustomHttpPattern; - reader.readMessage(value,proto.google.api.CustomHttpPattern.deserializeBinaryFromReader); - msg.setCustom(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setBody(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setResponseBody(value); - break; - case 11: - var value = new proto.google.api.HttpRule; - reader.readMessage(value,proto.google.api.HttpRule.deserializeBinaryFromReader); - msg.addAdditionalBindings(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.HttpRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.HttpRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.HttpRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.HttpRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeString( - 2, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeString( - 3, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeString( - 4, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 5)); - if (f != null) { - writer.writeString( - 5, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeString( - 6, - f - ); - } - f = message.getCustom(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.google.api.CustomHttpPattern.serializeBinaryToWriter - ); - } - f = message.getBody(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getResponseBody(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getAdditionalBindingsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 11, - f, - proto.google.api.HttpRule.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string get = 2; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getGet = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setGet = function(value) { - return jspb.Message.setOneofField(this, 2, proto.google.api.HttpRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearGet = function() { - return jspb.Message.setOneofField(this, 2, proto.google.api.HttpRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.HttpRule.prototype.hasGet = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string put = 3; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getPut = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setPut = function(value) { - return jspb.Message.setOneofField(this, 3, proto.google.api.HttpRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearPut = function() { - return jspb.Message.setOneofField(this, 3, proto.google.api.HttpRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.HttpRule.prototype.hasPut = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string post = 4; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getPost = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setPost = function(value) { - return jspb.Message.setOneofField(this, 4, proto.google.api.HttpRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearPost = function() { - return jspb.Message.setOneofField(this, 4, proto.google.api.HttpRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.HttpRule.prototype.hasPost = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string delete = 5; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getDelete = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setDelete = function(value) { - return jspb.Message.setOneofField(this, 5, proto.google.api.HttpRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearDelete = function() { - return jspb.Message.setOneofField(this, 5, proto.google.api.HttpRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.HttpRule.prototype.hasDelete = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional string patch = 6; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getPatch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setPatch = function(value) { - return jspb.Message.setOneofField(this, 6, proto.google.api.HttpRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearPatch = function() { - return jspb.Message.setOneofField(this, 6, proto.google.api.HttpRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.HttpRule.prototype.hasPatch = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional CustomHttpPattern custom = 8; - * @return {?proto.google.api.CustomHttpPattern} - */ -proto.google.api.HttpRule.prototype.getCustom = function() { - return /** @type{?proto.google.api.CustomHttpPattern} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CustomHttpPattern, 8)); -}; - - -/** - * @param {?proto.google.api.CustomHttpPattern|undefined} value - * @return {!proto.google.api.HttpRule} returns this -*/ -proto.google.api.HttpRule.prototype.setCustom = function(value) { - return jspb.Message.setOneofWrapperField(this, 8, proto.google.api.HttpRule.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearCustom = function() { - return this.setCustom(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.HttpRule.prototype.hasCustom = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional string body = 7; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getBody = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setBody = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string response_body = 12; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getResponseBody = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setResponseBody = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * repeated HttpRule additional_bindings = 11; - * @return {!Array} - */ -proto.google.api.HttpRule.prototype.getAdditionalBindingsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.HttpRule, 11)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.HttpRule} returns this -*/ -proto.google.api.HttpRule.prototype.setAdditionalBindingsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 11, value); -}; - - -/** - * @param {!proto.google.api.HttpRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.HttpRule} - */ -proto.google.api.HttpRule.prototype.addAdditionalBindings = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.google.api.HttpRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearAdditionalBindingsList = function() { - return this.setAdditionalBindingsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.CustomHttpPattern.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.CustomHttpPattern.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.CustomHttpPattern} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.CustomHttpPattern.toObject = function(includeInstance, msg) { - var f, obj = { - kind: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.CustomHttpPattern} - */ -proto.google.api.CustomHttpPattern.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.CustomHttpPattern; - return proto.google.api.CustomHttpPattern.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.CustomHttpPattern} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.CustomHttpPattern} - */ -proto.google.api.CustomHttpPattern.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setKind(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.CustomHttpPattern.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.CustomHttpPattern.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.CustomHttpPattern} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.CustomHttpPattern.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKind(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string kind = 1; - * @return {string} - */ -proto.google.api.CustomHttpPattern.prototype.getKind = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.CustomHttpPattern} returns this - */ -proto.google.api.CustomHttpPattern.prototype.setKind = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -proto.google.api.CustomHttpPattern.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.CustomHttpPattern} returns this - */ -proto.google.api.CustomHttpPattern.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/httpbody_pb.d.ts b/api/grpc-web/google/api/httpbody_pb.d.ts deleted file mode 100644 index 8ae1e987..00000000 --- a/api/grpc-web/google/api/httpbody_pb.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_protobuf_any_pb from 'google-protobuf/google/protobuf/any_pb'; - - -export class HttpBody extends jspb.Message { - getContentType(): string; - setContentType(value: string): HttpBody; - - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): HttpBody; - - getExtensionsList(): Array; - setExtensionsList(value: Array): HttpBody; - clearExtensionsList(): HttpBody; - addExtensions(value?: google_protobuf_any_pb.Any, index?: number): google_protobuf_any_pb.Any; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HttpBody.AsObject; - static toObject(includeInstance: boolean, msg: HttpBody): HttpBody.AsObject; - static serializeBinaryToWriter(message: HttpBody, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HttpBody; - static deserializeBinaryFromReader(message: HttpBody, reader: jspb.BinaryReader): HttpBody; -} - -export namespace HttpBody { - export type AsObject = { - contentType: string, - data: Uint8Array | string, - extensionsList: Array, - } -} - diff --git a/api/grpc-web/google/api/httpbody_pb.js b/api/grpc-web/google/api/httpbody_pb.js deleted file mode 100644 index b0415dd4..00000000 --- a/api/grpc-web/google/api/httpbody_pb.js +++ /dev/null @@ -1,283 +0,0 @@ -// source: google/api/httpbody.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); -goog.object.extend(proto, google_protobuf_any_pb); -goog.exportSymbol('proto.google.api.HttpBody', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.HttpBody = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.HttpBody.repeatedFields_, null); -}; -goog.inherits(proto.google.api.HttpBody, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.HttpBody.displayName = 'proto.google.api.HttpBody'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.HttpBody.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.HttpBody.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.HttpBody.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.HttpBody} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.HttpBody.toObject = function(includeInstance, msg) { - var f, obj = { - contentType: jspb.Message.getFieldWithDefault(msg, 1, ""), - data: msg.getData_asB64(), - extensionsList: jspb.Message.toObjectList(msg.getExtensionsList(), - google_protobuf_any_pb.Any.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.HttpBody} - */ -proto.google.api.HttpBody.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.HttpBody; - return proto.google.api.HttpBody.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.HttpBody} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.HttpBody} - */ -proto.google.api.HttpBody.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setContentType(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 3: - var value = new google_protobuf_any_pb.Any; - reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); - msg.addExtensions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.HttpBody.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.HttpBody.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.HttpBody} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.HttpBody.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getContentType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getExtensionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - google_protobuf_any_pb.Any.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string content_type = 1; - * @return {string} - */ -proto.google.api.HttpBody.prototype.getContentType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpBody} returns this - */ -proto.google.api.HttpBody.prototype.setContentType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes data = 2; - * @return {string} - */ -proto.google.api.HttpBody.prototype.getData = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes data = 2; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.google.api.HttpBody.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.google.api.HttpBody.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.google.api.HttpBody} returns this - */ -proto.google.api.HttpBody.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * repeated google.protobuf.Any extensions = 3; - * @return {!Array} - */ -proto.google.api.HttpBody.prototype.getExtensionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_protobuf_any_pb.Any, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.HttpBody} returns this -*/ -proto.google.api.HttpBody.prototype.setExtensionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.google.protobuf.Any=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.Any} - */ -proto.google.api.HttpBody.prototype.addExtensions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.Any, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.HttpBody} returns this - */ -proto.google.api.HttpBody.prototype.clearExtensionsList = function() { - return this.setExtensionsList([]); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/label_pb.d.ts b/api/grpc-web/google/api/label_pb.d.ts deleted file mode 100644 index 0cfcf6fd..00000000 --- a/api/grpc-web/google/api/label_pb.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export class LabelDescriptor extends jspb.Message { - getKey(): string; - setKey(value: string): LabelDescriptor; - - getValueType(): LabelDescriptor.ValueType; - setValueType(value: LabelDescriptor.ValueType): LabelDescriptor; - - getDescription(): string; - setDescription(value: string): LabelDescriptor; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LabelDescriptor.AsObject; - static toObject(includeInstance: boolean, msg: LabelDescriptor): LabelDescriptor.AsObject; - static serializeBinaryToWriter(message: LabelDescriptor, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LabelDescriptor; - static deserializeBinaryFromReader(message: LabelDescriptor, reader: jspb.BinaryReader): LabelDescriptor; -} - -export namespace LabelDescriptor { - export type AsObject = { - key: string, - valueType: LabelDescriptor.ValueType, - description: string, - } - - export enum ValueType { - STRING = 0, - BOOL = 1, - INT64 = 2, - } -} - diff --git a/api/grpc-web/google/api/label_pb.js b/api/grpc-web/google/api/label_pb.js deleted file mode 100644 index 3a1749f2..00000000 --- a/api/grpc-web/google/api/label_pb.js +++ /dev/null @@ -1,237 +0,0 @@ -// source: google/api/label.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.LabelDescriptor', null, global); -goog.exportSymbol('proto.google.api.LabelDescriptor.ValueType', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.LabelDescriptor = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.LabelDescriptor, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.LabelDescriptor.displayName = 'proto.google.api.LabelDescriptor'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.LabelDescriptor.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.LabelDescriptor.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.LabelDescriptor} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.LabelDescriptor.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, ""), - valueType: jspb.Message.getFieldWithDefault(msg, 2, 0), - description: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.LabelDescriptor} - */ -proto.google.api.LabelDescriptor.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.LabelDescriptor; - return proto.google.api.LabelDescriptor.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.LabelDescriptor} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.LabelDescriptor} - */ -proto.google.api.LabelDescriptor.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 2: - var value = /** @type {!proto.google.api.LabelDescriptor.ValueType} */ (reader.readEnum()); - msg.setValueType(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.LabelDescriptor.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.LabelDescriptor.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.LabelDescriptor} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.LabelDescriptor.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getValueType(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.google.api.LabelDescriptor.ValueType = { - STRING: 0, - BOOL: 1, - INT64: 2 -}; - -/** - * optional string key = 1; - * @return {string} - */ -proto.google.api.LabelDescriptor.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.LabelDescriptor} returns this - */ -proto.google.api.LabelDescriptor.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional ValueType value_type = 2; - * @return {!proto.google.api.LabelDescriptor.ValueType} - */ -proto.google.api.LabelDescriptor.prototype.getValueType = function() { - return /** @type {!proto.google.api.LabelDescriptor.ValueType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.google.api.LabelDescriptor.ValueType} value - * @return {!proto.google.api.LabelDescriptor} returns this - */ -proto.google.api.LabelDescriptor.prototype.setValueType = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.google.api.LabelDescriptor.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.LabelDescriptor} returns this - */ -proto.google.api.LabelDescriptor.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/launch_stage_pb.d.ts b/api/grpc-web/google/api/launch_stage_pb.d.ts deleted file mode 100644 index ef7fb08d..00000000 --- a/api/grpc-web/google/api/launch_stage_pb.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export enum LaunchStage { - LAUNCH_STAGE_UNSPECIFIED = 0, - UNIMPLEMENTED = 6, - PRELAUNCH = 7, - EARLY_ACCESS = 1, - ALPHA = 2, - BETA = 3, - GA = 4, - DEPRECATED = 5, -} diff --git a/api/grpc-web/google/api/launch_stage_pb.js b/api/grpc-web/google/api/launch_stage_pb.js deleted file mode 100644 index d9c6f688..00000000 --- a/api/grpc-web/google/api/launch_stage_pb.js +++ /dev/null @@ -1,30 +0,0 @@ -// source: google/api/launch_stage.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.LaunchStage', null, global); -/** - * @enum {number} - */ -proto.google.api.LaunchStage = { - LAUNCH_STAGE_UNSPECIFIED: 0, - UNIMPLEMENTED: 6, - PRELAUNCH: 7, - EARLY_ACCESS: 1, - ALPHA: 2, - BETA: 3, - GA: 4, - DEPRECATED: 5 -}; - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/log_pb.d.ts b/api/grpc-web/google/api/log_pb.d.ts deleted file mode 100644 index ab02c2fc..00000000 --- a/api/grpc-web/google/api/log_pb.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_api_label_pb from '../../google/api/label_pb'; - - -export class LogDescriptor extends jspb.Message { - getName(): string; - setName(value: string): LogDescriptor; - - getLabelsList(): Array; - setLabelsList(value: Array): LogDescriptor; - clearLabelsList(): LogDescriptor; - addLabels(value?: google_api_label_pb.LabelDescriptor, index?: number): google_api_label_pb.LabelDescriptor; - - getDescription(): string; - setDescription(value: string): LogDescriptor; - - getDisplayName(): string; - setDisplayName(value: string): LogDescriptor; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LogDescriptor.AsObject; - static toObject(includeInstance: boolean, msg: LogDescriptor): LogDescriptor.AsObject; - static serializeBinaryToWriter(message: LogDescriptor, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LogDescriptor; - static deserializeBinaryFromReader(message: LogDescriptor, reader: jspb.BinaryReader): LogDescriptor; -} - -export namespace LogDescriptor { - export type AsObject = { - name: string, - labelsList: Array, - description: string, - displayName: string, - } -} - diff --git a/api/grpc-web/google/api/log_pb.js b/api/grpc-web/google/api/log_pb.js deleted file mode 100644 index c0896682..00000000 --- a/api/grpc-web/google/api/log_pb.js +++ /dev/null @@ -1,289 +0,0 @@ -// source: google/api/log.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_label_pb = require('../../google/api/label_pb.js'); -goog.object.extend(proto, google_api_label_pb); -goog.exportSymbol('proto.google.api.LogDescriptor', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.LogDescriptor = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.LogDescriptor.repeatedFields_, null); -}; -goog.inherits(proto.google.api.LogDescriptor, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.LogDescriptor.displayName = 'proto.google.api.LogDescriptor'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.LogDescriptor.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.LogDescriptor.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.LogDescriptor.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.LogDescriptor} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.LogDescriptor.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - labelsList: jspb.Message.toObjectList(msg.getLabelsList(), - google_api_label_pb.LabelDescriptor.toObject, includeInstance), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.LogDescriptor} - */ -proto.google.api.LogDescriptor.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.LogDescriptor; - return proto.google.api.LogDescriptor.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.LogDescriptor} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.LogDescriptor} - */ -proto.google.api.LogDescriptor.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = new google_api_label_pb.LabelDescriptor; - reader.readMessage(value,google_api_label_pb.LabelDescriptor.deserializeBinaryFromReader); - msg.addLabels(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.LogDescriptor.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.LogDescriptor.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.LogDescriptor} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.LogDescriptor.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLabelsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - google_api_label_pb.LabelDescriptor.serializeBinaryToWriter - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.api.LogDescriptor.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.LogDescriptor} returns this - */ -proto.google.api.LogDescriptor.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated LabelDescriptor labels = 2; - * @return {!Array} - */ -proto.google.api.LogDescriptor.prototype.getLabelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_api_label_pb.LabelDescriptor, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.LogDescriptor} returns this -*/ -proto.google.api.LogDescriptor.prototype.setLabelsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.api.LabelDescriptor=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.LabelDescriptor} - */ -proto.google.api.LogDescriptor.prototype.addLabels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.LabelDescriptor, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.LogDescriptor} returns this - */ -proto.google.api.LogDescriptor.prototype.clearLabelsList = function() { - return this.setLabelsList([]); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.google.api.LogDescriptor.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.LogDescriptor} returns this - */ -proto.google.api.LogDescriptor.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string display_name = 4; - * @return {string} - */ -proto.google.api.LogDescriptor.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.LogDescriptor} returns this - */ -proto.google.api.LogDescriptor.prototype.setDisplayName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/logging_pb.d.ts b/api/grpc-web/google/api/logging_pb.d.ts deleted file mode 100644 index d6bd3ce7..00000000 --- a/api/grpc-web/google/api/logging_pb.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export class Logging extends jspb.Message { - getProducerDestinationsList(): Array; - setProducerDestinationsList(value: Array): Logging; - clearProducerDestinationsList(): Logging; - addProducerDestinations(value?: Logging.LoggingDestination, index?: number): Logging.LoggingDestination; - - getConsumerDestinationsList(): Array; - setConsumerDestinationsList(value: Array): Logging; - clearConsumerDestinationsList(): Logging; - addConsumerDestinations(value?: Logging.LoggingDestination, index?: number): Logging.LoggingDestination; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Logging.AsObject; - static toObject(includeInstance: boolean, msg: Logging): Logging.AsObject; - static serializeBinaryToWriter(message: Logging, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Logging; - static deserializeBinaryFromReader(message: Logging, reader: jspb.BinaryReader): Logging; -} - -export namespace Logging { - export type AsObject = { - producerDestinationsList: Array, - consumerDestinationsList: Array, - } - - export class LoggingDestination extends jspb.Message { - getMonitoredResource(): string; - setMonitoredResource(value: string): LoggingDestination; - - getLogsList(): Array; - setLogsList(value: Array): LoggingDestination; - clearLogsList(): LoggingDestination; - addLogs(value: string, index?: number): LoggingDestination; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoggingDestination.AsObject; - static toObject(includeInstance: boolean, msg: LoggingDestination): LoggingDestination.AsObject; - static serializeBinaryToWriter(message: LoggingDestination, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoggingDestination; - static deserializeBinaryFromReader(message: LoggingDestination, reader: jspb.BinaryReader): LoggingDestination; - } - - export namespace LoggingDestination { - export type AsObject = { - monitoredResource: string, - logsList: Array, - } - } - -} - diff --git a/api/grpc-web/google/api/logging_pb.js b/api/grpc-web/google/api/logging_pb.js deleted file mode 100644 index 59a125b3..00000000 --- a/api/grpc-web/google/api/logging_pb.js +++ /dev/null @@ -1,458 +0,0 @@ -// source: google/api/logging.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Logging', null, global); -goog.exportSymbol('proto.google.api.Logging.LoggingDestination', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Logging = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Logging.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Logging, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Logging.displayName = 'proto.google.api.Logging'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Logging.LoggingDestination = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Logging.LoggingDestination.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Logging.LoggingDestination, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Logging.LoggingDestination.displayName = 'proto.google.api.Logging.LoggingDestination'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Logging.repeatedFields_ = [1,2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Logging.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Logging.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Logging} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Logging.toObject = function(includeInstance, msg) { - var f, obj = { - producerDestinationsList: jspb.Message.toObjectList(msg.getProducerDestinationsList(), - proto.google.api.Logging.LoggingDestination.toObject, includeInstance), - consumerDestinationsList: jspb.Message.toObjectList(msg.getConsumerDestinationsList(), - proto.google.api.Logging.LoggingDestination.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Logging} - */ -proto.google.api.Logging.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Logging; - return proto.google.api.Logging.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Logging} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Logging} - */ -proto.google.api.Logging.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.Logging.LoggingDestination; - reader.readMessage(value,proto.google.api.Logging.LoggingDestination.deserializeBinaryFromReader); - msg.addProducerDestinations(value); - break; - case 2: - var value = new proto.google.api.Logging.LoggingDestination; - reader.readMessage(value,proto.google.api.Logging.LoggingDestination.deserializeBinaryFromReader); - msg.addConsumerDestinations(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Logging.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Logging.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Logging} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Logging.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProducerDestinationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.api.Logging.LoggingDestination.serializeBinaryToWriter - ); - } - f = message.getConsumerDestinationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.google.api.Logging.LoggingDestination.serializeBinaryToWriter - ); - } -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Logging.LoggingDestination.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Logging.LoggingDestination.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Logging.LoggingDestination.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Logging.LoggingDestination} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Logging.LoggingDestination.toObject = function(includeInstance, msg) { - var f, obj = { - monitoredResource: jspb.Message.getFieldWithDefault(msg, 3, ""), - logsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Logging.LoggingDestination} - */ -proto.google.api.Logging.LoggingDestination.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Logging.LoggingDestination; - return proto.google.api.Logging.LoggingDestination.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Logging.LoggingDestination} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Logging.LoggingDestination} - */ -proto.google.api.Logging.LoggingDestination.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setMonitoredResource(value); - break; - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addLogs(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Logging.LoggingDestination.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Logging.LoggingDestination.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Logging.LoggingDestination} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Logging.LoggingDestination.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMonitoredResource(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getLogsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } -}; - - -/** - * optional string monitored_resource = 3; - * @return {string} - */ -proto.google.api.Logging.LoggingDestination.prototype.getMonitoredResource = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Logging.LoggingDestination} returns this - */ -proto.google.api.Logging.LoggingDestination.prototype.setMonitoredResource = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated string logs = 1; - * @return {!Array} - */ -proto.google.api.Logging.LoggingDestination.prototype.getLogsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Logging.LoggingDestination} returns this - */ -proto.google.api.Logging.LoggingDestination.prototype.setLogsList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.Logging.LoggingDestination} returns this - */ -proto.google.api.Logging.LoggingDestination.prototype.addLogs = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Logging.LoggingDestination} returns this - */ -proto.google.api.Logging.LoggingDestination.prototype.clearLogsList = function() { - return this.setLogsList([]); -}; - - -/** - * repeated LoggingDestination producer_destinations = 1; - * @return {!Array} - */ -proto.google.api.Logging.prototype.getProducerDestinationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Logging.LoggingDestination, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Logging} returns this -*/ -proto.google.api.Logging.prototype.setProducerDestinationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.api.Logging.LoggingDestination=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Logging.LoggingDestination} - */ -proto.google.api.Logging.prototype.addProducerDestinations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.Logging.LoggingDestination, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Logging} returns this - */ -proto.google.api.Logging.prototype.clearProducerDestinationsList = function() { - return this.setProducerDestinationsList([]); -}; - - -/** - * repeated LoggingDestination consumer_destinations = 2; - * @return {!Array} - */ -proto.google.api.Logging.prototype.getConsumerDestinationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Logging.LoggingDestination, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Logging} returns this -*/ -proto.google.api.Logging.prototype.setConsumerDestinationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.api.Logging.LoggingDestination=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Logging.LoggingDestination} - */ -proto.google.api.Logging.prototype.addConsumerDestinations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.Logging.LoggingDestination, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Logging} returns this - */ -proto.google.api.Logging.prototype.clearConsumerDestinationsList = function() { - return this.setConsumerDestinationsList([]); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/metric_pb.d.ts b/api/grpc-web/google/api/metric_pb.d.ts deleted file mode 100644 index 5f37ca90..00000000 --- a/api/grpc-web/google/api/metric_pb.d.ts +++ /dev/null @@ -1,141 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_api_label_pb from '../../google/api/label_pb'; -import * as google_api_launch_stage_pb from '../../google/api/launch_stage_pb'; -import * as google_protobuf_duration_pb from 'google-protobuf/google/protobuf/duration_pb'; - - -export class MetricDescriptor extends jspb.Message { - getName(): string; - setName(value: string): MetricDescriptor; - - getType(): string; - setType(value: string): MetricDescriptor; - - getLabelsList(): Array; - setLabelsList(value: Array): MetricDescriptor; - clearLabelsList(): MetricDescriptor; - addLabels(value?: google_api_label_pb.LabelDescriptor, index?: number): google_api_label_pb.LabelDescriptor; - - getMetricKind(): MetricDescriptor.MetricKind; - setMetricKind(value: MetricDescriptor.MetricKind): MetricDescriptor; - - getValueType(): MetricDescriptor.ValueType; - setValueType(value: MetricDescriptor.ValueType): MetricDescriptor; - - getUnit(): string; - setUnit(value: string): MetricDescriptor; - - getDescription(): string; - setDescription(value: string): MetricDescriptor; - - getDisplayName(): string; - setDisplayName(value: string): MetricDescriptor; - - getMetadata(): MetricDescriptor.MetricDescriptorMetadata | undefined; - setMetadata(value?: MetricDescriptor.MetricDescriptorMetadata): MetricDescriptor; - hasMetadata(): boolean; - clearMetadata(): MetricDescriptor; - - getLaunchStage(): google_api_launch_stage_pb.LaunchStage; - setLaunchStage(value: google_api_launch_stage_pb.LaunchStage): MetricDescriptor; - - getMonitoredResourceTypesList(): Array; - setMonitoredResourceTypesList(value: Array): MetricDescriptor; - clearMonitoredResourceTypesList(): MetricDescriptor; - addMonitoredResourceTypes(value: string, index?: number): MetricDescriptor; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MetricDescriptor.AsObject; - static toObject(includeInstance: boolean, msg: MetricDescriptor): MetricDescriptor.AsObject; - static serializeBinaryToWriter(message: MetricDescriptor, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MetricDescriptor; - static deserializeBinaryFromReader(message: MetricDescriptor, reader: jspb.BinaryReader): MetricDescriptor; -} - -export namespace MetricDescriptor { - export type AsObject = { - name: string, - type: string, - labelsList: Array, - metricKind: MetricDescriptor.MetricKind, - valueType: MetricDescriptor.ValueType, - unit: string, - description: string, - displayName: string, - metadata?: MetricDescriptor.MetricDescriptorMetadata.AsObject, - launchStage: google_api_launch_stage_pb.LaunchStage, - monitoredResourceTypesList: Array, - } - - export class MetricDescriptorMetadata extends jspb.Message { - getLaunchStage(): google_api_launch_stage_pb.LaunchStage; - setLaunchStage(value: google_api_launch_stage_pb.LaunchStage): MetricDescriptorMetadata; - - getSamplePeriod(): google_protobuf_duration_pb.Duration | undefined; - setSamplePeriod(value?: google_protobuf_duration_pb.Duration): MetricDescriptorMetadata; - hasSamplePeriod(): boolean; - clearSamplePeriod(): MetricDescriptorMetadata; - - getIngestDelay(): google_protobuf_duration_pb.Duration | undefined; - setIngestDelay(value?: google_protobuf_duration_pb.Duration): MetricDescriptorMetadata; - hasIngestDelay(): boolean; - clearIngestDelay(): MetricDescriptorMetadata; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MetricDescriptorMetadata.AsObject; - static toObject(includeInstance: boolean, msg: MetricDescriptorMetadata): MetricDescriptorMetadata.AsObject; - static serializeBinaryToWriter(message: MetricDescriptorMetadata, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MetricDescriptorMetadata; - static deserializeBinaryFromReader(message: MetricDescriptorMetadata, reader: jspb.BinaryReader): MetricDescriptorMetadata; - } - - export namespace MetricDescriptorMetadata { - export type AsObject = { - launchStage: google_api_launch_stage_pb.LaunchStage, - samplePeriod?: google_protobuf_duration_pb.Duration.AsObject, - ingestDelay?: google_protobuf_duration_pb.Duration.AsObject, - } - } - - - export enum MetricKind { - METRIC_KIND_UNSPECIFIED = 0, - GAUGE = 1, - DELTA = 2, - CUMULATIVE = 3, - } - - export enum ValueType { - VALUE_TYPE_UNSPECIFIED = 0, - BOOL = 1, - INT64 = 2, - DOUBLE = 3, - STRING = 4, - DISTRIBUTION = 5, - MONEY = 6, - } -} - -export class Metric extends jspb.Message { - getType(): string; - setType(value: string): Metric; - - getLabelsMap(): jspb.Map; - clearLabelsMap(): Metric; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Metric.AsObject; - static toObject(includeInstance: boolean, msg: Metric): Metric.AsObject; - static serializeBinaryToWriter(message: Metric, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Metric; - static deserializeBinaryFromReader(message: Metric, reader: jspb.BinaryReader): Metric; -} - -export namespace Metric { - export type AsObject = { - type: string, - labelsMap: Array<[string, string]>, - } -} - diff --git a/api/grpc-web/google/api/metric_pb.js b/api/grpc-web/google/api/metric_pb.js deleted file mode 100644 index d9b9fe1b..00000000 --- a/api/grpc-web/google/api/metric_pb.js +++ /dev/null @@ -1,1007 +0,0 @@ -// source: google/api/metric.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_label_pb = require('../../google/api/label_pb.js'); -goog.object.extend(proto, google_api_label_pb); -var google_api_launch_stage_pb = require('../../google/api/launch_stage_pb.js'); -goog.object.extend(proto, google_api_launch_stage_pb); -var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); -goog.object.extend(proto, google_protobuf_duration_pb); -goog.exportSymbol('proto.google.api.Metric', null, global); -goog.exportSymbol('proto.google.api.MetricDescriptor', null, global); -goog.exportSymbol('proto.google.api.MetricDescriptor.MetricDescriptorMetadata', null, global); -goog.exportSymbol('proto.google.api.MetricDescriptor.MetricKind', null, global); -goog.exportSymbol('proto.google.api.MetricDescriptor.ValueType', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.MetricDescriptor = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.MetricDescriptor.repeatedFields_, null); -}; -goog.inherits(proto.google.api.MetricDescriptor, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.MetricDescriptor.displayName = 'proto.google.api.MetricDescriptor'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.MetricDescriptor.MetricDescriptorMetadata, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.MetricDescriptor.MetricDescriptorMetadata.displayName = 'proto.google.api.MetricDescriptor.MetricDescriptorMetadata'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Metric = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.Metric, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Metric.displayName = 'proto.google.api.Metric'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.MetricDescriptor.repeatedFields_ = [2,13]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.MetricDescriptor.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.MetricDescriptor.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.MetricDescriptor} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MetricDescriptor.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - type: jspb.Message.getFieldWithDefault(msg, 8, ""), - labelsList: jspb.Message.toObjectList(msg.getLabelsList(), - google_api_label_pb.LabelDescriptor.toObject, includeInstance), - metricKind: jspb.Message.getFieldWithDefault(msg, 3, 0), - valueType: jspb.Message.getFieldWithDefault(msg, 4, 0), - unit: jspb.Message.getFieldWithDefault(msg, 5, ""), - description: jspb.Message.getFieldWithDefault(msg, 6, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 7, ""), - metadata: (f = msg.getMetadata()) && proto.google.api.MetricDescriptor.MetricDescriptorMetadata.toObject(includeInstance, f), - launchStage: jspb.Message.getFieldWithDefault(msg, 12, 0), - monitoredResourceTypesList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.MetricDescriptor} - */ -proto.google.api.MetricDescriptor.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.MetricDescriptor; - return proto.google.api.MetricDescriptor.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.MetricDescriptor} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.MetricDescriptor} - */ -proto.google.api.MetricDescriptor.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 2: - var value = new google_api_label_pb.LabelDescriptor; - reader.readMessage(value,google_api_label_pb.LabelDescriptor.deserializeBinaryFromReader); - msg.addLabels(value); - break; - case 3: - var value = /** @type {!proto.google.api.MetricDescriptor.MetricKind} */ (reader.readEnum()); - msg.setMetricKind(value); - break; - case 4: - var value = /** @type {!proto.google.api.MetricDescriptor.ValueType} */ (reader.readEnum()); - msg.setValueType(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setUnit(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - case 10: - var value = new proto.google.api.MetricDescriptor.MetricDescriptorMetadata; - reader.readMessage(value,proto.google.api.MetricDescriptor.MetricDescriptorMetadata.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - case 12: - var value = /** @type {!proto.google.api.LaunchStage} */ (reader.readEnum()); - msg.setLaunchStage(value); - break; - case 13: - var value = /** @type {string} */ (reader.readString()); - msg.addMonitoredResourceTypes(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.MetricDescriptor.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.MetricDescriptor.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.MetricDescriptor} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MetricDescriptor.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getLabelsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - google_api_label_pb.LabelDescriptor.serializeBinaryToWriter - ); - } - f = message.getMetricKind(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getValueType(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getUnit(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 10, - f, - proto.google.api.MetricDescriptor.MetricDescriptorMetadata.serializeBinaryToWriter - ); - } - f = message.getLaunchStage(); - if (f !== 0.0) { - writer.writeEnum( - 12, - f - ); - } - f = message.getMonitoredResourceTypesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 13, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.google.api.MetricDescriptor.MetricKind = { - METRIC_KIND_UNSPECIFIED: 0, - GAUGE: 1, - DELTA: 2, - CUMULATIVE: 3 -}; - -/** - * @enum {number} - */ -proto.google.api.MetricDescriptor.ValueType = { - VALUE_TYPE_UNSPECIFIED: 0, - BOOL: 1, - INT64: 2, - DOUBLE: 3, - STRING: 4, - DISTRIBUTION: 5, - MONEY: 6 -}; - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.MetricDescriptor.MetricDescriptorMetadata.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.toObject = function(includeInstance, msg) { - var f, obj = { - launchStage: jspb.Message.getFieldWithDefault(msg, 1, 0), - samplePeriod: (f = msg.getSamplePeriod()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), - ingestDelay: (f = msg.getIngestDelay()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.MetricDescriptor.MetricDescriptorMetadata; - return proto.google.api.MetricDescriptor.MetricDescriptorMetadata.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.google.api.LaunchStage} */ (reader.readEnum()); - msg.setLaunchStage(value); - break; - case 2: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setSamplePeriod(value); - break; - case 3: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setIngestDelay(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.MetricDescriptor.MetricDescriptorMetadata.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLaunchStage(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getSamplePeriod(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } - f = message.getIngestDelay(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional LaunchStage launch_stage = 1; - * @return {!proto.google.api.LaunchStage} - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.getLaunchStage = function() { - return /** @type {!proto.google.api.LaunchStage} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.google.api.LaunchStage} value - * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} returns this - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.setLaunchStage = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional google.protobuf.Duration sample_period = 2; - * @return {?proto.google.protobuf.Duration} - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.getSamplePeriod = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} returns this -*/ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.setSamplePeriod = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} returns this - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.clearSamplePeriod = function() { - return this.setSamplePeriod(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.hasSamplePeriod = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Duration ingest_delay = 3; - * @return {?proto.google.protobuf.Duration} - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.getIngestDelay = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} returns this -*/ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.setIngestDelay = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} returns this - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.clearIngestDelay = function() { - return this.setIngestDelay(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.hasIngestDelay = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.api.MetricDescriptor.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string type = 8; - * @return {string} - */ -proto.google.api.MetricDescriptor.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * repeated LabelDescriptor labels = 2; - * @return {!Array} - */ -proto.google.api.MetricDescriptor.prototype.getLabelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_api_label_pb.LabelDescriptor, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.MetricDescriptor} returns this -*/ -proto.google.api.MetricDescriptor.prototype.setLabelsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.api.LabelDescriptor=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.LabelDescriptor} - */ -proto.google.api.MetricDescriptor.prototype.addLabels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.LabelDescriptor, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.clearLabelsList = function() { - return this.setLabelsList([]); -}; - - -/** - * optional MetricKind metric_kind = 3; - * @return {!proto.google.api.MetricDescriptor.MetricKind} - */ -proto.google.api.MetricDescriptor.prototype.getMetricKind = function() { - return /** @type {!proto.google.api.MetricDescriptor.MetricKind} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.google.api.MetricDescriptor.MetricKind} value - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.setMetricKind = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional ValueType value_type = 4; - * @return {!proto.google.api.MetricDescriptor.ValueType} - */ -proto.google.api.MetricDescriptor.prototype.getValueType = function() { - return /** @type {!proto.google.api.MetricDescriptor.ValueType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.google.api.MetricDescriptor.ValueType} value - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.setValueType = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional string unit = 5; - * @return {string} - */ -proto.google.api.MetricDescriptor.prototype.getUnit = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.setUnit = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string description = 6; - * @return {string} - */ -proto.google.api.MetricDescriptor.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string display_name = 7; - * @return {string} - */ -proto.google.api.MetricDescriptor.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.setDisplayName = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional MetricDescriptorMetadata metadata = 10; - * @return {?proto.google.api.MetricDescriptor.MetricDescriptorMetadata} - */ -proto.google.api.MetricDescriptor.prototype.getMetadata = function() { - return /** @type{?proto.google.api.MetricDescriptor.MetricDescriptorMetadata} */ ( - jspb.Message.getWrapperField(this, proto.google.api.MetricDescriptor.MetricDescriptorMetadata, 10)); -}; - - -/** - * @param {?proto.google.api.MetricDescriptor.MetricDescriptorMetadata|undefined} value - * @return {!proto.google.api.MetricDescriptor} returns this -*/ -proto.google.api.MetricDescriptor.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.clearMetadata = function() { - return this.setMetadata(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.MetricDescriptor.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional LaunchStage launch_stage = 12; - * @return {!proto.google.api.LaunchStage} - */ -proto.google.api.MetricDescriptor.prototype.getLaunchStage = function() { - return /** @type {!proto.google.api.LaunchStage} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {!proto.google.api.LaunchStage} value - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.setLaunchStage = function(value) { - return jspb.Message.setProto3EnumField(this, 12, value); -}; - - -/** - * repeated string monitored_resource_types = 13; - * @return {!Array} - */ -proto.google.api.MetricDescriptor.prototype.getMonitoredResourceTypesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 13)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.setMonitoredResourceTypesList = function(value) { - return jspb.Message.setField(this, 13, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.addMonitoredResourceTypes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 13, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.clearMonitoredResourceTypesList = function() { - return this.setMonitoredResourceTypesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Metric.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Metric.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Metric} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Metric.toObject = function(includeInstance, msg) { - var f, obj = { - type: jspb.Message.getFieldWithDefault(msg, 3, ""), - labelsMap: (f = msg.getLabelsMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Metric} - */ -proto.google.api.Metric.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Metric; - return proto.google.api.Metric.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Metric} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Metric} - */ -proto.google.api.Metric.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 2: - var value = msg.getLabelsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Metric.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Metric.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Metric} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Metric.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getLabelsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string type = 3; - * @return {string} - */ -proto.google.api.Metric.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Metric} returns this - */ -proto.google.api.Metric.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * map labels = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.google.api.Metric.prototype.getLabelsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.google.api.Metric} returns this - */ -proto.google.api.Metric.prototype.clearLabelsMap = function() { - this.getLabelsMap().clear(); - return this;}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/monitored_resource_pb.d.ts b/api/grpc-web/google/api/monitored_resource_pb.d.ts deleted file mode 100644 index d48994f6..00000000 --- a/api/grpc-web/google/api/monitored_resource_pb.d.ts +++ /dev/null @@ -1,93 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_api_label_pb from '../../google/api/label_pb'; -import * as google_api_launch_stage_pb from '../../google/api/launch_stage_pb'; -import * as google_protobuf_struct_pb from 'google-protobuf/google/protobuf/struct_pb'; - - -export class MonitoredResourceDescriptor extends jspb.Message { - getName(): string; - setName(value: string): MonitoredResourceDescriptor; - - getType(): string; - setType(value: string): MonitoredResourceDescriptor; - - getDisplayName(): string; - setDisplayName(value: string): MonitoredResourceDescriptor; - - getDescription(): string; - setDescription(value: string): MonitoredResourceDescriptor; - - getLabelsList(): Array; - setLabelsList(value: Array): MonitoredResourceDescriptor; - clearLabelsList(): MonitoredResourceDescriptor; - addLabels(value?: google_api_label_pb.LabelDescriptor, index?: number): google_api_label_pb.LabelDescriptor; - - getLaunchStage(): google_api_launch_stage_pb.LaunchStage; - setLaunchStage(value: google_api_launch_stage_pb.LaunchStage): MonitoredResourceDescriptor; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MonitoredResourceDescriptor.AsObject; - static toObject(includeInstance: boolean, msg: MonitoredResourceDescriptor): MonitoredResourceDescriptor.AsObject; - static serializeBinaryToWriter(message: MonitoredResourceDescriptor, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MonitoredResourceDescriptor; - static deserializeBinaryFromReader(message: MonitoredResourceDescriptor, reader: jspb.BinaryReader): MonitoredResourceDescriptor; -} - -export namespace MonitoredResourceDescriptor { - export type AsObject = { - name: string, - type: string, - displayName: string, - description: string, - labelsList: Array, - launchStage: google_api_launch_stage_pb.LaunchStage, - } -} - -export class MonitoredResource extends jspb.Message { - getType(): string; - setType(value: string): MonitoredResource; - - getLabelsMap(): jspb.Map; - clearLabelsMap(): MonitoredResource; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MonitoredResource.AsObject; - static toObject(includeInstance: boolean, msg: MonitoredResource): MonitoredResource.AsObject; - static serializeBinaryToWriter(message: MonitoredResource, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MonitoredResource; - static deserializeBinaryFromReader(message: MonitoredResource, reader: jspb.BinaryReader): MonitoredResource; -} - -export namespace MonitoredResource { - export type AsObject = { - type: string, - labelsMap: Array<[string, string]>, - } -} - -export class MonitoredResourceMetadata extends jspb.Message { - getSystemLabels(): google_protobuf_struct_pb.Struct | undefined; - setSystemLabels(value?: google_protobuf_struct_pb.Struct): MonitoredResourceMetadata; - hasSystemLabels(): boolean; - clearSystemLabels(): MonitoredResourceMetadata; - - getUserLabelsMap(): jspb.Map; - clearUserLabelsMap(): MonitoredResourceMetadata; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MonitoredResourceMetadata.AsObject; - static toObject(includeInstance: boolean, msg: MonitoredResourceMetadata): MonitoredResourceMetadata.AsObject; - static serializeBinaryToWriter(message: MonitoredResourceMetadata, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MonitoredResourceMetadata; - static deserializeBinaryFromReader(message: MonitoredResourceMetadata, reader: jspb.BinaryReader): MonitoredResourceMetadata; -} - -export namespace MonitoredResourceMetadata { - export type AsObject = { - systemLabels?: google_protobuf_struct_pb.Struct.AsObject, - userLabelsMap: Array<[string, string]>, - } -} - diff --git a/api/grpc-web/google/api/monitored_resource_pb.js b/api/grpc-web/google/api/monitored_resource_pb.js deleted file mode 100644 index ffdfa4cb..00000000 --- a/api/grpc-web/google/api/monitored_resource_pb.js +++ /dev/null @@ -1,744 +0,0 @@ -// source: google/api/monitored_resource.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_label_pb = require('../../google/api/label_pb.js'); -goog.object.extend(proto, google_api_label_pb); -var google_api_launch_stage_pb = require('../../google/api/launch_stage_pb.js'); -goog.object.extend(proto, google_api_launch_stage_pb); -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); -goog.object.extend(proto, google_protobuf_struct_pb); -goog.exportSymbol('proto.google.api.MonitoredResource', null, global); -goog.exportSymbol('proto.google.api.MonitoredResourceDescriptor', null, global); -goog.exportSymbol('proto.google.api.MonitoredResourceMetadata', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.MonitoredResourceDescriptor = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.MonitoredResourceDescriptor.repeatedFields_, null); -}; -goog.inherits(proto.google.api.MonitoredResourceDescriptor, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.MonitoredResourceDescriptor.displayName = 'proto.google.api.MonitoredResourceDescriptor'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.MonitoredResource = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.MonitoredResource, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.MonitoredResource.displayName = 'proto.google.api.MonitoredResource'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.MonitoredResourceMetadata = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.MonitoredResourceMetadata, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.MonitoredResourceMetadata.displayName = 'proto.google.api.MonitoredResourceMetadata'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.MonitoredResourceDescriptor.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.MonitoredResourceDescriptor.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.MonitoredResourceDescriptor.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.MonitoredResourceDescriptor} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MonitoredResourceDescriptor.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 5, ""), - type: jspb.Message.getFieldWithDefault(msg, 1, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - labelsList: jspb.Message.toObjectList(msg.getLabelsList(), - google_api_label_pb.LabelDescriptor.toObject, includeInstance), - launchStage: jspb.Message.getFieldWithDefault(msg, 7, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.MonitoredResourceDescriptor} - */ -proto.google.api.MonitoredResourceDescriptor.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.MonitoredResourceDescriptor; - return proto.google.api.MonitoredResourceDescriptor.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.MonitoredResourceDescriptor} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.MonitoredResourceDescriptor} - */ -proto.google.api.MonitoredResourceDescriptor.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = new google_api_label_pb.LabelDescriptor; - reader.readMessage(value,google_api_label_pb.LabelDescriptor.deserializeBinaryFromReader); - msg.addLabels(value); - break; - case 7: - var value = /** @type {!proto.google.api.LaunchStage} */ (reader.readEnum()); - msg.setLaunchStage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.MonitoredResourceDescriptor.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.MonitoredResourceDescriptor.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.MonitoredResourceDescriptor} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MonitoredResourceDescriptor.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getLabelsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - google_api_label_pb.LabelDescriptor.serializeBinaryToWriter - ); - } - f = message.getLaunchStage(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } -}; - - -/** - * optional string name = 5; - * @return {string} - */ -proto.google.api.MonitoredResourceDescriptor.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MonitoredResourceDescriptor} returns this - */ -proto.google.api.MonitoredResourceDescriptor.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string type = 1; - * @return {string} - */ -proto.google.api.MonitoredResourceDescriptor.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MonitoredResourceDescriptor} returns this - */ -proto.google.api.MonitoredResourceDescriptor.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string display_name = 2; - * @return {string} - */ -proto.google.api.MonitoredResourceDescriptor.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MonitoredResourceDescriptor} returns this - */ -proto.google.api.MonitoredResourceDescriptor.prototype.setDisplayName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.google.api.MonitoredResourceDescriptor.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MonitoredResourceDescriptor} returns this - */ -proto.google.api.MonitoredResourceDescriptor.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated LabelDescriptor labels = 4; - * @return {!Array} - */ -proto.google.api.MonitoredResourceDescriptor.prototype.getLabelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_api_label_pb.LabelDescriptor, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.MonitoredResourceDescriptor} returns this -*/ -proto.google.api.MonitoredResourceDescriptor.prototype.setLabelsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.google.api.LabelDescriptor=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.LabelDescriptor} - */ -proto.google.api.MonitoredResourceDescriptor.prototype.addLabels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.api.LabelDescriptor, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.MonitoredResourceDescriptor} returns this - */ -proto.google.api.MonitoredResourceDescriptor.prototype.clearLabelsList = function() { - return this.setLabelsList([]); -}; - - -/** - * optional LaunchStage launch_stage = 7; - * @return {!proto.google.api.LaunchStage} - */ -proto.google.api.MonitoredResourceDescriptor.prototype.getLaunchStage = function() { - return /** @type {!proto.google.api.LaunchStage} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.google.api.LaunchStage} value - * @return {!proto.google.api.MonitoredResourceDescriptor} returns this - */ -proto.google.api.MonitoredResourceDescriptor.prototype.setLaunchStage = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.MonitoredResource.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.MonitoredResource.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.MonitoredResource} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MonitoredResource.toObject = function(includeInstance, msg) { - var f, obj = { - type: jspb.Message.getFieldWithDefault(msg, 1, ""), - labelsMap: (f = msg.getLabelsMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.MonitoredResource} - */ -proto.google.api.MonitoredResource.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.MonitoredResource; - return proto.google.api.MonitoredResource.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.MonitoredResource} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.MonitoredResource} - */ -proto.google.api.MonitoredResource.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 2: - var value = msg.getLabelsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.MonitoredResource.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.MonitoredResource.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.MonitoredResource} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MonitoredResource.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLabelsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string type = 1; - * @return {string} - */ -proto.google.api.MonitoredResource.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MonitoredResource} returns this - */ -proto.google.api.MonitoredResource.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * map labels = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.google.api.MonitoredResource.prototype.getLabelsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.google.api.MonitoredResource} returns this - */ -proto.google.api.MonitoredResource.prototype.clearLabelsMap = function() { - this.getLabelsMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.MonitoredResourceMetadata.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.MonitoredResourceMetadata.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.MonitoredResourceMetadata} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MonitoredResourceMetadata.toObject = function(includeInstance, msg) { - var f, obj = { - systemLabels: (f = msg.getSystemLabels()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - userLabelsMap: (f = msg.getUserLabelsMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.MonitoredResourceMetadata} - */ -proto.google.api.MonitoredResourceMetadata.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.MonitoredResourceMetadata; - return proto.google.api.MonitoredResourceMetadata.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.MonitoredResourceMetadata} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.MonitoredResourceMetadata} - */ -proto.google.api.MonitoredResourceMetadata.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setSystemLabels(value); - break; - case 2: - var value = msg.getUserLabelsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.MonitoredResourceMetadata.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.MonitoredResourceMetadata.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.MonitoredResourceMetadata} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MonitoredResourceMetadata.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSystemLabels(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getUserLabelsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional google.protobuf.Struct system_labels = 1; - * @return {?proto.google.protobuf.Struct} - */ -proto.google.api.MonitoredResourceMetadata.prototype.getSystemLabels = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.google.api.MonitoredResourceMetadata} returns this -*/ -proto.google.api.MonitoredResourceMetadata.prototype.setSystemLabels = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.MonitoredResourceMetadata} returns this - */ -proto.google.api.MonitoredResourceMetadata.prototype.clearSystemLabels = function() { - return this.setSystemLabels(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.MonitoredResourceMetadata.prototype.hasSystemLabels = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * map user_labels = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.google.api.MonitoredResourceMetadata.prototype.getUserLabelsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.google.api.MonitoredResourceMetadata} returns this - */ -proto.google.api.MonitoredResourceMetadata.prototype.clearUserLabelsMap = function() { - this.getUserLabelsMap().clear(); - return this;}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/monitoring_pb.d.ts b/api/grpc-web/google/api/monitoring_pb.d.ts deleted file mode 100644 index 625ee135..00000000 --- a/api/grpc-web/google/api/monitoring_pb.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export class Monitoring extends jspb.Message { - getProducerDestinationsList(): Array; - setProducerDestinationsList(value: Array): Monitoring; - clearProducerDestinationsList(): Monitoring; - addProducerDestinations(value?: Monitoring.MonitoringDestination, index?: number): Monitoring.MonitoringDestination; - - getConsumerDestinationsList(): Array; - setConsumerDestinationsList(value: Array): Monitoring; - clearConsumerDestinationsList(): Monitoring; - addConsumerDestinations(value?: Monitoring.MonitoringDestination, index?: number): Monitoring.MonitoringDestination; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Monitoring.AsObject; - static toObject(includeInstance: boolean, msg: Monitoring): Monitoring.AsObject; - static serializeBinaryToWriter(message: Monitoring, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Monitoring; - static deserializeBinaryFromReader(message: Monitoring, reader: jspb.BinaryReader): Monitoring; -} - -export namespace Monitoring { - export type AsObject = { - producerDestinationsList: Array, - consumerDestinationsList: Array, - } - - export class MonitoringDestination extends jspb.Message { - getMonitoredResource(): string; - setMonitoredResource(value: string): MonitoringDestination; - - getMetricsList(): Array; - setMetricsList(value: Array): MonitoringDestination; - clearMetricsList(): MonitoringDestination; - addMetrics(value: string, index?: number): MonitoringDestination; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MonitoringDestination.AsObject; - static toObject(includeInstance: boolean, msg: MonitoringDestination): MonitoringDestination.AsObject; - static serializeBinaryToWriter(message: MonitoringDestination, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MonitoringDestination; - static deserializeBinaryFromReader(message: MonitoringDestination, reader: jspb.BinaryReader): MonitoringDestination; - } - - export namespace MonitoringDestination { - export type AsObject = { - monitoredResource: string, - metricsList: Array, - } - } - -} - diff --git a/api/grpc-web/google/api/monitoring_pb.js b/api/grpc-web/google/api/monitoring_pb.js deleted file mode 100644 index e1c60ad0..00000000 --- a/api/grpc-web/google/api/monitoring_pb.js +++ /dev/null @@ -1,458 +0,0 @@ -// source: google/api/monitoring.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Monitoring', null, global); -goog.exportSymbol('proto.google.api.Monitoring.MonitoringDestination', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Monitoring = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Monitoring.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Monitoring, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Monitoring.displayName = 'proto.google.api.Monitoring'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Monitoring.MonitoringDestination = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Monitoring.MonitoringDestination.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Monitoring.MonitoringDestination, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Monitoring.MonitoringDestination.displayName = 'proto.google.api.Monitoring.MonitoringDestination'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Monitoring.repeatedFields_ = [1,2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Monitoring.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Monitoring.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Monitoring} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Monitoring.toObject = function(includeInstance, msg) { - var f, obj = { - producerDestinationsList: jspb.Message.toObjectList(msg.getProducerDestinationsList(), - proto.google.api.Monitoring.MonitoringDestination.toObject, includeInstance), - consumerDestinationsList: jspb.Message.toObjectList(msg.getConsumerDestinationsList(), - proto.google.api.Monitoring.MonitoringDestination.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Monitoring} - */ -proto.google.api.Monitoring.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Monitoring; - return proto.google.api.Monitoring.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Monitoring} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Monitoring} - */ -proto.google.api.Monitoring.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.Monitoring.MonitoringDestination; - reader.readMessage(value,proto.google.api.Monitoring.MonitoringDestination.deserializeBinaryFromReader); - msg.addProducerDestinations(value); - break; - case 2: - var value = new proto.google.api.Monitoring.MonitoringDestination; - reader.readMessage(value,proto.google.api.Monitoring.MonitoringDestination.deserializeBinaryFromReader); - msg.addConsumerDestinations(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Monitoring.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Monitoring.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Monitoring} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Monitoring.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProducerDestinationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.api.Monitoring.MonitoringDestination.serializeBinaryToWriter - ); - } - f = message.getConsumerDestinationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.google.api.Monitoring.MonitoringDestination.serializeBinaryToWriter - ); - } -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Monitoring.MonitoringDestination.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Monitoring.MonitoringDestination.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Monitoring.MonitoringDestination.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Monitoring.MonitoringDestination} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Monitoring.MonitoringDestination.toObject = function(includeInstance, msg) { - var f, obj = { - monitoredResource: jspb.Message.getFieldWithDefault(msg, 1, ""), - metricsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Monitoring.MonitoringDestination} - */ -proto.google.api.Monitoring.MonitoringDestination.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Monitoring.MonitoringDestination; - return proto.google.api.Monitoring.MonitoringDestination.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Monitoring.MonitoringDestination} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Monitoring.MonitoringDestination} - */ -proto.google.api.Monitoring.MonitoringDestination.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMonitoredResource(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addMetrics(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Monitoring.MonitoringDestination.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Monitoring.MonitoringDestination.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Monitoring.MonitoringDestination} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Monitoring.MonitoringDestination.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMonitoredResource(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMetricsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } -}; - - -/** - * optional string monitored_resource = 1; - * @return {string} - */ -proto.google.api.Monitoring.MonitoringDestination.prototype.getMonitoredResource = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Monitoring.MonitoringDestination} returns this - */ -proto.google.api.Monitoring.MonitoringDestination.prototype.setMonitoredResource = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string metrics = 2; - * @return {!Array} - */ -proto.google.api.Monitoring.MonitoringDestination.prototype.getMetricsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Monitoring.MonitoringDestination} returns this - */ -proto.google.api.Monitoring.MonitoringDestination.prototype.setMetricsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.Monitoring.MonitoringDestination} returns this - */ -proto.google.api.Monitoring.MonitoringDestination.prototype.addMetrics = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Monitoring.MonitoringDestination} returns this - */ -proto.google.api.Monitoring.MonitoringDestination.prototype.clearMetricsList = function() { - return this.setMetricsList([]); -}; - - -/** - * repeated MonitoringDestination producer_destinations = 1; - * @return {!Array} - */ -proto.google.api.Monitoring.prototype.getProducerDestinationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Monitoring.MonitoringDestination, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Monitoring} returns this -*/ -proto.google.api.Monitoring.prototype.setProducerDestinationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.api.Monitoring.MonitoringDestination=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Monitoring.MonitoringDestination} - */ -proto.google.api.Monitoring.prototype.addProducerDestinations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.Monitoring.MonitoringDestination, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Monitoring} returns this - */ -proto.google.api.Monitoring.prototype.clearProducerDestinationsList = function() { - return this.setProducerDestinationsList([]); -}; - - -/** - * repeated MonitoringDestination consumer_destinations = 2; - * @return {!Array} - */ -proto.google.api.Monitoring.prototype.getConsumerDestinationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Monitoring.MonitoringDestination, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Monitoring} returns this -*/ -proto.google.api.Monitoring.prototype.setConsumerDestinationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.api.Monitoring.MonitoringDestination=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Monitoring.MonitoringDestination} - */ -proto.google.api.Monitoring.prototype.addConsumerDestinations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.Monitoring.MonitoringDestination, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Monitoring} returns this - */ -proto.google.api.Monitoring.prototype.clearConsumerDestinationsList = function() { - return this.setConsumerDestinationsList([]); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/quota_pb.d.ts b/api/grpc-web/google/api/quota_pb.d.ts deleted file mode 100644 index d52a6f81..00000000 --- a/api/grpc-web/google/api/quota_pb.d.ts +++ /dev/null @@ -1,106 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export class Quota extends jspb.Message { - getLimitsList(): Array; - setLimitsList(value: Array): Quota; - clearLimitsList(): Quota; - addLimits(value?: QuotaLimit, index?: number): QuotaLimit; - - getMetricRulesList(): Array; - setMetricRulesList(value: Array): Quota; - clearMetricRulesList(): Quota; - addMetricRules(value?: MetricRule, index?: number): MetricRule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Quota.AsObject; - static toObject(includeInstance: boolean, msg: Quota): Quota.AsObject; - static serializeBinaryToWriter(message: Quota, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Quota; - static deserializeBinaryFromReader(message: Quota, reader: jspb.BinaryReader): Quota; -} - -export namespace Quota { - export type AsObject = { - limitsList: Array, - metricRulesList: Array, - } -} - -export class MetricRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): MetricRule; - - getMetricCostsMap(): jspb.Map; - clearMetricCostsMap(): MetricRule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MetricRule.AsObject; - static toObject(includeInstance: boolean, msg: MetricRule): MetricRule.AsObject; - static serializeBinaryToWriter(message: MetricRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MetricRule; - static deserializeBinaryFromReader(message: MetricRule, reader: jspb.BinaryReader): MetricRule; -} - -export namespace MetricRule { - export type AsObject = { - selector: string, - metricCostsMap: Array<[string, number]>, - } -} - -export class QuotaLimit extends jspb.Message { - getName(): string; - setName(value: string): QuotaLimit; - - getDescription(): string; - setDescription(value: string): QuotaLimit; - - getDefaultLimit(): number; - setDefaultLimit(value: number): QuotaLimit; - - getMaxLimit(): number; - setMaxLimit(value: number): QuotaLimit; - - getFreeTier(): number; - setFreeTier(value: number): QuotaLimit; - - getDuration(): string; - setDuration(value: string): QuotaLimit; - - getMetric(): string; - setMetric(value: string): QuotaLimit; - - getUnit(): string; - setUnit(value: string): QuotaLimit; - - getValuesMap(): jspb.Map; - clearValuesMap(): QuotaLimit; - - getDisplayName(): string; - setDisplayName(value: string): QuotaLimit; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QuotaLimit.AsObject; - static toObject(includeInstance: boolean, msg: QuotaLimit): QuotaLimit.AsObject; - static serializeBinaryToWriter(message: QuotaLimit, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QuotaLimit; - static deserializeBinaryFromReader(message: QuotaLimit, reader: jspb.BinaryReader): QuotaLimit; -} - -export namespace QuotaLimit { - export type AsObject = { - name: string, - description: string, - defaultLimit: number, - maxLimit: number, - freeTier: number, - duration: string, - metric: string, - unit: string, - valuesMap: Array<[string, number]>, - displayName: string, - } -} - diff --git a/api/grpc-web/google/api/quota_pb.js b/api/grpc-web/google/api/quota_pb.js deleted file mode 100644 index 532ac566..00000000 --- a/api/grpc-web/google/api/quota_pb.js +++ /dev/null @@ -1,860 +0,0 @@ -// source: google/api/quota.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.MetricRule', null, global); -goog.exportSymbol('proto.google.api.Quota', null, global); -goog.exportSymbol('proto.google.api.QuotaLimit', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Quota = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Quota.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Quota, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Quota.displayName = 'proto.google.api.Quota'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.MetricRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.MetricRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.MetricRule.displayName = 'proto.google.api.MetricRule'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.QuotaLimit = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.QuotaLimit, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.QuotaLimit.displayName = 'proto.google.api.QuotaLimit'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Quota.repeatedFields_ = [3,4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Quota.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Quota.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Quota} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Quota.toObject = function(includeInstance, msg) { - var f, obj = { - limitsList: jspb.Message.toObjectList(msg.getLimitsList(), - proto.google.api.QuotaLimit.toObject, includeInstance), - metricRulesList: jspb.Message.toObjectList(msg.getMetricRulesList(), - proto.google.api.MetricRule.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Quota} - */ -proto.google.api.Quota.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Quota; - return proto.google.api.Quota.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Quota} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Quota} - */ -proto.google.api.Quota.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 3: - var value = new proto.google.api.QuotaLimit; - reader.readMessage(value,proto.google.api.QuotaLimit.deserializeBinaryFromReader); - msg.addLimits(value); - break; - case 4: - var value = new proto.google.api.MetricRule; - reader.readMessage(value,proto.google.api.MetricRule.deserializeBinaryFromReader); - msg.addMetricRules(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Quota.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Quota.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Quota} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Quota.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimitsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.google.api.QuotaLimit.serializeBinaryToWriter - ); - } - f = message.getMetricRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.google.api.MetricRule.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated QuotaLimit limits = 3; - * @return {!Array} - */ -proto.google.api.Quota.prototype.getLimitsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.QuotaLimit, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Quota} returns this -*/ -proto.google.api.Quota.prototype.setLimitsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.google.api.QuotaLimit=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.QuotaLimit} - */ -proto.google.api.Quota.prototype.addLimits = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.QuotaLimit, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Quota} returns this - */ -proto.google.api.Quota.prototype.clearLimitsList = function() { - return this.setLimitsList([]); -}; - - -/** - * repeated MetricRule metric_rules = 4; - * @return {!Array} - */ -proto.google.api.Quota.prototype.getMetricRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.MetricRule, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Quota} returns this -*/ -proto.google.api.Quota.prototype.setMetricRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.google.api.MetricRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.MetricRule} - */ -proto.google.api.Quota.prototype.addMetricRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.api.MetricRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Quota} returns this - */ -proto.google.api.Quota.prototype.clearMetricRulesList = function() { - return this.setMetricRulesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.MetricRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.MetricRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.MetricRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MetricRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - metricCostsMap: (f = msg.getMetricCostsMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.MetricRule} - */ -proto.google.api.MetricRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.MetricRule; - return proto.google.api.MetricRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.MetricRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.MetricRule} - */ -proto.google.api.MetricRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = msg.getMetricCostsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readInt64, null, "", 0); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.MetricRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.MetricRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.MetricRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MetricRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMetricCostsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeInt64); - } -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.MetricRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MetricRule} returns this - */ -proto.google.api.MetricRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * map metric_costs = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.google.api.MetricRule.prototype.getMetricCostsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.google.api.MetricRule} returns this - */ -proto.google.api.MetricRule.prototype.clearMetricCostsMap = function() { - this.getMetricCostsMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.QuotaLimit.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.QuotaLimit.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.QuotaLimit} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.QuotaLimit.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 6, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - defaultLimit: jspb.Message.getFieldWithDefault(msg, 3, 0), - maxLimit: jspb.Message.getFieldWithDefault(msg, 4, 0), - freeTier: jspb.Message.getFieldWithDefault(msg, 7, 0), - duration: jspb.Message.getFieldWithDefault(msg, 5, ""), - metric: jspb.Message.getFieldWithDefault(msg, 8, ""), - unit: jspb.Message.getFieldWithDefault(msg, 9, ""), - valuesMap: (f = msg.getValuesMap()) ? f.toObject(includeInstance, undefined) : [], - displayName: jspb.Message.getFieldWithDefault(msg, 12, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.QuotaLimit} - */ -proto.google.api.QuotaLimit.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.QuotaLimit; - return proto.google.api.QuotaLimit.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.QuotaLimit} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.QuotaLimit} - */ -proto.google.api.QuotaLimit.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setDefaultLimit(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setMaxLimit(value); - break; - case 7: - var value = /** @type {number} */ (reader.readInt64()); - msg.setFreeTier(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDuration(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setMetric(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setUnit(value); - break; - case 10: - var value = msg.getValuesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readInt64, null, "", 0); - }); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.QuotaLimit.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.QuotaLimit.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.QuotaLimit} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.QuotaLimit.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDefaultLimit(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getMaxLimit(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } - f = message.getFreeTier(); - if (f !== 0) { - writer.writeInt64( - 7, - f - ); - } - f = message.getDuration(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getMetric(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getUnit(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getValuesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(10, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeInt64); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } -}; - - -/** - * optional string name = 6; - * @return {string} - */ -proto.google.api.QuotaLimit.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.google.api.QuotaLimit.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional int64 default_limit = 3; - * @return {number} - */ -proto.google.api.QuotaLimit.prototype.getDefaultLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.setDefaultLimit = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional int64 max_limit = 4; - * @return {number} - */ -proto.google.api.QuotaLimit.prototype.getMaxLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.setMaxLimit = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional int64 free_tier = 7; - * @return {number} - */ -proto.google.api.QuotaLimit.prototype.getFreeTier = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.setFreeTier = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional string duration = 5; - * @return {string} - */ -proto.google.api.QuotaLimit.prototype.getDuration = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.setDuration = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string metric = 8; - * @return {string} - */ -proto.google.api.QuotaLimit.prototype.getMetric = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.setMetric = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string unit = 9; - * @return {string} - */ -proto.google.api.QuotaLimit.prototype.getUnit = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.setUnit = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * map values = 10; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.google.api.QuotaLimit.prototype.getValuesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 10, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.clearValuesMap = function() { - this.getValuesMap().clear(); - return this;}; - - -/** - * optional string display_name = 12; - * @return {string} - */ -proto.google.api.QuotaLimit.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.setDisplayName = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/resource_pb.d.ts b/api/grpc-web/google/api/resource_pb.d.ts deleted file mode 100644 index 1bb9cb78..00000000 --- a/api/grpc-web/google/api/resource_pb.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb'; - - -export class ResourceDescriptor extends jspb.Message { - getType(): string; - setType(value: string): ResourceDescriptor; - - getPatternList(): Array; - setPatternList(value: Array): ResourceDescriptor; - clearPatternList(): ResourceDescriptor; - addPattern(value: string, index?: number): ResourceDescriptor; - - getNameField(): string; - setNameField(value: string): ResourceDescriptor; - - getHistory(): ResourceDescriptor.History; - setHistory(value: ResourceDescriptor.History): ResourceDescriptor; - - getPlural(): string; - setPlural(value: string): ResourceDescriptor; - - getSingular(): string; - setSingular(value: string): ResourceDescriptor; - - getStyleList(): Array; - setStyleList(value: Array): ResourceDescriptor; - clearStyleList(): ResourceDescriptor; - addStyle(value: ResourceDescriptor.Style, index?: number): ResourceDescriptor; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResourceDescriptor.AsObject; - static toObject(includeInstance: boolean, msg: ResourceDescriptor): ResourceDescriptor.AsObject; - static serializeBinaryToWriter(message: ResourceDescriptor, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResourceDescriptor; - static deserializeBinaryFromReader(message: ResourceDescriptor, reader: jspb.BinaryReader): ResourceDescriptor; -} - -export namespace ResourceDescriptor { - export type AsObject = { - type: string, - patternList: Array, - nameField: string, - history: ResourceDescriptor.History, - plural: string, - singular: string, - styleList: Array, - } - - export enum History { - HISTORY_UNSPECIFIED = 0, - ORIGINALLY_SINGLE_PATTERN = 1, - FUTURE_MULTI_PATTERN = 2, - } - - export enum Style { - STYLE_UNSPECIFIED = 0, - DECLARATIVE_FRIENDLY = 1, - } -} - -export class ResourceReference extends jspb.Message { - getType(): string; - setType(value: string): ResourceReference; - - getChildType(): string; - setChildType(value: string): ResourceReference; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResourceReference.AsObject; - static toObject(includeInstance: boolean, msg: ResourceReference): ResourceReference.AsObject; - static serializeBinaryToWriter(message: ResourceReference, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResourceReference; - static deserializeBinaryFromReader(message: ResourceReference, reader: jspb.BinaryReader): ResourceReference; -} - -export namespace ResourceReference { - export type AsObject = { - type: string, - childType: string, - } -} - diff --git a/api/grpc-web/google/api/resource_pb.js b/api/grpc-web/google/api/resource_pb.js deleted file mode 100644 index e36cc908..00000000 --- a/api/grpc-web/google/api/resource_pb.js +++ /dev/null @@ -1,673 +0,0 @@ -// source: google/api/resource.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); -goog.object.extend(proto, google_protobuf_descriptor_pb); -goog.exportSymbol('proto.google.api.ResourceDescriptor', null, global); -goog.exportSymbol('proto.google.api.ResourceDescriptor.History', null, global); -goog.exportSymbol('proto.google.api.ResourceDescriptor.Style', null, global); -goog.exportSymbol('proto.google.api.ResourceReference', null, global); -goog.exportSymbol('proto.google.api.resource', null, global); -goog.exportSymbol('proto.google.api.resourceDefinitionList', null, global); -goog.exportSymbol('proto.google.api.resourceReference', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.ResourceDescriptor = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.ResourceDescriptor.repeatedFields_, null); -}; -goog.inherits(proto.google.api.ResourceDescriptor, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.ResourceDescriptor.displayName = 'proto.google.api.ResourceDescriptor'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.ResourceReference = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.ResourceReference, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.ResourceReference.displayName = 'proto.google.api.ResourceReference'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.ResourceDescriptor.repeatedFields_ = [2,10]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.ResourceDescriptor.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.ResourceDescriptor.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.ResourceDescriptor} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ResourceDescriptor.toObject = function(includeInstance, msg) { - var f, obj = { - type: jspb.Message.getFieldWithDefault(msg, 1, ""), - patternList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - nameField: jspb.Message.getFieldWithDefault(msg, 3, ""), - history: jspb.Message.getFieldWithDefault(msg, 4, 0), - plural: jspb.Message.getFieldWithDefault(msg, 5, ""), - singular: jspb.Message.getFieldWithDefault(msg, 6, ""), - styleList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.ResourceDescriptor} - */ -proto.google.api.ResourceDescriptor.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.ResourceDescriptor; - return proto.google.api.ResourceDescriptor.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.ResourceDescriptor} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.ResourceDescriptor} - */ -proto.google.api.ResourceDescriptor.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addPattern(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setNameField(value); - break; - case 4: - var value = /** @type {!proto.google.api.ResourceDescriptor.History} */ (reader.readEnum()); - msg.setHistory(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setPlural(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setSingular(value); - break; - case 10: - var value = /** @type {!Array} */ (reader.readPackedEnum()); - msg.setStyleList(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.ResourceDescriptor.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.ResourceDescriptor.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.ResourceDescriptor} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ResourceDescriptor.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPatternList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getNameField(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getHistory(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getPlural(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getSingular(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getStyleList(); - if (f.length > 0) { - writer.writePackedEnum( - 10, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.google.api.ResourceDescriptor.History = { - HISTORY_UNSPECIFIED: 0, - ORIGINALLY_SINGLE_PATTERN: 1, - FUTURE_MULTI_PATTERN: 2 -}; - -/** - * @enum {number} - */ -proto.google.api.ResourceDescriptor.Style = { - STYLE_UNSPECIFIED: 0, - DECLARATIVE_FRIENDLY: 1 -}; - -/** - * optional string type = 1; - * @return {string} - */ -proto.google.api.ResourceDescriptor.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string pattern = 2; - * @return {!Array} - */ -proto.google.api.ResourceDescriptor.prototype.getPatternList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.setPatternList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.addPattern = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.clearPatternList = function() { - return this.setPatternList([]); -}; - - -/** - * optional string name_field = 3; - * @return {string} - */ -proto.google.api.ResourceDescriptor.prototype.getNameField = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.setNameField = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional History history = 4; - * @return {!proto.google.api.ResourceDescriptor.History} - */ -proto.google.api.ResourceDescriptor.prototype.getHistory = function() { - return /** @type {!proto.google.api.ResourceDescriptor.History} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.google.api.ResourceDescriptor.History} value - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.setHistory = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional string plural = 5; - * @return {string} - */ -proto.google.api.ResourceDescriptor.prototype.getPlural = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.setPlural = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string singular = 6; - * @return {string} - */ -proto.google.api.ResourceDescriptor.prototype.getSingular = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.setSingular = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * repeated Style style = 10; - * @return {!Array} - */ -proto.google.api.ResourceDescriptor.prototype.getStyleList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 10)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.setStyleList = function(value) { - return jspb.Message.setField(this, 10, value || []); -}; - - -/** - * @param {!proto.google.api.ResourceDescriptor.Style} value - * @param {number=} opt_index - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.addStyle = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 10, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.clearStyleList = function() { - return this.setStyleList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.ResourceReference.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.ResourceReference.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.ResourceReference} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ResourceReference.toObject = function(includeInstance, msg) { - var f, obj = { - type: jspb.Message.getFieldWithDefault(msg, 1, ""), - childType: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.ResourceReference} - */ -proto.google.api.ResourceReference.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.ResourceReference; - return proto.google.api.ResourceReference.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.ResourceReference} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.ResourceReference} - */ -proto.google.api.ResourceReference.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setChildType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.ResourceReference.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.ResourceReference.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.ResourceReference} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ResourceReference.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getChildType(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string type = 1; - * @return {string} - */ -proto.google.api.ResourceReference.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ResourceReference} returns this - */ -proto.google.api.ResourceReference.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string child_type = 2; - * @return {string} - */ -proto.google.api.ResourceReference.prototype.getChildType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ResourceReference} returns this - */ -proto.google.api.ResourceReference.prototype.setChildType = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `resourceReference`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.resourceReference = new jspb.ExtensionFieldInfo( - 1055, - {resourceReference: 0}, - proto.google.api.ResourceReference, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.ResourceReference.toObject), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[1055] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.resourceReference, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - proto.google.api.ResourceReference.serializeBinaryToWriter, - proto.google.api.ResourceReference.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[1055] = proto.google.api.resourceReference; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `resourceDefinitionList`. - * @type {!jspb.ExtensionFieldInfo>} - */ -proto.google.api.resourceDefinitionList = new jspb.ExtensionFieldInfo( - 1053, - {resourceDefinitionList: 0}, - proto.google.api.ResourceDescriptor, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.ResourceDescriptor.toObject), - 1); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[1053] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.resourceDefinitionList, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeRepeatedMessage, - proto.google.api.ResourceDescriptor.serializeBinaryToWriter, - proto.google.api.ResourceDescriptor.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[1053] = proto.google.api.resourceDefinitionList; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `resource`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.resource = new jspb.ExtensionFieldInfo( - 1053, - {resource: 0}, - proto.google.api.ResourceDescriptor, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.ResourceDescriptor.toObject), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[1053] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.resource, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - proto.google.api.ResourceDescriptor.serializeBinaryToWriter, - proto.google.api.ResourceDescriptor.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[1053] = proto.google.api.resource; - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/routing_pb.d.ts b/api/grpc-web/google/api/routing_pb.d.ts deleted file mode 100644 index c7388fd0..00000000 --- a/api/grpc-web/google/api/routing_pb.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb'; - - -export class RoutingRule extends jspb.Message { - getRoutingParametersList(): Array; - setRoutingParametersList(value: Array): RoutingRule; - clearRoutingParametersList(): RoutingRule; - addRoutingParameters(value?: RoutingParameter, index?: number): RoutingParameter; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RoutingRule.AsObject; - static toObject(includeInstance: boolean, msg: RoutingRule): RoutingRule.AsObject; - static serializeBinaryToWriter(message: RoutingRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RoutingRule; - static deserializeBinaryFromReader(message: RoutingRule, reader: jspb.BinaryReader): RoutingRule; -} - -export namespace RoutingRule { - export type AsObject = { - routingParametersList: Array, - } -} - -export class RoutingParameter extends jspb.Message { - getField(): string; - setField(value: string): RoutingParameter; - - getPathTemplate(): string; - setPathTemplate(value: string): RoutingParameter; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RoutingParameter.AsObject; - static toObject(includeInstance: boolean, msg: RoutingParameter): RoutingParameter.AsObject; - static serializeBinaryToWriter(message: RoutingParameter, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RoutingParameter; - static deserializeBinaryFromReader(message: RoutingParameter, reader: jspb.BinaryReader): RoutingParameter; -} - -export namespace RoutingParameter { - export type AsObject = { - field: string, - pathTemplate: string, - } -} - diff --git a/api/grpc-web/google/api/routing_pb.js b/api/grpc-web/google/api/routing_pb.js deleted file mode 100644 index 57158434..00000000 --- a/api/grpc-web/google/api/routing_pb.js +++ /dev/null @@ -1,407 +0,0 @@ -// source: google/api/routing.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); -goog.object.extend(proto, google_protobuf_descriptor_pb); -goog.exportSymbol('proto.google.api.RoutingParameter', null, global); -goog.exportSymbol('proto.google.api.RoutingRule', null, global); -goog.exportSymbol('proto.google.api.routing', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.RoutingRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.RoutingRule.repeatedFields_, null); -}; -goog.inherits(proto.google.api.RoutingRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.RoutingRule.displayName = 'proto.google.api.RoutingRule'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.RoutingParameter = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.RoutingParameter, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.RoutingParameter.displayName = 'proto.google.api.RoutingParameter'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.RoutingRule.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.RoutingRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.RoutingRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.RoutingRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.RoutingRule.toObject = function(includeInstance, msg) { - var f, obj = { - routingParametersList: jspb.Message.toObjectList(msg.getRoutingParametersList(), - proto.google.api.RoutingParameter.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.RoutingRule} - */ -proto.google.api.RoutingRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.RoutingRule; - return proto.google.api.RoutingRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.RoutingRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.RoutingRule} - */ -proto.google.api.RoutingRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = new proto.google.api.RoutingParameter; - reader.readMessage(value,proto.google.api.RoutingParameter.deserializeBinaryFromReader); - msg.addRoutingParameters(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.RoutingRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.RoutingRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.RoutingRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.RoutingRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRoutingParametersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.google.api.RoutingParameter.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated RoutingParameter routing_parameters = 2; - * @return {!Array} - */ -proto.google.api.RoutingRule.prototype.getRoutingParametersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.RoutingParameter, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.RoutingRule} returns this -*/ -proto.google.api.RoutingRule.prototype.setRoutingParametersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.api.RoutingParameter=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.RoutingParameter} - */ -proto.google.api.RoutingRule.prototype.addRoutingParameters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.RoutingParameter, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.RoutingRule} returns this - */ -proto.google.api.RoutingRule.prototype.clearRoutingParametersList = function() { - return this.setRoutingParametersList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.RoutingParameter.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.RoutingParameter.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.RoutingParameter} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.RoutingParameter.toObject = function(includeInstance, msg) { - var f, obj = { - field: jspb.Message.getFieldWithDefault(msg, 1, ""), - pathTemplate: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.RoutingParameter} - */ -proto.google.api.RoutingParameter.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.RoutingParameter; - return proto.google.api.RoutingParameter.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.RoutingParameter} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.RoutingParameter} - */ -proto.google.api.RoutingParameter.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setField(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPathTemplate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.RoutingParameter.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.RoutingParameter.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.RoutingParameter} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.RoutingParameter.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getField(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPathTemplate(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string field = 1; - * @return {string} - */ -proto.google.api.RoutingParameter.prototype.getField = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.RoutingParameter} returns this - */ -proto.google.api.RoutingParameter.prototype.setField = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path_template = 2; - * @return {string} - */ -proto.google.api.RoutingParameter.prototype.getPathTemplate = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.RoutingParameter} returns this - */ -proto.google.api.RoutingParameter.prototype.setPathTemplate = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `routing`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.routing = new jspb.ExtensionFieldInfo( - 72295729, - {routing: 0}, - proto.google.api.RoutingRule, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.RoutingRule.toObject), - 0); - -google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295729] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.routing, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - proto.google.api.RoutingRule.serializeBinaryToWriter, - proto.google.api.RoutingRule.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MethodOptions.extensions[72295729] = proto.google.api.routing; - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/service_pb.d.ts b/api/grpc-web/google/api/service_pb.d.ts deleted file mode 100644 index 6c39c001..00000000 --- a/api/grpc-web/google/api/service_pb.d.ts +++ /dev/null @@ -1,187 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_api_auth_pb from '../../google/api/auth_pb'; -import * as google_api_backend_pb from '../../google/api/backend_pb'; -import * as google_api_billing_pb from '../../google/api/billing_pb'; -import * as google_api_client_pb from '../../google/api/client_pb'; -import * as google_api_context_pb from '../../google/api/context_pb'; -import * as google_api_control_pb from '../../google/api/control_pb'; -import * as google_api_documentation_pb from '../../google/api/documentation_pb'; -import * as google_api_endpoint_pb from '../../google/api/endpoint_pb'; -import * as google_api_http_pb from '../../google/api/http_pb'; -import * as google_api_log_pb from '../../google/api/log_pb'; -import * as google_api_logging_pb from '../../google/api/logging_pb'; -import * as google_api_metric_pb from '../../google/api/metric_pb'; -import * as google_api_monitored_resource_pb from '../../google/api/monitored_resource_pb'; -import * as google_api_monitoring_pb from '../../google/api/monitoring_pb'; -import * as google_api_quota_pb from '../../google/api/quota_pb'; -import * as google_api_source_info_pb from '../../google/api/source_info_pb'; -import * as google_api_system_parameter_pb from '../../google/api/system_parameter_pb'; -import * as google_api_usage_pb from '../../google/api/usage_pb'; -import * as google_protobuf_api_pb from 'google-protobuf/google/protobuf/api_pb'; -import * as google_protobuf_type_pb from 'google-protobuf/google/protobuf/type_pb'; -import * as google_protobuf_wrappers_pb from 'google-protobuf/google/protobuf/wrappers_pb'; - - -export class Service extends jspb.Message { - getName(): string; - setName(value: string): Service; - - getTitle(): string; - setTitle(value: string): Service; - - getProducerProjectId(): string; - setProducerProjectId(value: string): Service; - - getId(): string; - setId(value: string): Service; - - getApisList(): Array; - setApisList(value: Array): Service; - clearApisList(): Service; - addApis(value?: google_protobuf_api_pb.Api, index?: number): google_protobuf_api_pb.Api; - - getTypesList(): Array; - setTypesList(value: Array): Service; - clearTypesList(): Service; - addTypes(value?: google_protobuf_type_pb.Type, index?: number): google_protobuf_type_pb.Type; - - getEnumsList(): Array; - setEnumsList(value: Array): Service; - clearEnumsList(): Service; - addEnums(value?: google_protobuf_type_pb.Enum, index?: number): google_protobuf_type_pb.Enum; - - getDocumentation(): google_api_documentation_pb.Documentation | undefined; - setDocumentation(value?: google_api_documentation_pb.Documentation): Service; - hasDocumentation(): boolean; - clearDocumentation(): Service; - - getBackend(): google_api_backend_pb.Backend | undefined; - setBackend(value?: google_api_backend_pb.Backend): Service; - hasBackend(): boolean; - clearBackend(): Service; - - getHttp(): google_api_http_pb.Http | undefined; - setHttp(value?: google_api_http_pb.Http): Service; - hasHttp(): boolean; - clearHttp(): Service; - - getQuota(): google_api_quota_pb.Quota | undefined; - setQuota(value?: google_api_quota_pb.Quota): Service; - hasQuota(): boolean; - clearQuota(): Service; - - getAuthentication(): google_api_auth_pb.Authentication | undefined; - setAuthentication(value?: google_api_auth_pb.Authentication): Service; - hasAuthentication(): boolean; - clearAuthentication(): Service; - - getContext(): google_api_context_pb.Context | undefined; - setContext(value?: google_api_context_pb.Context): Service; - hasContext(): boolean; - clearContext(): Service; - - getUsage(): google_api_usage_pb.Usage | undefined; - setUsage(value?: google_api_usage_pb.Usage): Service; - hasUsage(): boolean; - clearUsage(): Service; - - getEndpointsList(): Array; - setEndpointsList(value: Array): Service; - clearEndpointsList(): Service; - addEndpoints(value?: google_api_endpoint_pb.Endpoint, index?: number): google_api_endpoint_pb.Endpoint; - - getControl(): google_api_control_pb.Control | undefined; - setControl(value?: google_api_control_pb.Control): Service; - hasControl(): boolean; - clearControl(): Service; - - getLogsList(): Array; - setLogsList(value: Array): Service; - clearLogsList(): Service; - addLogs(value?: google_api_log_pb.LogDescriptor, index?: number): google_api_log_pb.LogDescriptor; - - getMetricsList(): Array; - setMetricsList(value: Array): Service; - clearMetricsList(): Service; - addMetrics(value?: google_api_metric_pb.MetricDescriptor, index?: number): google_api_metric_pb.MetricDescriptor; - - getMonitoredResourcesList(): Array; - setMonitoredResourcesList(value: Array): Service; - clearMonitoredResourcesList(): Service; - addMonitoredResources(value?: google_api_monitored_resource_pb.MonitoredResourceDescriptor, index?: number): google_api_monitored_resource_pb.MonitoredResourceDescriptor; - - getBilling(): google_api_billing_pb.Billing | undefined; - setBilling(value?: google_api_billing_pb.Billing): Service; - hasBilling(): boolean; - clearBilling(): Service; - - getLogging(): google_api_logging_pb.Logging | undefined; - setLogging(value?: google_api_logging_pb.Logging): Service; - hasLogging(): boolean; - clearLogging(): Service; - - getMonitoring(): google_api_monitoring_pb.Monitoring | undefined; - setMonitoring(value?: google_api_monitoring_pb.Monitoring): Service; - hasMonitoring(): boolean; - clearMonitoring(): Service; - - getSystemParameters(): google_api_system_parameter_pb.SystemParameters | undefined; - setSystemParameters(value?: google_api_system_parameter_pb.SystemParameters): Service; - hasSystemParameters(): boolean; - clearSystemParameters(): Service; - - getSourceInfo(): google_api_source_info_pb.SourceInfo | undefined; - setSourceInfo(value?: google_api_source_info_pb.SourceInfo): Service; - hasSourceInfo(): boolean; - clearSourceInfo(): Service; - - getPublishing(): google_api_client_pb.Publishing | undefined; - setPublishing(value?: google_api_client_pb.Publishing): Service; - hasPublishing(): boolean; - clearPublishing(): Service; - - getConfigVersion(): google_protobuf_wrappers_pb.UInt32Value | undefined; - setConfigVersion(value?: google_protobuf_wrappers_pb.UInt32Value): Service; - hasConfigVersion(): boolean; - clearConfigVersion(): Service; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Service.AsObject; - static toObject(includeInstance: boolean, msg: Service): Service.AsObject; - static serializeBinaryToWriter(message: Service, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Service; - static deserializeBinaryFromReader(message: Service, reader: jspb.BinaryReader): Service; -} - -export namespace Service { - export type AsObject = { - name: string, - title: string, - producerProjectId: string, - id: string, - apisList: Array, - typesList: Array, - enumsList: Array, - documentation?: google_api_documentation_pb.Documentation.AsObject, - backend?: google_api_backend_pb.Backend.AsObject, - http?: google_api_http_pb.Http.AsObject, - quota?: google_api_quota_pb.Quota.AsObject, - authentication?: google_api_auth_pb.Authentication.AsObject, - context?: google_api_context_pb.Context.AsObject, - usage?: google_api_usage_pb.Usage.AsObject, - endpointsList: Array, - control?: google_api_control_pb.Control.AsObject, - logsList: Array, - metricsList: Array, - monitoredResourcesList: Array, - billing?: google_api_billing_pb.Billing.AsObject, - logging?: google_api_logging_pb.Logging.AsObject, - monitoring?: google_api_monitoring_pb.Monitoring.AsObject, - systemParameters?: google_api_system_parameter_pb.SystemParameters.AsObject, - sourceInfo?: google_api_source_info_pb.SourceInfo.AsObject, - publishing?: google_api_client_pb.Publishing.AsObject, - configVersion?: google_protobuf_wrappers_pb.UInt32Value.AsObject, - } -} - diff --git a/api/grpc-web/google/api/service_pb.js b/api/grpc-web/google/api/service_pb.js deleted file mode 100644 index 01569ecd..00000000 --- a/api/grpc-web/google/api/service_pb.js +++ /dev/null @@ -1,1442 +0,0 @@ -// source: google/api/service.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_auth_pb = require('../../google/api/auth_pb.js'); -goog.object.extend(proto, google_api_auth_pb); -var google_api_backend_pb = require('../../google/api/backend_pb.js'); -goog.object.extend(proto, google_api_backend_pb); -var google_api_billing_pb = require('../../google/api/billing_pb.js'); -goog.object.extend(proto, google_api_billing_pb); -var google_api_client_pb = require('../../google/api/client_pb.js'); -goog.object.extend(proto, google_api_client_pb); -var google_api_context_pb = require('../../google/api/context_pb.js'); -goog.object.extend(proto, google_api_context_pb); -var google_api_control_pb = require('../../google/api/control_pb.js'); -goog.object.extend(proto, google_api_control_pb); -var google_api_documentation_pb = require('../../google/api/documentation_pb.js'); -goog.object.extend(proto, google_api_documentation_pb); -var google_api_endpoint_pb = require('../../google/api/endpoint_pb.js'); -goog.object.extend(proto, google_api_endpoint_pb); -var google_api_http_pb = require('../../google/api/http_pb.js'); -goog.object.extend(proto, google_api_http_pb); -var google_api_log_pb = require('../../google/api/log_pb.js'); -goog.object.extend(proto, google_api_log_pb); -var google_api_logging_pb = require('../../google/api/logging_pb.js'); -goog.object.extend(proto, google_api_logging_pb); -var google_api_metric_pb = require('../../google/api/metric_pb.js'); -goog.object.extend(proto, google_api_metric_pb); -var google_api_monitored_resource_pb = require('../../google/api/monitored_resource_pb.js'); -goog.object.extend(proto, google_api_monitored_resource_pb); -var google_api_monitoring_pb = require('../../google/api/monitoring_pb.js'); -goog.object.extend(proto, google_api_monitoring_pb); -var google_api_quota_pb = require('../../google/api/quota_pb.js'); -goog.object.extend(proto, google_api_quota_pb); -var google_api_source_info_pb = require('../../google/api/source_info_pb.js'); -goog.object.extend(proto, google_api_source_info_pb); -var google_api_system_parameter_pb = require('../../google/api/system_parameter_pb.js'); -goog.object.extend(proto, google_api_system_parameter_pb); -var google_api_usage_pb = require('../../google/api/usage_pb.js'); -goog.object.extend(proto, google_api_usage_pb); -var google_protobuf_api_pb = require('google-protobuf/google/protobuf/api_pb.js'); -goog.object.extend(proto, google_protobuf_api_pb); -var google_protobuf_type_pb = require('google-protobuf/google/protobuf/type_pb.js'); -goog.object.extend(proto, google_protobuf_type_pb); -var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js'); -goog.object.extend(proto, google_protobuf_wrappers_pb); -goog.exportSymbol('proto.google.api.Service', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Service = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Service.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Service, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Service.displayName = 'proto.google.api.Service'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Service.repeatedFields_ = [3,4,5,18,23,24,25]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Service.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Service.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Service} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Service.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - title: jspb.Message.getFieldWithDefault(msg, 2, ""), - producerProjectId: jspb.Message.getFieldWithDefault(msg, 22, ""), - id: jspb.Message.getFieldWithDefault(msg, 33, ""), - apisList: jspb.Message.toObjectList(msg.getApisList(), - google_protobuf_api_pb.Api.toObject, includeInstance), - typesList: jspb.Message.toObjectList(msg.getTypesList(), - google_protobuf_type_pb.Type.toObject, includeInstance), - enumsList: jspb.Message.toObjectList(msg.getEnumsList(), - google_protobuf_type_pb.Enum.toObject, includeInstance), - documentation: (f = msg.getDocumentation()) && google_api_documentation_pb.Documentation.toObject(includeInstance, f), - backend: (f = msg.getBackend()) && google_api_backend_pb.Backend.toObject(includeInstance, f), - http: (f = msg.getHttp()) && google_api_http_pb.Http.toObject(includeInstance, f), - quota: (f = msg.getQuota()) && google_api_quota_pb.Quota.toObject(includeInstance, f), - authentication: (f = msg.getAuthentication()) && google_api_auth_pb.Authentication.toObject(includeInstance, f), - context: (f = msg.getContext()) && google_api_context_pb.Context.toObject(includeInstance, f), - usage: (f = msg.getUsage()) && google_api_usage_pb.Usage.toObject(includeInstance, f), - endpointsList: jspb.Message.toObjectList(msg.getEndpointsList(), - google_api_endpoint_pb.Endpoint.toObject, includeInstance), - control: (f = msg.getControl()) && google_api_control_pb.Control.toObject(includeInstance, f), - logsList: jspb.Message.toObjectList(msg.getLogsList(), - google_api_log_pb.LogDescriptor.toObject, includeInstance), - metricsList: jspb.Message.toObjectList(msg.getMetricsList(), - google_api_metric_pb.MetricDescriptor.toObject, includeInstance), - monitoredResourcesList: jspb.Message.toObjectList(msg.getMonitoredResourcesList(), - google_api_monitored_resource_pb.MonitoredResourceDescriptor.toObject, includeInstance), - billing: (f = msg.getBilling()) && google_api_billing_pb.Billing.toObject(includeInstance, f), - logging: (f = msg.getLogging()) && google_api_logging_pb.Logging.toObject(includeInstance, f), - monitoring: (f = msg.getMonitoring()) && google_api_monitoring_pb.Monitoring.toObject(includeInstance, f), - systemParameters: (f = msg.getSystemParameters()) && google_api_system_parameter_pb.SystemParameters.toObject(includeInstance, f), - sourceInfo: (f = msg.getSourceInfo()) && google_api_source_info_pb.SourceInfo.toObject(includeInstance, f), - publishing: (f = msg.getPublishing()) && google_api_client_pb.Publishing.toObject(includeInstance, f), - configVersion: (f = msg.getConfigVersion()) && google_protobuf_wrappers_pb.UInt32Value.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Service} - */ -proto.google.api.Service.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Service; - return proto.google.api.Service.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Service} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Service} - */ -proto.google.api.Service.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTitle(value); - break; - case 22: - var value = /** @type {string} */ (reader.readString()); - msg.setProducerProjectId(value); - break; - case 33: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 3: - var value = new google_protobuf_api_pb.Api; - reader.readMessage(value,google_protobuf_api_pb.Api.deserializeBinaryFromReader); - msg.addApis(value); - break; - case 4: - var value = new google_protobuf_type_pb.Type; - reader.readMessage(value,google_protobuf_type_pb.Type.deserializeBinaryFromReader); - msg.addTypes(value); - break; - case 5: - var value = new google_protobuf_type_pb.Enum; - reader.readMessage(value,google_protobuf_type_pb.Enum.deserializeBinaryFromReader); - msg.addEnums(value); - break; - case 6: - var value = new google_api_documentation_pb.Documentation; - reader.readMessage(value,google_api_documentation_pb.Documentation.deserializeBinaryFromReader); - msg.setDocumentation(value); - break; - case 8: - var value = new google_api_backend_pb.Backend; - reader.readMessage(value,google_api_backend_pb.Backend.deserializeBinaryFromReader); - msg.setBackend(value); - break; - case 9: - var value = new google_api_http_pb.Http; - reader.readMessage(value,google_api_http_pb.Http.deserializeBinaryFromReader); - msg.setHttp(value); - break; - case 10: - var value = new google_api_quota_pb.Quota; - reader.readMessage(value,google_api_quota_pb.Quota.deserializeBinaryFromReader); - msg.setQuota(value); - break; - case 11: - var value = new google_api_auth_pb.Authentication; - reader.readMessage(value,google_api_auth_pb.Authentication.deserializeBinaryFromReader); - msg.setAuthentication(value); - break; - case 12: - var value = new google_api_context_pb.Context; - reader.readMessage(value,google_api_context_pb.Context.deserializeBinaryFromReader); - msg.setContext(value); - break; - case 15: - var value = new google_api_usage_pb.Usage; - reader.readMessage(value,google_api_usage_pb.Usage.deserializeBinaryFromReader); - msg.setUsage(value); - break; - case 18: - var value = new google_api_endpoint_pb.Endpoint; - reader.readMessage(value,google_api_endpoint_pb.Endpoint.deserializeBinaryFromReader); - msg.addEndpoints(value); - break; - case 21: - var value = new google_api_control_pb.Control; - reader.readMessage(value,google_api_control_pb.Control.deserializeBinaryFromReader); - msg.setControl(value); - break; - case 23: - var value = new google_api_log_pb.LogDescriptor; - reader.readMessage(value,google_api_log_pb.LogDescriptor.deserializeBinaryFromReader); - msg.addLogs(value); - break; - case 24: - var value = new google_api_metric_pb.MetricDescriptor; - reader.readMessage(value,google_api_metric_pb.MetricDescriptor.deserializeBinaryFromReader); - msg.addMetrics(value); - break; - case 25: - var value = new google_api_monitored_resource_pb.MonitoredResourceDescriptor; - reader.readMessage(value,google_api_monitored_resource_pb.MonitoredResourceDescriptor.deserializeBinaryFromReader); - msg.addMonitoredResources(value); - break; - case 26: - var value = new google_api_billing_pb.Billing; - reader.readMessage(value,google_api_billing_pb.Billing.deserializeBinaryFromReader); - msg.setBilling(value); - break; - case 27: - var value = new google_api_logging_pb.Logging; - reader.readMessage(value,google_api_logging_pb.Logging.deserializeBinaryFromReader); - msg.setLogging(value); - break; - case 28: - var value = new google_api_monitoring_pb.Monitoring; - reader.readMessage(value,google_api_monitoring_pb.Monitoring.deserializeBinaryFromReader); - msg.setMonitoring(value); - break; - case 29: - var value = new google_api_system_parameter_pb.SystemParameters; - reader.readMessage(value,google_api_system_parameter_pb.SystemParameters.deserializeBinaryFromReader); - msg.setSystemParameters(value); - break; - case 37: - var value = new google_api_source_info_pb.SourceInfo; - reader.readMessage(value,google_api_source_info_pb.SourceInfo.deserializeBinaryFromReader); - msg.setSourceInfo(value); - break; - case 45: - var value = new google_api_client_pb.Publishing; - reader.readMessage(value,google_api_client_pb.Publishing.deserializeBinaryFromReader); - msg.setPublishing(value); - break; - case 20: - var value = new google_protobuf_wrappers_pb.UInt32Value; - reader.readMessage(value,google_protobuf_wrappers_pb.UInt32Value.deserializeBinaryFromReader); - msg.setConfigVersion(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Service.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Service.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Service} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Service.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTitle(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getProducerProjectId(); - if (f.length > 0) { - writer.writeString( - 22, - f - ); - } - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 33, - f - ); - } - f = message.getApisList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - google_protobuf_api_pb.Api.serializeBinaryToWriter - ); - } - f = message.getTypesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - google_protobuf_type_pb.Type.serializeBinaryToWriter - ); - } - f = message.getEnumsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - google_protobuf_type_pb.Enum.serializeBinaryToWriter - ); - } - f = message.getDocumentation(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_api_documentation_pb.Documentation.serializeBinaryToWriter - ); - } - f = message.getBackend(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_api_backend_pb.Backend.serializeBinaryToWriter - ); - } - f = message.getHttp(); - if (f != null) { - writer.writeMessage( - 9, - f, - google_api_http_pb.Http.serializeBinaryToWriter - ); - } - f = message.getQuota(); - if (f != null) { - writer.writeMessage( - 10, - f, - google_api_quota_pb.Quota.serializeBinaryToWriter - ); - } - f = message.getAuthentication(); - if (f != null) { - writer.writeMessage( - 11, - f, - google_api_auth_pb.Authentication.serializeBinaryToWriter - ); - } - f = message.getContext(); - if (f != null) { - writer.writeMessage( - 12, - f, - google_api_context_pb.Context.serializeBinaryToWriter - ); - } - f = message.getUsage(); - if (f != null) { - writer.writeMessage( - 15, - f, - google_api_usage_pb.Usage.serializeBinaryToWriter - ); - } - f = message.getEndpointsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 18, - f, - google_api_endpoint_pb.Endpoint.serializeBinaryToWriter - ); - } - f = message.getControl(); - if (f != null) { - writer.writeMessage( - 21, - f, - google_api_control_pb.Control.serializeBinaryToWriter - ); - } - f = message.getLogsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 23, - f, - google_api_log_pb.LogDescriptor.serializeBinaryToWriter - ); - } - f = message.getMetricsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 24, - f, - google_api_metric_pb.MetricDescriptor.serializeBinaryToWriter - ); - } - f = message.getMonitoredResourcesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 25, - f, - google_api_monitored_resource_pb.MonitoredResourceDescriptor.serializeBinaryToWriter - ); - } - f = message.getBilling(); - if (f != null) { - writer.writeMessage( - 26, - f, - google_api_billing_pb.Billing.serializeBinaryToWriter - ); - } - f = message.getLogging(); - if (f != null) { - writer.writeMessage( - 27, - f, - google_api_logging_pb.Logging.serializeBinaryToWriter - ); - } - f = message.getMonitoring(); - if (f != null) { - writer.writeMessage( - 28, - f, - google_api_monitoring_pb.Monitoring.serializeBinaryToWriter - ); - } - f = message.getSystemParameters(); - if (f != null) { - writer.writeMessage( - 29, - f, - google_api_system_parameter_pb.SystemParameters.serializeBinaryToWriter - ); - } - f = message.getSourceInfo(); - if (f != null) { - writer.writeMessage( - 37, - f, - google_api_source_info_pb.SourceInfo.serializeBinaryToWriter - ); - } - f = message.getPublishing(); - if (f != null) { - writer.writeMessage( - 45, - f, - google_api_client_pb.Publishing.serializeBinaryToWriter - ); - } - f = message.getConfigVersion(); - if (f != null) { - writer.writeMessage( - 20, - f, - google_protobuf_wrappers_pb.UInt32Value.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.api.Service.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string title = 2; - * @return {string} - */ -proto.google.api.Service.prototype.getTitle = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.setTitle = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string producer_project_id = 22; - * @return {string} - */ -proto.google.api.Service.prototype.getProducerProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.setProducerProjectId = function(value) { - return jspb.Message.setProto3StringField(this, 22, value); -}; - - -/** - * optional string id = 33; - * @return {string} - */ -proto.google.api.Service.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 33, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 33, value); -}; - - -/** - * repeated google.protobuf.Api apis = 3; - * @return {!Array} - */ -proto.google.api.Service.prototype.getApisList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_protobuf_api_pb.Api, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setApisList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.google.protobuf.Api=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.Api} - */ -proto.google.api.Service.prototype.addApis = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.Api, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearApisList = function() { - return this.setApisList([]); -}; - - -/** - * repeated google.protobuf.Type types = 4; - * @return {!Array} - */ -proto.google.api.Service.prototype.getTypesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_protobuf_type_pb.Type, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setTypesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.google.protobuf.Type=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.Type} - */ -proto.google.api.Service.prototype.addTypes = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.protobuf.Type, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearTypesList = function() { - return this.setTypesList([]); -}; - - -/** - * repeated google.protobuf.Enum enums = 5; - * @return {!Array} - */ -proto.google.api.Service.prototype.getEnumsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_protobuf_type_pb.Enum, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setEnumsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.google.protobuf.Enum=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.Enum} - */ -proto.google.api.Service.prototype.addEnums = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.protobuf.Enum, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearEnumsList = function() { - return this.setEnumsList([]); -}; - - -/** - * optional Documentation documentation = 6; - * @return {?proto.google.api.Documentation} - */ -proto.google.api.Service.prototype.getDocumentation = function() { - return /** @type{?proto.google.api.Documentation} */ ( - jspb.Message.getWrapperField(this, google_api_documentation_pb.Documentation, 6)); -}; - - -/** - * @param {?proto.google.api.Documentation|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setDocumentation = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearDocumentation = function() { - return this.setDocumentation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasDocumentation = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional Backend backend = 8; - * @return {?proto.google.api.Backend} - */ -proto.google.api.Service.prototype.getBackend = function() { - return /** @type{?proto.google.api.Backend} */ ( - jspb.Message.getWrapperField(this, google_api_backend_pb.Backend, 8)); -}; - - -/** - * @param {?proto.google.api.Backend|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setBackend = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearBackend = function() { - return this.setBackend(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasBackend = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional Http http = 9; - * @return {?proto.google.api.Http} - */ -proto.google.api.Service.prototype.getHttp = function() { - return /** @type{?proto.google.api.Http} */ ( - jspb.Message.getWrapperField(this, google_api_http_pb.Http, 9)); -}; - - -/** - * @param {?proto.google.api.Http|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setHttp = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearHttp = function() { - return this.setHttp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasHttp = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional Quota quota = 10; - * @return {?proto.google.api.Quota} - */ -proto.google.api.Service.prototype.getQuota = function() { - return /** @type{?proto.google.api.Quota} */ ( - jspb.Message.getWrapperField(this, google_api_quota_pb.Quota, 10)); -}; - - -/** - * @param {?proto.google.api.Quota|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setQuota = function(value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearQuota = function() { - return this.setQuota(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasQuota = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional Authentication authentication = 11; - * @return {?proto.google.api.Authentication} - */ -proto.google.api.Service.prototype.getAuthentication = function() { - return /** @type{?proto.google.api.Authentication} */ ( - jspb.Message.getWrapperField(this, google_api_auth_pb.Authentication, 11)); -}; - - -/** - * @param {?proto.google.api.Authentication|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setAuthentication = function(value) { - return jspb.Message.setWrapperField(this, 11, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearAuthentication = function() { - return this.setAuthentication(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasAuthentication = function() { - return jspb.Message.getField(this, 11) != null; -}; - - -/** - * optional Context context = 12; - * @return {?proto.google.api.Context} - */ -proto.google.api.Service.prototype.getContext = function() { - return /** @type{?proto.google.api.Context} */ ( - jspb.Message.getWrapperField(this, google_api_context_pb.Context, 12)); -}; - - -/** - * @param {?proto.google.api.Context|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setContext = function(value) { - return jspb.Message.setWrapperField(this, 12, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearContext = function() { - return this.setContext(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasContext = function() { - return jspb.Message.getField(this, 12) != null; -}; - - -/** - * optional Usage usage = 15; - * @return {?proto.google.api.Usage} - */ -proto.google.api.Service.prototype.getUsage = function() { - return /** @type{?proto.google.api.Usage} */ ( - jspb.Message.getWrapperField(this, google_api_usage_pb.Usage, 15)); -}; - - -/** - * @param {?proto.google.api.Usage|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setUsage = function(value) { - return jspb.Message.setWrapperField(this, 15, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearUsage = function() { - return this.setUsage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasUsage = function() { - return jspb.Message.getField(this, 15) != null; -}; - - -/** - * repeated Endpoint endpoints = 18; - * @return {!Array} - */ -proto.google.api.Service.prototype.getEndpointsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_api_endpoint_pb.Endpoint, 18)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setEndpointsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 18, value); -}; - - -/** - * @param {!proto.google.api.Endpoint=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Endpoint} - */ -proto.google.api.Service.prototype.addEndpoints = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 18, opt_value, proto.google.api.Endpoint, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearEndpointsList = function() { - return this.setEndpointsList([]); -}; - - -/** - * optional Control control = 21; - * @return {?proto.google.api.Control} - */ -proto.google.api.Service.prototype.getControl = function() { - return /** @type{?proto.google.api.Control} */ ( - jspb.Message.getWrapperField(this, google_api_control_pb.Control, 21)); -}; - - -/** - * @param {?proto.google.api.Control|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setControl = function(value) { - return jspb.Message.setWrapperField(this, 21, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearControl = function() { - return this.setControl(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasControl = function() { - return jspb.Message.getField(this, 21) != null; -}; - - -/** - * repeated LogDescriptor logs = 23; - * @return {!Array} - */ -proto.google.api.Service.prototype.getLogsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_api_log_pb.LogDescriptor, 23)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setLogsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 23, value); -}; - - -/** - * @param {!proto.google.api.LogDescriptor=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.LogDescriptor} - */ -proto.google.api.Service.prototype.addLogs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 23, opt_value, proto.google.api.LogDescriptor, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearLogsList = function() { - return this.setLogsList([]); -}; - - -/** - * repeated MetricDescriptor metrics = 24; - * @return {!Array} - */ -proto.google.api.Service.prototype.getMetricsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_api_metric_pb.MetricDescriptor, 24)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setMetricsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 24, value); -}; - - -/** - * @param {!proto.google.api.MetricDescriptor=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.MetricDescriptor} - */ -proto.google.api.Service.prototype.addMetrics = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 24, opt_value, proto.google.api.MetricDescriptor, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearMetricsList = function() { - return this.setMetricsList([]); -}; - - -/** - * repeated MonitoredResourceDescriptor monitored_resources = 25; - * @return {!Array} - */ -proto.google.api.Service.prototype.getMonitoredResourcesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_api_monitored_resource_pb.MonitoredResourceDescriptor, 25)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setMonitoredResourcesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 25, value); -}; - - -/** - * @param {!proto.google.api.MonitoredResourceDescriptor=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.MonitoredResourceDescriptor} - */ -proto.google.api.Service.prototype.addMonitoredResources = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 25, opt_value, proto.google.api.MonitoredResourceDescriptor, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearMonitoredResourcesList = function() { - return this.setMonitoredResourcesList([]); -}; - - -/** - * optional Billing billing = 26; - * @return {?proto.google.api.Billing} - */ -proto.google.api.Service.prototype.getBilling = function() { - return /** @type{?proto.google.api.Billing} */ ( - jspb.Message.getWrapperField(this, google_api_billing_pb.Billing, 26)); -}; - - -/** - * @param {?proto.google.api.Billing|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setBilling = function(value) { - return jspb.Message.setWrapperField(this, 26, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearBilling = function() { - return this.setBilling(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasBilling = function() { - return jspb.Message.getField(this, 26) != null; -}; - - -/** - * optional Logging logging = 27; - * @return {?proto.google.api.Logging} - */ -proto.google.api.Service.prototype.getLogging = function() { - return /** @type{?proto.google.api.Logging} */ ( - jspb.Message.getWrapperField(this, google_api_logging_pb.Logging, 27)); -}; - - -/** - * @param {?proto.google.api.Logging|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setLogging = function(value) { - return jspb.Message.setWrapperField(this, 27, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearLogging = function() { - return this.setLogging(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasLogging = function() { - return jspb.Message.getField(this, 27) != null; -}; - - -/** - * optional Monitoring monitoring = 28; - * @return {?proto.google.api.Monitoring} - */ -proto.google.api.Service.prototype.getMonitoring = function() { - return /** @type{?proto.google.api.Monitoring} */ ( - jspb.Message.getWrapperField(this, google_api_monitoring_pb.Monitoring, 28)); -}; - - -/** - * @param {?proto.google.api.Monitoring|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setMonitoring = function(value) { - return jspb.Message.setWrapperField(this, 28, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearMonitoring = function() { - return this.setMonitoring(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasMonitoring = function() { - return jspb.Message.getField(this, 28) != null; -}; - - -/** - * optional SystemParameters system_parameters = 29; - * @return {?proto.google.api.SystemParameters} - */ -proto.google.api.Service.prototype.getSystemParameters = function() { - return /** @type{?proto.google.api.SystemParameters} */ ( - jspb.Message.getWrapperField(this, google_api_system_parameter_pb.SystemParameters, 29)); -}; - - -/** - * @param {?proto.google.api.SystemParameters|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setSystemParameters = function(value) { - return jspb.Message.setWrapperField(this, 29, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearSystemParameters = function() { - return this.setSystemParameters(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasSystemParameters = function() { - return jspb.Message.getField(this, 29) != null; -}; - - -/** - * optional SourceInfo source_info = 37; - * @return {?proto.google.api.SourceInfo} - */ -proto.google.api.Service.prototype.getSourceInfo = function() { - return /** @type{?proto.google.api.SourceInfo} */ ( - jspb.Message.getWrapperField(this, google_api_source_info_pb.SourceInfo, 37)); -}; - - -/** - * @param {?proto.google.api.SourceInfo|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setSourceInfo = function(value) { - return jspb.Message.setWrapperField(this, 37, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearSourceInfo = function() { - return this.setSourceInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasSourceInfo = function() { - return jspb.Message.getField(this, 37) != null; -}; - - -/** - * optional Publishing publishing = 45; - * @return {?proto.google.api.Publishing} - */ -proto.google.api.Service.prototype.getPublishing = function() { - return /** @type{?proto.google.api.Publishing} */ ( - jspb.Message.getWrapperField(this, google_api_client_pb.Publishing, 45)); -}; - - -/** - * @param {?proto.google.api.Publishing|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setPublishing = function(value) { - return jspb.Message.setWrapperField(this, 45, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearPublishing = function() { - return this.setPublishing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasPublishing = function() { - return jspb.Message.getField(this, 45) != null; -}; - - -/** - * optional google.protobuf.UInt32Value config_version = 20; - * @return {?proto.google.protobuf.UInt32Value} - */ -proto.google.api.Service.prototype.getConfigVersion = function() { - return /** @type{?proto.google.protobuf.UInt32Value} */ ( - jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt32Value, 20)); -}; - - -/** - * @param {?proto.google.protobuf.UInt32Value|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setConfigVersion = function(value) { - return jspb.Message.setWrapperField(this, 20, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearConfigVersion = function() { - return this.setConfigVersion(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasConfigVersion = function() { - return jspb.Message.getField(this, 20) != null; -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/source_info_pb.d.ts b/api/grpc-web/google/api/source_info_pb.d.ts deleted file mode 100644 index c0a3f310..00000000 --- a/api/grpc-web/google/api/source_info_pb.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_protobuf_any_pb from 'google-protobuf/google/protobuf/any_pb'; - - -export class SourceInfo extends jspb.Message { - getSourceFilesList(): Array; - setSourceFilesList(value: Array): SourceInfo; - clearSourceFilesList(): SourceInfo; - addSourceFiles(value?: google_protobuf_any_pb.Any, index?: number): google_protobuf_any_pb.Any; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SourceInfo.AsObject; - static toObject(includeInstance: boolean, msg: SourceInfo): SourceInfo.AsObject; - static serializeBinaryToWriter(message: SourceInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SourceInfo; - static deserializeBinaryFromReader(message: SourceInfo, reader: jspb.BinaryReader): SourceInfo; -} - -export namespace SourceInfo { - export type AsObject = { - sourceFilesList: Array, - } -} - diff --git a/api/grpc-web/google/api/source_info_pb.js b/api/grpc-web/google/api/source_info_pb.js deleted file mode 100644 index f8d72309..00000000 --- a/api/grpc-web/google/api/source_info_pb.js +++ /dev/null @@ -1,199 +0,0 @@ -// source: google/api/source_info.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); -goog.object.extend(proto, google_protobuf_any_pb); -goog.exportSymbol('proto.google.api.SourceInfo', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.SourceInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.SourceInfo.repeatedFields_, null); -}; -goog.inherits(proto.google.api.SourceInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.SourceInfo.displayName = 'proto.google.api.SourceInfo'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.SourceInfo.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.SourceInfo.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.SourceInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.SourceInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.SourceInfo.toObject = function(includeInstance, msg) { - var f, obj = { - sourceFilesList: jspb.Message.toObjectList(msg.getSourceFilesList(), - google_protobuf_any_pb.Any.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.SourceInfo} - */ -proto.google.api.SourceInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.SourceInfo; - return proto.google.api.SourceInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.SourceInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.SourceInfo} - */ -proto.google.api.SourceInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_any_pb.Any; - reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); - msg.addSourceFiles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.SourceInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.SourceInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.SourceInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.SourceInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSourceFilesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - google_protobuf_any_pb.Any.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated google.protobuf.Any source_files = 1; - * @return {!Array} - */ -proto.google.api.SourceInfo.prototype.getSourceFilesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_protobuf_any_pb.Any, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.SourceInfo} returns this -*/ -proto.google.api.SourceInfo.prototype.setSourceFilesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.protobuf.Any=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.Any} - */ -proto.google.api.SourceInfo.prototype.addSourceFiles = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.Any, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.SourceInfo} returns this - */ -proto.google.api.SourceInfo.prototype.clearSourceFilesList = function() { - return this.setSourceFilesList([]); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/system_parameter_pb.d.ts b/api/grpc-web/google/api/system_parameter_pb.d.ts deleted file mode 100644 index de04f7b4..00000000 --- a/api/grpc-web/google/api/system_parameter_pb.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export class SystemParameters extends jspb.Message { - getRulesList(): Array; - setRulesList(value: Array): SystemParameters; - clearRulesList(): SystemParameters; - addRules(value?: SystemParameterRule, index?: number): SystemParameterRule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SystemParameters.AsObject; - static toObject(includeInstance: boolean, msg: SystemParameters): SystemParameters.AsObject; - static serializeBinaryToWriter(message: SystemParameters, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SystemParameters; - static deserializeBinaryFromReader(message: SystemParameters, reader: jspb.BinaryReader): SystemParameters; -} - -export namespace SystemParameters { - export type AsObject = { - rulesList: Array, - } -} - -export class SystemParameterRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): SystemParameterRule; - - getParametersList(): Array; - setParametersList(value: Array): SystemParameterRule; - clearParametersList(): SystemParameterRule; - addParameters(value?: SystemParameter, index?: number): SystemParameter; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SystemParameterRule.AsObject; - static toObject(includeInstance: boolean, msg: SystemParameterRule): SystemParameterRule.AsObject; - static serializeBinaryToWriter(message: SystemParameterRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SystemParameterRule; - static deserializeBinaryFromReader(message: SystemParameterRule, reader: jspb.BinaryReader): SystemParameterRule; -} - -export namespace SystemParameterRule { - export type AsObject = { - selector: string, - parametersList: Array, - } -} - -export class SystemParameter extends jspb.Message { - getName(): string; - setName(value: string): SystemParameter; - - getHttpHeader(): string; - setHttpHeader(value: string): SystemParameter; - - getUrlQueryParameter(): string; - setUrlQueryParameter(value: string): SystemParameter; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SystemParameter.AsObject; - static toObject(includeInstance: boolean, msg: SystemParameter): SystemParameter.AsObject; - static serializeBinaryToWriter(message: SystemParameter, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SystemParameter; - static deserializeBinaryFromReader(message: SystemParameter, reader: jspb.BinaryReader): SystemParameter; -} - -export namespace SystemParameter { - export type AsObject = { - name: string, - httpHeader: string, - urlQueryParameter: string, - } -} - diff --git a/api/grpc-web/google/api/system_parameter_pb.js b/api/grpc-web/google/api/system_parameter_pb.js deleted file mode 100644 index 5524ea0d..00000000 --- a/api/grpc-web/google/api/system_parameter_pb.js +++ /dev/null @@ -1,621 +0,0 @@ -// source: google/api/system_parameter.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.SystemParameter', null, global); -goog.exportSymbol('proto.google.api.SystemParameterRule', null, global); -goog.exportSymbol('proto.google.api.SystemParameters', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.SystemParameters = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.SystemParameters.repeatedFields_, null); -}; -goog.inherits(proto.google.api.SystemParameters, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.SystemParameters.displayName = 'proto.google.api.SystemParameters'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.SystemParameterRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.SystemParameterRule.repeatedFields_, null); -}; -goog.inherits(proto.google.api.SystemParameterRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.SystemParameterRule.displayName = 'proto.google.api.SystemParameterRule'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.SystemParameter = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.SystemParameter, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.SystemParameter.displayName = 'proto.google.api.SystemParameter'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.SystemParameters.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.SystemParameters.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.SystemParameters.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.SystemParameters} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.SystemParameters.toObject = function(includeInstance, msg) { - var f, obj = { - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.google.api.SystemParameterRule.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.SystemParameters} - */ -proto.google.api.SystemParameters.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.SystemParameters; - return proto.google.api.SystemParameters.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.SystemParameters} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.SystemParameters} - */ -proto.google.api.SystemParameters.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.SystemParameterRule; - reader.readMessage(value,proto.google.api.SystemParameterRule.deserializeBinaryFromReader); - msg.addRules(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.SystemParameters.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.SystemParameters.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.SystemParameters} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.SystemParameters.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.api.SystemParameterRule.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated SystemParameterRule rules = 1; - * @return {!Array} - */ -proto.google.api.SystemParameters.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.SystemParameterRule, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.SystemParameters} returns this -*/ -proto.google.api.SystemParameters.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.api.SystemParameterRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.SystemParameterRule} - */ -proto.google.api.SystemParameters.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.SystemParameterRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.SystemParameters} returns this - */ -proto.google.api.SystemParameters.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.SystemParameterRule.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.SystemParameterRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.SystemParameterRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.SystemParameterRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.SystemParameterRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - parametersList: jspb.Message.toObjectList(msg.getParametersList(), - proto.google.api.SystemParameter.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.SystemParameterRule} - */ -proto.google.api.SystemParameterRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.SystemParameterRule; - return proto.google.api.SystemParameterRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.SystemParameterRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.SystemParameterRule} - */ -proto.google.api.SystemParameterRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = new proto.google.api.SystemParameter; - reader.readMessage(value,proto.google.api.SystemParameter.deserializeBinaryFromReader); - msg.addParameters(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.SystemParameterRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.SystemParameterRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.SystemParameterRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.SystemParameterRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getParametersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.google.api.SystemParameter.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.SystemParameterRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.SystemParameterRule} returns this - */ -proto.google.api.SystemParameterRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated SystemParameter parameters = 2; - * @return {!Array} - */ -proto.google.api.SystemParameterRule.prototype.getParametersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.SystemParameter, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.SystemParameterRule} returns this -*/ -proto.google.api.SystemParameterRule.prototype.setParametersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.api.SystemParameter=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.SystemParameter} - */ -proto.google.api.SystemParameterRule.prototype.addParameters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.SystemParameter, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.SystemParameterRule} returns this - */ -proto.google.api.SystemParameterRule.prototype.clearParametersList = function() { - return this.setParametersList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.SystemParameter.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.SystemParameter.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.SystemParameter} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.SystemParameter.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - httpHeader: jspb.Message.getFieldWithDefault(msg, 2, ""), - urlQueryParameter: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.SystemParameter} - */ -proto.google.api.SystemParameter.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.SystemParameter; - return proto.google.api.SystemParameter.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.SystemParameter} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.SystemParameter} - */ -proto.google.api.SystemParameter.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setHttpHeader(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setUrlQueryParameter(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.SystemParameter.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.SystemParameter.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.SystemParameter} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.SystemParameter.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHttpHeader(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getUrlQueryParameter(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.api.SystemParameter.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.SystemParameter} returns this - */ -proto.google.api.SystemParameter.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string http_header = 2; - * @return {string} - */ -proto.google.api.SystemParameter.prototype.getHttpHeader = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.SystemParameter} returns this - */ -proto.google.api.SystemParameter.prototype.setHttpHeader = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string url_query_parameter = 3; - * @return {string} - */ -proto.google.api.SystemParameter.prototype.getUrlQueryParameter = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.SystemParameter} returns this - */ -proto.google.api.SystemParameter.prototype.setUrlQueryParameter = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/usage_pb.d.ts b/api/grpc-web/google/api/usage_pb.d.ts deleted file mode 100644 index c9ba5d74..00000000 --- a/api/grpc-web/google/api/usage_pb.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -import * as jspb from 'google-protobuf' - - - -export class Usage extends jspb.Message { - getRequirementsList(): Array; - setRequirementsList(value: Array): Usage; - clearRequirementsList(): Usage; - addRequirements(value: string, index?: number): Usage; - - getRulesList(): Array; - setRulesList(value: Array): Usage; - clearRulesList(): Usage; - addRules(value?: UsageRule, index?: number): UsageRule; - - getProducerNotificationChannel(): string; - setProducerNotificationChannel(value: string): Usage; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Usage.AsObject; - static toObject(includeInstance: boolean, msg: Usage): Usage.AsObject; - static serializeBinaryToWriter(message: Usage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Usage; - static deserializeBinaryFromReader(message: Usage, reader: jspb.BinaryReader): Usage; -} - -export namespace Usage { - export type AsObject = { - requirementsList: Array, - rulesList: Array, - producerNotificationChannel: string, - } -} - -export class UsageRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): UsageRule; - - getAllowUnregisteredCalls(): boolean; - setAllowUnregisteredCalls(value: boolean): UsageRule; - - getSkipServiceControl(): boolean; - setSkipServiceControl(value: boolean): UsageRule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UsageRule.AsObject; - static toObject(includeInstance: boolean, msg: UsageRule): UsageRule.AsObject; - static serializeBinaryToWriter(message: UsageRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UsageRule; - static deserializeBinaryFromReader(message: UsageRule, reader: jspb.BinaryReader): UsageRule; -} - -export namespace UsageRule { - export type AsObject = { - selector: string, - allowUnregisteredCalls: boolean, - skipServiceControl: boolean, - } -} - diff --git a/api/grpc-web/google/api/usage_pb.js b/api/grpc-web/google/api/usage_pb.js deleted file mode 100644 index 1bb9b425..00000000 --- a/api/grpc-web/google/api/usage_pb.js +++ /dev/null @@ -1,488 +0,0 @@ -// source: google/api/usage.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Usage', null, global); -goog.exportSymbol('proto.google.api.UsageRule', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Usage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Usage.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Usage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Usage.displayName = 'proto.google.api.Usage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.UsageRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.UsageRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.UsageRule.displayName = 'proto.google.api.UsageRule'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Usage.repeatedFields_ = [1,6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Usage.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Usage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Usage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Usage.toObject = function(includeInstance, msg) { - var f, obj = { - requirementsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.google.api.UsageRule.toObject, includeInstance), - producerNotificationChannel: jspb.Message.getFieldWithDefault(msg, 7, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Usage} - */ -proto.google.api.Usage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Usage; - return proto.google.api.Usage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Usage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Usage} - */ -proto.google.api.Usage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addRequirements(value); - break; - case 6: - var value = new proto.google.api.UsageRule; - reader.readMessage(value,proto.google.api.UsageRule.deserializeBinaryFromReader); - msg.addRules(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setProducerNotificationChannel(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Usage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Usage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Usage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Usage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequirementsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.google.api.UsageRule.serializeBinaryToWriter - ); - } - f = message.getProducerNotificationChannel(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * repeated string requirements = 1; - * @return {!Array} - */ -proto.google.api.Usage.prototype.getRequirementsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Usage} returns this - */ -proto.google.api.Usage.prototype.setRequirementsList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.Usage} returns this - */ -proto.google.api.Usage.prototype.addRequirements = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Usage} returns this - */ -proto.google.api.Usage.prototype.clearRequirementsList = function() { - return this.setRequirementsList([]); -}; - - -/** - * repeated UsageRule rules = 6; - * @return {!Array} - */ -proto.google.api.Usage.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.UsageRule, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Usage} returns this -*/ -proto.google.api.Usage.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.google.api.UsageRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.UsageRule} - */ -proto.google.api.Usage.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.google.api.UsageRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Usage} returns this - */ -proto.google.api.Usage.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - -/** - * optional string producer_notification_channel = 7; - * @return {string} - */ -proto.google.api.Usage.prototype.getProducerNotificationChannel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Usage} returns this - */ -proto.google.api.Usage.prototype.setProducerNotificationChannel = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.UsageRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.UsageRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.UsageRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.UsageRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - allowUnregisteredCalls: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - skipServiceControl: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.UsageRule} - */ -proto.google.api.UsageRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.UsageRule; - return proto.google.api.UsageRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.UsageRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.UsageRule} - */ -proto.google.api.UsageRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAllowUnregisteredCalls(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSkipServiceControl(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.UsageRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.UsageRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.UsageRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.UsageRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAllowUnregisteredCalls(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getSkipServiceControl(); - if (f) { - writer.writeBool( - 3, - f - ); - } -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.UsageRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.UsageRule} returns this - */ -proto.google.api.UsageRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool allow_unregistered_calls = 2; - * @return {boolean} - */ -proto.google.api.UsageRule.prototype.getAllowUnregisteredCalls = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.api.UsageRule} returns this - */ -proto.google.api.UsageRule.prototype.setAllowUnregisteredCalls = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional bool skip_service_control = 3; - * @return {boolean} - */ -proto.google.api.UsageRule.prototype.getSkipServiceControl = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.api.UsageRule} returns this - */ -proto.google.api.UsageRule.prototype.setSkipServiceControl = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/google/api/visibility_pb.d.ts b/api/grpc-web/google/api/visibility_pb.d.ts deleted file mode 100644 index 0af94b7a..00000000 --- a/api/grpc-web/google/api/visibility_pb.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb'; - - -export class Visibility extends jspb.Message { - getRulesList(): Array; - setRulesList(value: Array): Visibility; - clearRulesList(): Visibility; - addRules(value?: VisibilityRule, index?: number): VisibilityRule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Visibility.AsObject; - static toObject(includeInstance: boolean, msg: Visibility): Visibility.AsObject; - static serializeBinaryToWriter(message: Visibility, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Visibility; - static deserializeBinaryFromReader(message: Visibility, reader: jspb.BinaryReader): Visibility; -} - -export namespace Visibility { - export type AsObject = { - rulesList: Array, - } -} - -export class VisibilityRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): VisibilityRule; - - getRestriction(): string; - setRestriction(value: string): VisibilityRule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VisibilityRule.AsObject; - static toObject(includeInstance: boolean, msg: VisibilityRule): VisibilityRule.AsObject; - static serializeBinaryToWriter(message: VisibilityRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VisibilityRule; - static deserializeBinaryFromReader(message: VisibilityRule, reader: jspb.BinaryReader): VisibilityRule; -} - -export namespace VisibilityRule { - export type AsObject = { - selector: string, - restriction: string, - } -} - diff --git a/api/grpc-web/google/api/visibility_pb.js b/api/grpc-web/google/api/visibility_pb.js deleted file mode 100644 index 048a516b..00000000 --- a/api/grpc-web/google/api/visibility_pb.js +++ /dev/null @@ -1,537 +0,0 @@ -// source: google/api/visibility.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); -goog.object.extend(proto, google_protobuf_descriptor_pb); -goog.exportSymbol('proto.google.api.Visibility', null, global); -goog.exportSymbol('proto.google.api.VisibilityRule', null, global); -goog.exportSymbol('proto.google.api.apiVisibility', null, global); -goog.exportSymbol('proto.google.api.enumVisibility', null, global); -goog.exportSymbol('proto.google.api.fieldVisibility', null, global); -goog.exportSymbol('proto.google.api.messageVisibility', null, global); -goog.exportSymbol('proto.google.api.methodVisibility', null, global); -goog.exportSymbol('proto.google.api.valueVisibility', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Visibility = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Visibility.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Visibility, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Visibility.displayName = 'proto.google.api.Visibility'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.VisibilityRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.VisibilityRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.VisibilityRule.displayName = 'proto.google.api.VisibilityRule'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Visibility.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Visibility.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Visibility.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Visibility} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Visibility.toObject = function(includeInstance, msg) { - var f, obj = { - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.google.api.VisibilityRule.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Visibility} - */ -proto.google.api.Visibility.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Visibility; - return proto.google.api.Visibility.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Visibility} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Visibility} - */ -proto.google.api.Visibility.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.VisibilityRule; - reader.readMessage(value,proto.google.api.VisibilityRule.deserializeBinaryFromReader); - msg.addRules(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Visibility.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Visibility.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Visibility} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Visibility.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.api.VisibilityRule.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated VisibilityRule rules = 1; - * @return {!Array} - */ -proto.google.api.Visibility.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.VisibilityRule, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Visibility} returns this -*/ -proto.google.api.Visibility.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.api.VisibilityRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.VisibilityRule} - */ -proto.google.api.Visibility.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.VisibilityRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Visibility} returns this - */ -proto.google.api.Visibility.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.VisibilityRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.VisibilityRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.VisibilityRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.VisibilityRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - restriction: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.VisibilityRule} - */ -proto.google.api.VisibilityRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.VisibilityRule; - return proto.google.api.VisibilityRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.VisibilityRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.VisibilityRule} - */ -proto.google.api.VisibilityRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setRestriction(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.VisibilityRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.VisibilityRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.VisibilityRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.VisibilityRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRestriction(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.VisibilityRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.VisibilityRule} returns this - */ -proto.google.api.VisibilityRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string restriction = 2; - * @return {string} - */ -proto.google.api.VisibilityRule.prototype.getRestriction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.VisibilityRule} returns this - */ -proto.google.api.VisibilityRule.prototype.setRestriction = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `enumVisibility`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.enumVisibility = new jspb.ExtensionFieldInfo( - 72295727, - {enumVisibility: 0}, - proto.google.api.VisibilityRule, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.VisibilityRule.toObject), - 0); - -google_protobuf_descriptor_pb.EnumOptions.extensionsBinary[72295727] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.enumVisibility, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - proto.google.api.VisibilityRule.serializeBinaryToWriter, - proto.google.api.VisibilityRule.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.EnumOptions.extensions[72295727] = proto.google.api.enumVisibility; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `valueVisibility`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.valueVisibility = new jspb.ExtensionFieldInfo( - 72295727, - {valueVisibility: 0}, - proto.google.api.VisibilityRule, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.VisibilityRule.toObject), - 0); - -google_protobuf_descriptor_pb.EnumValueOptions.extensionsBinary[72295727] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.valueVisibility, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - proto.google.api.VisibilityRule.serializeBinaryToWriter, - proto.google.api.VisibilityRule.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.EnumValueOptions.extensions[72295727] = proto.google.api.valueVisibility; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `fieldVisibility`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.fieldVisibility = new jspb.ExtensionFieldInfo( - 72295727, - {fieldVisibility: 0}, - proto.google.api.VisibilityRule, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.VisibilityRule.toObject), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[72295727] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.fieldVisibility, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - proto.google.api.VisibilityRule.serializeBinaryToWriter, - proto.google.api.VisibilityRule.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[72295727] = proto.google.api.fieldVisibility; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `messageVisibility`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.messageVisibility = new jspb.ExtensionFieldInfo( - 72295727, - {messageVisibility: 0}, - proto.google.api.VisibilityRule, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.VisibilityRule.toObject), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[72295727] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.messageVisibility, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - proto.google.api.VisibilityRule.serializeBinaryToWriter, - proto.google.api.VisibilityRule.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[72295727] = proto.google.api.messageVisibility; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `methodVisibility`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.methodVisibility = new jspb.ExtensionFieldInfo( - 72295727, - {methodVisibility: 0}, - proto.google.api.VisibilityRule, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.VisibilityRule.toObject), - 0); - -google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295727] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.methodVisibility, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - proto.google.api.VisibilityRule.serializeBinaryToWriter, - proto.google.api.VisibilityRule.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MethodOptions.extensions[72295727] = proto.google.api.methodVisibility; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `apiVisibility`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.apiVisibility = new jspb.ExtensionFieldInfo( - 72295727, - {apiVisibility: 0}, - proto.google.api.VisibilityRule, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.VisibilityRule.toObject), - 0); - -google_protobuf_descriptor_pb.ServiceOptions.extensionsBinary[72295727] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.apiVisibility, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - proto.google.api.VisibilityRule.serializeBinaryToWriter, - proto.google.api.VisibilityRule.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.ServiceOptions.extensions[72295727] = proto.google.api.apiVisibility; - -goog.object.extend(exports, proto.google.api); diff --git a/api/grpc-web/gw/gw_pb.d.ts b/api/grpc-web/gw/gw_pb.d.ts deleted file mode 100644 index 43744c55..00000000 --- a/api/grpc-web/gw/gw_pb.d.ts +++ /dev/null @@ -1,1127 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as common_common_pb from '../common/common_pb'; -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; -import * as google_protobuf_duration_pb from 'google-protobuf/google/protobuf/duration_pb'; - - -export class Modulation extends jspb.Message { - getLora(): LoRaModulationInfo | undefined; - setLora(value?: LoRaModulationInfo): Modulation; - hasLora(): boolean; - clearLora(): Modulation; - - getFsk(): FSKModulationInfo | undefined; - setFsk(value?: FSKModulationInfo): Modulation; - hasFsk(): boolean; - clearFsk(): Modulation; - - getLrFhss(): LRFHSSModulationInfo | undefined; - setLrFhss(value?: LRFHSSModulationInfo): Modulation; - hasLrFhss(): boolean; - clearLrFhss(): Modulation; - - getParametersCase(): Modulation.ParametersCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Modulation.AsObject; - static toObject(includeInstance: boolean, msg: Modulation): Modulation.AsObject; - static serializeBinaryToWriter(message: Modulation, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Modulation; - static deserializeBinaryFromReader(message: Modulation, reader: jspb.BinaryReader): Modulation; -} - -export namespace Modulation { - export type AsObject = { - lora?: LoRaModulationInfo.AsObject, - fsk?: FSKModulationInfo.AsObject, - lrFhss?: LRFHSSModulationInfo.AsObject, - } - - export enum ParametersCase { - PARAMETERS_NOT_SET = 0, - LORA = 3, - FSK = 4, - LR_FHSS = 5, - } -} - -export class UplinkTXInfo extends jspb.Message { - getFrequency(): number; - setFrequency(value: number): UplinkTXInfo; - - getModulation(): common_common_pb.Modulation; - setModulation(value: common_common_pb.Modulation): UplinkTXInfo; - - getLoraModulationInfo(): LoRaModulationInfo | undefined; - setLoraModulationInfo(value?: LoRaModulationInfo): UplinkTXInfo; - hasLoraModulationInfo(): boolean; - clearLoraModulationInfo(): UplinkTXInfo; - - getFskModulationInfo(): FSKModulationInfo | undefined; - setFskModulationInfo(value?: FSKModulationInfo): UplinkTXInfo; - hasFskModulationInfo(): boolean; - clearFskModulationInfo(): UplinkTXInfo; - - getLrFhssModulationInfo(): LRFHSSModulationInfo | undefined; - setLrFhssModulationInfo(value?: LRFHSSModulationInfo): UplinkTXInfo; - hasLrFhssModulationInfo(): boolean; - clearLrFhssModulationInfo(): UplinkTXInfo; - - getModulationInfoCase(): UplinkTXInfo.ModulationInfoCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UplinkTXInfo.AsObject; - static toObject(includeInstance: boolean, msg: UplinkTXInfo): UplinkTXInfo.AsObject; - static serializeBinaryToWriter(message: UplinkTXInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UplinkTXInfo; - static deserializeBinaryFromReader(message: UplinkTXInfo, reader: jspb.BinaryReader): UplinkTXInfo; -} - -export namespace UplinkTXInfo { - export type AsObject = { - frequency: number, - modulation: common_common_pb.Modulation, - loraModulationInfo?: LoRaModulationInfo.AsObject, - fskModulationInfo?: FSKModulationInfo.AsObject, - lrFhssModulationInfo?: LRFHSSModulationInfo.AsObject, - } - - export enum ModulationInfoCase { - MODULATION_INFO_NOT_SET = 0, - LORA_MODULATION_INFO = 3, - FSK_MODULATION_INFO = 4, - LR_FHSS_MODULATION_INFO = 5, - } -} - -export class LoRaModulationInfo extends jspb.Message { - getBandwidth(): number; - setBandwidth(value: number): LoRaModulationInfo; - - getSpreadingFactor(): number; - setSpreadingFactor(value: number): LoRaModulationInfo; - - getCodeRate(): string; - setCodeRate(value: string): LoRaModulationInfo; - - getPolarizationInversion(): boolean; - setPolarizationInversion(value: boolean): LoRaModulationInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoRaModulationInfo.AsObject; - static toObject(includeInstance: boolean, msg: LoRaModulationInfo): LoRaModulationInfo.AsObject; - static serializeBinaryToWriter(message: LoRaModulationInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoRaModulationInfo; - static deserializeBinaryFromReader(message: LoRaModulationInfo, reader: jspb.BinaryReader): LoRaModulationInfo; -} - -export namespace LoRaModulationInfo { - export type AsObject = { - bandwidth: number, - spreadingFactor: number, - codeRate: string, - polarizationInversion: boolean, - } -} - -export class FSKModulationInfo extends jspb.Message { - getFrequencyDeviation(): number; - setFrequencyDeviation(value: number): FSKModulationInfo; - - getDatarate(): number; - setDatarate(value: number): FSKModulationInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FSKModulationInfo.AsObject; - static toObject(includeInstance: boolean, msg: FSKModulationInfo): FSKModulationInfo.AsObject; - static serializeBinaryToWriter(message: FSKModulationInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FSKModulationInfo; - static deserializeBinaryFromReader(message: FSKModulationInfo, reader: jspb.BinaryReader): FSKModulationInfo; -} - -export namespace FSKModulationInfo { - export type AsObject = { - frequencyDeviation: number, - datarate: number, - } -} - -export class LRFHSSModulationInfo extends jspb.Message { - getOperatingChannelWidth(): number; - setOperatingChannelWidth(value: number): LRFHSSModulationInfo; - - getCodeRate(): string; - setCodeRate(value: string): LRFHSSModulationInfo; - - getGridSteps(): number; - setGridSteps(value: number): LRFHSSModulationInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LRFHSSModulationInfo.AsObject; - static toObject(includeInstance: boolean, msg: LRFHSSModulationInfo): LRFHSSModulationInfo.AsObject; - static serializeBinaryToWriter(message: LRFHSSModulationInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LRFHSSModulationInfo; - static deserializeBinaryFromReader(message: LRFHSSModulationInfo, reader: jspb.BinaryReader): LRFHSSModulationInfo; -} - -export namespace LRFHSSModulationInfo { - export type AsObject = { - operatingChannelWidth: number, - codeRate: string, - gridSteps: number, - } -} - -export class EncryptedFineTimestamp extends jspb.Message { - getAesKeyIndex(): number; - setAesKeyIndex(value: number): EncryptedFineTimestamp; - - getEncryptedNs(): Uint8Array | string; - getEncryptedNs_asU8(): Uint8Array; - getEncryptedNs_asB64(): string; - setEncryptedNs(value: Uint8Array | string): EncryptedFineTimestamp; - - getFpgaId(): Uint8Array | string; - getFpgaId_asU8(): Uint8Array; - getFpgaId_asB64(): string; - setFpgaId(value: Uint8Array | string): EncryptedFineTimestamp; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EncryptedFineTimestamp.AsObject; - static toObject(includeInstance: boolean, msg: EncryptedFineTimestamp): EncryptedFineTimestamp.AsObject; - static serializeBinaryToWriter(message: EncryptedFineTimestamp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EncryptedFineTimestamp; - static deserializeBinaryFromReader(message: EncryptedFineTimestamp, reader: jspb.BinaryReader): EncryptedFineTimestamp; -} - -export namespace EncryptedFineTimestamp { - export type AsObject = { - aesKeyIndex: number, - encryptedNs: Uint8Array | string, - fpgaId: Uint8Array | string, - } -} - -export class PlainFineTimestamp extends jspb.Message { - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): PlainFineTimestamp; - hasTime(): boolean; - clearTime(): PlainFineTimestamp; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlainFineTimestamp.AsObject; - static toObject(includeInstance: boolean, msg: PlainFineTimestamp): PlainFineTimestamp.AsObject; - static serializeBinaryToWriter(message: PlainFineTimestamp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlainFineTimestamp; - static deserializeBinaryFromReader(message: PlainFineTimestamp, reader: jspb.BinaryReader): PlainFineTimestamp; -} - -export namespace PlainFineTimestamp { - export type AsObject = { - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class GatewayStats extends jspb.Message { - getGatewayId(): Uint8Array | string; - getGatewayId_asU8(): Uint8Array; - getGatewayId_asB64(): string; - setGatewayId(value: Uint8Array | string): GatewayStats; - - getIp(): string; - setIp(value: string): GatewayStats; - - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): GatewayStats; - hasTime(): boolean; - clearTime(): GatewayStats; - - getLocation(): common_common_pb.Location | undefined; - setLocation(value?: common_common_pb.Location): GatewayStats; - hasLocation(): boolean; - clearLocation(): GatewayStats; - - getConfigVersion(): string; - setConfigVersion(value: string): GatewayStats; - - getRxPacketsReceived(): number; - setRxPacketsReceived(value: number): GatewayStats; - - getRxPacketsReceivedOk(): number; - setRxPacketsReceivedOk(value: number): GatewayStats; - - getTxPacketsReceived(): number; - setTxPacketsReceived(value: number): GatewayStats; - - getTxPacketsEmitted(): number; - setTxPacketsEmitted(value: number): GatewayStats; - - getMetaDataMap(): jspb.Map; - clearMetaDataMap(): GatewayStats; - - getStatsId(): Uint8Array | string; - getStatsId_asU8(): Uint8Array; - getStatsId_asB64(): string; - setStatsId(value: Uint8Array | string): GatewayStats; - - getTxPacketsPerFrequencyMap(): jspb.Map; - clearTxPacketsPerFrequencyMap(): GatewayStats; - - getRxPacketsPerFrequencyMap(): jspb.Map; - clearRxPacketsPerFrequencyMap(): GatewayStats; - - getTxPacketsPerModulationList(): Array; - setTxPacketsPerModulationList(value: Array): GatewayStats; - clearTxPacketsPerModulationList(): GatewayStats; - addTxPacketsPerModulation(value?: PerModulationCount, index?: number): PerModulationCount; - - getRxPacketsPerModulationList(): Array; - setRxPacketsPerModulationList(value: Array): GatewayStats; - clearRxPacketsPerModulationList(): GatewayStats; - addRxPacketsPerModulation(value?: PerModulationCount, index?: number): PerModulationCount; - - getTxPacketsPerStatusMap(): jspb.Map; - clearTxPacketsPerStatusMap(): GatewayStats; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GatewayStats.AsObject; - static toObject(includeInstance: boolean, msg: GatewayStats): GatewayStats.AsObject; - static serializeBinaryToWriter(message: GatewayStats, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GatewayStats; - static deserializeBinaryFromReader(message: GatewayStats, reader: jspb.BinaryReader): GatewayStats; -} - -export namespace GatewayStats { - export type AsObject = { - gatewayId: Uint8Array | string, - ip: string, - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - location?: common_common_pb.Location.AsObject, - configVersion: string, - rxPacketsReceived: number, - rxPacketsReceivedOk: number, - txPacketsReceived: number, - txPacketsEmitted: number, - metaDataMap: Array<[string, string]>, - statsId: Uint8Array | string, - txPacketsPerFrequencyMap: Array<[number, number]>, - rxPacketsPerFrequencyMap: Array<[number, number]>, - txPacketsPerModulationList: Array, - rxPacketsPerModulationList: Array, - txPacketsPerStatusMap: Array<[string, number]>, - } -} - -export class PerModulationCount extends jspb.Message { - getModulation(): Modulation | undefined; - setModulation(value?: Modulation): PerModulationCount; - hasModulation(): boolean; - clearModulation(): PerModulationCount; - - getCount(): number; - setCount(value: number): PerModulationCount; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PerModulationCount.AsObject; - static toObject(includeInstance: boolean, msg: PerModulationCount): PerModulationCount.AsObject; - static serializeBinaryToWriter(message: PerModulationCount, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PerModulationCount; - static deserializeBinaryFromReader(message: PerModulationCount, reader: jspb.BinaryReader): PerModulationCount; -} - -export namespace PerModulationCount { - export type AsObject = { - modulation?: Modulation.AsObject, - count: number, - } -} - -export class UplinkRXInfo extends jspb.Message { - getGatewayId(): Uint8Array | string; - getGatewayId_asU8(): Uint8Array; - getGatewayId_asB64(): string; - setGatewayId(value: Uint8Array | string): UplinkRXInfo; - - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): UplinkRXInfo; - hasTime(): boolean; - clearTime(): UplinkRXInfo; - - getTimeSinceGpsEpoch(): google_protobuf_duration_pb.Duration | undefined; - setTimeSinceGpsEpoch(value?: google_protobuf_duration_pb.Duration): UplinkRXInfo; - hasTimeSinceGpsEpoch(): boolean; - clearTimeSinceGpsEpoch(): UplinkRXInfo; - - getRssi(): number; - setRssi(value: number): UplinkRXInfo; - - getLoraSnr(): number; - setLoraSnr(value: number): UplinkRXInfo; - - getChannel(): number; - setChannel(value: number): UplinkRXInfo; - - getRfChain(): number; - setRfChain(value: number): UplinkRXInfo; - - getBoard(): number; - setBoard(value: number): UplinkRXInfo; - - getAntenna(): number; - setAntenna(value: number): UplinkRXInfo; - - getLocation(): common_common_pb.Location | undefined; - setLocation(value?: common_common_pb.Location): UplinkRXInfo; - hasLocation(): boolean; - clearLocation(): UplinkRXInfo; - - getFineTimestampType(): FineTimestampType; - setFineTimestampType(value: FineTimestampType): UplinkRXInfo; - - getEncryptedFineTimestamp(): EncryptedFineTimestamp | undefined; - setEncryptedFineTimestamp(value?: EncryptedFineTimestamp): UplinkRXInfo; - hasEncryptedFineTimestamp(): boolean; - clearEncryptedFineTimestamp(): UplinkRXInfo; - - getPlainFineTimestamp(): PlainFineTimestamp | undefined; - setPlainFineTimestamp(value?: PlainFineTimestamp): UplinkRXInfo; - hasPlainFineTimestamp(): boolean; - clearPlainFineTimestamp(): UplinkRXInfo; - - getContext(): Uint8Array | string; - getContext_asU8(): Uint8Array; - getContext_asB64(): string; - setContext(value: Uint8Array | string): UplinkRXInfo; - - getUplinkId(): Uint8Array | string; - getUplinkId_asU8(): Uint8Array; - getUplinkId_asB64(): string; - setUplinkId(value: Uint8Array | string): UplinkRXInfo; - - getCrcStatus(): CRCStatus; - setCrcStatus(value: CRCStatus): UplinkRXInfo; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): UplinkRXInfo; - - getFineTimestampCase(): UplinkRXInfo.FineTimestampCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UplinkRXInfo.AsObject; - static toObject(includeInstance: boolean, msg: UplinkRXInfo): UplinkRXInfo.AsObject; - static serializeBinaryToWriter(message: UplinkRXInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UplinkRXInfo; - static deserializeBinaryFromReader(message: UplinkRXInfo, reader: jspb.BinaryReader): UplinkRXInfo; -} - -export namespace UplinkRXInfo { - export type AsObject = { - gatewayId: Uint8Array | string, - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - timeSinceGpsEpoch?: google_protobuf_duration_pb.Duration.AsObject, - rssi: number, - loraSnr: number, - channel: number, - rfChain: number, - board: number, - antenna: number, - location?: common_common_pb.Location.AsObject, - fineTimestampType: FineTimestampType, - encryptedFineTimestamp?: EncryptedFineTimestamp.AsObject, - plainFineTimestamp?: PlainFineTimestamp.AsObject, - context: Uint8Array | string, - uplinkId: Uint8Array | string, - crcStatus: CRCStatus, - metadataMap: Array<[string, string]>, - } - - export enum FineTimestampCase { - FINE_TIMESTAMP_NOT_SET = 0, - ENCRYPTED_FINE_TIMESTAMP = 13, - PLAIN_FINE_TIMESTAMP = 14, - } -} - -export class DownlinkTXInfo extends jspb.Message { - getGatewayId(): Uint8Array | string; - getGatewayId_asU8(): Uint8Array; - getGatewayId_asB64(): string; - setGatewayId(value: Uint8Array | string): DownlinkTXInfo; - - getFrequency(): number; - setFrequency(value: number): DownlinkTXInfo; - - getPower(): number; - setPower(value: number): DownlinkTXInfo; - - getModulation(): common_common_pb.Modulation; - setModulation(value: common_common_pb.Modulation): DownlinkTXInfo; - - getLoraModulationInfo(): LoRaModulationInfo | undefined; - setLoraModulationInfo(value?: LoRaModulationInfo): DownlinkTXInfo; - hasLoraModulationInfo(): boolean; - clearLoraModulationInfo(): DownlinkTXInfo; - - getFskModulationInfo(): FSKModulationInfo | undefined; - setFskModulationInfo(value?: FSKModulationInfo): DownlinkTXInfo; - hasFskModulationInfo(): boolean; - clearFskModulationInfo(): DownlinkTXInfo; - - getBoard(): number; - setBoard(value: number): DownlinkTXInfo; - - getAntenna(): number; - setAntenna(value: number): DownlinkTXInfo; - - getTiming(): DownlinkTiming; - setTiming(value: DownlinkTiming): DownlinkTXInfo; - - getImmediatelyTimingInfo(): ImmediatelyTimingInfo | undefined; - setImmediatelyTimingInfo(value?: ImmediatelyTimingInfo): DownlinkTXInfo; - hasImmediatelyTimingInfo(): boolean; - clearImmediatelyTimingInfo(): DownlinkTXInfo; - - getDelayTimingInfo(): DelayTimingInfo | undefined; - setDelayTimingInfo(value?: DelayTimingInfo): DownlinkTXInfo; - hasDelayTimingInfo(): boolean; - clearDelayTimingInfo(): DownlinkTXInfo; - - getGpsEpochTimingInfo(): GPSEpochTimingInfo | undefined; - setGpsEpochTimingInfo(value?: GPSEpochTimingInfo): DownlinkTXInfo; - hasGpsEpochTimingInfo(): boolean; - clearGpsEpochTimingInfo(): DownlinkTXInfo; - - getContext(): Uint8Array | string; - getContext_asU8(): Uint8Array; - getContext_asB64(): string; - setContext(value: Uint8Array | string): DownlinkTXInfo; - - getModulationInfoCase(): DownlinkTXInfo.ModulationInfoCase; - - getTimingInfoCase(): DownlinkTXInfo.TimingInfoCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DownlinkTXInfo.AsObject; - static toObject(includeInstance: boolean, msg: DownlinkTXInfo): DownlinkTXInfo.AsObject; - static serializeBinaryToWriter(message: DownlinkTXInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DownlinkTXInfo; - static deserializeBinaryFromReader(message: DownlinkTXInfo, reader: jspb.BinaryReader): DownlinkTXInfo; -} - -export namespace DownlinkTXInfo { - export type AsObject = { - gatewayId: Uint8Array | string, - frequency: number, - power: number, - modulation: common_common_pb.Modulation, - loraModulationInfo?: LoRaModulationInfo.AsObject, - fskModulationInfo?: FSKModulationInfo.AsObject, - board: number, - antenna: number, - timing: DownlinkTiming, - immediatelyTimingInfo?: ImmediatelyTimingInfo.AsObject, - delayTimingInfo?: DelayTimingInfo.AsObject, - gpsEpochTimingInfo?: GPSEpochTimingInfo.AsObject, - context: Uint8Array | string, - } - - export enum ModulationInfoCase { - MODULATION_INFO_NOT_SET = 0, - LORA_MODULATION_INFO = 8, - FSK_MODULATION_INFO = 9, - } - - export enum TimingInfoCase { - TIMING_INFO_NOT_SET = 0, - IMMEDIATELY_TIMING_INFO = 13, - DELAY_TIMING_INFO = 14, - GPS_EPOCH_TIMING_INFO = 15, - } -} - -export class ImmediatelyTimingInfo extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ImmediatelyTimingInfo.AsObject; - static toObject(includeInstance: boolean, msg: ImmediatelyTimingInfo): ImmediatelyTimingInfo.AsObject; - static serializeBinaryToWriter(message: ImmediatelyTimingInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ImmediatelyTimingInfo; - static deserializeBinaryFromReader(message: ImmediatelyTimingInfo, reader: jspb.BinaryReader): ImmediatelyTimingInfo; -} - -export namespace ImmediatelyTimingInfo { - export type AsObject = { - } -} - -export class DelayTimingInfo extends jspb.Message { - getDelay(): google_protobuf_duration_pb.Duration | undefined; - setDelay(value?: google_protobuf_duration_pb.Duration): DelayTimingInfo; - hasDelay(): boolean; - clearDelay(): DelayTimingInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DelayTimingInfo.AsObject; - static toObject(includeInstance: boolean, msg: DelayTimingInfo): DelayTimingInfo.AsObject; - static serializeBinaryToWriter(message: DelayTimingInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DelayTimingInfo; - static deserializeBinaryFromReader(message: DelayTimingInfo, reader: jspb.BinaryReader): DelayTimingInfo; -} - -export namespace DelayTimingInfo { - export type AsObject = { - delay?: google_protobuf_duration_pb.Duration.AsObject, - } -} - -export class GPSEpochTimingInfo extends jspb.Message { - getTimeSinceGpsEpoch(): google_protobuf_duration_pb.Duration | undefined; - setTimeSinceGpsEpoch(value?: google_protobuf_duration_pb.Duration): GPSEpochTimingInfo; - hasTimeSinceGpsEpoch(): boolean; - clearTimeSinceGpsEpoch(): GPSEpochTimingInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GPSEpochTimingInfo.AsObject; - static toObject(includeInstance: boolean, msg: GPSEpochTimingInfo): GPSEpochTimingInfo.AsObject; - static serializeBinaryToWriter(message: GPSEpochTimingInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GPSEpochTimingInfo; - static deserializeBinaryFromReader(message: GPSEpochTimingInfo, reader: jspb.BinaryReader): GPSEpochTimingInfo; -} - -export namespace GPSEpochTimingInfo { - export type AsObject = { - timeSinceGpsEpoch?: google_protobuf_duration_pb.Duration.AsObject, - } -} - -export class UplinkFrame extends jspb.Message { - getPhyPayload(): Uint8Array | string; - getPhyPayload_asU8(): Uint8Array; - getPhyPayload_asB64(): string; - setPhyPayload(value: Uint8Array | string): UplinkFrame; - - getTxInfo(): UplinkTXInfo | undefined; - setTxInfo(value?: UplinkTXInfo): UplinkFrame; - hasTxInfo(): boolean; - clearTxInfo(): UplinkFrame; - - getRxInfo(): UplinkRXInfo | undefined; - setRxInfo(value?: UplinkRXInfo): UplinkFrame; - hasRxInfo(): boolean; - clearRxInfo(): UplinkFrame; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UplinkFrame.AsObject; - static toObject(includeInstance: boolean, msg: UplinkFrame): UplinkFrame.AsObject; - static serializeBinaryToWriter(message: UplinkFrame, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UplinkFrame; - static deserializeBinaryFromReader(message: UplinkFrame, reader: jspb.BinaryReader): UplinkFrame; -} - -export namespace UplinkFrame { - export type AsObject = { - phyPayload: Uint8Array | string, - txInfo?: UplinkTXInfo.AsObject, - rxInfo?: UplinkRXInfo.AsObject, - } -} - -export class UplinkFrameSet extends jspb.Message { - getPhyPayload(): Uint8Array | string; - getPhyPayload_asU8(): Uint8Array; - getPhyPayload_asB64(): string; - setPhyPayload(value: Uint8Array | string): UplinkFrameSet; - - getTxInfo(): UplinkTXInfo | undefined; - setTxInfo(value?: UplinkTXInfo): UplinkFrameSet; - hasTxInfo(): boolean; - clearTxInfo(): UplinkFrameSet; - - getRxInfoList(): Array; - setRxInfoList(value: Array): UplinkFrameSet; - clearRxInfoList(): UplinkFrameSet; - addRxInfo(value?: UplinkRXInfo, index?: number): UplinkRXInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UplinkFrameSet.AsObject; - static toObject(includeInstance: boolean, msg: UplinkFrameSet): UplinkFrameSet.AsObject; - static serializeBinaryToWriter(message: UplinkFrameSet, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UplinkFrameSet; - static deserializeBinaryFromReader(message: UplinkFrameSet, reader: jspb.BinaryReader): UplinkFrameSet; -} - -export namespace UplinkFrameSet { - export type AsObject = { - phyPayload: Uint8Array | string, - txInfo?: UplinkTXInfo.AsObject, - rxInfoList: Array, - } -} - -export class DownlinkFrame extends jspb.Message { - getPhyPayload(): Uint8Array | string; - getPhyPayload_asU8(): Uint8Array; - getPhyPayload_asB64(): string; - setPhyPayload(value: Uint8Array | string): DownlinkFrame; - - getTxInfo(): DownlinkTXInfo | undefined; - setTxInfo(value?: DownlinkTXInfo): DownlinkFrame; - hasTxInfo(): boolean; - clearTxInfo(): DownlinkFrame; - - getToken(): number; - setToken(value: number): DownlinkFrame; - - getDownlinkId(): Uint8Array | string; - getDownlinkId_asU8(): Uint8Array; - getDownlinkId_asB64(): string; - setDownlinkId(value: Uint8Array | string): DownlinkFrame; - - getItemsList(): Array; - setItemsList(value: Array): DownlinkFrame; - clearItemsList(): DownlinkFrame; - addItems(value?: DownlinkFrameItem, index?: number): DownlinkFrameItem; - - getGatewayId(): Uint8Array | string; - getGatewayId_asU8(): Uint8Array; - getGatewayId_asB64(): string; - setGatewayId(value: Uint8Array | string): DownlinkFrame; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DownlinkFrame.AsObject; - static toObject(includeInstance: boolean, msg: DownlinkFrame): DownlinkFrame.AsObject; - static serializeBinaryToWriter(message: DownlinkFrame, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DownlinkFrame; - static deserializeBinaryFromReader(message: DownlinkFrame, reader: jspb.BinaryReader): DownlinkFrame; -} - -export namespace DownlinkFrame { - export type AsObject = { - phyPayload: Uint8Array | string, - txInfo?: DownlinkTXInfo.AsObject, - token: number, - downlinkId: Uint8Array | string, - itemsList: Array, - gatewayId: Uint8Array | string, - } -} - -export class DownlinkFrameItem extends jspb.Message { - getPhyPayload(): Uint8Array | string; - getPhyPayload_asU8(): Uint8Array; - getPhyPayload_asB64(): string; - setPhyPayload(value: Uint8Array | string): DownlinkFrameItem; - - getTxInfo(): DownlinkTXInfo | undefined; - setTxInfo(value?: DownlinkTXInfo): DownlinkFrameItem; - hasTxInfo(): boolean; - clearTxInfo(): DownlinkFrameItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DownlinkFrameItem.AsObject; - static toObject(includeInstance: boolean, msg: DownlinkFrameItem): DownlinkFrameItem.AsObject; - static serializeBinaryToWriter(message: DownlinkFrameItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DownlinkFrameItem; - static deserializeBinaryFromReader(message: DownlinkFrameItem, reader: jspb.BinaryReader): DownlinkFrameItem; -} - -export namespace DownlinkFrameItem { - export type AsObject = { - phyPayload: Uint8Array | string, - txInfo?: DownlinkTXInfo.AsObject, - } -} - -export class DownlinkTXAck extends jspb.Message { - getGatewayId(): Uint8Array | string; - getGatewayId_asU8(): Uint8Array; - getGatewayId_asB64(): string; - setGatewayId(value: Uint8Array | string): DownlinkTXAck; - - getToken(): number; - setToken(value: number): DownlinkTXAck; - - getError(): string; - setError(value: string): DownlinkTXAck; - - getDownlinkId(): Uint8Array | string; - getDownlinkId_asU8(): Uint8Array; - getDownlinkId_asB64(): string; - setDownlinkId(value: Uint8Array | string): DownlinkTXAck; - - getItemsList(): Array; - setItemsList(value: Array): DownlinkTXAck; - clearItemsList(): DownlinkTXAck; - addItems(value?: DownlinkTXAckItem, index?: number): DownlinkTXAckItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DownlinkTXAck.AsObject; - static toObject(includeInstance: boolean, msg: DownlinkTXAck): DownlinkTXAck.AsObject; - static serializeBinaryToWriter(message: DownlinkTXAck, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DownlinkTXAck; - static deserializeBinaryFromReader(message: DownlinkTXAck, reader: jspb.BinaryReader): DownlinkTXAck; -} - -export namespace DownlinkTXAck { - export type AsObject = { - gatewayId: Uint8Array | string, - token: number, - error: string, - downlinkId: Uint8Array | string, - itemsList: Array, - } -} - -export class DownlinkTXAckItem extends jspb.Message { - getStatus(): TxAckStatus; - setStatus(value: TxAckStatus): DownlinkTXAckItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DownlinkTXAckItem.AsObject; - static toObject(includeInstance: boolean, msg: DownlinkTXAckItem): DownlinkTXAckItem.AsObject; - static serializeBinaryToWriter(message: DownlinkTXAckItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DownlinkTXAckItem; - static deserializeBinaryFromReader(message: DownlinkTXAckItem, reader: jspb.BinaryReader): DownlinkTXAckItem; -} - -export namespace DownlinkTXAckItem { - export type AsObject = { - status: TxAckStatus, - } -} - -export class GatewayConfiguration extends jspb.Message { - getGatewayId(): Uint8Array | string; - getGatewayId_asU8(): Uint8Array; - getGatewayId_asB64(): string; - setGatewayId(value: Uint8Array | string): GatewayConfiguration; - - getVersion(): string; - setVersion(value: string): GatewayConfiguration; - - getChannelsList(): Array; - setChannelsList(value: Array): GatewayConfiguration; - clearChannelsList(): GatewayConfiguration; - addChannels(value?: ChannelConfiguration, index?: number): ChannelConfiguration; - - getStatsInterval(): google_protobuf_duration_pb.Duration | undefined; - setStatsInterval(value?: google_protobuf_duration_pb.Duration): GatewayConfiguration; - hasStatsInterval(): boolean; - clearStatsInterval(): GatewayConfiguration; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GatewayConfiguration.AsObject; - static toObject(includeInstance: boolean, msg: GatewayConfiguration): GatewayConfiguration.AsObject; - static serializeBinaryToWriter(message: GatewayConfiguration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GatewayConfiguration; - static deserializeBinaryFromReader(message: GatewayConfiguration, reader: jspb.BinaryReader): GatewayConfiguration; -} - -export namespace GatewayConfiguration { - export type AsObject = { - gatewayId: Uint8Array | string, - version: string, - channelsList: Array, - statsInterval?: google_protobuf_duration_pb.Duration.AsObject, - } -} - -export class ChannelConfiguration extends jspb.Message { - getFrequency(): number; - setFrequency(value: number): ChannelConfiguration; - - getModulation(): common_common_pb.Modulation; - setModulation(value: common_common_pb.Modulation): ChannelConfiguration; - - getLoraModulationConfig(): LoRaModulationConfig | undefined; - setLoraModulationConfig(value?: LoRaModulationConfig): ChannelConfiguration; - hasLoraModulationConfig(): boolean; - clearLoraModulationConfig(): ChannelConfiguration; - - getFskModulationConfig(): FSKModulationConfig | undefined; - setFskModulationConfig(value?: FSKModulationConfig): ChannelConfiguration; - hasFskModulationConfig(): boolean; - clearFskModulationConfig(): ChannelConfiguration; - - getBoard(): number; - setBoard(value: number): ChannelConfiguration; - - getDemodulator(): number; - setDemodulator(value: number): ChannelConfiguration; - - getModulationConfigCase(): ChannelConfiguration.ModulationConfigCase; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChannelConfiguration.AsObject; - static toObject(includeInstance: boolean, msg: ChannelConfiguration): ChannelConfiguration.AsObject; - static serializeBinaryToWriter(message: ChannelConfiguration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChannelConfiguration; - static deserializeBinaryFromReader(message: ChannelConfiguration, reader: jspb.BinaryReader): ChannelConfiguration; -} - -export namespace ChannelConfiguration { - export type AsObject = { - frequency: number, - modulation: common_common_pb.Modulation, - loraModulationConfig?: LoRaModulationConfig.AsObject, - fskModulationConfig?: FSKModulationConfig.AsObject, - board: number, - demodulator: number, - } - - export enum ModulationConfigCase { - MODULATION_CONFIG_NOT_SET = 0, - LORA_MODULATION_CONFIG = 3, - FSK_MODULATION_CONFIG = 4, - } -} - -export class LoRaModulationConfig extends jspb.Message { - getBandwidth(): number; - setBandwidth(value: number): LoRaModulationConfig; - - getSpreadingFactorsList(): Array; - setSpreadingFactorsList(value: Array): LoRaModulationConfig; - clearSpreadingFactorsList(): LoRaModulationConfig; - addSpreadingFactors(value: number, index?: number): LoRaModulationConfig; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoRaModulationConfig.AsObject; - static toObject(includeInstance: boolean, msg: LoRaModulationConfig): LoRaModulationConfig.AsObject; - static serializeBinaryToWriter(message: LoRaModulationConfig, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoRaModulationConfig; - static deserializeBinaryFromReader(message: LoRaModulationConfig, reader: jspb.BinaryReader): LoRaModulationConfig; -} - -export namespace LoRaModulationConfig { - export type AsObject = { - bandwidth: number, - spreadingFactorsList: Array, - } -} - -export class FSKModulationConfig extends jspb.Message { - getBandwidth(): number; - setBandwidth(value: number): FSKModulationConfig; - - getBitrate(): number; - setBitrate(value: number): FSKModulationConfig; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FSKModulationConfig.AsObject; - static toObject(includeInstance: boolean, msg: FSKModulationConfig): FSKModulationConfig.AsObject; - static serializeBinaryToWriter(message: FSKModulationConfig, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FSKModulationConfig; - static deserializeBinaryFromReader(message: FSKModulationConfig, reader: jspb.BinaryReader): FSKModulationConfig; -} - -export namespace FSKModulationConfig { - export type AsObject = { - bandwidth: number, - bitrate: number, - } -} - -export class GatewayCommandExecRequest extends jspb.Message { - getGatewayId(): Uint8Array | string; - getGatewayId_asU8(): Uint8Array; - getGatewayId_asB64(): string; - setGatewayId(value: Uint8Array | string): GatewayCommandExecRequest; - - getCommand(): string; - setCommand(value: string): GatewayCommandExecRequest; - - getExecid(): Uint8Array | string; - getExecid_asU8(): Uint8Array; - getExecid_asB64(): string; - setExecid(value: Uint8Array | string): GatewayCommandExecRequest; - - getStdin(): Uint8Array | string; - getStdin_asU8(): Uint8Array; - getStdin_asB64(): string; - setStdin(value: Uint8Array | string): GatewayCommandExecRequest; - - getEnvironmentMap(): jspb.Map; - clearEnvironmentMap(): GatewayCommandExecRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GatewayCommandExecRequest.AsObject; - static toObject(includeInstance: boolean, msg: GatewayCommandExecRequest): GatewayCommandExecRequest.AsObject; - static serializeBinaryToWriter(message: GatewayCommandExecRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GatewayCommandExecRequest; - static deserializeBinaryFromReader(message: GatewayCommandExecRequest, reader: jspb.BinaryReader): GatewayCommandExecRequest; -} - -export namespace GatewayCommandExecRequest { - export type AsObject = { - gatewayId: Uint8Array | string, - command: string, - execid: Uint8Array | string, - stdin: Uint8Array | string, - environmentMap: Array<[string, string]>, - } -} - -export class GatewayCommandExecResponse extends jspb.Message { - getGatewayId(): Uint8Array | string; - getGatewayId_asU8(): Uint8Array; - getGatewayId_asB64(): string; - setGatewayId(value: Uint8Array | string): GatewayCommandExecResponse; - - getExecId(): Uint8Array | string; - getExecId_asU8(): Uint8Array; - getExecId_asB64(): string; - setExecId(value: Uint8Array | string): GatewayCommandExecResponse; - - getStdout(): Uint8Array | string; - getStdout_asU8(): Uint8Array; - getStdout_asB64(): string; - setStdout(value: Uint8Array | string): GatewayCommandExecResponse; - - getStderr(): Uint8Array | string; - getStderr_asU8(): Uint8Array; - getStderr_asB64(): string; - setStderr(value: Uint8Array | string): GatewayCommandExecResponse; - - getError(): string; - setError(value: string): GatewayCommandExecResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GatewayCommandExecResponse.AsObject; - static toObject(includeInstance: boolean, msg: GatewayCommandExecResponse): GatewayCommandExecResponse.AsObject; - static serializeBinaryToWriter(message: GatewayCommandExecResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GatewayCommandExecResponse; - static deserializeBinaryFromReader(message: GatewayCommandExecResponse, reader: jspb.BinaryReader): GatewayCommandExecResponse; -} - -export namespace GatewayCommandExecResponse { - export type AsObject = { - gatewayId: Uint8Array | string, - execId: Uint8Array | string, - stdout: Uint8Array | string, - stderr: Uint8Array | string, - error: string, - } -} - -export class RawPacketForwarderEvent extends jspb.Message { - getGatewayId(): Uint8Array | string; - getGatewayId_asU8(): Uint8Array; - getGatewayId_asB64(): string; - setGatewayId(value: Uint8Array | string): RawPacketForwarderEvent; - - getRawId(): Uint8Array | string; - getRawId_asU8(): Uint8Array; - getRawId_asB64(): string; - setRawId(value: Uint8Array | string): RawPacketForwarderEvent; - - getPayload(): Uint8Array | string; - getPayload_asU8(): Uint8Array; - getPayload_asB64(): string; - setPayload(value: Uint8Array | string): RawPacketForwarderEvent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RawPacketForwarderEvent.AsObject; - static toObject(includeInstance: boolean, msg: RawPacketForwarderEvent): RawPacketForwarderEvent.AsObject; - static serializeBinaryToWriter(message: RawPacketForwarderEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RawPacketForwarderEvent; - static deserializeBinaryFromReader(message: RawPacketForwarderEvent, reader: jspb.BinaryReader): RawPacketForwarderEvent; -} - -export namespace RawPacketForwarderEvent { - export type AsObject = { - gatewayId: Uint8Array | string, - rawId: Uint8Array | string, - payload: Uint8Array | string, - } -} - -export class RawPacketForwarderCommand extends jspb.Message { - getGatewayId(): Uint8Array | string; - getGatewayId_asU8(): Uint8Array; - getGatewayId_asB64(): string; - setGatewayId(value: Uint8Array | string): RawPacketForwarderCommand; - - getRawId(): Uint8Array | string; - getRawId_asU8(): Uint8Array; - getRawId_asB64(): string; - setRawId(value: Uint8Array | string): RawPacketForwarderCommand; - - getPayload(): Uint8Array | string; - getPayload_asU8(): Uint8Array; - getPayload_asB64(): string; - setPayload(value: Uint8Array | string): RawPacketForwarderCommand; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RawPacketForwarderCommand.AsObject; - static toObject(includeInstance: boolean, msg: RawPacketForwarderCommand): RawPacketForwarderCommand.AsObject; - static serializeBinaryToWriter(message: RawPacketForwarderCommand, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RawPacketForwarderCommand; - static deserializeBinaryFromReader(message: RawPacketForwarderCommand, reader: jspb.BinaryReader): RawPacketForwarderCommand; -} - -export namespace RawPacketForwarderCommand { - export type AsObject = { - gatewayId: Uint8Array | string, - rawId: Uint8Array | string, - payload: Uint8Array | string, - } -} - -export class ConnState extends jspb.Message { - getGatewayId(): Uint8Array | string; - getGatewayId_asU8(): Uint8Array; - getGatewayId_asB64(): string; - setGatewayId(value: Uint8Array | string): ConnState; - - getState(): ConnState.State; - setState(value: ConnState.State): ConnState; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConnState.AsObject; - static toObject(includeInstance: boolean, msg: ConnState): ConnState.AsObject; - static serializeBinaryToWriter(message: ConnState, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConnState; - static deserializeBinaryFromReader(message: ConnState, reader: jspb.BinaryReader): ConnState; -} - -export namespace ConnState { - export type AsObject = { - gatewayId: Uint8Array | string, - state: ConnState.State, - } - - export enum State { - OFFLINE = 0, - ONLINE = 1, - } -} - -export enum DownlinkTiming { - IMMEDIATELY = 0, - DELAY = 1, - GPS_EPOCH = 2, -} -export enum FineTimestampType { - NONE = 0, - ENCRYPTED = 1, - PLAIN = 2, -} -export enum CRCStatus { - NO_CRC = 0, - BAD_CRC = 1, - CRC_OK = 2, -} -export enum TxAckStatus { - IGNORED = 0, - OK = 1, - TOO_LATE = 2, - TOO_EARLY = 3, - COLLISION_PACKET = 4, - COLLISION_BEACON = 5, - TX_FREQ = 6, - TX_POWER = 7, - GPS_UNLOCKED = 8, - QUEUE_FULL = 9, - INTERNAL_ERROR = 10, -} diff --git a/api/grpc-web/gw/gw_pb.js b/api/grpc-web/gw/gw_pb.js deleted file mode 100644 index a7f35fcb..00000000 --- a/api/grpc-web/gw/gw_pb.js +++ /dev/null @@ -1,9077 +0,0 @@ -// source: gw/gw.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); -goog.object.extend(proto, google_protobuf_duration_pb); -goog.exportSymbol('proto.gw.CRCStatus', null, global); -goog.exportSymbol('proto.gw.ChannelConfiguration', null, global); -goog.exportSymbol('proto.gw.ChannelConfiguration.ModulationConfigCase', null, global); -goog.exportSymbol('proto.gw.ConnState', null, global); -goog.exportSymbol('proto.gw.ConnState.State', null, global); -goog.exportSymbol('proto.gw.DelayTimingInfo', null, global); -goog.exportSymbol('proto.gw.DownlinkFrame', null, global); -goog.exportSymbol('proto.gw.DownlinkFrameItem', null, global); -goog.exportSymbol('proto.gw.DownlinkTXAck', null, global); -goog.exportSymbol('proto.gw.DownlinkTXAckItem', null, global); -goog.exportSymbol('proto.gw.DownlinkTXInfo', null, global); -goog.exportSymbol('proto.gw.DownlinkTXInfo.ModulationInfoCase', null, global); -goog.exportSymbol('proto.gw.DownlinkTXInfo.TimingInfoCase', null, global); -goog.exportSymbol('proto.gw.DownlinkTiming', null, global); -goog.exportSymbol('proto.gw.EncryptedFineTimestamp', null, global); -goog.exportSymbol('proto.gw.FSKModulationConfig', null, global); -goog.exportSymbol('proto.gw.FSKModulationInfo', null, global); -goog.exportSymbol('proto.gw.FineTimestampType', null, global); -goog.exportSymbol('proto.gw.GPSEpochTimingInfo', null, global); -goog.exportSymbol('proto.gw.GatewayCommandExecRequest', null, global); -goog.exportSymbol('proto.gw.GatewayCommandExecResponse', null, global); -goog.exportSymbol('proto.gw.GatewayConfiguration', null, global); -goog.exportSymbol('proto.gw.GatewayStats', null, global); -goog.exportSymbol('proto.gw.ImmediatelyTimingInfo', null, global); -goog.exportSymbol('proto.gw.LRFHSSModulationInfo', null, global); -goog.exportSymbol('proto.gw.LoRaModulationConfig', null, global); -goog.exportSymbol('proto.gw.LoRaModulationInfo', null, global); -goog.exportSymbol('proto.gw.Modulation', null, global); -goog.exportSymbol('proto.gw.Modulation.ParametersCase', null, global); -goog.exportSymbol('proto.gw.PerModulationCount', null, global); -goog.exportSymbol('proto.gw.PlainFineTimestamp', null, global); -goog.exportSymbol('proto.gw.RawPacketForwarderCommand', null, global); -goog.exportSymbol('proto.gw.RawPacketForwarderEvent', null, global); -goog.exportSymbol('proto.gw.TxAckStatus', null, global); -goog.exportSymbol('proto.gw.UplinkFrame', null, global); -goog.exportSymbol('proto.gw.UplinkFrameSet', null, global); -goog.exportSymbol('proto.gw.UplinkRXInfo', null, global); -goog.exportSymbol('proto.gw.UplinkRXInfo.FineTimestampCase', null, global); -goog.exportSymbol('proto.gw.UplinkTXInfo', null, global); -goog.exportSymbol('proto.gw.UplinkTXInfo.ModulationInfoCase', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.Modulation = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gw.Modulation.oneofGroups_); -}; -goog.inherits(proto.gw.Modulation, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.Modulation.displayName = 'proto.gw.Modulation'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.UplinkTXInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gw.UplinkTXInfo.oneofGroups_); -}; -goog.inherits(proto.gw.UplinkTXInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.UplinkTXInfo.displayName = 'proto.gw.UplinkTXInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.LoRaModulationInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.LoRaModulationInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.LoRaModulationInfo.displayName = 'proto.gw.LoRaModulationInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.FSKModulationInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.FSKModulationInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.FSKModulationInfo.displayName = 'proto.gw.FSKModulationInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.LRFHSSModulationInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.LRFHSSModulationInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.LRFHSSModulationInfo.displayName = 'proto.gw.LRFHSSModulationInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.EncryptedFineTimestamp = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.EncryptedFineTimestamp, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.EncryptedFineTimestamp.displayName = 'proto.gw.EncryptedFineTimestamp'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.PlainFineTimestamp = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.PlainFineTimestamp, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.PlainFineTimestamp.displayName = 'proto.gw.PlainFineTimestamp'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.GatewayStats = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.gw.GatewayStats.repeatedFields_, null); -}; -goog.inherits(proto.gw.GatewayStats, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.GatewayStats.displayName = 'proto.gw.GatewayStats'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.PerModulationCount = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.PerModulationCount, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.PerModulationCount.displayName = 'proto.gw.PerModulationCount'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.UplinkRXInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gw.UplinkRXInfo.oneofGroups_); -}; -goog.inherits(proto.gw.UplinkRXInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.UplinkRXInfo.displayName = 'proto.gw.UplinkRXInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.DownlinkTXInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gw.DownlinkTXInfo.oneofGroups_); -}; -goog.inherits(proto.gw.DownlinkTXInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.DownlinkTXInfo.displayName = 'proto.gw.DownlinkTXInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.ImmediatelyTimingInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.ImmediatelyTimingInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.ImmediatelyTimingInfo.displayName = 'proto.gw.ImmediatelyTimingInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.DelayTimingInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.DelayTimingInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.DelayTimingInfo.displayName = 'proto.gw.DelayTimingInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.GPSEpochTimingInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.GPSEpochTimingInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.GPSEpochTimingInfo.displayName = 'proto.gw.GPSEpochTimingInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.UplinkFrame = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.UplinkFrame, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.UplinkFrame.displayName = 'proto.gw.UplinkFrame'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.UplinkFrameSet = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.gw.UplinkFrameSet.repeatedFields_, null); -}; -goog.inherits(proto.gw.UplinkFrameSet, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.UplinkFrameSet.displayName = 'proto.gw.UplinkFrameSet'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.DownlinkFrame = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.gw.DownlinkFrame.repeatedFields_, null); -}; -goog.inherits(proto.gw.DownlinkFrame, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.DownlinkFrame.displayName = 'proto.gw.DownlinkFrame'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.DownlinkFrameItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.DownlinkFrameItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.DownlinkFrameItem.displayName = 'proto.gw.DownlinkFrameItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.DownlinkTXAck = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.gw.DownlinkTXAck.repeatedFields_, null); -}; -goog.inherits(proto.gw.DownlinkTXAck, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.DownlinkTXAck.displayName = 'proto.gw.DownlinkTXAck'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.DownlinkTXAckItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.DownlinkTXAckItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.DownlinkTXAckItem.displayName = 'proto.gw.DownlinkTXAckItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.GatewayConfiguration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.gw.GatewayConfiguration.repeatedFields_, null); -}; -goog.inherits(proto.gw.GatewayConfiguration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.GatewayConfiguration.displayName = 'proto.gw.GatewayConfiguration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.ChannelConfiguration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gw.ChannelConfiguration.oneofGroups_); -}; -goog.inherits(proto.gw.ChannelConfiguration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.ChannelConfiguration.displayName = 'proto.gw.ChannelConfiguration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.LoRaModulationConfig = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.gw.LoRaModulationConfig.repeatedFields_, null); -}; -goog.inherits(proto.gw.LoRaModulationConfig, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.LoRaModulationConfig.displayName = 'proto.gw.LoRaModulationConfig'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.FSKModulationConfig = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.FSKModulationConfig, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.FSKModulationConfig.displayName = 'proto.gw.FSKModulationConfig'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.GatewayCommandExecRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.GatewayCommandExecRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.GatewayCommandExecRequest.displayName = 'proto.gw.GatewayCommandExecRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.GatewayCommandExecResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.GatewayCommandExecResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.GatewayCommandExecResponse.displayName = 'proto.gw.GatewayCommandExecResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.RawPacketForwarderEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.RawPacketForwarderEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.RawPacketForwarderEvent.displayName = 'proto.gw.RawPacketForwarderEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.RawPacketForwarderCommand = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.RawPacketForwarderCommand, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.RawPacketForwarderCommand.displayName = 'proto.gw.RawPacketForwarderCommand'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.ConnState = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.ConnState, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.ConnState.displayName = 'proto.gw.ConnState'; -} - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.gw.Modulation.oneofGroups_ = [[3,4,5]]; - -/** - * @enum {number} - */ -proto.gw.Modulation.ParametersCase = { - PARAMETERS_NOT_SET: 0, - LORA: 3, - FSK: 4, - LR_FHSS: 5 -}; - -/** - * @return {proto.gw.Modulation.ParametersCase} - */ -proto.gw.Modulation.prototype.getParametersCase = function() { - return /** @type {proto.gw.Modulation.ParametersCase} */(jspb.Message.computeOneofCase(this, proto.gw.Modulation.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.Modulation.prototype.toObject = function(opt_includeInstance) { - return proto.gw.Modulation.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.Modulation} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.Modulation.toObject = function(includeInstance, msg) { - var f, obj = { - lora: (f = msg.getLora()) && proto.gw.LoRaModulationInfo.toObject(includeInstance, f), - fsk: (f = msg.getFsk()) && proto.gw.FSKModulationInfo.toObject(includeInstance, f), - lrFhss: (f = msg.getLrFhss()) && proto.gw.LRFHSSModulationInfo.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.Modulation} - */ -proto.gw.Modulation.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.Modulation; - return proto.gw.Modulation.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.Modulation} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.Modulation} - */ -proto.gw.Modulation.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 3: - var value = new proto.gw.LoRaModulationInfo; - reader.readMessage(value,proto.gw.LoRaModulationInfo.deserializeBinaryFromReader); - msg.setLora(value); - break; - case 4: - var value = new proto.gw.FSKModulationInfo; - reader.readMessage(value,proto.gw.FSKModulationInfo.deserializeBinaryFromReader); - msg.setFsk(value); - break; - case 5: - var value = new proto.gw.LRFHSSModulationInfo; - reader.readMessage(value,proto.gw.LRFHSSModulationInfo.deserializeBinaryFromReader); - msg.setLrFhss(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.Modulation.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.Modulation.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.Modulation} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.Modulation.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLora(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.gw.LoRaModulationInfo.serializeBinaryToWriter - ); - } - f = message.getFsk(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.gw.FSKModulationInfo.serializeBinaryToWriter - ); - } - f = message.getLrFhss(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.gw.LRFHSSModulationInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * optional LoRaModulationInfo lora = 3; - * @return {?proto.gw.LoRaModulationInfo} - */ -proto.gw.Modulation.prototype.getLora = function() { - return /** @type{?proto.gw.LoRaModulationInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.LoRaModulationInfo, 3)); -}; - - -/** - * @param {?proto.gw.LoRaModulationInfo|undefined} value - * @return {!proto.gw.Modulation} returns this -*/ -proto.gw.Modulation.prototype.setLora = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.gw.Modulation.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.Modulation} returns this - */ -proto.gw.Modulation.prototype.clearLora = function() { - return this.setLora(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.Modulation.prototype.hasLora = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional FSKModulationInfo fsk = 4; - * @return {?proto.gw.FSKModulationInfo} - */ -proto.gw.Modulation.prototype.getFsk = function() { - return /** @type{?proto.gw.FSKModulationInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.FSKModulationInfo, 4)); -}; - - -/** - * @param {?proto.gw.FSKModulationInfo|undefined} value - * @return {!proto.gw.Modulation} returns this -*/ -proto.gw.Modulation.prototype.setFsk = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.gw.Modulation.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.Modulation} returns this - */ -proto.gw.Modulation.prototype.clearFsk = function() { - return this.setFsk(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.Modulation.prototype.hasFsk = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional LRFHSSModulationInfo lr_fhss = 5; - * @return {?proto.gw.LRFHSSModulationInfo} - */ -proto.gw.Modulation.prototype.getLrFhss = function() { - return /** @type{?proto.gw.LRFHSSModulationInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.LRFHSSModulationInfo, 5)); -}; - - -/** - * @param {?proto.gw.LRFHSSModulationInfo|undefined} value - * @return {!proto.gw.Modulation} returns this -*/ -proto.gw.Modulation.prototype.setLrFhss = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.gw.Modulation.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.Modulation} returns this - */ -proto.gw.Modulation.prototype.clearLrFhss = function() { - return this.setLrFhss(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.Modulation.prototype.hasLrFhss = function() { - return jspb.Message.getField(this, 5) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.gw.UplinkTXInfo.oneofGroups_ = [[3,4,5]]; - -/** - * @enum {number} - */ -proto.gw.UplinkTXInfo.ModulationInfoCase = { - MODULATION_INFO_NOT_SET: 0, - LORA_MODULATION_INFO: 3, - FSK_MODULATION_INFO: 4, - LR_FHSS_MODULATION_INFO: 5 -}; - -/** - * @return {proto.gw.UplinkTXInfo.ModulationInfoCase} - */ -proto.gw.UplinkTXInfo.prototype.getModulationInfoCase = function() { - return /** @type {proto.gw.UplinkTXInfo.ModulationInfoCase} */(jspb.Message.computeOneofCase(this, proto.gw.UplinkTXInfo.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.UplinkTXInfo.prototype.toObject = function(opt_includeInstance) { - return proto.gw.UplinkTXInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.UplinkTXInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkTXInfo.toObject = function(includeInstance, msg) { - var f, obj = { - frequency: jspb.Message.getFieldWithDefault(msg, 1, 0), - modulation: jspb.Message.getFieldWithDefault(msg, 2, 0), - loraModulationInfo: (f = msg.getLoraModulationInfo()) && proto.gw.LoRaModulationInfo.toObject(includeInstance, f), - fskModulationInfo: (f = msg.getFskModulationInfo()) && proto.gw.FSKModulationInfo.toObject(includeInstance, f), - lrFhssModulationInfo: (f = msg.getLrFhssModulationInfo()) && proto.gw.LRFHSSModulationInfo.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.UplinkTXInfo} - */ -proto.gw.UplinkTXInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.UplinkTXInfo; - return proto.gw.UplinkTXInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.UplinkTXInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.UplinkTXInfo} - */ -proto.gw.UplinkTXInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFrequency(value); - break; - case 2: - var value = /** @type {!proto.common.Modulation} */ (reader.readEnum()); - msg.setModulation(value); - break; - case 3: - var value = new proto.gw.LoRaModulationInfo; - reader.readMessage(value,proto.gw.LoRaModulationInfo.deserializeBinaryFromReader); - msg.setLoraModulationInfo(value); - break; - case 4: - var value = new proto.gw.FSKModulationInfo; - reader.readMessage(value,proto.gw.FSKModulationInfo.deserializeBinaryFromReader); - msg.setFskModulationInfo(value); - break; - case 5: - var value = new proto.gw.LRFHSSModulationInfo; - reader.readMessage(value,proto.gw.LRFHSSModulationInfo.deserializeBinaryFromReader); - msg.setLrFhssModulationInfo(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.UplinkTXInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.UplinkTXInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.UplinkTXInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkTXInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFrequency(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getModulation(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getLoraModulationInfo(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.gw.LoRaModulationInfo.serializeBinaryToWriter - ); - } - f = message.getFskModulationInfo(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.gw.FSKModulationInfo.serializeBinaryToWriter - ); - } - f = message.getLrFhssModulationInfo(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.gw.LRFHSSModulationInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 frequency = 1; - * @return {number} - */ -proto.gw.UplinkTXInfo.prototype.getFrequency = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkTXInfo} returns this - */ -proto.gw.UplinkTXInfo.prototype.setFrequency = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional common.Modulation modulation = 2; - * @return {!proto.common.Modulation} - */ -proto.gw.UplinkTXInfo.prototype.getModulation = function() { - return /** @type {!proto.common.Modulation} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.common.Modulation} value - * @return {!proto.gw.UplinkTXInfo} returns this - */ -proto.gw.UplinkTXInfo.prototype.setModulation = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional LoRaModulationInfo lora_modulation_info = 3; - * @return {?proto.gw.LoRaModulationInfo} - */ -proto.gw.UplinkTXInfo.prototype.getLoraModulationInfo = function() { - return /** @type{?proto.gw.LoRaModulationInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.LoRaModulationInfo, 3)); -}; - - -/** - * @param {?proto.gw.LoRaModulationInfo|undefined} value - * @return {!proto.gw.UplinkTXInfo} returns this -*/ -proto.gw.UplinkTXInfo.prototype.setLoraModulationInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.gw.UplinkTXInfo.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkTXInfo} returns this - */ -proto.gw.UplinkTXInfo.prototype.clearLoraModulationInfo = function() { - return this.setLoraModulationInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkTXInfo.prototype.hasLoraModulationInfo = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional FSKModulationInfo fsk_modulation_info = 4; - * @return {?proto.gw.FSKModulationInfo} - */ -proto.gw.UplinkTXInfo.prototype.getFskModulationInfo = function() { - return /** @type{?proto.gw.FSKModulationInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.FSKModulationInfo, 4)); -}; - - -/** - * @param {?proto.gw.FSKModulationInfo|undefined} value - * @return {!proto.gw.UplinkTXInfo} returns this -*/ -proto.gw.UplinkTXInfo.prototype.setFskModulationInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.gw.UplinkTXInfo.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkTXInfo} returns this - */ -proto.gw.UplinkTXInfo.prototype.clearFskModulationInfo = function() { - return this.setFskModulationInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkTXInfo.prototype.hasFskModulationInfo = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional LRFHSSModulationInfo lr_fhss_modulation_info = 5; - * @return {?proto.gw.LRFHSSModulationInfo} - */ -proto.gw.UplinkTXInfo.prototype.getLrFhssModulationInfo = function() { - return /** @type{?proto.gw.LRFHSSModulationInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.LRFHSSModulationInfo, 5)); -}; - - -/** - * @param {?proto.gw.LRFHSSModulationInfo|undefined} value - * @return {!proto.gw.UplinkTXInfo} returns this -*/ -proto.gw.UplinkTXInfo.prototype.setLrFhssModulationInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.gw.UplinkTXInfo.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkTXInfo} returns this - */ -proto.gw.UplinkTXInfo.prototype.clearLrFhssModulationInfo = function() { - return this.setLrFhssModulationInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkTXInfo.prototype.hasLrFhssModulationInfo = function() { - return jspb.Message.getField(this, 5) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.LoRaModulationInfo.prototype.toObject = function(opt_includeInstance) { - return proto.gw.LoRaModulationInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.LoRaModulationInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.LoRaModulationInfo.toObject = function(includeInstance, msg) { - var f, obj = { - bandwidth: jspb.Message.getFieldWithDefault(msg, 1, 0), - spreadingFactor: jspb.Message.getFieldWithDefault(msg, 2, 0), - codeRate: jspb.Message.getFieldWithDefault(msg, 3, ""), - polarizationInversion: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.LoRaModulationInfo} - */ -proto.gw.LoRaModulationInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.LoRaModulationInfo; - return proto.gw.LoRaModulationInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.LoRaModulationInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.LoRaModulationInfo} - */ -proto.gw.LoRaModulationInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBandwidth(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSpreadingFactor(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setCodeRate(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPolarizationInversion(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.LoRaModulationInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.LoRaModulationInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.LoRaModulationInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.LoRaModulationInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBandwidth(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getSpreadingFactor(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getCodeRate(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPolarizationInversion(); - if (f) { - writer.writeBool( - 4, - f - ); - } -}; - - -/** - * optional uint32 bandwidth = 1; - * @return {number} - */ -proto.gw.LoRaModulationInfo.prototype.getBandwidth = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.LoRaModulationInfo} returns this - */ -proto.gw.LoRaModulationInfo.prototype.setBandwidth = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 spreading_factor = 2; - * @return {number} - */ -proto.gw.LoRaModulationInfo.prototype.getSpreadingFactor = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.LoRaModulationInfo} returns this - */ -proto.gw.LoRaModulationInfo.prototype.setSpreadingFactor = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string code_rate = 3; - * @return {string} - */ -proto.gw.LoRaModulationInfo.prototype.getCodeRate = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.LoRaModulationInfo} returns this - */ -proto.gw.LoRaModulationInfo.prototype.setCodeRate = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional bool polarization_inversion = 4; - * @return {boolean} - */ -proto.gw.LoRaModulationInfo.prototype.getPolarizationInversion = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.gw.LoRaModulationInfo} returns this - */ -proto.gw.LoRaModulationInfo.prototype.setPolarizationInversion = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.FSKModulationInfo.prototype.toObject = function(opt_includeInstance) { - return proto.gw.FSKModulationInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.FSKModulationInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.FSKModulationInfo.toObject = function(includeInstance, msg) { - var f, obj = { - frequencyDeviation: jspb.Message.getFieldWithDefault(msg, 1, 0), - datarate: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.FSKModulationInfo} - */ -proto.gw.FSKModulationInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.FSKModulationInfo; - return proto.gw.FSKModulationInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.FSKModulationInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.FSKModulationInfo} - */ -proto.gw.FSKModulationInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFrequencyDeviation(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDatarate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.FSKModulationInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.FSKModulationInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.FSKModulationInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.FSKModulationInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFrequencyDeviation(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getDatarate(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } -}; - - -/** - * optional uint32 frequency_deviation = 1; - * @return {number} - */ -proto.gw.FSKModulationInfo.prototype.getFrequencyDeviation = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.FSKModulationInfo} returns this - */ -proto.gw.FSKModulationInfo.prototype.setFrequencyDeviation = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 datarate = 2; - * @return {number} - */ -proto.gw.FSKModulationInfo.prototype.getDatarate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.FSKModulationInfo} returns this - */ -proto.gw.FSKModulationInfo.prototype.setDatarate = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.LRFHSSModulationInfo.prototype.toObject = function(opt_includeInstance) { - return proto.gw.LRFHSSModulationInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.LRFHSSModulationInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.LRFHSSModulationInfo.toObject = function(includeInstance, msg) { - var f, obj = { - operatingChannelWidth: jspb.Message.getFieldWithDefault(msg, 1, 0), - codeRate: jspb.Message.getFieldWithDefault(msg, 2, ""), - gridSteps: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.LRFHSSModulationInfo} - */ -proto.gw.LRFHSSModulationInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.LRFHSSModulationInfo; - return proto.gw.LRFHSSModulationInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.LRFHSSModulationInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.LRFHSSModulationInfo} - */ -proto.gw.LRFHSSModulationInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOperatingChannelWidth(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCodeRate(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setGridSteps(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.LRFHSSModulationInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.LRFHSSModulationInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.LRFHSSModulationInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.LRFHSSModulationInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOperatingChannelWidth(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getCodeRate(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getGridSteps(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } -}; - - -/** - * optional uint32 operating_channel_width = 1; - * @return {number} - */ -proto.gw.LRFHSSModulationInfo.prototype.getOperatingChannelWidth = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.LRFHSSModulationInfo} returns this - */ -proto.gw.LRFHSSModulationInfo.prototype.setOperatingChannelWidth = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string code_rate = 2; - * @return {string} - */ -proto.gw.LRFHSSModulationInfo.prototype.getCodeRate = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.LRFHSSModulationInfo} returns this - */ -proto.gw.LRFHSSModulationInfo.prototype.setCodeRate = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint32 grid_steps = 3; - * @return {number} - */ -proto.gw.LRFHSSModulationInfo.prototype.getGridSteps = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.LRFHSSModulationInfo} returns this - */ -proto.gw.LRFHSSModulationInfo.prototype.setGridSteps = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.EncryptedFineTimestamp.prototype.toObject = function(opt_includeInstance) { - return proto.gw.EncryptedFineTimestamp.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.EncryptedFineTimestamp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.EncryptedFineTimestamp.toObject = function(includeInstance, msg) { - var f, obj = { - aesKeyIndex: jspb.Message.getFieldWithDefault(msg, 1, 0), - encryptedNs: msg.getEncryptedNs_asB64(), - fpgaId: msg.getFpgaId_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.EncryptedFineTimestamp} - */ -proto.gw.EncryptedFineTimestamp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.EncryptedFineTimestamp; - return proto.gw.EncryptedFineTimestamp.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.EncryptedFineTimestamp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.EncryptedFineTimestamp} - */ -proto.gw.EncryptedFineTimestamp.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAesKeyIndex(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setEncryptedNs(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setFpgaId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.EncryptedFineTimestamp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.EncryptedFineTimestamp.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.EncryptedFineTimestamp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.EncryptedFineTimestamp.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAesKeyIndex(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getEncryptedNs_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getFpgaId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } -}; - - -/** - * optional uint32 aes_key_index = 1; - * @return {number} - */ -proto.gw.EncryptedFineTimestamp.prototype.getAesKeyIndex = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.EncryptedFineTimestamp} returns this - */ -proto.gw.EncryptedFineTimestamp.prototype.setAesKeyIndex = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bytes encrypted_ns = 2; - * @return {string} - */ -proto.gw.EncryptedFineTimestamp.prototype.getEncryptedNs = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes encrypted_ns = 2; - * This is a type-conversion wrapper around `getEncryptedNs()` - * @return {string} - */ -proto.gw.EncryptedFineTimestamp.prototype.getEncryptedNs_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getEncryptedNs())); -}; - - -/** - * optional bytes encrypted_ns = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getEncryptedNs()` - * @return {!Uint8Array} - */ -proto.gw.EncryptedFineTimestamp.prototype.getEncryptedNs_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getEncryptedNs())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.EncryptedFineTimestamp} returns this - */ -proto.gw.EncryptedFineTimestamp.prototype.setEncryptedNs = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional bytes fpga_id = 3; - * @return {string} - */ -proto.gw.EncryptedFineTimestamp.prototype.getFpgaId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes fpga_id = 3; - * This is a type-conversion wrapper around `getFpgaId()` - * @return {string} - */ -proto.gw.EncryptedFineTimestamp.prototype.getFpgaId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getFpgaId())); -}; - - -/** - * optional bytes fpga_id = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getFpgaId()` - * @return {!Uint8Array} - */ -proto.gw.EncryptedFineTimestamp.prototype.getFpgaId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getFpgaId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.EncryptedFineTimestamp} returns this - */ -proto.gw.EncryptedFineTimestamp.prototype.setFpgaId = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.PlainFineTimestamp.prototype.toObject = function(opt_includeInstance) { - return proto.gw.PlainFineTimestamp.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.PlainFineTimestamp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.PlainFineTimestamp.toObject = function(includeInstance, msg) { - var f, obj = { - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.PlainFineTimestamp} - */ -proto.gw.PlainFineTimestamp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.PlainFineTimestamp; - return proto.gw.PlainFineTimestamp.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.PlainFineTimestamp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.PlainFineTimestamp} - */ -proto.gw.PlainFineTimestamp.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.PlainFineTimestamp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.PlainFineTimestamp.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.PlainFineTimestamp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.PlainFineTimestamp.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional google.protobuf.Timestamp time = 1; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.gw.PlainFineTimestamp.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.gw.PlainFineTimestamp} returns this -*/ -proto.gw.PlainFineTimestamp.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.PlainFineTimestamp} returns this - */ -proto.gw.PlainFineTimestamp.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.PlainFineTimestamp.prototype.hasTime = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.gw.GatewayStats.repeatedFields_ = [14,15]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.GatewayStats.prototype.toObject = function(opt_includeInstance) { - return proto.gw.GatewayStats.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.GatewayStats} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GatewayStats.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: msg.getGatewayId_asB64(), - ip: jspb.Message.getFieldWithDefault(msg, 9, ""), - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - location: (f = msg.getLocation()) && common_common_pb.Location.toObject(includeInstance, f), - configVersion: jspb.Message.getFieldWithDefault(msg, 4, ""), - rxPacketsReceived: jspb.Message.getFieldWithDefault(msg, 5, 0), - rxPacketsReceivedOk: jspb.Message.getFieldWithDefault(msg, 6, 0), - txPacketsReceived: jspb.Message.getFieldWithDefault(msg, 7, 0), - txPacketsEmitted: jspb.Message.getFieldWithDefault(msg, 8, 0), - metaDataMap: (f = msg.getMetaDataMap()) ? f.toObject(includeInstance, undefined) : [], - statsId: msg.getStatsId_asB64(), - txPacketsPerFrequencyMap: (f = msg.getTxPacketsPerFrequencyMap()) ? f.toObject(includeInstance, undefined) : [], - rxPacketsPerFrequencyMap: (f = msg.getRxPacketsPerFrequencyMap()) ? f.toObject(includeInstance, undefined) : [], - txPacketsPerModulationList: jspb.Message.toObjectList(msg.getTxPacketsPerModulationList(), - proto.gw.PerModulationCount.toObject, includeInstance), - rxPacketsPerModulationList: jspb.Message.toObjectList(msg.getRxPacketsPerModulationList(), - proto.gw.PerModulationCount.toObject, includeInstance), - txPacketsPerStatusMap: (f = msg.getTxPacketsPerStatusMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.GatewayStats} - */ -proto.gw.GatewayStats.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.GatewayStats; - return proto.gw.GatewayStats.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.GatewayStats} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.GatewayStats} - */ -proto.gw.GatewayStats.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayId(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setIp(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - case 3: - var value = new common_common_pb.Location; - reader.readMessage(value,common_common_pb.Location.deserializeBinaryFromReader); - msg.setLocation(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setConfigVersion(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRxPacketsReceived(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRxPacketsReceivedOk(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTxPacketsReceived(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTxPacketsEmitted(value); - break; - case 10: - var value = msg.getMetaDataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 11: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setStatsId(value); - break; - case 12: - var value = msg.getTxPacketsPerFrequencyMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readUint32, null, 0, 0); - }); - break; - case 13: - var value = msg.getRxPacketsPerFrequencyMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readUint32, null, 0, 0); - }); - break; - case 14: - var value = new proto.gw.PerModulationCount; - reader.readMessage(value,proto.gw.PerModulationCount.deserializeBinaryFromReader); - msg.addTxPacketsPerModulation(value); - break; - case 15: - var value = new proto.gw.PerModulationCount; - reader.readMessage(value,proto.gw.PerModulationCount.deserializeBinaryFromReader); - msg.addRxPacketsPerModulation(value); - break; - case 16: - var value = msg.getTxPacketsPerStatusMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readUint32, null, "", 0); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.GatewayStats.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.GatewayStats.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.GatewayStats} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GatewayStats.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getIp(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getLocation(); - if (f != null) { - writer.writeMessage( - 3, - f, - common_common_pb.Location.serializeBinaryToWriter - ); - } - f = message.getConfigVersion(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRxPacketsReceived(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getRxPacketsReceivedOk(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } - f = message.getTxPacketsReceived(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getTxPacketsEmitted(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getMetaDataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(10, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getStatsId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 11, - f - ); - } - f = message.getTxPacketsPerFrequencyMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(12, writer, jspb.BinaryWriter.prototype.writeUint32, jspb.BinaryWriter.prototype.writeUint32); - } - f = message.getRxPacketsPerFrequencyMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(13, writer, jspb.BinaryWriter.prototype.writeUint32, jspb.BinaryWriter.prototype.writeUint32); - } - f = message.getTxPacketsPerModulationList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 14, - f, - proto.gw.PerModulationCount.serializeBinaryToWriter - ); - } - f = message.getRxPacketsPerModulationList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 15, - f, - proto.gw.PerModulationCount.serializeBinaryToWriter - ); - } - f = message.getTxPacketsPerStatusMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(16, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeUint32); - } -}; - - -/** - * optional bytes gateway_id = 1; - * @return {string} - */ -proto.gw.GatewayStats.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id = 1; - * This is a type-conversion wrapper around `getGatewayId()` - * @return {string} - */ -proto.gw.GatewayStats.prototype.getGatewayId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayId())); -}; - - -/** - * optional bytes gateway_id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayId()` - * @return {!Uint8Array} - */ -proto.gw.GatewayStats.prototype.getGatewayId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string ip = 9; - * @return {string} - */ -proto.gw.GatewayStats.prototype.getIp = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.setIp = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional google.protobuf.Timestamp time = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.gw.GatewayStats.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.gw.GatewayStats} returns this -*/ -proto.gw.GatewayStats.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.GatewayStats.prototype.hasTime = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional common.Location location = 3; - * @return {?proto.common.Location} - */ -proto.gw.GatewayStats.prototype.getLocation = function() { - return /** @type{?proto.common.Location} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Location, 3)); -}; - - -/** - * @param {?proto.common.Location|undefined} value - * @return {!proto.gw.GatewayStats} returns this -*/ -proto.gw.GatewayStats.prototype.setLocation = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.clearLocation = function() { - return this.setLocation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.GatewayStats.prototype.hasLocation = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string config_version = 4; - * @return {string} - */ -proto.gw.GatewayStats.prototype.getConfigVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.setConfigVersion = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional uint32 rx_packets_received = 5; - * @return {number} - */ -proto.gw.GatewayStats.prototype.getRxPacketsReceived = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.setRxPacketsReceived = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional uint32 rx_packets_received_ok = 6; - * @return {number} - */ -proto.gw.GatewayStats.prototype.getRxPacketsReceivedOk = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.setRxPacketsReceivedOk = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional uint32 tx_packets_received = 7; - * @return {number} - */ -proto.gw.GatewayStats.prototype.getTxPacketsReceived = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.setTxPacketsReceived = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional uint32 tx_packets_emitted = 8; - * @return {number} - */ -proto.gw.GatewayStats.prototype.getTxPacketsEmitted = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.setTxPacketsEmitted = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * map meta_data = 10; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.gw.GatewayStats.prototype.getMetaDataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 10, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.clearMetaDataMap = function() { - this.getMetaDataMap().clear(); - return this;}; - - -/** - * optional bytes stats_id = 11; - * @return {string} - */ -proto.gw.GatewayStats.prototype.getStatsId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * optional bytes stats_id = 11; - * This is a type-conversion wrapper around `getStatsId()` - * @return {string} - */ -proto.gw.GatewayStats.prototype.getStatsId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getStatsId())); -}; - - -/** - * optional bytes stats_id = 11; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getStatsId()` - * @return {!Uint8Array} - */ -proto.gw.GatewayStats.prototype.getStatsId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getStatsId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.setStatsId = function(value) { - return jspb.Message.setProto3BytesField(this, 11, value); -}; - - -/** - * map tx_packets_per_frequency = 12; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.gw.GatewayStats.prototype.getTxPacketsPerFrequencyMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 12, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.clearTxPacketsPerFrequencyMap = function() { - this.getTxPacketsPerFrequencyMap().clear(); - return this;}; - - -/** - * map rx_packets_per_frequency = 13; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.gw.GatewayStats.prototype.getRxPacketsPerFrequencyMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 13, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.clearRxPacketsPerFrequencyMap = function() { - this.getRxPacketsPerFrequencyMap().clear(); - return this;}; - - -/** - * repeated PerModulationCount tx_packets_per_modulation = 14; - * @return {!Array} - */ -proto.gw.GatewayStats.prototype.getTxPacketsPerModulationList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.gw.PerModulationCount, 14)); -}; - - -/** - * @param {!Array} value - * @return {!proto.gw.GatewayStats} returns this -*/ -proto.gw.GatewayStats.prototype.setTxPacketsPerModulationList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 14, value); -}; - - -/** - * @param {!proto.gw.PerModulationCount=} opt_value - * @param {number=} opt_index - * @return {!proto.gw.PerModulationCount} - */ -proto.gw.GatewayStats.prototype.addTxPacketsPerModulation = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.gw.PerModulationCount, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.clearTxPacketsPerModulationList = function() { - return this.setTxPacketsPerModulationList([]); -}; - - -/** - * repeated PerModulationCount rx_packets_per_modulation = 15; - * @return {!Array} - */ -proto.gw.GatewayStats.prototype.getRxPacketsPerModulationList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.gw.PerModulationCount, 15)); -}; - - -/** - * @param {!Array} value - * @return {!proto.gw.GatewayStats} returns this -*/ -proto.gw.GatewayStats.prototype.setRxPacketsPerModulationList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 15, value); -}; - - -/** - * @param {!proto.gw.PerModulationCount=} opt_value - * @param {number=} opt_index - * @return {!proto.gw.PerModulationCount} - */ -proto.gw.GatewayStats.prototype.addRxPacketsPerModulation = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 15, opt_value, proto.gw.PerModulationCount, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.clearRxPacketsPerModulationList = function() { - return this.setRxPacketsPerModulationList([]); -}; - - -/** - * map tx_packets_per_status = 16; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.gw.GatewayStats.prototype.getTxPacketsPerStatusMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 16, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.clearTxPacketsPerStatusMap = function() { - this.getTxPacketsPerStatusMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.PerModulationCount.prototype.toObject = function(opt_includeInstance) { - return proto.gw.PerModulationCount.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.PerModulationCount} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.PerModulationCount.toObject = function(includeInstance, msg) { - var f, obj = { - modulation: (f = msg.getModulation()) && proto.gw.Modulation.toObject(includeInstance, f), - count: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.PerModulationCount} - */ -proto.gw.PerModulationCount.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.PerModulationCount; - return proto.gw.PerModulationCount.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.PerModulationCount} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.PerModulationCount} - */ -proto.gw.PerModulationCount.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.gw.Modulation; - reader.readMessage(value,proto.gw.Modulation.deserializeBinaryFromReader); - msg.setModulation(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setCount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.PerModulationCount.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.PerModulationCount.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.PerModulationCount} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.PerModulationCount.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getModulation(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.gw.Modulation.serializeBinaryToWriter - ); - } - f = message.getCount(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } -}; - - -/** - * optional Modulation modulation = 1; - * @return {?proto.gw.Modulation} - */ -proto.gw.PerModulationCount.prototype.getModulation = function() { - return /** @type{?proto.gw.Modulation} */ ( - jspb.Message.getWrapperField(this, proto.gw.Modulation, 1)); -}; - - -/** - * @param {?proto.gw.Modulation|undefined} value - * @return {!proto.gw.PerModulationCount} returns this -*/ -proto.gw.PerModulationCount.prototype.setModulation = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.PerModulationCount} returns this - */ -proto.gw.PerModulationCount.prototype.clearModulation = function() { - return this.setModulation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.PerModulationCount.prototype.hasModulation = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional uint32 count = 2; - * @return {number} - */ -proto.gw.PerModulationCount.prototype.getCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.PerModulationCount} returns this - */ -proto.gw.PerModulationCount.prototype.setCount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.gw.UplinkRXInfo.oneofGroups_ = [[13,14]]; - -/** - * @enum {number} - */ -proto.gw.UplinkRXInfo.FineTimestampCase = { - FINE_TIMESTAMP_NOT_SET: 0, - ENCRYPTED_FINE_TIMESTAMP: 13, - PLAIN_FINE_TIMESTAMP: 14 -}; - -/** - * @return {proto.gw.UplinkRXInfo.FineTimestampCase} - */ -proto.gw.UplinkRXInfo.prototype.getFineTimestampCase = function() { - return /** @type {proto.gw.UplinkRXInfo.FineTimestampCase} */(jspb.Message.computeOneofCase(this, proto.gw.UplinkRXInfo.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.UplinkRXInfo.prototype.toObject = function(opt_includeInstance) { - return proto.gw.UplinkRXInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.UplinkRXInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkRXInfo.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: msg.getGatewayId_asB64(), - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - timeSinceGpsEpoch: (f = msg.getTimeSinceGpsEpoch()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), - rssi: jspb.Message.getFieldWithDefault(msg, 5, 0), - loraSnr: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0), - channel: jspb.Message.getFieldWithDefault(msg, 7, 0), - rfChain: jspb.Message.getFieldWithDefault(msg, 8, 0), - board: jspb.Message.getFieldWithDefault(msg, 9, 0), - antenna: jspb.Message.getFieldWithDefault(msg, 10, 0), - location: (f = msg.getLocation()) && common_common_pb.Location.toObject(includeInstance, f), - fineTimestampType: jspb.Message.getFieldWithDefault(msg, 12, 0), - encryptedFineTimestamp: (f = msg.getEncryptedFineTimestamp()) && proto.gw.EncryptedFineTimestamp.toObject(includeInstance, f), - plainFineTimestamp: (f = msg.getPlainFineTimestamp()) && proto.gw.PlainFineTimestamp.toObject(includeInstance, f), - context: msg.getContext_asB64(), - uplinkId: msg.getUplinkId_asB64(), - crcStatus: jspb.Message.getFieldWithDefault(msg, 17, 0), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.UplinkRXInfo} - */ -proto.gw.UplinkRXInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.UplinkRXInfo; - return proto.gw.UplinkRXInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.UplinkRXInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.UplinkRXInfo} - */ -proto.gw.UplinkRXInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - case 3: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setTimeSinceGpsEpoch(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setRssi(value); - break; - case 6: - var value = /** @type {number} */ (reader.readDouble()); - msg.setLoraSnr(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setChannel(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRfChain(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBoard(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAntenna(value); - break; - case 11: - var value = new common_common_pb.Location; - reader.readMessage(value,common_common_pb.Location.deserializeBinaryFromReader); - msg.setLocation(value); - break; - case 12: - var value = /** @type {!proto.gw.FineTimestampType} */ (reader.readEnum()); - msg.setFineTimestampType(value); - break; - case 13: - var value = new proto.gw.EncryptedFineTimestamp; - reader.readMessage(value,proto.gw.EncryptedFineTimestamp.deserializeBinaryFromReader); - msg.setEncryptedFineTimestamp(value); - break; - case 14: - var value = new proto.gw.PlainFineTimestamp; - reader.readMessage(value,proto.gw.PlainFineTimestamp.deserializeBinaryFromReader); - msg.setPlainFineTimestamp(value); - break; - case 15: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setContext(value); - break; - case 16: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setUplinkId(value); - break; - case 17: - var value = /** @type {!proto.gw.CRCStatus} */ (reader.readEnum()); - msg.setCrcStatus(value); - break; - case 18: - var value = msg.getMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.UplinkRXInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.UplinkRXInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.UplinkRXInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkRXInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getTimeSinceGpsEpoch(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } - f = message.getRssi(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getLoraSnr(); - if (f !== 0.0) { - writer.writeDouble( - 6, - f - ); - } - f = message.getChannel(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getRfChain(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getBoard(); - if (f !== 0) { - writer.writeUint32( - 9, - f - ); - } - f = message.getAntenna(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getLocation(); - if (f != null) { - writer.writeMessage( - 11, - f, - common_common_pb.Location.serializeBinaryToWriter - ); - } - f = message.getFineTimestampType(); - if (f !== 0.0) { - writer.writeEnum( - 12, - f - ); - } - f = message.getEncryptedFineTimestamp(); - if (f != null) { - writer.writeMessage( - 13, - f, - proto.gw.EncryptedFineTimestamp.serializeBinaryToWriter - ); - } - f = message.getPlainFineTimestamp(); - if (f != null) { - writer.writeMessage( - 14, - f, - proto.gw.PlainFineTimestamp.serializeBinaryToWriter - ); - } - f = message.getContext_asU8(); - if (f.length > 0) { - writer.writeBytes( - 15, - f - ); - } - f = message.getUplinkId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 16, - f - ); - } - f = message.getCrcStatus(); - if (f !== 0.0) { - writer.writeEnum( - 17, - f - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(18, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional bytes gateway_id = 1; - * @return {string} - */ -proto.gw.UplinkRXInfo.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id = 1; - * This is a type-conversion wrapper around `getGatewayId()` - * @return {string} - */ -proto.gw.UplinkRXInfo.prototype.getGatewayId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayId())); -}; - - -/** - * optional bytes gateway_id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayId()` - * @return {!Uint8Array} - */ -proto.gw.UplinkRXInfo.prototype.getGatewayId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.UplinkRXInfo} returns this - */ -proto.gw.UplinkRXInfo.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp time = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.gw.UplinkRXInfo.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.gw.UplinkRXInfo} returns this -*/ -proto.gw.UplinkRXInfo.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkRXInfo} returns this - */ -proto.gw.UplinkRXInfo.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkRXInfo.prototype.hasTime = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Duration time_since_gps_epoch = 3; - * @return {?proto.google.protobuf.Duration} - */ -proto.gw.UplinkRXInfo.prototype.getTimeSinceGpsEpoch = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.gw.UplinkRXInfo} returns this -*/ -proto.gw.UplinkRXInfo.prototype.setTimeSinceGpsEpoch = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkRXInfo} returns this - */ -proto.gw.UplinkRXInfo.prototype.clearTimeSinceGpsEpoch = function() { - return this.setTimeSinceGpsEpoch(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkRXInfo.prototype.hasTimeSinceGpsEpoch = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional int32 rssi = 5; - * @return {number} - */ -proto.gw.UplinkRXInfo.prototype.getRssi = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRXInfo} returns this - */ -proto.gw.UplinkRXInfo.prototype.setRssi = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional double lora_snr = 6; - * @return {number} - */ -proto.gw.UplinkRXInfo.prototype.getLoraSnr = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRXInfo} returns this - */ -proto.gw.UplinkRXInfo.prototype.setLoraSnr = function(value) { - return jspb.Message.setProto3FloatField(this, 6, value); -}; - - -/** - * optional uint32 channel = 7; - * @return {number} - */ -proto.gw.UplinkRXInfo.prototype.getChannel = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRXInfo} returns this - */ -proto.gw.UplinkRXInfo.prototype.setChannel = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional uint32 rf_chain = 8; - * @return {number} - */ -proto.gw.UplinkRXInfo.prototype.getRfChain = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRXInfo} returns this - */ -proto.gw.UplinkRXInfo.prototype.setRfChain = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional uint32 board = 9; - * @return {number} - */ -proto.gw.UplinkRXInfo.prototype.getBoard = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRXInfo} returns this - */ -proto.gw.UplinkRXInfo.prototype.setBoard = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - - -/** - * optional uint32 antenna = 10; - * @return {number} - */ -proto.gw.UplinkRXInfo.prototype.getAntenna = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRXInfo} returns this - */ -proto.gw.UplinkRXInfo.prototype.setAntenna = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional common.Location location = 11; - * @return {?proto.common.Location} - */ -proto.gw.UplinkRXInfo.prototype.getLocation = function() { - return /** @type{?proto.common.Location} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Location, 11)); -}; - - -/** - * @param {?proto.common.Location|undefined} value - * @return {!proto.gw.UplinkRXInfo} returns this -*/ -proto.gw.UplinkRXInfo.prototype.setLocation = function(value) { - return jspb.Message.setWrapperField(this, 11, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkRXInfo} returns this - */ -proto.gw.UplinkRXInfo.prototype.clearLocation = function() { - return this.setLocation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkRXInfo.prototype.hasLocation = function() { - return jspb.Message.getField(this, 11) != null; -}; - - -/** - * optional FineTimestampType fine_timestamp_type = 12; - * @return {!proto.gw.FineTimestampType} - */ -proto.gw.UplinkRXInfo.prototype.getFineTimestampType = function() { - return /** @type {!proto.gw.FineTimestampType} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {!proto.gw.FineTimestampType} value - * @return {!proto.gw.UplinkRXInfo} returns this - */ -proto.gw.UplinkRXInfo.prototype.setFineTimestampType = function(value) { - return jspb.Message.setProto3EnumField(this, 12, value); -}; - - -/** - * optional EncryptedFineTimestamp encrypted_fine_timestamp = 13; - * @return {?proto.gw.EncryptedFineTimestamp} - */ -proto.gw.UplinkRXInfo.prototype.getEncryptedFineTimestamp = function() { - return /** @type{?proto.gw.EncryptedFineTimestamp} */ ( - jspb.Message.getWrapperField(this, proto.gw.EncryptedFineTimestamp, 13)); -}; - - -/** - * @param {?proto.gw.EncryptedFineTimestamp|undefined} value - * @return {!proto.gw.UplinkRXInfo} returns this -*/ -proto.gw.UplinkRXInfo.prototype.setEncryptedFineTimestamp = function(value) { - return jspb.Message.setOneofWrapperField(this, 13, proto.gw.UplinkRXInfo.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkRXInfo} returns this - */ -proto.gw.UplinkRXInfo.prototype.clearEncryptedFineTimestamp = function() { - return this.setEncryptedFineTimestamp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkRXInfo.prototype.hasEncryptedFineTimestamp = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional PlainFineTimestamp plain_fine_timestamp = 14; - * @return {?proto.gw.PlainFineTimestamp} - */ -proto.gw.UplinkRXInfo.prototype.getPlainFineTimestamp = function() { - return /** @type{?proto.gw.PlainFineTimestamp} */ ( - jspb.Message.getWrapperField(this, proto.gw.PlainFineTimestamp, 14)); -}; - - -/** - * @param {?proto.gw.PlainFineTimestamp|undefined} value - * @return {!proto.gw.UplinkRXInfo} returns this -*/ -proto.gw.UplinkRXInfo.prototype.setPlainFineTimestamp = function(value) { - return jspb.Message.setOneofWrapperField(this, 14, proto.gw.UplinkRXInfo.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkRXInfo} returns this - */ -proto.gw.UplinkRXInfo.prototype.clearPlainFineTimestamp = function() { - return this.setPlainFineTimestamp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkRXInfo.prototype.hasPlainFineTimestamp = function() { - return jspb.Message.getField(this, 14) != null; -}; - - -/** - * optional bytes context = 15; - * @return {string} - */ -proto.gw.UplinkRXInfo.prototype.getContext = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** - * optional bytes context = 15; - * This is a type-conversion wrapper around `getContext()` - * @return {string} - */ -proto.gw.UplinkRXInfo.prototype.getContext_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getContext())); -}; - - -/** - * optional bytes context = 15; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getContext()` - * @return {!Uint8Array} - */ -proto.gw.UplinkRXInfo.prototype.getContext_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getContext())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.UplinkRXInfo} returns this - */ -proto.gw.UplinkRXInfo.prototype.setContext = function(value) { - return jspb.Message.setProto3BytesField(this, 15, value); -}; - - -/** - * optional bytes uplink_id = 16; - * @return {string} - */ -proto.gw.UplinkRXInfo.prototype.getUplinkId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** - * optional bytes uplink_id = 16; - * This is a type-conversion wrapper around `getUplinkId()` - * @return {string} - */ -proto.gw.UplinkRXInfo.prototype.getUplinkId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getUplinkId())); -}; - - -/** - * optional bytes uplink_id = 16; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getUplinkId()` - * @return {!Uint8Array} - */ -proto.gw.UplinkRXInfo.prototype.getUplinkId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getUplinkId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.UplinkRXInfo} returns this - */ -proto.gw.UplinkRXInfo.prototype.setUplinkId = function(value) { - return jspb.Message.setProto3BytesField(this, 16, value); -}; - - -/** - * optional CRCStatus crc_status = 17; - * @return {!proto.gw.CRCStatus} - */ -proto.gw.UplinkRXInfo.prototype.getCrcStatus = function() { - return /** @type {!proto.gw.CRCStatus} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); -}; - - -/** - * @param {!proto.gw.CRCStatus} value - * @return {!proto.gw.UplinkRXInfo} returns this - */ -proto.gw.UplinkRXInfo.prototype.setCrcStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 17, value); -}; - - -/** - * map metadata = 18; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.gw.UplinkRXInfo.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 18, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.gw.UplinkRXInfo} returns this - */ -proto.gw.UplinkRXInfo.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.gw.DownlinkTXInfo.oneofGroups_ = [[8,9],[13,14,15]]; - -/** - * @enum {number} - */ -proto.gw.DownlinkTXInfo.ModulationInfoCase = { - MODULATION_INFO_NOT_SET: 0, - LORA_MODULATION_INFO: 8, - FSK_MODULATION_INFO: 9 -}; - -/** - * @return {proto.gw.DownlinkTXInfo.ModulationInfoCase} - */ -proto.gw.DownlinkTXInfo.prototype.getModulationInfoCase = function() { - return /** @type {proto.gw.DownlinkTXInfo.ModulationInfoCase} */(jspb.Message.computeOneofCase(this, proto.gw.DownlinkTXInfo.oneofGroups_[0])); -}; - -/** - * @enum {number} - */ -proto.gw.DownlinkTXInfo.TimingInfoCase = { - TIMING_INFO_NOT_SET: 0, - IMMEDIATELY_TIMING_INFO: 13, - DELAY_TIMING_INFO: 14, - GPS_EPOCH_TIMING_INFO: 15 -}; - -/** - * @return {proto.gw.DownlinkTXInfo.TimingInfoCase} - */ -proto.gw.DownlinkTXInfo.prototype.getTimingInfoCase = function() { - return /** @type {proto.gw.DownlinkTXInfo.TimingInfoCase} */(jspb.Message.computeOneofCase(this, proto.gw.DownlinkTXInfo.oneofGroups_[1])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.DownlinkTXInfo.prototype.toObject = function(opt_includeInstance) { - return proto.gw.DownlinkTXInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.DownlinkTXInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkTXInfo.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: msg.getGatewayId_asB64(), - frequency: jspb.Message.getFieldWithDefault(msg, 5, 0), - power: jspb.Message.getFieldWithDefault(msg, 6, 0), - modulation: jspb.Message.getFieldWithDefault(msg, 7, 0), - loraModulationInfo: (f = msg.getLoraModulationInfo()) && proto.gw.LoRaModulationInfo.toObject(includeInstance, f), - fskModulationInfo: (f = msg.getFskModulationInfo()) && proto.gw.FSKModulationInfo.toObject(includeInstance, f), - board: jspb.Message.getFieldWithDefault(msg, 10, 0), - antenna: jspb.Message.getFieldWithDefault(msg, 11, 0), - timing: jspb.Message.getFieldWithDefault(msg, 12, 0), - immediatelyTimingInfo: (f = msg.getImmediatelyTimingInfo()) && proto.gw.ImmediatelyTimingInfo.toObject(includeInstance, f), - delayTimingInfo: (f = msg.getDelayTimingInfo()) && proto.gw.DelayTimingInfo.toObject(includeInstance, f), - gpsEpochTimingInfo: (f = msg.getGpsEpochTimingInfo()) && proto.gw.GPSEpochTimingInfo.toObject(includeInstance, f), - context: msg.getContext_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.DownlinkTXInfo} - */ -proto.gw.DownlinkTXInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.DownlinkTXInfo; - return proto.gw.DownlinkTXInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.DownlinkTXInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.DownlinkTXInfo} - */ -proto.gw.DownlinkTXInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayId(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFrequency(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPower(value); - break; - case 7: - var value = /** @type {!proto.common.Modulation} */ (reader.readEnum()); - msg.setModulation(value); - break; - case 8: - var value = new proto.gw.LoRaModulationInfo; - reader.readMessage(value,proto.gw.LoRaModulationInfo.deserializeBinaryFromReader); - msg.setLoraModulationInfo(value); - break; - case 9: - var value = new proto.gw.FSKModulationInfo; - reader.readMessage(value,proto.gw.FSKModulationInfo.deserializeBinaryFromReader); - msg.setFskModulationInfo(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBoard(value); - break; - case 11: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAntenna(value); - break; - case 12: - var value = /** @type {!proto.gw.DownlinkTiming} */ (reader.readEnum()); - msg.setTiming(value); - break; - case 13: - var value = new proto.gw.ImmediatelyTimingInfo; - reader.readMessage(value,proto.gw.ImmediatelyTimingInfo.deserializeBinaryFromReader); - msg.setImmediatelyTimingInfo(value); - break; - case 14: - var value = new proto.gw.DelayTimingInfo; - reader.readMessage(value,proto.gw.DelayTimingInfo.deserializeBinaryFromReader); - msg.setDelayTimingInfo(value); - break; - case 15: - var value = new proto.gw.GPSEpochTimingInfo; - reader.readMessage(value,proto.gw.GPSEpochTimingInfo.deserializeBinaryFromReader); - msg.setGpsEpochTimingInfo(value); - break; - case 16: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setContext(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.DownlinkTXInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.DownlinkTXInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.DownlinkTXInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkTXInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getFrequency(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getPower(); - if (f !== 0) { - writer.writeInt32( - 6, - f - ); - } - f = message.getModulation(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getLoraModulationInfo(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.gw.LoRaModulationInfo.serializeBinaryToWriter - ); - } - f = message.getFskModulationInfo(); - if (f != null) { - writer.writeMessage( - 9, - f, - proto.gw.FSKModulationInfo.serializeBinaryToWriter - ); - } - f = message.getBoard(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getAntenna(); - if (f !== 0) { - writer.writeUint32( - 11, - f - ); - } - f = message.getTiming(); - if (f !== 0.0) { - writer.writeEnum( - 12, - f - ); - } - f = message.getImmediatelyTimingInfo(); - if (f != null) { - writer.writeMessage( - 13, - f, - proto.gw.ImmediatelyTimingInfo.serializeBinaryToWriter - ); - } - f = message.getDelayTimingInfo(); - if (f != null) { - writer.writeMessage( - 14, - f, - proto.gw.DelayTimingInfo.serializeBinaryToWriter - ); - } - f = message.getGpsEpochTimingInfo(); - if (f != null) { - writer.writeMessage( - 15, - f, - proto.gw.GPSEpochTimingInfo.serializeBinaryToWriter - ); - } - f = message.getContext_asU8(); - if (f.length > 0) { - writer.writeBytes( - 16, - f - ); - } -}; - - -/** - * optional bytes gateway_id = 1; - * @return {string} - */ -proto.gw.DownlinkTXInfo.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id = 1; - * This is a type-conversion wrapper around `getGatewayId()` - * @return {string} - */ -proto.gw.DownlinkTXInfo.prototype.getGatewayId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayId())); -}; - - -/** - * optional bytes gateway_id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayId()` - * @return {!Uint8Array} - */ -proto.gw.DownlinkTXInfo.prototype.getGatewayId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.DownlinkTXInfo} returns this - */ -proto.gw.DownlinkTXInfo.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional uint32 frequency = 5; - * @return {number} - */ -proto.gw.DownlinkTXInfo.prototype.getFrequency = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.DownlinkTXInfo} returns this - */ -proto.gw.DownlinkTXInfo.prototype.setFrequency = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional int32 power = 6; - * @return {number} - */ -proto.gw.DownlinkTXInfo.prototype.getPower = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.DownlinkTXInfo} returns this - */ -proto.gw.DownlinkTXInfo.prototype.setPower = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional common.Modulation modulation = 7; - * @return {!proto.common.Modulation} - */ -proto.gw.DownlinkTXInfo.prototype.getModulation = function() { - return /** @type {!proto.common.Modulation} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.common.Modulation} value - * @return {!proto.gw.DownlinkTXInfo} returns this - */ -proto.gw.DownlinkTXInfo.prototype.setModulation = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); -}; - - -/** - * optional LoRaModulationInfo lora_modulation_info = 8; - * @return {?proto.gw.LoRaModulationInfo} - */ -proto.gw.DownlinkTXInfo.prototype.getLoraModulationInfo = function() { - return /** @type{?proto.gw.LoRaModulationInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.LoRaModulationInfo, 8)); -}; - - -/** - * @param {?proto.gw.LoRaModulationInfo|undefined} value - * @return {!proto.gw.DownlinkTXInfo} returns this -*/ -proto.gw.DownlinkTXInfo.prototype.setLoraModulationInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 8, proto.gw.DownlinkTXInfo.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.DownlinkTXInfo} returns this - */ -proto.gw.DownlinkTXInfo.prototype.clearLoraModulationInfo = function() { - return this.setLoraModulationInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.DownlinkTXInfo.prototype.hasLoraModulationInfo = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional FSKModulationInfo fsk_modulation_info = 9; - * @return {?proto.gw.FSKModulationInfo} - */ -proto.gw.DownlinkTXInfo.prototype.getFskModulationInfo = function() { - return /** @type{?proto.gw.FSKModulationInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.FSKModulationInfo, 9)); -}; - - -/** - * @param {?proto.gw.FSKModulationInfo|undefined} value - * @return {!proto.gw.DownlinkTXInfo} returns this -*/ -proto.gw.DownlinkTXInfo.prototype.setFskModulationInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 9, proto.gw.DownlinkTXInfo.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.DownlinkTXInfo} returns this - */ -proto.gw.DownlinkTXInfo.prototype.clearFskModulationInfo = function() { - return this.setFskModulationInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.DownlinkTXInfo.prototype.hasFskModulationInfo = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional uint32 board = 10; - * @return {number} - */ -proto.gw.DownlinkTXInfo.prototype.getBoard = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.DownlinkTXInfo} returns this - */ -proto.gw.DownlinkTXInfo.prototype.setBoard = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional uint32 antenna = 11; - * @return {number} - */ -proto.gw.DownlinkTXInfo.prototype.getAntenna = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.DownlinkTXInfo} returns this - */ -proto.gw.DownlinkTXInfo.prototype.setAntenna = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional DownlinkTiming timing = 12; - * @return {!proto.gw.DownlinkTiming} - */ -proto.gw.DownlinkTXInfo.prototype.getTiming = function() { - return /** @type {!proto.gw.DownlinkTiming} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {!proto.gw.DownlinkTiming} value - * @return {!proto.gw.DownlinkTXInfo} returns this - */ -proto.gw.DownlinkTXInfo.prototype.setTiming = function(value) { - return jspb.Message.setProto3EnumField(this, 12, value); -}; - - -/** - * optional ImmediatelyTimingInfo immediately_timing_info = 13; - * @return {?proto.gw.ImmediatelyTimingInfo} - */ -proto.gw.DownlinkTXInfo.prototype.getImmediatelyTimingInfo = function() { - return /** @type{?proto.gw.ImmediatelyTimingInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.ImmediatelyTimingInfo, 13)); -}; - - -/** - * @param {?proto.gw.ImmediatelyTimingInfo|undefined} value - * @return {!proto.gw.DownlinkTXInfo} returns this -*/ -proto.gw.DownlinkTXInfo.prototype.setImmediatelyTimingInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 13, proto.gw.DownlinkTXInfo.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.DownlinkTXInfo} returns this - */ -proto.gw.DownlinkTXInfo.prototype.clearImmediatelyTimingInfo = function() { - return this.setImmediatelyTimingInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.DownlinkTXInfo.prototype.hasImmediatelyTimingInfo = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional DelayTimingInfo delay_timing_info = 14; - * @return {?proto.gw.DelayTimingInfo} - */ -proto.gw.DownlinkTXInfo.prototype.getDelayTimingInfo = function() { - return /** @type{?proto.gw.DelayTimingInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.DelayTimingInfo, 14)); -}; - - -/** - * @param {?proto.gw.DelayTimingInfo|undefined} value - * @return {!proto.gw.DownlinkTXInfo} returns this -*/ -proto.gw.DownlinkTXInfo.prototype.setDelayTimingInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 14, proto.gw.DownlinkTXInfo.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.DownlinkTXInfo} returns this - */ -proto.gw.DownlinkTXInfo.prototype.clearDelayTimingInfo = function() { - return this.setDelayTimingInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.DownlinkTXInfo.prototype.hasDelayTimingInfo = function() { - return jspb.Message.getField(this, 14) != null; -}; - - -/** - * optional GPSEpochTimingInfo gps_epoch_timing_info = 15; - * @return {?proto.gw.GPSEpochTimingInfo} - */ -proto.gw.DownlinkTXInfo.prototype.getGpsEpochTimingInfo = function() { - return /** @type{?proto.gw.GPSEpochTimingInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.GPSEpochTimingInfo, 15)); -}; - - -/** - * @param {?proto.gw.GPSEpochTimingInfo|undefined} value - * @return {!proto.gw.DownlinkTXInfo} returns this -*/ -proto.gw.DownlinkTXInfo.prototype.setGpsEpochTimingInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 15, proto.gw.DownlinkTXInfo.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.DownlinkTXInfo} returns this - */ -proto.gw.DownlinkTXInfo.prototype.clearGpsEpochTimingInfo = function() { - return this.setGpsEpochTimingInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.DownlinkTXInfo.prototype.hasGpsEpochTimingInfo = function() { - return jspb.Message.getField(this, 15) != null; -}; - - -/** - * optional bytes context = 16; - * @return {string} - */ -proto.gw.DownlinkTXInfo.prototype.getContext = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** - * optional bytes context = 16; - * This is a type-conversion wrapper around `getContext()` - * @return {string} - */ -proto.gw.DownlinkTXInfo.prototype.getContext_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getContext())); -}; - - -/** - * optional bytes context = 16; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getContext()` - * @return {!Uint8Array} - */ -proto.gw.DownlinkTXInfo.prototype.getContext_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getContext())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.DownlinkTXInfo} returns this - */ -proto.gw.DownlinkTXInfo.prototype.setContext = function(value) { - return jspb.Message.setProto3BytesField(this, 16, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.ImmediatelyTimingInfo.prototype.toObject = function(opt_includeInstance) { - return proto.gw.ImmediatelyTimingInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.ImmediatelyTimingInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.ImmediatelyTimingInfo.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.ImmediatelyTimingInfo} - */ -proto.gw.ImmediatelyTimingInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.ImmediatelyTimingInfo; - return proto.gw.ImmediatelyTimingInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.ImmediatelyTimingInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.ImmediatelyTimingInfo} - */ -proto.gw.ImmediatelyTimingInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.ImmediatelyTimingInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.ImmediatelyTimingInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.ImmediatelyTimingInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.ImmediatelyTimingInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.DelayTimingInfo.prototype.toObject = function(opt_includeInstance) { - return proto.gw.DelayTimingInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.DelayTimingInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DelayTimingInfo.toObject = function(includeInstance, msg) { - var f, obj = { - delay: (f = msg.getDelay()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.DelayTimingInfo} - */ -proto.gw.DelayTimingInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.DelayTimingInfo; - return proto.gw.DelayTimingInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.DelayTimingInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.DelayTimingInfo} - */ -proto.gw.DelayTimingInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setDelay(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.DelayTimingInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.DelayTimingInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.DelayTimingInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DelayTimingInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDelay(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional google.protobuf.Duration delay = 1; - * @return {?proto.google.protobuf.Duration} - */ -proto.gw.DelayTimingInfo.prototype.getDelay = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.gw.DelayTimingInfo} returns this -*/ -proto.gw.DelayTimingInfo.prototype.setDelay = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.DelayTimingInfo} returns this - */ -proto.gw.DelayTimingInfo.prototype.clearDelay = function() { - return this.setDelay(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.DelayTimingInfo.prototype.hasDelay = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.GPSEpochTimingInfo.prototype.toObject = function(opt_includeInstance) { - return proto.gw.GPSEpochTimingInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.GPSEpochTimingInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GPSEpochTimingInfo.toObject = function(includeInstance, msg) { - var f, obj = { - timeSinceGpsEpoch: (f = msg.getTimeSinceGpsEpoch()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.GPSEpochTimingInfo} - */ -proto.gw.GPSEpochTimingInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.GPSEpochTimingInfo; - return proto.gw.GPSEpochTimingInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.GPSEpochTimingInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.GPSEpochTimingInfo} - */ -proto.gw.GPSEpochTimingInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setTimeSinceGpsEpoch(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.GPSEpochTimingInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.GPSEpochTimingInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.GPSEpochTimingInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GPSEpochTimingInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTimeSinceGpsEpoch(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional google.protobuf.Duration time_since_gps_epoch = 1; - * @return {?proto.google.protobuf.Duration} - */ -proto.gw.GPSEpochTimingInfo.prototype.getTimeSinceGpsEpoch = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.gw.GPSEpochTimingInfo} returns this -*/ -proto.gw.GPSEpochTimingInfo.prototype.setTimeSinceGpsEpoch = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.GPSEpochTimingInfo} returns this - */ -proto.gw.GPSEpochTimingInfo.prototype.clearTimeSinceGpsEpoch = function() { - return this.setTimeSinceGpsEpoch(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.GPSEpochTimingInfo.prototype.hasTimeSinceGpsEpoch = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.UplinkFrame.prototype.toObject = function(opt_includeInstance) { - return proto.gw.UplinkFrame.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.UplinkFrame} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkFrame.toObject = function(includeInstance, msg) { - var f, obj = { - phyPayload: msg.getPhyPayload_asB64(), - txInfo: (f = msg.getTxInfo()) && proto.gw.UplinkTXInfo.toObject(includeInstance, f), - rxInfo: (f = msg.getRxInfo()) && proto.gw.UplinkRXInfo.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.UplinkFrame} - */ -proto.gw.UplinkFrame.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.UplinkFrame; - return proto.gw.UplinkFrame.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.UplinkFrame} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.UplinkFrame} - */ -proto.gw.UplinkFrame.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPhyPayload(value); - break; - case 2: - var value = new proto.gw.UplinkTXInfo; - reader.readMessage(value,proto.gw.UplinkTXInfo.deserializeBinaryFromReader); - msg.setTxInfo(value); - break; - case 3: - var value = new proto.gw.UplinkRXInfo; - reader.readMessage(value,proto.gw.UplinkRXInfo.deserializeBinaryFromReader); - msg.setRxInfo(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.UplinkFrame.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.UplinkFrame.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.UplinkFrame} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkFrame.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPhyPayload_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getTxInfo(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.gw.UplinkTXInfo.serializeBinaryToWriter - ); - } - f = message.getRxInfo(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.gw.UplinkRXInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes phy_payload = 1; - * @return {string} - */ -proto.gw.UplinkFrame.prototype.getPhyPayload = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes phy_payload = 1; - * This is a type-conversion wrapper around `getPhyPayload()` - * @return {string} - */ -proto.gw.UplinkFrame.prototype.getPhyPayload_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPhyPayload())); -}; - - -/** - * optional bytes phy_payload = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPhyPayload()` - * @return {!Uint8Array} - */ -proto.gw.UplinkFrame.prototype.getPhyPayload_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPhyPayload())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.UplinkFrame} returns this - */ -proto.gw.UplinkFrame.prototype.setPhyPayload = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional UplinkTXInfo tx_info = 2; - * @return {?proto.gw.UplinkTXInfo} - */ -proto.gw.UplinkFrame.prototype.getTxInfo = function() { - return /** @type{?proto.gw.UplinkTXInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.UplinkTXInfo, 2)); -}; - - -/** - * @param {?proto.gw.UplinkTXInfo|undefined} value - * @return {!proto.gw.UplinkFrame} returns this -*/ -proto.gw.UplinkFrame.prototype.setTxInfo = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkFrame} returns this - */ -proto.gw.UplinkFrame.prototype.clearTxInfo = function() { - return this.setTxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkFrame.prototype.hasTxInfo = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional UplinkRXInfo rx_info = 3; - * @return {?proto.gw.UplinkRXInfo} - */ -proto.gw.UplinkFrame.prototype.getRxInfo = function() { - return /** @type{?proto.gw.UplinkRXInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.UplinkRXInfo, 3)); -}; - - -/** - * @param {?proto.gw.UplinkRXInfo|undefined} value - * @return {!proto.gw.UplinkFrame} returns this -*/ -proto.gw.UplinkFrame.prototype.setRxInfo = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkFrame} returns this - */ -proto.gw.UplinkFrame.prototype.clearRxInfo = function() { - return this.setRxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkFrame.prototype.hasRxInfo = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.gw.UplinkFrameSet.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.UplinkFrameSet.prototype.toObject = function(opt_includeInstance) { - return proto.gw.UplinkFrameSet.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.UplinkFrameSet} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkFrameSet.toObject = function(includeInstance, msg) { - var f, obj = { - phyPayload: msg.getPhyPayload_asB64(), - txInfo: (f = msg.getTxInfo()) && proto.gw.UplinkTXInfo.toObject(includeInstance, f), - rxInfoList: jspb.Message.toObjectList(msg.getRxInfoList(), - proto.gw.UplinkRXInfo.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.UplinkFrameSet} - */ -proto.gw.UplinkFrameSet.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.UplinkFrameSet; - return proto.gw.UplinkFrameSet.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.UplinkFrameSet} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.UplinkFrameSet} - */ -proto.gw.UplinkFrameSet.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPhyPayload(value); - break; - case 2: - var value = new proto.gw.UplinkTXInfo; - reader.readMessage(value,proto.gw.UplinkTXInfo.deserializeBinaryFromReader); - msg.setTxInfo(value); - break; - case 3: - var value = new proto.gw.UplinkRXInfo; - reader.readMessage(value,proto.gw.UplinkRXInfo.deserializeBinaryFromReader); - msg.addRxInfo(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.UplinkFrameSet.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.UplinkFrameSet.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.UplinkFrameSet} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkFrameSet.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPhyPayload_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getTxInfo(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.gw.UplinkTXInfo.serializeBinaryToWriter - ); - } - f = message.getRxInfoList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.gw.UplinkRXInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes phy_payload = 1; - * @return {string} - */ -proto.gw.UplinkFrameSet.prototype.getPhyPayload = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes phy_payload = 1; - * This is a type-conversion wrapper around `getPhyPayload()` - * @return {string} - */ -proto.gw.UplinkFrameSet.prototype.getPhyPayload_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPhyPayload())); -}; - - -/** - * optional bytes phy_payload = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPhyPayload()` - * @return {!Uint8Array} - */ -proto.gw.UplinkFrameSet.prototype.getPhyPayload_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPhyPayload())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.UplinkFrameSet} returns this - */ -proto.gw.UplinkFrameSet.prototype.setPhyPayload = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional UplinkTXInfo tx_info = 2; - * @return {?proto.gw.UplinkTXInfo} - */ -proto.gw.UplinkFrameSet.prototype.getTxInfo = function() { - return /** @type{?proto.gw.UplinkTXInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.UplinkTXInfo, 2)); -}; - - -/** - * @param {?proto.gw.UplinkTXInfo|undefined} value - * @return {!proto.gw.UplinkFrameSet} returns this -*/ -proto.gw.UplinkFrameSet.prototype.setTxInfo = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkFrameSet} returns this - */ -proto.gw.UplinkFrameSet.prototype.clearTxInfo = function() { - return this.setTxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkFrameSet.prototype.hasTxInfo = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * repeated UplinkRXInfo rx_info = 3; - * @return {!Array} - */ -proto.gw.UplinkFrameSet.prototype.getRxInfoList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.gw.UplinkRXInfo, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.gw.UplinkFrameSet} returns this -*/ -proto.gw.UplinkFrameSet.prototype.setRxInfoList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.gw.UplinkRXInfo=} opt_value - * @param {number=} opt_index - * @return {!proto.gw.UplinkRXInfo} - */ -proto.gw.UplinkFrameSet.prototype.addRxInfo = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gw.UplinkRXInfo, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.gw.UplinkFrameSet} returns this - */ -proto.gw.UplinkFrameSet.prototype.clearRxInfoList = function() { - return this.setRxInfoList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.gw.DownlinkFrame.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.DownlinkFrame.prototype.toObject = function(opt_includeInstance) { - return proto.gw.DownlinkFrame.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.DownlinkFrame} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkFrame.toObject = function(includeInstance, msg) { - var f, obj = { - phyPayload: msg.getPhyPayload_asB64(), - txInfo: (f = msg.getTxInfo()) && proto.gw.DownlinkTXInfo.toObject(includeInstance, f), - token: jspb.Message.getFieldWithDefault(msg, 3, 0), - downlinkId: msg.getDownlinkId_asB64(), - itemsList: jspb.Message.toObjectList(msg.getItemsList(), - proto.gw.DownlinkFrameItem.toObject, includeInstance), - gatewayId: msg.getGatewayId_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.DownlinkFrame} - */ -proto.gw.DownlinkFrame.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.DownlinkFrame; - return proto.gw.DownlinkFrame.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.DownlinkFrame} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.DownlinkFrame} - */ -proto.gw.DownlinkFrame.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPhyPayload(value); - break; - case 2: - var value = new proto.gw.DownlinkTXInfo; - reader.readMessage(value,proto.gw.DownlinkTXInfo.deserializeBinaryFromReader); - msg.setTxInfo(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setToken(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setDownlinkId(value); - break; - case 5: - var value = new proto.gw.DownlinkFrameItem; - reader.readMessage(value,proto.gw.DownlinkFrameItem.deserializeBinaryFromReader); - msg.addItems(value); - break; - case 6: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.DownlinkFrame.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.DownlinkFrame.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.DownlinkFrame} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkFrame.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPhyPayload_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getTxInfo(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.gw.DownlinkTXInfo.serializeBinaryToWriter - ); - } - f = message.getToken(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getDownlinkId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getItemsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.gw.DownlinkFrameItem.serializeBinaryToWriter - ); - } - f = message.getGatewayId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 6, - f - ); - } -}; - - -/** - * optional bytes phy_payload = 1; - * @return {string} - */ -proto.gw.DownlinkFrame.prototype.getPhyPayload = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes phy_payload = 1; - * This is a type-conversion wrapper around `getPhyPayload()` - * @return {string} - */ -proto.gw.DownlinkFrame.prototype.getPhyPayload_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPhyPayload())); -}; - - -/** - * optional bytes phy_payload = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPhyPayload()` - * @return {!Uint8Array} - */ -proto.gw.DownlinkFrame.prototype.getPhyPayload_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPhyPayload())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.DownlinkFrame} returns this - */ -proto.gw.DownlinkFrame.prototype.setPhyPayload = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional DownlinkTXInfo tx_info = 2; - * @return {?proto.gw.DownlinkTXInfo} - */ -proto.gw.DownlinkFrame.prototype.getTxInfo = function() { - return /** @type{?proto.gw.DownlinkTXInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.DownlinkTXInfo, 2)); -}; - - -/** - * @param {?proto.gw.DownlinkTXInfo|undefined} value - * @return {!proto.gw.DownlinkFrame} returns this -*/ -proto.gw.DownlinkFrame.prototype.setTxInfo = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.DownlinkFrame} returns this - */ -proto.gw.DownlinkFrame.prototype.clearTxInfo = function() { - return this.setTxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.DownlinkFrame.prototype.hasTxInfo = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional uint32 token = 3; - * @return {number} - */ -proto.gw.DownlinkFrame.prototype.getToken = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.DownlinkFrame} returns this - */ -proto.gw.DownlinkFrame.prototype.setToken = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bytes downlink_id = 4; - * @return {string} - */ -proto.gw.DownlinkFrame.prototype.getDownlinkId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes downlink_id = 4; - * This is a type-conversion wrapper around `getDownlinkId()` - * @return {string} - */ -proto.gw.DownlinkFrame.prototype.getDownlinkId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getDownlinkId())); -}; - - -/** - * optional bytes downlink_id = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getDownlinkId()` - * @return {!Uint8Array} - */ -proto.gw.DownlinkFrame.prototype.getDownlinkId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getDownlinkId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.DownlinkFrame} returns this - */ -proto.gw.DownlinkFrame.prototype.setDownlinkId = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * repeated DownlinkFrameItem items = 5; - * @return {!Array} - */ -proto.gw.DownlinkFrame.prototype.getItemsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.gw.DownlinkFrameItem, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.gw.DownlinkFrame} returns this -*/ -proto.gw.DownlinkFrame.prototype.setItemsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.gw.DownlinkFrameItem=} opt_value - * @param {number=} opt_index - * @return {!proto.gw.DownlinkFrameItem} - */ -proto.gw.DownlinkFrame.prototype.addItems = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.gw.DownlinkFrameItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.gw.DownlinkFrame} returns this - */ -proto.gw.DownlinkFrame.prototype.clearItemsList = function() { - return this.setItemsList([]); -}; - - -/** - * optional bytes gateway_id = 6; - * @return {string} - */ -proto.gw.DownlinkFrame.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * optional bytes gateway_id = 6; - * This is a type-conversion wrapper around `getGatewayId()` - * @return {string} - */ -proto.gw.DownlinkFrame.prototype.getGatewayId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayId())); -}; - - -/** - * optional bytes gateway_id = 6; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayId()` - * @return {!Uint8Array} - */ -proto.gw.DownlinkFrame.prototype.getGatewayId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.DownlinkFrame} returns this - */ -proto.gw.DownlinkFrame.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.DownlinkFrameItem.prototype.toObject = function(opt_includeInstance) { - return proto.gw.DownlinkFrameItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.DownlinkFrameItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkFrameItem.toObject = function(includeInstance, msg) { - var f, obj = { - phyPayload: msg.getPhyPayload_asB64(), - txInfo: (f = msg.getTxInfo()) && proto.gw.DownlinkTXInfo.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.DownlinkFrameItem} - */ -proto.gw.DownlinkFrameItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.DownlinkFrameItem; - return proto.gw.DownlinkFrameItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.DownlinkFrameItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.DownlinkFrameItem} - */ -proto.gw.DownlinkFrameItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPhyPayload(value); - break; - case 2: - var value = new proto.gw.DownlinkTXInfo; - reader.readMessage(value,proto.gw.DownlinkTXInfo.deserializeBinaryFromReader); - msg.setTxInfo(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.DownlinkFrameItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.DownlinkFrameItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.DownlinkFrameItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkFrameItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPhyPayload_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getTxInfo(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.gw.DownlinkTXInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes phy_payload = 1; - * @return {string} - */ -proto.gw.DownlinkFrameItem.prototype.getPhyPayload = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes phy_payload = 1; - * This is a type-conversion wrapper around `getPhyPayload()` - * @return {string} - */ -proto.gw.DownlinkFrameItem.prototype.getPhyPayload_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPhyPayload())); -}; - - -/** - * optional bytes phy_payload = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPhyPayload()` - * @return {!Uint8Array} - */ -proto.gw.DownlinkFrameItem.prototype.getPhyPayload_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPhyPayload())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.DownlinkFrameItem} returns this - */ -proto.gw.DownlinkFrameItem.prototype.setPhyPayload = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional DownlinkTXInfo tx_info = 2; - * @return {?proto.gw.DownlinkTXInfo} - */ -proto.gw.DownlinkFrameItem.prototype.getTxInfo = function() { - return /** @type{?proto.gw.DownlinkTXInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.DownlinkTXInfo, 2)); -}; - - -/** - * @param {?proto.gw.DownlinkTXInfo|undefined} value - * @return {!proto.gw.DownlinkFrameItem} returns this -*/ -proto.gw.DownlinkFrameItem.prototype.setTxInfo = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.DownlinkFrameItem} returns this - */ -proto.gw.DownlinkFrameItem.prototype.clearTxInfo = function() { - return this.setTxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.DownlinkFrameItem.prototype.hasTxInfo = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.gw.DownlinkTXAck.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.DownlinkTXAck.prototype.toObject = function(opt_includeInstance) { - return proto.gw.DownlinkTXAck.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.DownlinkTXAck} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkTXAck.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: msg.getGatewayId_asB64(), - token: jspb.Message.getFieldWithDefault(msg, 2, 0), - error: jspb.Message.getFieldWithDefault(msg, 3, ""), - downlinkId: msg.getDownlinkId_asB64(), - itemsList: jspb.Message.toObjectList(msg.getItemsList(), - proto.gw.DownlinkTXAckItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.DownlinkTXAck} - */ -proto.gw.DownlinkTXAck.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.DownlinkTXAck; - return proto.gw.DownlinkTXAck.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.DownlinkTXAck} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.DownlinkTXAck} - */ -proto.gw.DownlinkTXAck.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setToken(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setError(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setDownlinkId(value); - break; - case 5: - var value = new proto.gw.DownlinkTXAckItem; - reader.readMessage(value,proto.gw.DownlinkTXAckItem.deserializeBinaryFromReader); - msg.addItems(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.DownlinkTXAck.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.DownlinkTXAck.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.DownlinkTXAck} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkTXAck.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getToken(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getError(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDownlinkId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getItemsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.gw.DownlinkTXAckItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes gateway_id = 1; - * @return {string} - */ -proto.gw.DownlinkTXAck.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id = 1; - * This is a type-conversion wrapper around `getGatewayId()` - * @return {string} - */ -proto.gw.DownlinkTXAck.prototype.getGatewayId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayId())); -}; - - -/** - * optional bytes gateway_id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayId()` - * @return {!Uint8Array} - */ -proto.gw.DownlinkTXAck.prototype.getGatewayId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.DownlinkTXAck} returns this - */ -proto.gw.DownlinkTXAck.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional uint32 token = 2; - * @return {number} - */ -proto.gw.DownlinkTXAck.prototype.getToken = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.DownlinkTXAck} returns this - */ -proto.gw.DownlinkTXAck.prototype.setToken = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string error = 3; - * @return {string} - */ -proto.gw.DownlinkTXAck.prototype.getError = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.DownlinkTXAck} returns this - */ -proto.gw.DownlinkTXAck.prototype.setError = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional bytes downlink_id = 4; - * @return {string} - */ -proto.gw.DownlinkTXAck.prototype.getDownlinkId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes downlink_id = 4; - * This is a type-conversion wrapper around `getDownlinkId()` - * @return {string} - */ -proto.gw.DownlinkTXAck.prototype.getDownlinkId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getDownlinkId())); -}; - - -/** - * optional bytes downlink_id = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getDownlinkId()` - * @return {!Uint8Array} - */ -proto.gw.DownlinkTXAck.prototype.getDownlinkId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getDownlinkId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.DownlinkTXAck} returns this - */ -proto.gw.DownlinkTXAck.prototype.setDownlinkId = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * repeated DownlinkTXAckItem items = 5; - * @return {!Array} - */ -proto.gw.DownlinkTXAck.prototype.getItemsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.gw.DownlinkTXAckItem, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.gw.DownlinkTXAck} returns this -*/ -proto.gw.DownlinkTXAck.prototype.setItemsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.gw.DownlinkTXAckItem=} opt_value - * @param {number=} opt_index - * @return {!proto.gw.DownlinkTXAckItem} - */ -proto.gw.DownlinkTXAck.prototype.addItems = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.gw.DownlinkTXAckItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.gw.DownlinkTXAck} returns this - */ -proto.gw.DownlinkTXAck.prototype.clearItemsList = function() { - return this.setItemsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.DownlinkTXAckItem.prototype.toObject = function(opt_includeInstance) { - return proto.gw.DownlinkTXAckItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.DownlinkTXAckItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkTXAckItem.toObject = function(includeInstance, msg) { - var f, obj = { - status: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.DownlinkTXAckItem} - */ -proto.gw.DownlinkTXAckItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.DownlinkTXAckItem; - return proto.gw.DownlinkTXAckItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.DownlinkTXAckItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.DownlinkTXAckItem} - */ -proto.gw.DownlinkTXAckItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.gw.TxAckStatus} */ (reader.readEnum()); - msg.setStatus(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.DownlinkTXAckItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.DownlinkTXAckItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.DownlinkTXAckItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkTXAckItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStatus(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } -}; - - -/** - * optional TxAckStatus status = 1; - * @return {!proto.gw.TxAckStatus} - */ -proto.gw.DownlinkTXAckItem.prototype.getStatus = function() { - return /** @type {!proto.gw.TxAckStatus} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.gw.TxAckStatus} value - * @return {!proto.gw.DownlinkTXAckItem} returns this - */ -proto.gw.DownlinkTXAckItem.prototype.setStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.gw.GatewayConfiguration.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.GatewayConfiguration.prototype.toObject = function(opt_includeInstance) { - return proto.gw.GatewayConfiguration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.GatewayConfiguration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GatewayConfiguration.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: msg.getGatewayId_asB64(), - version: jspb.Message.getFieldWithDefault(msg, 2, ""), - channelsList: jspb.Message.toObjectList(msg.getChannelsList(), - proto.gw.ChannelConfiguration.toObject, includeInstance), - statsInterval: (f = msg.getStatsInterval()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.GatewayConfiguration} - */ -proto.gw.GatewayConfiguration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.GatewayConfiguration; - return proto.gw.GatewayConfiguration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.GatewayConfiguration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.GatewayConfiguration} - */ -proto.gw.GatewayConfiguration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; - case 3: - var value = new proto.gw.ChannelConfiguration; - reader.readMessage(value,proto.gw.ChannelConfiguration.deserializeBinaryFromReader); - msg.addChannels(value); - break; - case 4: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setStatsInterval(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.GatewayConfiguration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.GatewayConfiguration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.GatewayConfiguration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GatewayConfiguration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getChannelsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.gw.ChannelConfiguration.serializeBinaryToWriter - ); - } - f = message.getStatsInterval(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes gateway_id = 1; - * @return {string} - */ -proto.gw.GatewayConfiguration.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id = 1; - * This is a type-conversion wrapper around `getGatewayId()` - * @return {string} - */ -proto.gw.GatewayConfiguration.prototype.getGatewayId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayId())); -}; - - -/** - * optional bytes gateway_id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayId()` - * @return {!Uint8Array} - */ -proto.gw.GatewayConfiguration.prototype.getGatewayId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.GatewayConfiguration} returns this - */ -proto.gw.GatewayConfiguration.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string version = 2; - * @return {string} - */ -proto.gw.GatewayConfiguration.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.GatewayConfiguration} returns this - */ -proto.gw.GatewayConfiguration.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated ChannelConfiguration channels = 3; - * @return {!Array} - */ -proto.gw.GatewayConfiguration.prototype.getChannelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.gw.ChannelConfiguration, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.gw.GatewayConfiguration} returns this -*/ -proto.gw.GatewayConfiguration.prototype.setChannelsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.gw.ChannelConfiguration=} opt_value - * @param {number=} opt_index - * @return {!proto.gw.ChannelConfiguration} - */ -proto.gw.GatewayConfiguration.prototype.addChannels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gw.ChannelConfiguration, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.gw.GatewayConfiguration} returns this - */ -proto.gw.GatewayConfiguration.prototype.clearChannelsList = function() { - return this.setChannelsList([]); -}; - - -/** - * optional google.protobuf.Duration stats_interval = 4; - * @return {?proto.google.protobuf.Duration} - */ -proto.gw.GatewayConfiguration.prototype.getStatsInterval = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.gw.GatewayConfiguration} returns this -*/ -proto.gw.GatewayConfiguration.prototype.setStatsInterval = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.GatewayConfiguration} returns this - */ -proto.gw.GatewayConfiguration.prototype.clearStatsInterval = function() { - return this.setStatsInterval(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.GatewayConfiguration.prototype.hasStatsInterval = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.gw.ChannelConfiguration.oneofGroups_ = [[3,4]]; - -/** - * @enum {number} - */ -proto.gw.ChannelConfiguration.ModulationConfigCase = { - MODULATION_CONFIG_NOT_SET: 0, - LORA_MODULATION_CONFIG: 3, - FSK_MODULATION_CONFIG: 4 -}; - -/** - * @return {proto.gw.ChannelConfiguration.ModulationConfigCase} - */ -proto.gw.ChannelConfiguration.prototype.getModulationConfigCase = function() { - return /** @type {proto.gw.ChannelConfiguration.ModulationConfigCase} */(jspb.Message.computeOneofCase(this, proto.gw.ChannelConfiguration.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.ChannelConfiguration.prototype.toObject = function(opt_includeInstance) { - return proto.gw.ChannelConfiguration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.ChannelConfiguration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.ChannelConfiguration.toObject = function(includeInstance, msg) { - var f, obj = { - frequency: jspb.Message.getFieldWithDefault(msg, 1, 0), - modulation: jspb.Message.getFieldWithDefault(msg, 2, 0), - loraModulationConfig: (f = msg.getLoraModulationConfig()) && proto.gw.LoRaModulationConfig.toObject(includeInstance, f), - fskModulationConfig: (f = msg.getFskModulationConfig()) && proto.gw.FSKModulationConfig.toObject(includeInstance, f), - board: jspb.Message.getFieldWithDefault(msg, 5, 0), - demodulator: jspb.Message.getFieldWithDefault(msg, 6, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.ChannelConfiguration} - */ -proto.gw.ChannelConfiguration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.ChannelConfiguration; - return proto.gw.ChannelConfiguration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.ChannelConfiguration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.ChannelConfiguration} - */ -proto.gw.ChannelConfiguration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFrequency(value); - break; - case 2: - var value = /** @type {!proto.common.Modulation} */ (reader.readEnum()); - msg.setModulation(value); - break; - case 3: - var value = new proto.gw.LoRaModulationConfig; - reader.readMessage(value,proto.gw.LoRaModulationConfig.deserializeBinaryFromReader); - msg.setLoraModulationConfig(value); - break; - case 4: - var value = new proto.gw.FSKModulationConfig; - reader.readMessage(value,proto.gw.FSKModulationConfig.deserializeBinaryFromReader); - msg.setFskModulationConfig(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBoard(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDemodulator(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.ChannelConfiguration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.ChannelConfiguration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.ChannelConfiguration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.ChannelConfiguration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFrequency(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getModulation(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getLoraModulationConfig(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.gw.LoRaModulationConfig.serializeBinaryToWriter - ); - } - f = message.getFskModulationConfig(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.gw.FSKModulationConfig.serializeBinaryToWriter - ); - } - f = message.getBoard(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getDemodulator(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } -}; - - -/** - * optional uint32 frequency = 1; - * @return {number} - */ -proto.gw.ChannelConfiguration.prototype.getFrequency = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.ChannelConfiguration} returns this - */ -proto.gw.ChannelConfiguration.prototype.setFrequency = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional common.Modulation modulation = 2; - * @return {!proto.common.Modulation} - */ -proto.gw.ChannelConfiguration.prototype.getModulation = function() { - return /** @type {!proto.common.Modulation} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.common.Modulation} value - * @return {!proto.gw.ChannelConfiguration} returns this - */ -proto.gw.ChannelConfiguration.prototype.setModulation = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional LoRaModulationConfig lora_modulation_config = 3; - * @return {?proto.gw.LoRaModulationConfig} - */ -proto.gw.ChannelConfiguration.prototype.getLoraModulationConfig = function() { - return /** @type{?proto.gw.LoRaModulationConfig} */ ( - jspb.Message.getWrapperField(this, proto.gw.LoRaModulationConfig, 3)); -}; - - -/** - * @param {?proto.gw.LoRaModulationConfig|undefined} value - * @return {!proto.gw.ChannelConfiguration} returns this -*/ -proto.gw.ChannelConfiguration.prototype.setLoraModulationConfig = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.gw.ChannelConfiguration.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.ChannelConfiguration} returns this - */ -proto.gw.ChannelConfiguration.prototype.clearLoraModulationConfig = function() { - return this.setLoraModulationConfig(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.ChannelConfiguration.prototype.hasLoraModulationConfig = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional FSKModulationConfig fsk_modulation_config = 4; - * @return {?proto.gw.FSKModulationConfig} - */ -proto.gw.ChannelConfiguration.prototype.getFskModulationConfig = function() { - return /** @type{?proto.gw.FSKModulationConfig} */ ( - jspb.Message.getWrapperField(this, proto.gw.FSKModulationConfig, 4)); -}; - - -/** - * @param {?proto.gw.FSKModulationConfig|undefined} value - * @return {!proto.gw.ChannelConfiguration} returns this -*/ -proto.gw.ChannelConfiguration.prototype.setFskModulationConfig = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.gw.ChannelConfiguration.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.ChannelConfiguration} returns this - */ -proto.gw.ChannelConfiguration.prototype.clearFskModulationConfig = function() { - return this.setFskModulationConfig(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.ChannelConfiguration.prototype.hasFskModulationConfig = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional uint32 board = 5; - * @return {number} - */ -proto.gw.ChannelConfiguration.prototype.getBoard = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.ChannelConfiguration} returns this - */ -proto.gw.ChannelConfiguration.prototype.setBoard = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional uint32 demodulator = 6; - * @return {number} - */ -proto.gw.ChannelConfiguration.prototype.getDemodulator = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.ChannelConfiguration} returns this - */ -proto.gw.ChannelConfiguration.prototype.setDemodulator = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.gw.LoRaModulationConfig.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.LoRaModulationConfig.prototype.toObject = function(opt_includeInstance) { - return proto.gw.LoRaModulationConfig.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.LoRaModulationConfig} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.LoRaModulationConfig.toObject = function(includeInstance, msg) { - var f, obj = { - bandwidth: jspb.Message.getFieldWithDefault(msg, 1, 0), - spreadingFactorsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.LoRaModulationConfig} - */ -proto.gw.LoRaModulationConfig.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.LoRaModulationConfig; - return proto.gw.LoRaModulationConfig.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.LoRaModulationConfig} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.LoRaModulationConfig} - */ -proto.gw.LoRaModulationConfig.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBandwidth(value); - break; - case 2: - var value = /** @type {!Array} */ (reader.readPackedUint32()); - msg.setSpreadingFactorsList(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.LoRaModulationConfig.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.LoRaModulationConfig.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.LoRaModulationConfig} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.LoRaModulationConfig.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBandwidth(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getSpreadingFactorsList(); - if (f.length > 0) { - writer.writePackedUint32( - 2, - f - ); - } -}; - - -/** - * optional uint32 bandwidth = 1; - * @return {number} - */ -proto.gw.LoRaModulationConfig.prototype.getBandwidth = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.LoRaModulationConfig} returns this - */ -proto.gw.LoRaModulationConfig.prototype.setBandwidth = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated uint32 spreading_factors = 2; - * @return {!Array} - */ -proto.gw.LoRaModulationConfig.prototype.getSpreadingFactorsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.gw.LoRaModulationConfig} returns this - */ -proto.gw.LoRaModulationConfig.prototype.setSpreadingFactorsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.gw.LoRaModulationConfig} returns this - */ -proto.gw.LoRaModulationConfig.prototype.addSpreadingFactors = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.gw.LoRaModulationConfig} returns this - */ -proto.gw.LoRaModulationConfig.prototype.clearSpreadingFactorsList = function() { - return this.setSpreadingFactorsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.FSKModulationConfig.prototype.toObject = function(opt_includeInstance) { - return proto.gw.FSKModulationConfig.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.FSKModulationConfig} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.FSKModulationConfig.toObject = function(includeInstance, msg) { - var f, obj = { - bandwidth: jspb.Message.getFieldWithDefault(msg, 1, 0), - bitrate: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.FSKModulationConfig} - */ -proto.gw.FSKModulationConfig.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.FSKModulationConfig; - return proto.gw.FSKModulationConfig.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.FSKModulationConfig} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.FSKModulationConfig} - */ -proto.gw.FSKModulationConfig.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBandwidth(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBitrate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.FSKModulationConfig.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.FSKModulationConfig.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.FSKModulationConfig} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.FSKModulationConfig.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBandwidth(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getBitrate(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } -}; - - -/** - * optional uint32 bandwidth = 1; - * @return {number} - */ -proto.gw.FSKModulationConfig.prototype.getBandwidth = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.FSKModulationConfig} returns this - */ -proto.gw.FSKModulationConfig.prototype.setBandwidth = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 bitrate = 2; - * @return {number} - */ -proto.gw.FSKModulationConfig.prototype.getBitrate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.FSKModulationConfig} returns this - */ -proto.gw.FSKModulationConfig.prototype.setBitrate = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.GatewayCommandExecRequest.prototype.toObject = function(opt_includeInstance) { - return proto.gw.GatewayCommandExecRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.GatewayCommandExecRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GatewayCommandExecRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: msg.getGatewayId_asB64(), - command: jspb.Message.getFieldWithDefault(msg, 2, ""), - execid: msg.getExecid_asB64(), - stdin: msg.getStdin_asB64(), - environmentMap: (f = msg.getEnvironmentMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.GatewayCommandExecRequest} - */ -proto.gw.GatewayCommandExecRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.GatewayCommandExecRequest; - return proto.gw.GatewayCommandExecRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.GatewayCommandExecRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.GatewayCommandExecRequest} - */ -proto.gw.GatewayCommandExecRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCommand(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setExecid(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setStdin(value); - break; - case 5: - var value = msg.getEnvironmentMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.GatewayCommandExecRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.GatewayCommandExecRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.GatewayCommandExecRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GatewayCommandExecRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getCommand(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getExecid_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getStdin_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getEnvironmentMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional bytes gateway_id = 1; - * @return {string} - */ -proto.gw.GatewayCommandExecRequest.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id = 1; - * This is a type-conversion wrapper around `getGatewayId()` - * @return {string} - */ -proto.gw.GatewayCommandExecRequest.prototype.getGatewayId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayId())); -}; - - -/** - * optional bytes gateway_id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayId()` - * @return {!Uint8Array} - */ -proto.gw.GatewayCommandExecRequest.prototype.getGatewayId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.GatewayCommandExecRequest} returns this - */ -proto.gw.GatewayCommandExecRequest.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string command = 2; - * @return {string} - */ -proto.gw.GatewayCommandExecRequest.prototype.getCommand = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.GatewayCommandExecRequest} returns this - */ -proto.gw.GatewayCommandExecRequest.prototype.setCommand = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bytes ExecId = 3; - * @return {string} - */ -proto.gw.GatewayCommandExecRequest.prototype.getExecid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes ExecId = 3; - * This is a type-conversion wrapper around `getExecid()` - * @return {string} - */ -proto.gw.GatewayCommandExecRequest.prototype.getExecid_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getExecid())); -}; - - -/** - * optional bytes ExecId = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getExecid()` - * @return {!Uint8Array} - */ -proto.gw.GatewayCommandExecRequest.prototype.getExecid_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getExecid())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.GatewayCommandExecRequest} returns this - */ -proto.gw.GatewayCommandExecRequest.prototype.setExecid = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional bytes stdin = 4; - * @return {string} - */ -proto.gw.GatewayCommandExecRequest.prototype.getStdin = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes stdin = 4; - * This is a type-conversion wrapper around `getStdin()` - * @return {string} - */ -proto.gw.GatewayCommandExecRequest.prototype.getStdin_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getStdin())); -}; - - -/** - * optional bytes stdin = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getStdin()` - * @return {!Uint8Array} - */ -proto.gw.GatewayCommandExecRequest.prototype.getStdin_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getStdin())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.GatewayCommandExecRequest} returns this - */ -proto.gw.GatewayCommandExecRequest.prototype.setStdin = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * map environment = 5; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.gw.GatewayCommandExecRequest.prototype.getEnvironmentMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 5, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.gw.GatewayCommandExecRequest} returns this - */ -proto.gw.GatewayCommandExecRequest.prototype.clearEnvironmentMap = function() { - this.getEnvironmentMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.GatewayCommandExecResponse.prototype.toObject = function(opt_includeInstance) { - return proto.gw.GatewayCommandExecResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.GatewayCommandExecResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GatewayCommandExecResponse.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: msg.getGatewayId_asB64(), - execId: msg.getExecId_asB64(), - stdout: msg.getStdout_asB64(), - stderr: msg.getStderr_asB64(), - error: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.GatewayCommandExecResponse} - */ -proto.gw.GatewayCommandExecResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.GatewayCommandExecResponse; - return proto.gw.GatewayCommandExecResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.GatewayCommandExecResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.GatewayCommandExecResponse} - */ -proto.gw.GatewayCommandExecResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayId(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setExecId(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setStdout(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setStderr(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setError(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.GatewayCommandExecResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.GatewayCommandExecResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.GatewayCommandExecResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GatewayCommandExecResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getExecId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getStdout_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getStderr_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getError(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional bytes gateway_id = 1; - * @return {string} - */ -proto.gw.GatewayCommandExecResponse.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id = 1; - * This is a type-conversion wrapper around `getGatewayId()` - * @return {string} - */ -proto.gw.GatewayCommandExecResponse.prototype.getGatewayId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayId())); -}; - - -/** - * optional bytes gateway_id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayId()` - * @return {!Uint8Array} - */ -proto.gw.GatewayCommandExecResponse.prototype.getGatewayId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.GatewayCommandExecResponse} returns this - */ -proto.gw.GatewayCommandExecResponse.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional bytes exec_id = 2; - * @return {string} - */ -proto.gw.GatewayCommandExecResponse.prototype.getExecId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes exec_id = 2; - * This is a type-conversion wrapper around `getExecId()` - * @return {string} - */ -proto.gw.GatewayCommandExecResponse.prototype.getExecId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getExecId())); -}; - - -/** - * optional bytes exec_id = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getExecId()` - * @return {!Uint8Array} - */ -proto.gw.GatewayCommandExecResponse.prototype.getExecId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getExecId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.GatewayCommandExecResponse} returns this - */ -proto.gw.GatewayCommandExecResponse.prototype.setExecId = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional bytes stdout = 3; - * @return {string} - */ -proto.gw.GatewayCommandExecResponse.prototype.getStdout = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes stdout = 3; - * This is a type-conversion wrapper around `getStdout()` - * @return {string} - */ -proto.gw.GatewayCommandExecResponse.prototype.getStdout_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getStdout())); -}; - - -/** - * optional bytes stdout = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getStdout()` - * @return {!Uint8Array} - */ -proto.gw.GatewayCommandExecResponse.prototype.getStdout_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getStdout())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.GatewayCommandExecResponse} returns this - */ -proto.gw.GatewayCommandExecResponse.prototype.setStdout = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional bytes stderr = 4; - * @return {string} - */ -proto.gw.GatewayCommandExecResponse.prototype.getStderr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes stderr = 4; - * This is a type-conversion wrapper around `getStderr()` - * @return {string} - */ -proto.gw.GatewayCommandExecResponse.prototype.getStderr_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getStderr())); -}; - - -/** - * optional bytes stderr = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getStderr()` - * @return {!Uint8Array} - */ -proto.gw.GatewayCommandExecResponse.prototype.getStderr_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getStderr())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.GatewayCommandExecResponse} returns this - */ -proto.gw.GatewayCommandExecResponse.prototype.setStderr = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * optional string error = 5; - * @return {string} - */ -proto.gw.GatewayCommandExecResponse.prototype.getError = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.GatewayCommandExecResponse} returns this - */ -proto.gw.GatewayCommandExecResponse.prototype.setError = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.RawPacketForwarderEvent.prototype.toObject = function(opt_includeInstance) { - return proto.gw.RawPacketForwarderEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.RawPacketForwarderEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.RawPacketForwarderEvent.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: msg.getGatewayId_asB64(), - rawId: msg.getRawId_asB64(), - payload: msg.getPayload_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.RawPacketForwarderEvent} - */ -proto.gw.RawPacketForwarderEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.RawPacketForwarderEvent; - return proto.gw.RawPacketForwarderEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.RawPacketForwarderEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.RawPacketForwarderEvent} - */ -proto.gw.RawPacketForwarderEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayId(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setRawId(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.RawPacketForwarderEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.RawPacketForwarderEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.RawPacketForwarderEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.RawPacketForwarderEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getRawId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getPayload_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } -}; - - -/** - * optional bytes gateway_id = 1; - * @return {string} - */ -proto.gw.RawPacketForwarderEvent.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id = 1; - * This is a type-conversion wrapper around `getGatewayId()` - * @return {string} - */ -proto.gw.RawPacketForwarderEvent.prototype.getGatewayId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayId())); -}; - - -/** - * optional bytes gateway_id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayId()` - * @return {!Uint8Array} - */ -proto.gw.RawPacketForwarderEvent.prototype.getGatewayId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.RawPacketForwarderEvent} returns this - */ -proto.gw.RawPacketForwarderEvent.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional bytes raw_id = 2; - * @return {string} - */ -proto.gw.RawPacketForwarderEvent.prototype.getRawId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes raw_id = 2; - * This is a type-conversion wrapper around `getRawId()` - * @return {string} - */ -proto.gw.RawPacketForwarderEvent.prototype.getRawId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getRawId())); -}; - - -/** - * optional bytes raw_id = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getRawId()` - * @return {!Uint8Array} - */ -proto.gw.RawPacketForwarderEvent.prototype.getRawId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getRawId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.RawPacketForwarderEvent} returns this - */ -proto.gw.RawPacketForwarderEvent.prototype.setRawId = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional bytes payload = 3; - * @return {string} - */ -proto.gw.RawPacketForwarderEvent.prototype.getPayload = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes payload = 3; - * This is a type-conversion wrapper around `getPayload()` - * @return {string} - */ -proto.gw.RawPacketForwarderEvent.prototype.getPayload_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPayload())); -}; - - -/** - * optional bytes payload = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPayload()` - * @return {!Uint8Array} - */ -proto.gw.RawPacketForwarderEvent.prototype.getPayload_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPayload())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.RawPacketForwarderEvent} returns this - */ -proto.gw.RawPacketForwarderEvent.prototype.setPayload = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.RawPacketForwarderCommand.prototype.toObject = function(opt_includeInstance) { - return proto.gw.RawPacketForwarderCommand.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.RawPacketForwarderCommand} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.RawPacketForwarderCommand.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: msg.getGatewayId_asB64(), - rawId: msg.getRawId_asB64(), - payload: msg.getPayload_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.RawPacketForwarderCommand} - */ -proto.gw.RawPacketForwarderCommand.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.RawPacketForwarderCommand; - return proto.gw.RawPacketForwarderCommand.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.RawPacketForwarderCommand} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.RawPacketForwarderCommand} - */ -proto.gw.RawPacketForwarderCommand.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayId(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setRawId(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.RawPacketForwarderCommand.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.RawPacketForwarderCommand.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.RawPacketForwarderCommand} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.RawPacketForwarderCommand.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getRawId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getPayload_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } -}; - - -/** - * optional bytes gateway_id = 1; - * @return {string} - */ -proto.gw.RawPacketForwarderCommand.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id = 1; - * This is a type-conversion wrapper around `getGatewayId()` - * @return {string} - */ -proto.gw.RawPacketForwarderCommand.prototype.getGatewayId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayId())); -}; - - -/** - * optional bytes gateway_id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayId()` - * @return {!Uint8Array} - */ -proto.gw.RawPacketForwarderCommand.prototype.getGatewayId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.RawPacketForwarderCommand} returns this - */ -proto.gw.RawPacketForwarderCommand.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional bytes raw_id = 2; - * @return {string} - */ -proto.gw.RawPacketForwarderCommand.prototype.getRawId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes raw_id = 2; - * This is a type-conversion wrapper around `getRawId()` - * @return {string} - */ -proto.gw.RawPacketForwarderCommand.prototype.getRawId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getRawId())); -}; - - -/** - * optional bytes raw_id = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getRawId()` - * @return {!Uint8Array} - */ -proto.gw.RawPacketForwarderCommand.prototype.getRawId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getRawId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.RawPacketForwarderCommand} returns this - */ -proto.gw.RawPacketForwarderCommand.prototype.setRawId = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional bytes payload = 3; - * @return {string} - */ -proto.gw.RawPacketForwarderCommand.prototype.getPayload = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes payload = 3; - * This is a type-conversion wrapper around `getPayload()` - * @return {string} - */ -proto.gw.RawPacketForwarderCommand.prototype.getPayload_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPayload())); -}; - - -/** - * optional bytes payload = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPayload()` - * @return {!Uint8Array} - */ -proto.gw.RawPacketForwarderCommand.prototype.getPayload_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPayload())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.RawPacketForwarderCommand} returns this - */ -proto.gw.RawPacketForwarderCommand.prototype.setPayload = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.ConnState.prototype.toObject = function(opt_includeInstance) { - return proto.gw.ConnState.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.ConnState} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.ConnState.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: msg.getGatewayId_asB64(), - state: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.ConnState} - */ -proto.gw.ConnState.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.ConnState; - return proto.gw.ConnState.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.ConnState} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.ConnState} - */ -proto.gw.ConnState.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayId(value); - break; - case 2: - var value = /** @type {!proto.gw.ConnState.State} */ (reader.readEnum()); - msg.setState(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.ConnState.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.ConnState.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.ConnState} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.ConnState.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.gw.ConnState.State = { - OFFLINE: 0, - ONLINE: 1 -}; - -/** - * optional bytes gateway_id = 1; - * @return {string} - */ -proto.gw.ConnState.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id = 1; - * This is a type-conversion wrapper around `getGatewayId()` - * @return {string} - */ -proto.gw.ConnState.prototype.getGatewayId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayId())); -}; - - -/** - * optional bytes gateway_id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayId()` - * @return {!Uint8Array} - */ -proto.gw.ConnState.prototype.getGatewayId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.ConnState} returns this - */ -proto.gw.ConnState.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional State state = 2; - * @return {!proto.gw.ConnState.State} - */ -proto.gw.ConnState.prototype.getState = function() { - return /** @type {!proto.gw.ConnState.State} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.gw.ConnState.State} value - * @return {!proto.gw.ConnState} returns this - */ -proto.gw.ConnState.prototype.setState = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * @enum {number} - */ -proto.gw.DownlinkTiming = { - IMMEDIATELY: 0, - DELAY: 1, - GPS_EPOCH: 2 -}; - -/** - * @enum {number} - */ -proto.gw.FineTimestampType = { - NONE: 0, - ENCRYPTED: 1, - PLAIN: 2 -}; - -/** - * @enum {number} - */ -proto.gw.CRCStatus = { - NO_CRC: 0, - BAD_CRC: 1, - CRC_OK: 2 -}; - -/** - * @enum {number} - */ -proto.gw.TxAckStatus = { - IGNORED: 0, - OK: 1, - TOO_LATE: 2, - TOO_EARLY: 3, - COLLISION_PACKET: 4, - COLLISION_BEACON: 5, - TX_FREQ: 6, - TX_POWER: 7, - GPS_UNLOCKED: 8, - QUEUE_FULL: 9, - INTERNAL_ERROR: 10 -}; - -goog.object.extend(exports, proto.gw); diff --git a/api/grpc-web/integration/integration_pb.d.ts b/api/grpc-web/integration/integration_pb.d.ts deleted file mode 100644 index 0346e8ce..00000000 --- a/api/grpc-web/integration/integration_pb.d.ts +++ /dev/null @@ -1,489 +0,0 @@ -import * as jspb from 'google-protobuf' - -import * as common_common_pb from '../common/common_pb'; -import * as gw_gw_pb from '../gw/gw_pb'; -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; - - -export class UplinkEvent extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): UplinkEvent; - - getApplicationName(): string; - setApplicationName(value: string): UplinkEvent; - - getDeviceName(): string; - setDeviceName(value: string): UplinkEvent; - - getDevEui(): string; - setDevEui(value: string): UplinkEvent; - - getRxInfoList(): Array; - setRxInfoList(value: Array): UplinkEvent; - clearRxInfoList(): UplinkEvent; - addRxInfo(value?: gw_gw_pb.UplinkRXInfo, index?: number): gw_gw_pb.UplinkRXInfo; - - getTxInfo(): gw_gw_pb.UplinkTXInfo | undefined; - setTxInfo(value?: gw_gw_pb.UplinkTXInfo): UplinkEvent; - hasTxInfo(): boolean; - clearTxInfo(): UplinkEvent; - - getAdr(): boolean; - setAdr(value: boolean): UplinkEvent; - - getDr(): number; - setDr(value: number): UplinkEvent; - - getFCnt(): number; - setFCnt(value: number): UplinkEvent; - - getFPort(): number; - setFPort(value: number): UplinkEvent; - - getData(): string; - setData(value: string): UplinkEvent; - - getObjectJson(): string; - setObjectJson(value: string): UplinkEvent; - - getTagsMap(): jspb.Map; - clearTagsMap(): UplinkEvent; - - getConfirmedUplink(): boolean; - setConfirmedUplink(value: boolean): UplinkEvent; - - getDevAddr(): string; - setDevAddr(value: string): UplinkEvent; - - getPublishedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setPublishedAt(value?: google_protobuf_timestamp_pb.Timestamp): UplinkEvent; - hasPublishedAt(): boolean; - clearPublishedAt(): UplinkEvent; - - getDeviceProfileId(): string; - setDeviceProfileId(value: string): UplinkEvent; - - getDeviceProfileName(): string; - setDeviceProfileName(value: string): UplinkEvent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UplinkEvent.AsObject; - static toObject(includeInstance: boolean, msg: UplinkEvent): UplinkEvent.AsObject; - static serializeBinaryToWriter(message: UplinkEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UplinkEvent; - static deserializeBinaryFromReader(message: UplinkEvent, reader: jspb.BinaryReader): UplinkEvent; -} - -export namespace UplinkEvent { - export type AsObject = { - applicationId: string, - applicationName: string, - deviceName: string, - devEui: string, - rxInfoList: Array, - txInfo?: gw_gw_pb.UplinkTXInfo.AsObject, - adr: boolean, - dr: number, - fCnt: number, - fPort: number, - data: string, - objectJson: string, - tagsMap: Array<[string, string]>, - confirmedUplink: boolean, - devAddr: string, - publishedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - deviceProfileId: string, - deviceProfileName: string, - } -} - -export class JoinEvent extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): JoinEvent; - - getApplicationName(): string; - setApplicationName(value: string): JoinEvent; - - getDeviceName(): string; - setDeviceName(value: string): JoinEvent; - - getDevEui(): string; - setDevEui(value: string): JoinEvent; - - getDevAddr(): string; - setDevAddr(value: string): JoinEvent; - - getRxInfoList(): Array; - setRxInfoList(value: Array): JoinEvent; - clearRxInfoList(): JoinEvent; - addRxInfo(value?: gw_gw_pb.UplinkRXInfo, index?: number): gw_gw_pb.UplinkRXInfo; - - getTxInfo(): gw_gw_pb.UplinkTXInfo | undefined; - setTxInfo(value?: gw_gw_pb.UplinkTXInfo): JoinEvent; - hasTxInfo(): boolean; - clearTxInfo(): JoinEvent; - - getDr(): number; - setDr(value: number): JoinEvent; - - getTagsMap(): jspb.Map; - clearTagsMap(): JoinEvent; - - getPublishedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setPublishedAt(value?: google_protobuf_timestamp_pb.Timestamp): JoinEvent; - hasPublishedAt(): boolean; - clearPublishedAt(): JoinEvent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): JoinEvent.AsObject; - static toObject(includeInstance: boolean, msg: JoinEvent): JoinEvent.AsObject; - static serializeBinaryToWriter(message: JoinEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): JoinEvent; - static deserializeBinaryFromReader(message: JoinEvent, reader: jspb.BinaryReader): JoinEvent; -} - -export namespace JoinEvent { - export type AsObject = { - applicationId: string, - applicationName: string, - deviceName: string, - devEui: string, - devAddr: string, - rxInfoList: Array, - txInfo?: gw_gw_pb.UplinkTXInfo.AsObject, - dr: number, - tagsMap: Array<[string, string]>, - publishedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class AckEvent extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): AckEvent; - - getApplicationName(): string; - setApplicationName(value: string): AckEvent; - - getDeviceName(): string; - setDeviceName(value: string): AckEvent; - - getDevEui(): string; - setDevEui(value: string): AckEvent; - - getAcknowledged(): boolean; - setAcknowledged(value: boolean): AckEvent; - - getFCnt(): number; - setFCnt(value: number): AckEvent; - - getTagsMap(): jspb.Map; - clearTagsMap(): AckEvent; - - getPublishedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setPublishedAt(value?: google_protobuf_timestamp_pb.Timestamp): AckEvent; - hasPublishedAt(): boolean; - clearPublishedAt(): AckEvent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AckEvent.AsObject; - static toObject(includeInstance: boolean, msg: AckEvent): AckEvent.AsObject; - static serializeBinaryToWriter(message: AckEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AckEvent; - static deserializeBinaryFromReader(message: AckEvent, reader: jspb.BinaryReader): AckEvent; -} - -export namespace AckEvent { - export type AsObject = { - applicationId: string, - applicationName: string, - deviceName: string, - devEui: string, - acknowledged: boolean, - fCnt: number, - tagsMap: Array<[string, string]>, - publishedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class TxAckEvent extends jspb.Message { - getApplicationId(): number; - setApplicationId(value: number): TxAckEvent; - - getApplicationName(): string; - setApplicationName(value: string): TxAckEvent; - - getDeviceName(): string; - setDeviceName(value: string): TxAckEvent; - - getDevEui(): string; - setDevEui(value: string): TxAckEvent; - - getFCnt(): number; - setFCnt(value: number): TxAckEvent; - - getTagsMap(): jspb.Map; - clearTagsMap(): TxAckEvent; - - getGatewayId(): string; - setGatewayId(value: string): TxAckEvent; - - getTxInfo(): gw_gw_pb.DownlinkTXInfo | undefined; - setTxInfo(value?: gw_gw_pb.DownlinkTXInfo): TxAckEvent; - hasTxInfo(): boolean; - clearTxInfo(): TxAckEvent; - - getPublishedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setPublishedAt(value?: google_protobuf_timestamp_pb.Timestamp): TxAckEvent; - hasPublishedAt(): boolean; - clearPublishedAt(): TxAckEvent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TxAckEvent.AsObject; - static toObject(includeInstance: boolean, msg: TxAckEvent): TxAckEvent.AsObject; - static serializeBinaryToWriter(message: TxAckEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TxAckEvent; - static deserializeBinaryFromReader(message: TxAckEvent, reader: jspb.BinaryReader): TxAckEvent; -} - -export namespace TxAckEvent { - export type AsObject = { - applicationId: number, - applicationName: string, - deviceName: string, - devEui: string, - fCnt: number, - tagsMap: Array<[string, string]>, - gatewayId: string, - txInfo?: gw_gw_pb.DownlinkTXInfo.AsObject, - publishedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class ErrorEvent extends jspb.Message { - getApplicationId(): number; - setApplicationId(value: number): ErrorEvent; - - getApplicationName(): string; - setApplicationName(value: string): ErrorEvent; - - getDeviceName(): string; - setDeviceName(value: string): ErrorEvent; - - getDevEui(): string; - setDevEui(value: string): ErrorEvent; - - getType(): ErrorType; - setType(value: ErrorType): ErrorEvent; - - getError(): string; - setError(value: string): ErrorEvent; - - getFCnt(): number; - setFCnt(value: number): ErrorEvent; - - getTagsMap(): jspb.Map; - clearTagsMap(): ErrorEvent; - - getPublishedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setPublishedAt(value?: google_protobuf_timestamp_pb.Timestamp): ErrorEvent; - hasPublishedAt(): boolean; - clearPublishedAt(): ErrorEvent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ErrorEvent.AsObject; - static toObject(includeInstance: boolean, msg: ErrorEvent): ErrorEvent.AsObject; - static serializeBinaryToWriter(message: ErrorEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ErrorEvent; - static deserializeBinaryFromReader(message: ErrorEvent, reader: jspb.BinaryReader): ErrorEvent; -} - -export namespace ErrorEvent { - export type AsObject = { - applicationId: number, - applicationName: string, - deviceName: string, - devEui: string, - type: ErrorType, - error: string, - fCnt: number, - tagsMap: Array<[string, string]>, - publishedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class StatusEvent extends jspb.Message { - getApplicationId(): number; - setApplicationId(value: number): StatusEvent; - - getApplicationName(): string; - setApplicationName(value: string): StatusEvent; - - getDeviceName(): string; - setDeviceName(value: string): StatusEvent; - - getDevEui(): string; - setDevEui(value: string): StatusEvent; - - getMargin(): number; - setMargin(value: number): StatusEvent; - - getExternalPowerSource(): boolean; - setExternalPowerSource(value: boolean): StatusEvent; - - getBatteryLevelUnavailable(): boolean; - setBatteryLevelUnavailable(value: boolean): StatusEvent; - - getBatteryLevel(): number; - setBatteryLevel(value: number): StatusEvent; - - getTagsMap(): jspb.Map; - clearTagsMap(): StatusEvent; - - getPublishedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setPublishedAt(value?: google_protobuf_timestamp_pb.Timestamp): StatusEvent; - hasPublishedAt(): boolean; - clearPublishedAt(): StatusEvent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StatusEvent.AsObject; - static toObject(includeInstance: boolean, msg: StatusEvent): StatusEvent.AsObject; - static serializeBinaryToWriter(message: StatusEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StatusEvent; - static deserializeBinaryFromReader(message: StatusEvent, reader: jspb.BinaryReader): StatusEvent; -} - -export namespace StatusEvent { - export type AsObject = { - applicationId: number, - applicationName: string, - deviceName: string, - devEui: string, - margin: number, - externalPowerSource: boolean, - batteryLevelUnavailable: boolean, - batteryLevel: number, - tagsMap: Array<[string, string]>, - publishedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class LocationEvent extends jspb.Message { - getApplicationId(): number; - setApplicationId(value: number): LocationEvent; - - getApplicationName(): string; - setApplicationName(value: string): LocationEvent; - - getDeviceName(): string; - setDeviceName(value: string): LocationEvent; - - getDevEui(): string; - setDevEui(value: string): LocationEvent; - - getLocation(): common_common_pb.Location | undefined; - setLocation(value?: common_common_pb.Location): LocationEvent; - hasLocation(): boolean; - clearLocation(): LocationEvent; - - getTagsMap(): jspb.Map; - clearTagsMap(): LocationEvent; - - getUplinkIdsList(): Array; - setUplinkIdsList(value: Array): LocationEvent; - clearUplinkIdsList(): LocationEvent; - addUplinkIds(value: string, index?: number): LocationEvent; - - getFCnt(): number; - setFCnt(value: number): LocationEvent; - - getPublishedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setPublishedAt(value?: google_protobuf_timestamp_pb.Timestamp): LocationEvent; - hasPublishedAt(): boolean; - clearPublishedAt(): LocationEvent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LocationEvent.AsObject; - static toObject(includeInstance: boolean, msg: LocationEvent): LocationEvent.AsObject; - static serializeBinaryToWriter(message: LocationEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LocationEvent; - static deserializeBinaryFromReader(message: LocationEvent, reader: jspb.BinaryReader): LocationEvent; -} - -export namespace LocationEvent { - export type AsObject = { - applicationId: number, - applicationName: string, - deviceName: string, - devEui: string, - location?: common_common_pb.Location.AsObject, - tagsMap: Array<[string, string]>, - uplinkIdsList: Array, - fCnt: number, - publishedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class IntegrationEvent extends jspb.Message { - getApplicationId(): number; - setApplicationId(value: number): IntegrationEvent; - - getApplicationName(): string; - setApplicationName(value: string): IntegrationEvent; - - getDeviceName(): string; - setDeviceName(value: string): IntegrationEvent; - - getDevEui(): string; - setDevEui(value: string): IntegrationEvent; - - getTagsMap(): jspb.Map; - clearTagsMap(): IntegrationEvent; - - getIntegrationName(): string; - setIntegrationName(value: string): IntegrationEvent; - - getEventType(): string; - setEventType(value: string): IntegrationEvent; - - getObjectJson(): string; - setObjectJson(value: string): IntegrationEvent; - - getPublishedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setPublishedAt(value?: google_protobuf_timestamp_pb.Timestamp): IntegrationEvent; - hasPublishedAt(): boolean; - clearPublishedAt(): IntegrationEvent; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): IntegrationEvent.AsObject; - static toObject(includeInstance: boolean, msg: IntegrationEvent): IntegrationEvent.AsObject; - static serializeBinaryToWriter(message: IntegrationEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): IntegrationEvent; - static deserializeBinaryFromReader(message: IntegrationEvent, reader: jspb.BinaryReader): IntegrationEvent; -} - -export namespace IntegrationEvent { - export type AsObject = { - applicationId: number, - applicationName: string, - deviceName: string, - devEui: string, - tagsMap: Array<[string, string]>, - integrationName: string, - eventType: string, - objectJson: string, - publishedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export enum ErrorType { - UNKNOWN = 0, - DOWNLINK_PAYLOAD_SIZE = 1, - DOWNLINK_FCNT = 2, - UPLINK_CODEC = 3, - DOWNLINK_CODEC = 4, - OTAA = 5, - UPLINK_FCNT_RESET = 6, - UPLINK_MIC = 7, - UPLINK_FCNT_RETRANSMISSION = 8, - DOWNLINK_GATEWAY = 9, -} diff --git a/api/grpc-web/integration/integration_pb.js b/api/grpc-web/integration/integration_pb.js deleted file mode 100644 index 852c9cad..00000000 --- a/api/grpc-web/integration/integration_pb.js +++ /dev/null @@ -1,3836 +0,0 @@ -// source: integration/integration.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -var gw_gw_pb = require('../gw/gw_pb.js'); -goog.object.extend(proto, gw_gw_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -goog.exportSymbol('proto.integration.AckEvent', null, global); -goog.exportSymbol('proto.integration.ErrorEvent', null, global); -goog.exportSymbol('proto.integration.ErrorType', null, global); -goog.exportSymbol('proto.integration.IntegrationEvent', null, global); -goog.exportSymbol('proto.integration.JoinEvent', null, global); -goog.exportSymbol('proto.integration.LocationEvent', null, global); -goog.exportSymbol('proto.integration.StatusEvent', null, global); -goog.exportSymbol('proto.integration.TxAckEvent', null, global); -goog.exportSymbol('proto.integration.UplinkEvent', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.UplinkEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.integration.UplinkEvent.repeatedFields_, null); -}; -goog.inherits(proto.integration.UplinkEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.UplinkEvent.displayName = 'proto.integration.UplinkEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.JoinEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.integration.JoinEvent.repeatedFields_, null); -}; -goog.inherits(proto.integration.JoinEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.JoinEvent.displayName = 'proto.integration.JoinEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.AckEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.integration.AckEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.AckEvent.displayName = 'proto.integration.AckEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.TxAckEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.integration.TxAckEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.TxAckEvent.displayName = 'proto.integration.TxAckEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.ErrorEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.integration.ErrorEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.ErrorEvent.displayName = 'proto.integration.ErrorEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.StatusEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.integration.StatusEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.StatusEvent.displayName = 'proto.integration.StatusEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.LocationEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.integration.LocationEvent.repeatedFields_, null); -}; -goog.inherits(proto.integration.LocationEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.LocationEvent.displayName = 'proto.integration.LocationEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.IntegrationEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.integration.IntegrationEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.IntegrationEvent.displayName = 'proto.integration.IntegrationEvent'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.integration.UplinkEvent.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.UplinkEvent.prototype.toObject = function(opt_includeInstance) { - return proto.integration.UplinkEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.UplinkEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.UplinkEvent.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - applicationName: jspb.Message.getFieldWithDefault(msg, 2, ""), - deviceName: jspb.Message.getFieldWithDefault(msg, 3, ""), - devEui: jspb.Message.getFieldWithDefault(msg, 4, ""), - rxInfoList: jspb.Message.toObjectList(msg.getRxInfoList(), - gw_gw_pb.UplinkRXInfo.toObject, includeInstance), - txInfo: (f = msg.getTxInfo()) && gw_gw_pb.UplinkTXInfo.toObject(includeInstance, f), - adr: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - dr: jspb.Message.getFieldWithDefault(msg, 8, 0), - fCnt: jspb.Message.getFieldWithDefault(msg, 9, 0), - fPort: jspb.Message.getFieldWithDefault(msg, 10, 0), - data: jspb.Message.getFieldWithDefault(msg, 11, ""), - objectJson: jspb.Message.getFieldWithDefault(msg, 12, ""), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [], - confirmedUplink: jspb.Message.getBooleanFieldWithDefault(msg, 14, false), - devAddr: jspb.Message.getFieldWithDefault(msg, 15, ""), - publishedAt: (f = msg.getPublishedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - deviceProfileId: jspb.Message.getFieldWithDefault(msg, 17, ""), - deviceProfileName: jspb.Message.getFieldWithDefault(msg, 18, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.UplinkEvent} - */ -proto.integration.UplinkEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.UplinkEvent; - return proto.integration.UplinkEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.UplinkEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.UplinkEvent} - */ -proto.integration.UplinkEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 5: - var value = new gw_gw_pb.UplinkRXInfo; - reader.readMessage(value,gw_gw_pb.UplinkRXInfo.deserializeBinaryFromReader); - msg.addRxInfo(value); - break; - case 6: - var value = new gw_gw_pb.UplinkTXInfo; - reader.readMessage(value,gw_gw_pb.UplinkTXInfo.deserializeBinaryFromReader); - msg.setTxInfo(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAdr(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDr(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCnt(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFPort(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setData(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setObjectJson(value); - break; - case 13: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 14: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setConfirmedUplink(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.setDevAddr(value); - break; - case 16: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setPublishedAt(value); - break; - case 17: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceProfileId(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceProfileName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.UplinkEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.UplinkEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.UplinkEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.UplinkEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getApplicationName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDeviceName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRxInfoList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - gw_gw_pb.UplinkRXInfo.serializeBinaryToWriter - ); - } - f = message.getTxInfo(); - if (f != null) { - writer.writeMessage( - 6, - f, - gw_gw_pb.UplinkTXInfo.serializeBinaryToWriter - ); - } - f = message.getAdr(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getDr(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getFCnt(); - if (f !== 0) { - writer.writeUint32( - 9, - f - ); - } - f = message.getFPort(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getData(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getObjectJson(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(13, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getConfirmedUplink(); - if (f) { - writer.writeBool( - 14, - f - ); - } - f = message.getDevAddr(); - if (f.length > 0) { - writer.writeString( - 15, - f - ); - } - f = message.getPublishedAt(); - if (f != null) { - writer.writeMessage( - 16, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDeviceProfileId(); - if (f.length > 0) { - writer.writeString( - 17, - f - ); - } - f = message.getDeviceProfileName(); - if (f.length > 0) { - writer.writeString( - 18, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.integration.UplinkEvent.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string application_name = 2; - * @return {string} - */ -proto.integration.UplinkEvent.prototype.getApplicationName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setApplicationName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string device_name = 3; - * @return {string} - */ -proto.integration.UplinkEvent.prototype.getDeviceName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setDeviceName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string dev_eui = 4; - * @return {string} - */ -proto.integration.UplinkEvent.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * repeated gw.UplinkRXInfo rx_info = 5; - * @return {!Array} - */ -proto.integration.UplinkEvent.prototype.getRxInfoList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, gw_gw_pb.UplinkRXInfo, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration.UplinkEvent} returns this -*/ -proto.integration.UplinkEvent.prototype.setRxInfoList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.gw.UplinkRXInfo=} opt_value - * @param {number=} opt_index - * @return {!proto.gw.UplinkRXInfo} - */ -proto.integration.UplinkEvent.prototype.addRxInfo = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.gw.UplinkRXInfo, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.clearRxInfoList = function() { - return this.setRxInfoList([]); -}; - - -/** - * optional gw.UplinkTXInfo tx_info = 6; - * @return {?proto.gw.UplinkTXInfo} - */ -proto.integration.UplinkEvent.prototype.getTxInfo = function() { - return /** @type{?proto.gw.UplinkTXInfo} */ ( - jspb.Message.getWrapperField(this, gw_gw_pb.UplinkTXInfo, 6)); -}; - - -/** - * @param {?proto.gw.UplinkTXInfo|undefined} value - * @return {!proto.integration.UplinkEvent} returns this -*/ -proto.integration.UplinkEvent.prototype.setTxInfo = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.clearTxInfo = function() { - return this.setTxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.UplinkEvent.prototype.hasTxInfo = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional bool adr = 7; - * @return {boolean} - */ -proto.integration.UplinkEvent.prototype.getAdr = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setAdr = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * optional uint32 dr = 8; - * @return {number} - */ -proto.integration.UplinkEvent.prototype.getDr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setDr = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional uint32 f_cnt = 9; - * @return {number} - */ -proto.integration.UplinkEvent.prototype.getFCnt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setFCnt = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - - -/** - * optional uint32 f_port = 10; - * @return {number} - */ -proto.integration.UplinkEvent.prototype.getFPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setFPort = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional string data = 11; - * @return {string} - */ -proto.integration.UplinkEvent.prototype.getData = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setData = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional string object_json = 12; - * @return {string} - */ -proto.integration.UplinkEvent.prototype.getObjectJson = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setObjectJson = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * map tags = 13; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.integration.UplinkEvent.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 13, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - -/** - * optional bool confirmed_uplink = 14; - * @return {boolean} - */ -proto.integration.UplinkEvent.prototype.getConfirmedUplink = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setConfirmedUplink = function(value) { - return jspb.Message.setProto3BooleanField(this, 14, value); -}; - - -/** - * optional string dev_addr = 15; - * @return {string} - */ -proto.integration.UplinkEvent.prototype.getDevAddr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setDevAddr = function(value) { - return jspb.Message.setProto3StringField(this, 15, value); -}; - - -/** - * optional google.protobuf.Timestamp published_at = 16; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.integration.UplinkEvent.prototype.getPublishedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 16)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.integration.UplinkEvent} returns this -*/ -proto.integration.UplinkEvent.prototype.setPublishedAt = function(value) { - return jspb.Message.setWrapperField(this, 16, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.clearPublishedAt = function() { - return this.setPublishedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.UplinkEvent.prototype.hasPublishedAt = function() { - return jspb.Message.getField(this, 16) != null; -}; - - -/** - * optional string device_profile_id = 17; - * @return {string} - */ -proto.integration.UplinkEvent.prototype.getDeviceProfileId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setDeviceProfileId = function(value) { - return jspb.Message.setProto3StringField(this, 17, value); -}; - - -/** - * optional string device_profile_name = 18; - * @return {string} - */ -proto.integration.UplinkEvent.prototype.getDeviceProfileName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setDeviceProfileName = function(value) { - return jspb.Message.setProto3StringField(this, 18, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.integration.JoinEvent.repeatedFields_ = [6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.JoinEvent.prototype.toObject = function(opt_includeInstance) { - return proto.integration.JoinEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.JoinEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.JoinEvent.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - applicationName: jspb.Message.getFieldWithDefault(msg, 2, ""), - deviceName: jspb.Message.getFieldWithDefault(msg, 3, ""), - devEui: jspb.Message.getFieldWithDefault(msg, 4, ""), - devAddr: jspb.Message.getFieldWithDefault(msg, 5, ""), - rxInfoList: jspb.Message.toObjectList(msg.getRxInfoList(), - gw_gw_pb.UplinkRXInfo.toObject, includeInstance), - txInfo: (f = msg.getTxInfo()) && gw_gw_pb.UplinkTXInfo.toObject(includeInstance, f), - dr: jspb.Message.getFieldWithDefault(msg, 8, 0), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [], - publishedAt: (f = msg.getPublishedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.JoinEvent} - */ -proto.integration.JoinEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.JoinEvent; - return proto.integration.JoinEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.JoinEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.JoinEvent} - */ -proto.integration.JoinEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDevAddr(value); - break; - case 6: - var value = new gw_gw_pb.UplinkRXInfo; - reader.readMessage(value,gw_gw_pb.UplinkRXInfo.deserializeBinaryFromReader); - msg.addRxInfo(value); - break; - case 7: - var value = new gw_gw_pb.UplinkTXInfo; - reader.readMessage(value,gw_gw_pb.UplinkTXInfo.deserializeBinaryFromReader); - msg.setTxInfo(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDr(value); - break; - case 9: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 10: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setPublishedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.JoinEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.JoinEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.JoinEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.JoinEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getApplicationName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDeviceName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getDevAddr(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getRxInfoList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - gw_gw_pb.UplinkRXInfo.serializeBinaryToWriter - ); - } - f = message.getTxInfo(); - if (f != null) { - writer.writeMessage( - 7, - f, - gw_gw_pb.UplinkTXInfo.serializeBinaryToWriter - ); - } - f = message.getDr(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getPublishedAt(); - if (f != null) { - writer.writeMessage( - 10, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.integration.JoinEvent.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.JoinEvent} returns this - */ -proto.integration.JoinEvent.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string application_name = 2; - * @return {string} - */ -proto.integration.JoinEvent.prototype.getApplicationName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.JoinEvent} returns this - */ -proto.integration.JoinEvent.prototype.setApplicationName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string device_name = 3; - * @return {string} - */ -proto.integration.JoinEvent.prototype.getDeviceName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.JoinEvent} returns this - */ -proto.integration.JoinEvent.prototype.setDeviceName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string dev_eui = 4; - * @return {string} - */ -proto.integration.JoinEvent.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.JoinEvent} returns this - */ -proto.integration.JoinEvent.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string dev_addr = 5; - * @return {string} - */ -proto.integration.JoinEvent.prototype.getDevAddr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.JoinEvent} returns this - */ -proto.integration.JoinEvent.prototype.setDevAddr = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * repeated gw.UplinkRXInfo rx_info = 6; - * @return {!Array} - */ -proto.integration.JoinEvent.prototype.getRxInfoList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, gw_gw_pb.UplinkRXInfo, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration.JoinEvent} returns this -*/ -proto.integration.JoinEvent.prototype.setRxInfoList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.gw.UplinkRXInfo=} opt_value - * @param {number=} opt_index - * @return {!proto.gw.UplinkRXInfo} - */ -proto.integration.JoinEvent.prototype.addRxInfo = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.gw.UplinkRXInfo, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration.JoinEvent} returns this - */ -proto.integration.JoinEvent.prototype.clearRxInfoList = function() { - return this.setRxInfoList([]); -}; - - -/** - * optional gw.UplinkTXInfo tx_info = 7; - * @return {?proto.gw.UplinkTXInfo} - */ -proto.integration.JoinEvent.prototype.getTxInfo = function() { - return /** @type{?proto.gw.UplinkTXInfo} */ ( - jspb.Message.getWrapperField(this, gw_gw_pb.UplinkTXInfo, 7)); -}; - - -/** - * @param {?proto.gw.UplinkTXInfo|undefined} value - * @return {!proto.integration.JoinEvent} returns this -*/ -proto.integration.JoinEvent.prototype.setTxInfo = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.JoinEvent} returns this - */ -proto.integration.JoinEvent.prototype.clearTxInfo = function() { - return this.setTxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.JoinEvent.prototype.hasTxInfo = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional uint32 dr = 8; - * @return {number} - */ -proto.integration.JoinEvent.prototype.getDr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.JoinEvent} returns this - */ -proto.integration.JoinEvent.prototype.setDr = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * map tags = 9; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.integration.JoinEvent.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 9, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.integration.JoinEvent} returns this - */ -proto.integration.JoinEvent.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - -/** - * optional google.protobuf.Timestamp published_at = 10; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.integration.JoinEvent.prototype.getPublishedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.integration.JoinEvent} returns this -*/ -proto.integration.JoinEvent.prototype.setPublishedAt = function(value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.JoinEvent} returns this - */ -proto.integration.JoinEvent.prototype.clearPublishedAt = function() { - return this.setPublishedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.JoinEvent.prototype.hasPublishedAt = function() { - return jspb.Message.getField(this, 10) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.AckEvent.prototype.toObject = function(opt_includeInstance) { - return proto.integration.AckEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.AckEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.AckEvent.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - applicationName: jspb.Message.getFieldWithDefault(msg, 2, ""), - deviceName: jspb.Message.getFieldWithDefault(msg, 3, ""), - devEui: jspb.Message.getFieldWithDefault(msg, 4, ""), - acknowledged: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - fCnt: jspb.Message.getFieldWithDefault(msg, 6, 0), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [], - publishedAt: (f = msg.getPublishedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.AckEvent} - */ -proto.integration.AckEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.AckEvent; - return proto.integration.AckEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.AckEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.AckEvent} - */ -proto.integration.AckEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAcknowledged(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCnt(value); - break; - case 7: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setPublishedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.AckEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.AckEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.AckEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.AckEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getApplicationName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDeviceName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getAcknowledged(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getFCnt(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getPublishedAt(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.integration.AckEvent.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.AckEvent} returns this - */ -proto.integration.AckEvent.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string application_name = 2; - * @return {string} - */ -proto.integration.AckEvent.prototype.getApplicationName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.AckEvent} returns this - */ -proto.integration.AckEvent.prototype.setApplicationName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string device_name = 3; - * @return {string} - */ -proto.integration.AckEvent.prototype.getDeviceName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.AckEvent} returns this - */ -proto.integration.AckEvent.prototype.setDeviceName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string dev_eui = 4; - * @return {string} - */ -proto.integration.AckEvent.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.AckEvent} returns this - */ -proto.integration.AckEvent.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool acknowledged = 5; - * @return {boolean} - */ -proto.integration.AckEvent.prototype.getAcknowledged = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.integration.AckEvent} returns this - */ -proto.integration.AckEvent.prototype.setAcknowledged = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional uint32 f_cnt = 6; - * @return {number} - */ -proto.integration.AckEvent.prototype.getFCnt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.AckEvent} returns this - */ -proto.integration.AckEvent.prototype.setFCnt = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * map tags = 7; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.integration.AckEvent.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 7, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.integration.AckEvent} returns this - */ -proto.integration.AckEvent.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - -/** - * optional google.protobuf.Timestamp published_at = 8; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.integration.AckEvent.prototype.getPublishedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.integration.AckEvent} returns this -*/ -proto.integration.AckEvent.prototype.setPublishedAt = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.AckEvent} returns this - */ -proto.integration.AckEvent.prototype.clearPublishedAt = function() { - return this.setPublishedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.AckEvent.prototype.hasPublishedAt = function() { - return jspb.Message.getField(this, 8) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.TxAckEvent.prototype.toObject = function(opt_includeInstance) { - return proto.integration.TxAckEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.TxAckEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.TxAckEvent.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, 0), - applicationName: jspb.Message.getFieldWithDefault(msg, 2, ""), - deviceName: jspb.Message.getFieldWithDefault(msg, 3, ""), - devEui: jspb.Message.getFieldWithDefault(msg, 4, ""), - fCnt: jspb.Message.getFieldWithDefault(msg, 5, 0), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [], - gatewayId: jspb.Message.getFieldWithDefault(msg, 7, ""), - txInfo: (f = msg.getTxInfo()) && gw_gw_pb.DownlinkTXInfo.toObject(includeInstance, f), - publishedAt: (f = msg.getPublishedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.TxAckEvent} - */ -proto.integration.TxAckEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.TxAckEvent; - return proto.integration.TxAckEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.TxAckEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.TxAckEvent} - */ -proto.integration.TxAckEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCnt(value); - break; - case 6: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 8: - var value = new gw_gw_pb.DownlinkTXInfo; - reader.readMessage(value,gw_gw_pb.DownlinkTXInfo.deserializeBinaryFromReader); - msg.setTxInfo(value); - break; - case 9: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setPublishedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.TxAckEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.TxAckEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.TxAckEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.TxAckEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getApplicationName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDeviceName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getFCnt(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getTxInfo(); - if (f != null) { - writer.writeMessage( - 8, - f, - gw_gw_pb.DownlinkTXInfo.serializeBinaryToWriter - ); - } - f = message.getPublishedAt(); - if (f != null) { - writer.writeMessage( - 9, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 application_id = 1; - * @return {number} - */ -proto.integration.TxAckEvent.prototype.getApplicationId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.TxAckEvent} returns this - */ -proto.integration.TxAckEvent.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string application_name = 2; - * @return {string} - */ -proto.integration.TxAckEvent.prototype.getApplicationName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.TxAckEvent} returns this - */ -proto.integration.TxAckEvent.prototype.setApplicationName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string device_name = 3; - * @return {string} - */ -proto.integration.TxAckEvent.prototype.getDeviceName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.TxAckEvent} returns this - */ -proto.integration.TxAckEvent.prototype.setDeviceName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string dev_eui = 4; - * @return {string} - */ -proto.integration.TxAckEvent.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.TxAckEvent} returns this - */ -proto.integration.TxAckEvent.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional uint32 f_cnt = 5; - * @return {number} - */ -proto.integration.TxAckEvent.prototype.getFCnt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.TxAckEvent} returns this - */ -proto.integration.TxAckEvent.prototype.setFCnt = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * map tags = 6; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.integration.TxAckEvent.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 6, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.integration.TxAckEvent} returns this - */ -proto.integration.TxAckEvent.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - -/** - * optional string gateway_id = 7; - * @return {string} - */ -proto.integration.TxAckEvent.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.TxAckEvent} returns this - */ -proto.integration.TxAckEvent.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional gw.DownlinkTXInfo tx_info = 8; - * @return {?proto.gw.DownlinkTXInfo} - */ -proto.integration.TxAckEvent.prototype.getTxInfo = function() { - return /** @type{?proto.gw.DownlinkTXInfo} */ ( - jspb.Message.getWrapperField(this, gw_gw_pb.DownlinkTXInfo, 8)); -}; - - -/** - * @param {?proto.gw.DownlinkTXInfo|undefined} value - * @return {!proto.integration.TxAckEvent} returns this -*/ -proto.integration.TxAckEvent.prototype.setTxInfo = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.TxAckEvent} returns this - */ -proto.integration.TxAckEvent.prototype.clearTxInfo = function() { - return this.setTxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.TxAckEvent.prototype.hasTxInfo = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional google.protobuf.Timestamp published_at = 9; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.integration.TxAckEvent.prototype.getPublishedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.integration.TxAckEvent} returns this -*/ -proto.integration.TxAckEvent.prototype.setPublishedAt = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.TxAckEvent} returns this - */ -proto.integration.TxAckEvent.prototype.clearPublishedAt = function() { - return this.setPublishedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.TxAckEvent.prototype.hasPublishedAt = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.ErrorEvent.prototype.toObject = function(opt_includeInstance) { - return proto.integration.ErrorEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.ErrorEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.ErrorEvent.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, 0), - applicationName: jspb.Message.getFieldWithDefault(msg, 2, ""), - deviceName: jspb.Message.getFieldWithDefault(msg, 3, ""), - devEui: jspb.Message.getFieldWithDefault(msg, 4, ""), - type: jspb.Message.getFieldWithDefault(msg, 5, 0), - error: jspb.Message.getFieldWithDefault(msg, 6, ""), - fCnt: jspb.Message.getFieldWithDefault(msg, 7, 0), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [], - publishedAt: (f = msg.getPublishedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.ErrorEvent} - */ -proto.integration.ErrorEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.ErrorEvent; - return proto.integration.ErrorEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.ErrorEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.ErrorEvent} - */ -proto.integration.ErrorEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 5: - var value = /** @type {!proto.integration.ErrorType} */ (reader.readEnum()); - msg.setType(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setError(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCnt(value); - break; - case 8: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 9: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setPublishedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.ErrorEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.ErrorEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.ErrorEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.ErrorEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getApplicationName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDeviceName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } - f = message.getError(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getFCnt(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(8, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getPublishedAt(); - if (f != null) { - writer.writeMessage( - 9, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 application_id = 1; - * @return {number} - */ -proto.integration.ErrorEvent.prototype.getApplicationId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.ErrorEvent} returns this - */ -proto.integration.ErrorEvent.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string application_name = 2; - * @return {string} - */ -proto.integration.ErrorEvent.prototype.getApplicationName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.ErrorEvent} returns this - */ -proto.integration.ErrorEvent.prototype.setApplicationName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string device_name = 3; - * @return {string} - */ -proto.integration.ErrorEvent.prototype.getDeviceName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.ErrorEvent} returns this - */ -proto.integration.ErrorEvent.prototype.setDeviceName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string dev_eui = 4; - * @return {string} - */ -proto.integration.ErrorEvent.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.ErrorEvent} returns this - */ -proto.integration.ErrorEvent.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional ErrorType type = 5; - * @return {!proto.integration.ErrorType} - */ -proto.integration.ErrorEvent.prototype.getType = function() { - return /** @type {!proto.integration.ErrorType} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {!proto.integration.ErrorType} value - * @return {!proto.integration.ErrorEvent} returns this - */ -proto.integration.ErrorEvent.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 5, value); -}; - - -/** - * optional string error = 6; - * @return {string} - */ -proto.integration.ErrorEvent.prototype.getError = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.ErrorEvent} returns this - */ -proto.integration.ErrorEvent.prototype.setError = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional uint32 f_cnt = 7; - * @return {number} - */ -proto.integration.ErrorEvent.prototype.getFCnt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.ErrorEvent} returns this - */ -proto.integration.ErrorEvent.prototype.setFCnt = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * map tags = 8; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.integration.ErrorEvent.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 8, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.integration.ErrorEvent} returns this - */ -proto.integration.ErrorEvent.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - -/** - * optional google.protobuf.Timestamp published_at = 9; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.integration.ErrorEvent.prototype.getPublishedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.integration.ErrorEvent} returns this -*/ -proto.integration.ErrorEvent.prototype.setPublishedAt = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.ErrorEvent} returns this - */ -proto.integration.ErrorEvent.prototype.clearPublishedAt = function() { - return this.setPublishedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.ErrorEvent.prototype.hasPublishedAt = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.StatusEvent.prototype.toObject = function(opt_includeInstance) { - return proto.integration.StatusEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.StatusEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.StatusEvent.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, 0), - applicationName: jspb.Message.getFieldWithDefault(msg, 2, ""), - deviceName: jspb.Message.getFieldWithDefault(msg, 3, ""), - devEui: jspb.Message.getFieldWithDefault(msg, 4, ""), - margin: jspb.Message.getFieldWithDefault(msg, 5, 0), - externalPowerSource: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - batteryLevelUnavailable: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - batteryLevel: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [], - publishedAt: (f = msg.getPublishedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.StatusEvent} - */ -proto.integration.StatusEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.StatusEvent; - return proto.integration.StatusEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.StatusEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.StatusEvent} - */ -proto.integration.StatusEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMargin(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setExternalPowerSource(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setBatteryLevelUnavailable(value); - break; - case 8: - var value = /** @type {number} */ (reader.readFloat()); - msg.setBatteryLevel(value); - break; - case 9: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 10: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setPublishedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.StatusEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.StatusEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.StatusEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.StatusEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getApplicationName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDeviceName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getMargin(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getExternalPowerSource(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getBatteryLevelUnavailable(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getBatteryLevel(); - if (f !== 0.0) { - writer.writeFloat( - 8, - f - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getPublishedAt(); - if (f != null) { - writer.writeMessage( - 10, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 application_id = 1; - * @return {number} - */ -proto.integration.StatusEvent.prototype.getApplicationId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.StatusEvent} returns this - */ -proto.integration.StatusEvent.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string application_name = 2; - * @return {string} - */ -proto.integration.StatusEvent.prototype.getApplicationName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.StatusEvent} returns this - */ -proto.integration.StatusEvent.prototype.setApplicationName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string device_name = 3; - * @return {string} - */ -proto.integration.StatusEvent.prototype.getDeviceName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.StatusEvent} returns this - */ -proto.integration.StatusEvent.prototype.setDeviceName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string dev_eui = 4; - * @return {string} - */ -proto.integration.StatusEvent.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.StatusEvent} returns this - */ -proto.integration.StatusEvent.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional int32 margin = 5; - * @return {number} - */ -proto.integration.StatusEvent.prototype.getMargin = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.StatusEvent} returns this - */ -proto.integration.StatusEvent.prototype.setMargin = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional bool external_power_source = 6; - * @return {boolean} - */ -proto.integration.StatusEvent.prototype.getExternalPowerSource = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.integration.StatusEvent} returns this - */ -proto.integration.StatusEvent.prototype.setExternalPowerSource = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional bool battery_level_unavailable = 7; - * @return {boolean} - */ -proto.integration.StatusEvent.prototype.getBatteryLevelUnavailable = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.integration.StatusEvent} returns this - */ -proto.integration.StatusEvent.prototype.setBatteryLevelUnavailable = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * optional float battery_level = 8; - * @return {number} - */ -proto.integration.StatusEvent.prototype.getBatteryLevel = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.StatusEvent} returns this - */ -proto.integration.StatusEvent.prototype.setBatteryLevel = function(value) { - return jspb.Message.setProto3FloatField(this, 8, value); -}; - - -/** - * map tags = 9; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.integration.StatusEvent.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 9, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.integration.StatusEvent} returns this - */ -proto.integration.StatusEvent.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - -/** - * optional google.protobuf.Timestamp published_at = 10; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.integration.StatusEvent.prototype.getPublishedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.integration.StatusEvent} returns this -*/ -proto.integration.StatusEvent.prototype.setPublishedAt = function(value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.StatusEvent} returns this - */ -proto.integration.StatusEvent.prototype.clearPublishedAt = function() { - return this.setPublishedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.StatusEvent.prototype.hasPublishedAt = function() { - return jspb.Message.getField(this, 10) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.integration.LocationEvent.repeatedFields_ = [7]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.LocationEvent.prototype.toObject = function(opt_includeInstance) { - return proto.integration.LocationEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.LocationEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.LocationEvent.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, 0), - applicationName: jspb.Message.getFieldWithDefault(msg, 2, ""), - deviceName: jspb.Message.getFieldWithDefault(msg, 3, ""), - devEui: jspb.Message.getFieldWithDefault(msg, 4, ""), - location: (f = msg.getLocation()) && common_common_pb.Location.toObject(includeInstance, f), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [], - uplinkIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f, - fCnt: jspb.Message.getFieldWithDefault(msg, 8, 0), - publishedAt: (f = msg.getPublishedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.LocationEvent} - */ -proto.integration.LocationEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.LocationEvent; - return proto.integration.LocationEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.LocationEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.LocationEvent} - */ -proto.integration.LocationEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 5: - var value = new common_common_pb.Location; - reader.readMessage(value,common_common_pb.Location.deserializeBinaryFromReader); - msg.setLocation(value); - break; - case 6: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.addUplinkIds(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCnt(value); - break; - case 9: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setPublishedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.LocationEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.LocationEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.LocationEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.LocationEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getApplicationName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDeviceName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getLocation(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_common_pb.Location.serializeBinaryToWriter - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getUplinkIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 7, - f - ); - } - f = message.getFCnt(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getPublishedAt(); - if (f != null) { - writer.writeMessage( - 9, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 application_id = 1; - * @return {number} - */ -proto.integration.LocationEvent.prototype.getApplicationId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.LocationEvent} returns this - */ -proto.integration.LocationEvent.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string application_name = 2; - * @return {string} - */ -proto.integration.LocationEvent.prototype.getApplicationName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.LocationEvent} returns this - */ -proto.integration.LocationEvent.prototype.setApplicationName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string device_name = 3; - * @return {string} - */ -proto.integration.LocationEvent.prototype.getDeviceName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.LocationEvent} returns this - */ -proto.integration.LocationEvent.prototype.setDeviceName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string dev_eui = 4; - * @return {string} - */ -proto.integration.LocationEvent.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.LocationEvent} returns this - */ -proto.integration.LocationEvent.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional common.Location location = 5; - * @return {?proto.common.Location} - */ -proto.integration.LocationEvent.prototype.getLocation = function() { - return /** @type{?proto.common.Location} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Location, 5)); -}; - - -/** - * @param {?proto.common.Location|undefined} value - * @return {!proto.integration.LocationEvent} returns this -*/ -proto.integration.LocationEvent.prototype.setLocation = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.LocationEvent} returns this - */ -proto.integration.LocationEvent.prototype.clearLocation = function() { - return this.setLocation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.LocationEvent.prototype.hasLocation = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * map tags = 6; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.integration.LocationEvent.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 6, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.integration.LocationEvent} returns this - */ -proto.integration.LocationEvent.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - -/** - * repeated string uplink_ids = 7; - * @return {!Array} - */ -proto.integration.LocationEvent.prototype.getUplinkIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration.LocationEvent} returns this - */ -proto.integration.LocationEvent.prototype.setUplinkIdsList = function(value) { - return jspb.Message.setField(this, 7, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.integration.LocationEvent} returns this - */ -proto.integration.LocationEvent.prototype.addUplinkIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 7, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration.LocationEvent} returns this - */ -proto.integration.LocationEvent.prototype.clearUplinkIdsList = function() { - return this.setUplinkIdsList([]); -}; - - -/** - * optional uint32 f_cnt = 8; - * @return {number} - */ -proto.integration.LocationEvent.prototype.getFCnt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.LocationEvent} returns this - */ -proto.integration.LocationEvent.prototype.setFCnt = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional google.protobuf.Timestamp published_at = 9; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.integration.LocationEvent.prototype.getPublishedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.integration.LocationEvent} returns this -*/ -proto.integration.LocationEvent.prototype.setPublishedAt = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.LocationEvent} returns this - */ -proto.integration.LocationEvent.prototype.clearPublishedAt = function() { - return this.setPublishedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.LocationEvent.prototype.hasPublishedAt = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.IntegrationEvent.prototype.toObject = function(opt_includeInstance) { - return proto.integration.IntegrationEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.IntegrationEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.IntegrationEvent.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, 0), - applicationName: jspb.Message.getFieldWithDefault(msg, 2, ""), - deviceName: jspb.Message.getFieldWithDefault(msg, 3, ""), - devEui: jspb.Message.getFieldWithDefault(msg, 4, ""), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [], - integrationName: jspb.Message.getFieldWithDefault(msg, 6, ""), - eventType: jspb.Message.getFieldWithDefault(msg, 7, ""), - objectJson: jspb.Message.getFieldWithDefault(msg, 8, ""), - publishedAt: (f = msg.getPublishedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.IntegrationEvent} - */ -proto.integration.IntegrationEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.IntegrationEvent; - return proto.integration.IntegrationEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.IntegrationEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.IntegrationEvent} - */ -proto.integration.IntegrationEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 5: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setIntegrationName(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setEventType(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setObjectJson(value); - break; - case 9: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setPublishedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.IntegrationEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.IntegrationEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.IntegrationEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.IntegrationEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getApplicationName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDeviceName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getIntegrationName(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getEventType(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getObjectJson(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getPublishedAt(); - if (f != null) { - writer.writeMessage( - 9, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 application_id = 1; - * @return {number} - */ -proto.integration.IntegrationEvent.prototype.getApplicationId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.IntegrationEvent} returns this - */ -proto.integration.IntegrationEvent.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string application_name = 2; - * @return {string} - */ -proto.integration.IntegrationEvent.prototype.getApplicationName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.IntegrationEvent} returns this - */ -proto.integration.IntegrationEvent.prototype.setApplicationName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string device_name = 3; - * @return {string} - */ -proto.integration.IntegrationEvent.prototype.getDeviceName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.IntegrationEvent} returns this - */ -proto.integration.IntegrationEvent.prototype.setDeviceName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string dev_eui = 4; - * @return {string} - */ -proto.integration.IntegrationEvent.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.IntegrationEvent} returns this - */ -proto.integration.IntegrationEvent.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * map tags = 5; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.integration.IntegrationEvent.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 5, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.integration.IntegrationEvent} returns this - */ -proto.integration.IntegrationEvent.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - -/** - * optional string integration_name = 6; - * @return {string} - */ -proto.integration.IntegrationEvent.prototype.getIntegrationName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.IntegrationEvent} returns this - */ -proto.integration.IntegrationEvent.prototype.setIntegrationName = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string event_type = 7; - * @return {string} - */ -proto.integration.IntegrationEvent.prototype.getEventType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.IntegrationEvent} returns this - */ -proto.integration.IntegrationEvent.prototype.setEventType = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string object_json = 8; - * @return {string} - */ -proto.integration.IntegrationEvent.prototype.getObjectJson = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.IntegrationEvent} returns this - */ -proto.integration.IntegrationEvent.prototype.setObjectJson = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional google.protobuf.Timestamp published_at = 9; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.integration.IntegrationEvent.prototype.getPublishedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.integration.IntegrationEvent} returns this -*/ -proto.integration.IntegrationEvent.prototype.setPublishedAt = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.IntegrationEvent} returns this - */ -proto.integration.IntegrationEvent.prototype.clearPublishedAt = function() { - return this.setPublishedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.IntegrationEvent.prototype.hasPublishedAt = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * @enum {number} - */ -proto.integration.ErrorType = { - UNKNOWN: 0, - DOWNLINK_PAYLOAD_SIZE: 1, - DOWNLINK_FCNT: 2, - UPLINK_CODEC: 3, - DOWNLINK_CODEC: 4, - OTAA: 5, - UPLINK_FCNT_RESET: 6, - UPLINK_MIC: 7, - UPLINK_FCNT_RETRANSMISSION: 8, - DOWNLINK_GATEWAY: 9 -}; - -goog.object.extend(exports, proto.integration); diff --git a/api/java/.gitignore b/api/java/.gitignore new file mode 100644 index 00000000..78ca3d04 --- /dev/null +++ b/api/java/.gitignore @@ -0,0 +1,2 @@ +/build +/src diff --git a/api/js/api/application_grpc_pb.d.ts b/api/js/api/application_grpc_pb.d.ts deleted file mode 100644 index 95b6abe1..00000000 --- a/api/js/api/application_grpc_pb.d.ts +++ /dev/null @@ -1,255 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -// package: api -// file: api/application.proto - -import * as api_application_pb from "../api/application_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; -import * as grpc from "@grpc/grpc-js"; - -interface IApplicationServiceService extends grpc.ServiceDefinition { - create: grpc.MethodDefinition; - get: grpc.MethodDefinition; - update: grpc.MethodDefinition; - delete: grpc.MethodDefinition; - list: grpc.MethodDefinition; - listIntegrations: grpc.MethodDefinition; - createHttpIntegration: grpc.MethodDefinition; - getHttpIntegration: grpc.MethodDefinition; - updateHttpIntegration: grpc.MethodDefinition; - deleteHttpIntegration: grpc.MethodDefinition; - createInfluxDbIntegration: grpc.MethodDefinition; - getInfluxDbIntegration: grpc.MethodDefinition; - updateInfluxDbIntegration: grpc.MethodDefinition; - deleteInfluxDbIntegration: grpc.MethodDefinition; - createThingsBoardIntegration: grpc.MethodDefinition; - getThingsBoardIntegration: grpc.MethodDefinition; - updateThingsBoardIntegration: grpc.MethodDefinition; - deleteThingsBoardIntegration: grpc.MethodDefinition; - createMyDevicesIntegration: grpc.MethodDefinition; - getMyDevicesIntegration: grpc.MethodDefinition; - updateMyDevicesIntegration: grpc.MethodDefinition; - deleteMyDevicesIntegration: grpc.MethodDefinition; - createLoraCloudIntegration: grpc.MethodDefinition; - getLoraCloudIntegration: grpc.MethodDefinition; - updateLoraCloudIntegration: grpc.MethodDefinition; - deleteLoraCloudIntegration: grpc.MethodDefinition; - createGcpPubSubIntegration: grpc.MethodDefinition; - getGcpPubSubIntegration: grpc.MethodDefinition; - updateGcpPubSubIntegration: grpc.MethodDefinition; - deleteGcpPubSubIntegration: grpc.MethodDefinition; - createAwsSnsIntegration: grpc.MethodDefinition; - getAwsSnsIntegration: grpc.MethodDefinition; - updateAwsSnsIntegration: grpc.MethodDefinition; - deleteAwsSnsIntegration: grpc.MethodDefinition; - createAzureServiceBusIntegration: grpc.MethodDefinition; - getAzureServiceBusIntegration: grpc.MethodDefinition; - updateAzureServiceBusIntegration: grpc.MethodDefinition; - deleteAzureServiceBusIntegration: grpc.MethodDefinition; - createPilotThingsIntegration: grpc.MethodDefinition; - getPilotThingsIntegration: grpc.MethodDefinition; - updatePilotThingsIntegration: grpc.MethodDefinition; - deletePilotThingsIntegration: grpc.MethodDefinition; - createIftttIntegration: grpc.MethodDefinition; - getIftttIntegration: grpc.MethodDefinition; - updateIftttIntegration: grpc.MethodDefinition; - deleteIftttIntegration: grpc.MethodDefinition; - generateMqttIntegrationClientCertificate: grpc.MethodDefinition; -} - -export const ApplicationServiceService: IApplicationServiceService; - -export interface IApplicationServiceServer extends grpc.UntypedServiceImplementation { - create: grpc.handleUnaryCall; - get: grpc.handleUnaryCall; - update: grpc.handleUnaryCall; - delete: grpc.handleUnaryCall; - list: grpc.handleUnaryCall; - listIntegrations: grpc.handleUnaryCall; - createHttpIntegration: grpc.handleUnaryCall; - getHttpIntegration: grpc.handleUnaryCall; - updateHttpIntegration: grpc.handleUnaryCall; - deleteHttpIntegration: grpc.handleUnaryCall; - createInfluxDbIntegration: grpc.handleUnaryCall; - getInfluxDbIntegration: grpc.handleUnaryCall; - updateInfluxDbIntegration: grpc.handleUnaryCall; - deleteInfluxDbIntegration: grpc.handleUnaryCall; - createThingsBoardIntegration: grpc.handleUnaryCall; - getThingsBoardIntegration: grpc.handleUnaryCall; - updateThingsBoardIntegration: grpc.handleUnaryCall; - deleteThingsBoardIntegration: grpc.handleUnaryCall; - createMyDevicesIntegration: grpc.handleUnaryCall; - getMyDevicesIntegration: grpc.handleUnaryCall; - updateMyDevicesIntegration: grpc.handleUnaryCall; - deleteMyDevicesIntegration: grpc.handleUnaryCall; - createLoraCloudIntegration: grpc.handleUnaryCall; - getLoraCloudIntegration: grpc.handleUnaryCall; - updateLoraCloudIntegration: grpc.handleUnaryCall; - deleteLoraCloudIntegration: grpc.handleUnaryCall; - createGcpPubSubIntegration: grpc.handleUnaryCall; - getGcpPubSubIntegration: grpc.handleUnaryCall; - updateGcpPubSubIntegration: grpc.handleUnaryCall; - deleteGcpPubSubIntegration: grpc.handleUnaryCall; - createAwsSnsIntegration: grpc.handleUnaryCall; - getAwsSnsIntegration: grpc.handleUnaryCall; - updateAwsSnsIntegration: grpc.handleUnaryCall; - deleteAwsSnsIntegration: grpc.handleUnaryCall; - createAzureServiceBusIntegration: grpc.handleUnaryCall; - getAzureServiceBusIntegration: grpc.handleUnaryCall; - updateAzureServiceBusIntegration: grpc.handleUnaryCall; - deleteAzureServiceBusIntegration: grpc.handleUnaryCall; - createPilotThingsIntegration: grpc.handleUnaryCall; - getPilotThingsIntegration: grpc.handleUnaryCall; - updatePilotThingsIntegration: grpc.handleUnaryCall; - deletePilotThingsIntegration: grpc.handleUnaryCall; - createIftttIntegration: grpc.handleUnaryCall; - getIftttIntegration: grpc.handleUnaryCall; - updateIftttIntegration: grpc.handleUnaryCall; - deleteIftttIntegration: grpc.handleUnaryCall; - generateMqttIntegrationClientCertificate: grpc.handleUnaryCall; -} - -export class ApplicationServiceClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - create(argument: api_application_pb.CreateApplicationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - create(argument: api_application_pb.CreateApplicationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - create(argument: api_application_pb.CreateApplicationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_application_pb.GetApplicationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_application_pb.GetApplicationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_application_pb.GetApplicationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_application_pb.UpdateApplicationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_application_pb.UpdateApplicationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_application_pb.UpdateApplicationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_application_pb.DeleteApplicationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_application_pb.DeleteApplicationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_application_pb.DeleteApplicationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_application_pb.ListApplicationsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_application_pb.ListApplicationsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_application_pb.ListApplicationsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listIntegrations(argument: api_application_pb.ListIntegrationsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listIntegrations(argument: api_application_pb.ListIntegrationsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listIntegrations(argument: api_application_pb.ListIntegrationsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createHttpIntegration(argument: api_application_pb.CreateHttpIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createHttpIntegration(argument: api_application_pb.CreateHttpIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createHttpIntegration(argument: api_application_pb.CreateHttpIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getHttpIntegration(argument: api_application_pb.GetHttpIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getHttpIntegration(argument: api_application_pb.GetHttpIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getHttpIntegration(argument: api_application_pb.GetHttpIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateHttpIntegration(argument: api_application_pb.UpdateHttpIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateHttpIntegration(argument: api_application_pb.UpdateHttpIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateHttpIntegration(argument: api_application_pb.UpdateHttpIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteHttpIntegration(argument: api_application_pb.DeleteHttpIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteHttpIntegration(argument: api_application_pb.DeleteHttpIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteHttpIntegration(argument: api_application_pb.DeleteHttpIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createInfluxDbIntegration(argument: api_application_pb.CreateInfluxDbIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createInfluxDbIntegration(argument: api_application_pb.CreateInfluxDbIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createInfluxDbIntegration(argument: api_application_pb.CreateInfluxDbIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getInfluxDbIntegration(argument: api_application_pb.GetInfluxDbIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getInfluxDbIntegration(argument: api_application_pb.GetInfluxDbIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getInfluxDbIntegration(argument: api_application_pb.GetInfluxDbIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateInfluxDbIntegration(argument: api_application_pb.UpdateInfluxDbIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateInfluxDbIntegration(argument: api_application_pb.UpdateInfluxDbIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateInfluxDbIntegration(argument: api_application_pb.UpdateInfluxDbIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteInfluxDbIntegration(argument: api_application_pb.DeleteInfluxDbIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteInfluxDbIntegration(argument: api_application_pb.DeleteInfluxDbIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteInfluxDbIntegration(argument: api_application_pb.DeleteInfluxDbIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createThingsBoardIntegration(argument: api_application_pb.CreateThingsBoardIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createThingsBoardIntegration(argument: api_application_pb.CreateThingsBoardIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createThingsBoardIntegration(argument: api_application_pb.CreateThingsBoardIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getThingsBoardIntegration(argument: api_application_pb.GetThingsBoardIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getThingsBoardIntegration(argument: api_application_pb.GetThingsBoardIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getThingsBoardIntegration(argument: api_application_pb.GetThingsBoardIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateThingsBoardIntegration(argument: api_application_pb.UpdateThingsBoardIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateThingsBoardIntegration(argument: api_application_pb.UpdateThingsBoardIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateThingsBoardIntegration(argument: api_application_pb.UpdateThingsBoardIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteThingsBoardIntegration(argument: api_application_pb.DeleteThingsBoardIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteThingsBoardIntegration(argument: api_application_pb.DeleteThingsBoardIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteThingsBoardIntegration(argument: api_application_pb.DeleteThingsBoardIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createMyDevicesIntegration(argument: api_application_pb.CreateMyDevicesIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createMyDevicesIntegration(argument: api_application_pb.CreateMyDevicesIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createMyDevicesIntegration(argument: api_application_pb.CreateMyDevicesIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getMyDevicesIntegration(argument: api_application_pb.GetMyDevicesIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getMyDevicesIntegration(argument: api_application_pb.GetMyDevicesIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getMyDevicesIntegration(argument: api_application_pb.GetMyDevicesIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateMyDevicesIntegration(argument: api_application_pb.UpdateMyDevicesIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateMyDevicesIntegration(argument: api_application_pb.UpdateMyDevicesIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateMyDevicesIntegration(argument: api_application_pb.UpdateMyDevicesIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteMyDevicesIntegration(argument: api_application_pb.DeleteMyDevicesIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteMyDevicesIntegration(argument: api_application_pb.DeleteMyDevicesIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteMyDevicesIntegration(argument: api_application_pb.DeleteMyDevicesIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createLoraCloudIntegration(argument: api_application_pb.CreateLoraCloudIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createLoraCloudIntegration(argument: api_application_pb.CreateLoraCloudIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createLoraCloudIntegration(argument: api_application_pb.CreateLoraCloudIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getLoraCloudIntegration(argument: api_application_pb.GetLoraCloudIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getLoraCloudIntegration(argument: api_application_pb.GetLoraCloudIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getLoraCloudIntegration(argument: api_application_pb.GetLoraCloudIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateLoraCloudIntegration(argument: api_application_pb.UpdateLoraCloudIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateLoraCloudIntegration(argument: api_application_pb.UpdateLoraCloudIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateLoraCloudIntegration(argument: api_application_pb.UpdateLoraCloudIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteLoraCloudIntegration(argument: api_application_pb.DeleteLoraCloudIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteLoraCloudIntegration(argument: api_application_pb.DeleteLoraCloudIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteLoraCloudIntegration(argument: api_application_pb.DeleteLoraCloudIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createGcpPubSubIntegration(argument: api_application_pb.CreateGcpPubSubIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createGcpPubSubIntegration(argument: api_application_pb.CreateGcpPubSubIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createGcpPubSubIntegration(argument: api_application_pb.CreateGcpPubSubIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getGcpPubSubIntegration(argument: api_application_pb.GetGcpPubSubIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getGcpPubSubIntegration(argument: api_application_pb.GetGcpPubSubIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getGcpPubSubIntegration(argument: api_application_pb.GetGcpPubSubIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateGcpPubSubIntegration(argument: api_application_pb.UpdateGcpPubSubIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateGcpPubSubIntegration(argument: api_application_pb.UpdateGcpPubSubIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateGcpPubSubIntegration(argument: api_application_pb.UpdateGcpPubSubIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteGcpPubSubIntegration(argument: api_application_pb.DeleteGcpPubSubIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteGcpPubSubIntegration(argument: api_application_pb.DeleteGcpPubSubIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteGcpPubSubIntegration(argument: api_application_pb.DeleteGcpPubSubIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createAwsSnsIntegration(argument: api_application_pb.CreateAwsSnsIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createAwsSnsIntegration(argument: api_application_pb.CreateAwsSnsIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createAwsSnsIntegration(argument: api_application_pb.CreateAwsSnsIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAwsSnsIntegration(argument: api_application_pb.GetAwsSnsIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAwsSnsIntegration(argument: api_application_pb.GetAwsSnsIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAwsSnsIntegration(argument: api_application_pb.GetAwsSnsIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateAwsSnsIntegration(argument: api_application_pb.UpdateAwsSnsIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateAwsSnsIntegration(argument: api_application_pb.UpdateAwsSnsIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateAwsSnsIntegration(argument: api_application_pb.UpdateAwsSnsIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteAwsSnsIntegration(argument: api_application_pb.DeleteAwsSnsIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteAwsSnsIntegration(argument: api_application_pb.DeleteAwsSnsIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteAwsSnsIntegration(argument: api_application_pb.DeleteAwsSnsIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createAzureServiceBusIntegration(argument: api_application_pb.CreateAzureServiceBusIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createAzureServiceBusIntegration(argument: api_application_pb.CreateAzureServiceBusIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createAzureServiceBusIntegration(argument: api_application_pb.CreateAzureServiceBusIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAzureServiceBusIntegration(argument: api_application_pb.GetAzureServiceBusIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAzureServiceBusIntegration(argument: api_application_pb.GetAzureServiceBusIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getAzureServiceBusIntegration(argument: api_application_pb.GetAzureServiceBusIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateAzureServiceBusIntegration(argument: api_application_pb.UpdateAzureServiceBusIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateAzureServiceBusIntegration(argument: api_application_pb.UpdateAzureServiceBusIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateAzureServiceBusIntegration(argument: api_application_pb.UpdateAzureServiceBusIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteAzureServiceBusIntegration(argument: api_application_pb.DeleteAzureServiceBusIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteAzureServiceBusIntegration(argument: api_application_pb.DeleteAzureServiceBusIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteAzureServiceBusIntegration(argument: api_application_pb.DeleteAzureServiceBusIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createPilotThingsIntegration(argument: api_application_pb.CreatePilotThingsIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createPilotThingsIntegration(argument: api_application_pb.CreatePilotThingsIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createPilotThingsIntegration(argument: api_application_pb.CreatePilotThingsIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getPilotThingsIntegration(argument: api_application_pb.GetPilotThingsIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getPilotThingsIntegration(argument: api_application_pb.GetPilotThingsIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getPilotThingsIntegration(argument: api_application_pb.GetPilotThingsIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updatePilotThingsIntegration(argument: api_application_pb.UpdatePilotThingsIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updatePilotThingsIntegration(argument: api_application_pb.UpdatePilotThingsIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updatePilotThingsIntegration(argument: api_application_pb.UpdatePilotThingsIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deletePilotThingsIntegration(argument: api_application_pb.DeletePilotThingsIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deletePilotThingsIntegration(argument: api_application_pb.DeletePilotThingsIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deletePilotThingsIntegration(argument: api_application_pb.DeletePilotThingsIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createIftttIntegration(argument: api_application_pb.CreateIftttIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createIftttIntegration(argument: api_application_pb.CreateIftttIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createIftttIntegration(argument: api_application_pb.CreateIftttIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getIftttIntegration(argument: api_application_pb.GetIftttIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getIftttIntegration(argument: api_application_pb.GetIftttIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getIftttIntegration(argument: api_application_pb.GetIftttIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateIftttIntegration(argument: api_application_pb.UpdateIftttIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateIftttIntegration(argument: api_application_pb.UpdateIftttIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateIftttIntegration(argument: api_application_pb.UpdateIftttIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteIftttIntegration(argument: api_application_pb.DeleteIftttIntegrationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteIftttIntegration(argument: api_application_pb.DeleteIftttIntegrationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteIftttIntegration(argument: api_application_pb.DeleteIftttIntegrationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateMqttIntegrationClientCertificate(argument: api_application_pb.GenerateMqttIntegrationClientCertificateRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateMqttIntegrationClientCertificate(argument: api_application_pb.GenerateMqttIntegrationClientCertificateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateMqttIntegrationClientCertificate(argument: api_application_pb.GenerateMqttIntegrationClientCertificateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; -} diff --git a/api/js/api/application_grpc_pb.js b/api/js/api/application_grpc_pb.js deleted file mode 100644 index 7eaea8f8..00000000 --- a/api/js/api/application_grpc_pb.js +++ /dev/null @@ -1,1273 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var api_application_pb = require('../api/application_pb.js'); -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); - -function serialize_api_CreateApplicationRequest(arg) { - if (!(arg instanceof api_application_pb.CreateApplicationRequest)) { - throw new Error('Expected argument of type api.CreateApplicationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateApplicationRequest(buffer_arg) { - return api_application_pb.CreateApplicationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateApplicationResponse(arg) { - if (!(arg instanceof api_application_pb.CreateApplicationResponse)) { - throw new Error('Expected argument of type api.CreateApplicationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateApplicationResponse(buffer_arg) { - return api_application_pb.CreateApplicationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateAwsSnsIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.CreateAwsSnsIntegrationRequest)) { - throw new Error('Expected argument of type api.CreateAwsSnsIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateAwsSnsIntegrationRequest(buffer_arg) { - return api_application_pb.CreateAwsSnsIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateAzureServiceBusIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.CreateAzureServiceBusIntegrationRequest)) { - throw new Error('Expected argument of type api.CreateAzureServiceBusIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateAzureServiceBusIntegrationRequest(buffer_arg) { - return api_application_pb.CreateAzureServiceBusIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateGcpPubSubIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.CreateGcpPubSubIntegrationRequest)) { - throw new Error('Expected argument of type api.CreateGcpPubSubIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateGcpPubSubIntegrationRequest(buffer_arg) { - return api_application_pb.CreateGcpPubSubIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateHttpIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.CreateHttpIntegrationRequest)) { - throw new Error('Expected argument of type api.CreateHttpIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateHttpIntegrationRequest(buffer_arg) { - return api_application_pb.CreateHttpIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateIftttIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.CreateIftttIntegrationRequest)) { - throw new Error('Expected argument of type api.CreateIftttIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateIftttIntegrationRequest(buffer_arg) { - return api_application_pb.CreateIftttIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateInfluxDbIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.CreateInfluxDbIntegrationRequest)) { - throw new Error('Expected argument of type api.CreateInfluxDbIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateInfluxDbIntegrationRequest(buffer_arg) { - return api_application_pb.CreateInfluxDbIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateLoraCloudIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.CreateLoraCloudIntegrationRequest)) { - throw new Error('Expected argument of type api.CreateLoraCloudIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateLoraCloudIntegrationRequest(buffer_arg) { - return api_application_pb.CreateLoraCloudIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateMyDevicesIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.CreateMyDevicesIntegrationRequest)) { - throw new Error('Expected argument of type api.CreateMyDevicesIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateMyDevicesIntegrationRequest(buffer_arg) { - return api_application_pb.CreateMyDevicesIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreatePilotThingsIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.CreatePilotThingsIntegrationRequest)) { - throw new Error('Expected argument of type api.CreatePilotThingsIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreatePilotThingsIntegrationRequest(buffer_arg) { - return api_application_pb.CreatePilotThingsIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateThingsBoardIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.CreateThingsBoardIntegrationRequest)) { - throw new Error('Expected argument of type api.CreateThingsBoardIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateThingsBoardIntegrationRequest(buffer_arg) { - return api_application_pb.CreateThingsBoardIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteApplicationRequest(arg) { - if (!(arg instanceof api_application_pb.DeleteApplicationRequest)) { - throw new Error('Expected argument of type api.DeleteApplicationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteApplicationRequest(buffer_arg) { - return api_application_pb.DeleteApplicationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteAwsSnsIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.DeleteAwsSnsIntegrationRequest)) { - throw new Error('Expected argument of type api.DeleteAwsSnsIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteAwsSnsIntegrationRequest(buffer_arg) { - return api_application_pb.DeleteAwsSnsIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteAzureServiceBusIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.DeleteAzureServiceBusIntegrationRequest)) { - throw new Error('Expected argument of type api.DeleteAzureServiceBusIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteAzureServiceBusIntegrationRequest(buffer_arg) { - return api_application_pb.DeleteAzureServiceBusIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteGcpPubSubIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.DeleteGcpPubSubIntegrationRequest)) { - throw new Error('Expected argument of type api.DeleteGcpPubSubIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteGcpPubSubIntegrationRequest(buffer_arg) { - return api_application_pb.DeleteGcpPubSubIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteHttpIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.DeleteHttpIntegrationRequest)) { - throw new Error('Expected argument of type api.DeleteHttpIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteHttpIntegrationRequest(buffer_arg) { - return api_application_pb.DeleteHttpIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteIftttIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.DeleteIftttIntegrationRequest)) { - throw new Error('Expected argument of type api.DeleteIftttIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteIftttIntegrationRequest(buffer_arg) { - return api_application_pb.DeleteIftttIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteInfluxDbIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.DeleteInfluxDbIntegrationRequest)) { - throw new Error('Expected argument of type api.DeleteInfluxDbIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteInfluxDbIntegrationRequest(buffer_arg) { - return api_application_pb.DeleteInfluxDbIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteLoraCloudIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.DeleteLoraCloudIntegrationRequest)) { - throw new Error('Expected argument of type api.DeleteLoraCloudIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteLoraCloudIntegrationRequest(buffer_arg) { - return api_application_pb.DeleteLoraCloudIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteMyDevicesIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.DeleteMyDevicesIntegrationRequest)) { - throw new Error('Expected argument of type api.DeleteMyDevicesIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteMyDevicesIntegrationRequest(buffer_arg) { - return api_application_pb.DeleteMyDevicesIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeletePilotThingsIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.DeletePilotThingsIntegrationRequest)) { - throw new Error('Expected argument of type api.DeletePilotThingsIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeletePilotThingsIntegrationRequest(buffer_arg) { - return api_application_pb.DeletePilotThingsIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteThingsBoardIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.DeleteThingsBoardIntegrationRequest)) { - throw new Error('Expected argument of type api.DeleteThingsBoardIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteThingsBoardIntegrationRequest(buffer_arg) { - return api_application_pb.DeleteThingsBoardIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GenerateMqttIntegrationClientCertificateRequest(arg) { - if (!(arg instanceof api_application_pb.GenerateMqttIntegrationClientCertificateRequest)) { - throw new Error('Expected argument of type api.GenerateMqttIntegrationClientCertificateRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GenerateMqttIntegrationClientCertificateRequest(buffer_arg) { - return api_application_pb.GenerateMqttIntegrationClientCertificateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GenerateMqttIntegrationClientCertificateResponse(arg) { - if (!(arg instanceof api_application_pb.GenerateMqttIntegrationClientCertificateResponse)) { - throw new Error('Expected argument of type api.GenerateMqttIntegrationClientCertificateResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GenerateMqttIntegrationClientCertificateResponse(buffer_arg) { - return api_application_pb.GenerateMqttIntegrationClientCertificateResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetApplicationRequest(arg) { - if (!(arg instanceof api_application_pb.GetApplicationRequest)) { - throw new Error('Expected argument of type api.GetApplicationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetApplicationRequest(buffer_arg) { - return api_application_pb.GetApplicationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetApplicationResponse(arg) { - if (!(arg instanceof api_application_pb.GetApplicationResponse)) { - throw new Error('Expected argument of type api.GetApplicationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetApplicationResponse(buffer_arg) { - return api_application_pb.GetApplicationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetAwsSnsIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.GetAwsSnsIntegrationRequest)) { - throw new Error('Expected argument of type api.GetAwsSnsIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetAwsSnsIntegrationRequest(buffer_arg) { - return api_application_pb.GetAwsSnsIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetAwsSnsIntegrationResponse(arg) { - if (!(arg instanceof api_application_pb.GetAwsSnsIntegrationResponse)) { - throw new Error('Expected argument of type api.GetAwsSnsIntegrationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetAwsSnsIntegrationResponse(buffer_arg) { - return api_application_pb.GetAwsSnsIntegrationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetAzureServiceBusIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.GetAzureServiceBusIntegrationRequest)) { - throw new Error('Expected argument of type api.GetAzureServiceBusIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetAzureServiceBusIntegrationRequest(buffer_arg) { - return api_application_pb.GetAzureServiceBusIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetAzureServiceBusIntegrationResponse(arg) { - if (!(arg instanceof api_application_pb.GetAzureServiceBusIntegrationResponse)) { - throw new Error('Expected argument of type api.GetAzureServiceBusIntegrationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetAzureServiceBusIntegrationResponse(buffer_arg) { - return api_application_pb.GetAzureServiceBusIntegrationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetGcpPubSubIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.GetGcpPubSubIntegrationRequest)) { - throw new Error('Expected argument of type api.GetGcpPubSubIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetGcpPubSubIntegrationRequest(buffer_arg) { - return api_application_pb.GetGcpPubSubIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetGcpPubSubIntegrationResponse(arg) { - if (!(arg instanceof api_application_pb.GetGcpPubSubIntegrationResponse)) { - throw new Error('Expected argument of type api.GetGcpPubSubIntegrationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetGcpPubSubIntegrationResponse(buffer_arg) { - return api_application_pb.GetGcpPubSubIntegrationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetHttpIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.GetHttpIntegrationRequest)) { - throw new Error('Expected argument of type api.GetHttpIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetHttpIntegrationRequest(buffer_arg) { - return api_application_pb.GetHttpIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetHttpIntegrationResponse(arg) { - if (!(arg instanceof api_application_pb.GetHttpIntegrationResponse)) { - throw new Error('Expected argument of type api.GetHttpIntegrationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetHttpIntegrationResponse(buffer_arg) { - return api_application_pb.GetHttpIntegrationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetIftttIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.GetIftttIntegrationRequest)) { - throw new Error('Expected argument of type api.GetIftttIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetIftttIntegrationRequest(buffer_arg) { - return api_application_pb.GetIftttIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetIftttIntegrationResponse(arg) { - if (!(arg instanceof api_application_pb.GetIftttIntegrationResponse)) { - throw new Error('Expected argument of type api.GetIftttIntegrationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetIftttIntegrationResponse(buffer_arg) { - return api_application_pb.GetIftttIntegrationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetInfluxDbIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.GetInfluxDbIntegrationRequest)) { - throw new Error('Expected argument of type api.GetInfluxDbIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetInfluxDbIntegrationRequest(buffer_arg) { - return api_application_pb.GetInfluxDbIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetInfluxDbIntegrationResponse(arg) { - if (!(arg instanceof api_application_pb.GetInfluxDbIntegrationResponse)) { - throw new Error('Expected argument of type api.GetInfluxDbIntegrationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetInfluxDbIntegrationResponse(buffer_arg) { - return api_application_pb.GetInfluxDbIntegrationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetLoraCloudIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.GetLoraCloudIntegrationRequest)) { - throw new Error('Expected argument of type api.GetLoraCloudIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetLoraCloudIntegrationRequest(buffer_arg) { - return api_application_pb.GetLoraCloudIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetLoraCloudIntegrationResponse(arg) { - if (!(arg instanceof api_application_pb.GetLoraCloudIntegrationResponse)) { - throw new Error('Expected argument of type api.GetLoraCloudIntegrationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetLoraCloudIntegrationResponse(buffer_arg) { - return api_application_pb.GetLoraCloudIntegrationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetMyDevicesIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.GetMyDevicesIntegrationRequest)) { - throw new Error('Expected argument of type api.GetMyDevicesIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetMyDevicesIntegrationRequest(buffer_arg) { - return api_application_pb.GetMyDevicesIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetMyDevicesIntegrationResponse(arg) { - if (!(arg instanceof api_application_pb.GetMyDevicesIntegrationResponse)) { - throw new Error('Expected argument of type api.GetMyDevicesIntegrationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetMyDevicesIntegrationResponse(buffer_arg) { - return api_application_pb.GetMyDevicesIntegrationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetPilotThingsIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.GetPilotThingsIntegrationRequest)) { - throw new Error('Expected argument of type api.GetPilotThingsIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetPilotThingsIntegrationRequest(buffer_arg) { - return api_application_pb.GetPilotThingsIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetPilotThingsIntegrationResponse(arg) { - if (!(arg instanceof api_application_pb.GetPilotThingsIntegrationResponse)) { - throw new Error('Expected argument of type api.GetPilotThingsIntegrationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetPilotThingsIntegrationResponse(buffer_arg) { - return api_application_pb.GetPilotThingsIntegrationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetThingsBoardIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.GetThingsBoardIntegrationRequest)) { - throw new Error('Expected argument of type api.GetThingsBoardIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetThingsBoardIntegrationRequest(buffer_arg) { - return api_application_pb.GetThingsBoardIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetThingsBoardIntegrationResponse(arg) { - if (!(arg instanceof api_application_pb.GetThingsBoardIntegrationResponse)) { - throw new Error('Expected argument of type api.GetThingsBoardIntegrationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetThingsBoardIntegrationResponse(buffer_arg) { - return api_application_pb.GetThingsBoardIntegrationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListApplicationsRequest(arg) { - if (!(arg instanceof api_application_pb.ListApplicationsRequest)) { - throw new Error('Expected argument of type api.ListApplicationsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListApplicationsRequest(buffer_arg) { - return api_application_pb.ListApplicationsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListApplicationsResponse(arg) { - if (!(arg instanceof api_application_pb.ListApplicationsResponse)) { - throw new Error('Expected argument of type api.ListApplicationsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListApplicationsResponse(buffer_arg) { - return api_application_pb.ListApplicationsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListIntegrationsRequest(arg) { - if (!(arg instanceof api_application_pb.ListIntegrationsRequest)) { - throw new Error('Expected argument of type api.ListIntegrationsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListIntegrationsRequest(buffer_arg) { - return api_application_pb.ListIntegrationsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListIntegrationsResponse(arg) { - if (!(arg instanceof api_application_pb.ListIntegrationsResponse)) { - throw new Error('Expected argument of type api.ListIntegrationsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListIntegrationsResponse(buffer_arg) { - return api_application_pb.ListIntegrationsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateApplicationRequest(arg) { - if (!(arg instanceof api_application_pb.UpdateApplicationRequest)) { - throw new Error('Expected argument of type api.UpdateApplicationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateApplicationRequest(buffer_arg) { - return api_application_pb.UpdateApplicationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateAwsSnsIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.UpdateAwsSnsIntegrationRequest)) { - throw new Error('Expected argument of type api.UpdateAwsSnsIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateAwsSnsIntegrationRequest(buffer_arg) { - return api_application_pb.UpdateAwsSnsIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateAzureServiceBusIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.UpdateAzureServiceBusIntegrationRequest)) { - throw new Error('Expected argument of type api.UpdateAzureServiceBusIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateAzureServiceBusIntegrationRequest(buffer_arg) { - return api_application_pb.UpdateAzureServiceBusIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateGcpPubSubIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.UpdateGcpPubSubIntegrationRequest)) { - throw new Error('Expected argument of type api.UpdateGcpPubSubIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateGcpPubSubIntegrationRequest(buffer_arg) { - return api_application_pb.UpdateGcpPubSubIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateHttpIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.UpdateHttpIntegrationRequest)) { - throw new Error('Expected argument of type api.UpdateHttpIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateHttpIntegrationRequest(buffer_arg) { - return api_application_pb.UpdateHttpIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateIftttIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.UpdateIftttIntegrationRequest)) { - throw new Error('Expected argument of type api.UpdateIftttIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateIftttIntegrationRequest(buffer_arg) { - return api_application_pb.UpdateIftttIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateInfluxDbIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.UpdateInfluxDbIntegrationRequest)) { - throw new Error('Expected argument of type api.UpdateInfluxDbIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateInfluxDbIntegrationRequest(buffer_arg) { - return api_application_pb.UpdateInfluxDbIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateLoraCloudIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.UpdateLoraCloudIntegrationRequest)) { - throw new Error('Expected argument of type api.UpdateLoraCloudIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateLoraCloudIntegrationRequest(buffer_arg) { - return api_application_pb.UpdateLoraCloudIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateMyDevicesIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.UpdateMyDevicesIntegrationRequest)) { - throw new Error('Expected argument of type api.UpdateMyDevicesIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateMyDevicesIntegrationRequest(buffer_arg) { - return api_application_pb.UpdateMyDevicesIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdatePilotThingsIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.UpdatePilotThingsIntegrationRequest)) { - throw new Error('Expected argument of type api.UpdatePilotThingsIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdatePilotThingsIntegrationRequest(buffer_arg) { - return api_application_pb.UpdatePilotThingsIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateThingsBoardIntegrationRequest(arg) { - if (!(arg instanceof api_application_pb.UpdateThingsBoardIntegrationRequest)) { - throw new Error('Expected argument of type api.UpdateThingsBoardIntegrationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateThingsBoardIntegrationRequest(buffer_arg) { - return api_application_pb.UpdateThingsBoardIntegrationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_google_protobuf_Empty(arg) { - if (!(arg instanceof google_protobuf_empty_pb.Empty)) { - throw new Error('Expected argument of type google.protobuf.Empty'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_google_protobuf_Empty(buffer_arg) { - return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -// ApplicationService is the service providing API methods for managing -// applications. -var ApplicationServiceService = exports.ApplicationServiceService = { - // Create creates the given application. -create: { - path: '/api.ApplicationService/Create', - requestStream: false, - responseStream: false, - requestType: api_application_pb.CreateApplicationRequest, - responseType: api_application_pb.CreateApplicationResponse, - requestSerialize: serialize_api_CreateApplicationRequest, - requestDeserialize: deserialize_api_CreateApplicationRequest, - responseSerialize: serialize_api_CreateApplicationResponse, - responseDeserialize: deserialize_api_CreateApplicationResponse, - }, - // Get the application for the given ID. -get: { - path: '/api.ApplicationService/Get', - requestStream: false, - responseStream: false, - requestType: api_application_pb.GetApplicationRequest, - responseType: api_application_pb.GetApplicationResponse, - requestSerialize: serialize_api_GetApplicationRequest, - requestDeserialize: deserialize_api_GetApplicationRequest, - responseSerialize: serialize_api_GetApplicationResponse, - responseDeserialize: deserialize_api_GetApplicationResponse, - }, - // Update updates the given application. -update: { - path: '/api.ApplicationService/Update', - requestStream: false, - responseStream: false, - requestType: api_application_pb.UpdateApplicationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateApplicationRequest, - requestDeserialize: deserialize_api_UpdateApplicationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete the application for the given ID. -delete: { - path: '/api.ApplicationService/Delete', - requestStream: false, - responseStream: false, - requestType: api_application_pb.DeleteApplicationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteApplicationRequest, - requestDeserialize: deserialize_api_DeleteApplicationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get the list of applications. -list: { - path: '/api.ApplicationService/List', - requestStream: false, - responseStream: false, - requestType: api_application_pb.ListApplicationsRequest, - responseType: api_application_pb.ListApplicationsResponse, - requestSerialize: serialize_api_ListApplicationsRequest, - requestDeserialize: deserialize_api_ListApplicationsRequest, - responseSerialize: serialize_api_ListApplicationsResponse, - responseDeserialize: deserialize_api_ListApplicationsResponse, - }, - // List all configured integrations. -listIntegrations: { - path: '/api.ApplicationService/ListIntegrations', - requestStream: false, - responseStream: false, - requestType: api_application_pb.ListIntegrationsRequest, - responseType: api_application_pb.ListIntegrationsResponse, - requestSerialize: serialize_api_ListIntegrationsRequest, - requestDeserialize: deserialize_api_ListIntegrationsRequest, - responseSerialize: serialize_api_ListIntegrationsResponse, - responseDeserialize: deserialize_api_ListIntegrationsResponse, - }, - // Create HTTP integration. -createHttpIntegration: { - path: '/api.ApplicationService/CreateHttpIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.CreateHttpIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_CreateHttpIntegrationRequest, - requestDeserialize: deserialize_api_CreateHttpIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get the configured HTTP integration. -getHttpIntegration: { - path: '/api.ApplicationService/GetHttpIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.GetHttpIntegrationRequest, - responseType: api_application_pb.GetHttpIntegrationResponse, - requestSerialize: serialize_api_GetHttpIntegrationRequest, - requestDeserialize: deserialize_api_GetHttpIntegrationRequest, - responseSerialize: serialize_api_GetHttpIntegrationResponse, - responseDeserialize: deserialize_api_GetHttpIntegrationResponse, - }, - // Update the HTTP integration. -updateHttpIntegration: { - path: '/api.ApplicationService/UpdateHttpIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.UpdateHttpIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateHttpIntegrationRequest, - requestDeserialize: deserialize_api_UpdateHttpIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete the HTTP integration. -deleteHttpIntegration: { - path: '/api.ApplicationService/DeleteHttpIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.DeleteHttpIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteHttpIntegrationRequest, - requestDeserialize: deserialize_api_DeleteHttpIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Create InfluxDb integration. -createInfluxDbIntegration: { - path: '/api.ApplicationService/CreateInfluxDbIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.CreateInfluxDbIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_CreateInfluxDbIntegrationRequest, - requestDeserialize: deserialize_api_CreateInfluxDbIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get InfluxDb integration. -getInfluxDbIntegration: { - path: '/api.ApplicationService/GetInfluxDbIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.GetInfluxDbIntegrationRequest, - responseType: api_application_pb.GetInfluxDbIntegrationResponse, - requestSerialize: serialize_api_GetInfluxDbIntegrationRequest, - requestDeserialize: deserialize_api_GetInfluxDbIntegrationRequest, - responseSerialize: serialize_api_GetInfluxDbIntegrationResponse, - responseDeserialize: deserialize_api_GetInfluxDbIntegrationResponse, - }, - // Update InfluxDb integration. -updateInfluxDbIntegration: { - path: '/api.ApplicationService/UpdateInfluxDbIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.UpdateInfluxDbIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateInfluxDbIntegrationRequest, - requestDeserialize: deserialize_api_UpdateInfluxDbIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete InfluxDb integration. -deleteInfluxDbIntegration: { - path: '/api.ApplicationService/DeleteInfluxDbIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.DeleteInfluxDbIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteInfluxDbIntegrationRequest, - requestDeserialize: deserialize_api_DeleteInfluxDbIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Create ThingsBoard integration. -createThingsBoardIntegration: { - path: '/api.ApplicationService/CreateThingsBoardIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.CreateThingsBoardIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_CreateThingsBoardIntegrationRequest, - requestDeserialize: deserialize_api_CreateThingsBoardIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get ThingsBoard integration. -getThingsBoardIntegration: { - path: '/api.ApplicationService/GetThingsBoardIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.GetThingsBoardIntegrationRequest, - responseType: api_application_pb.GetThingsBoardIntegrationResponse, - requestSerialize: serialize_api_GetThingsBoardIntegrationRequest, - requestDeserialize: deserialize_api_GetThingsBoardIntegrationRequest, - responseSerialize: serialize_api_GetThingsBoardIntegrationResponse, - responseDeserialize: deserialize_api_GetThingsBoardIntegrationResponse, - }, - // Update ThingsBoard integration. -updateThingsBoardIntegration: { - path: '/api.ApplicationService/UpdateThingsBoardIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.UpdateThingsBoardIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateThingsBoardIntegrationRequest, - requestDeserialize: deserialize_api_UpdateThingsBoardIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete ThingsBoard integration. -deleteThingsBoardIntegration: { - path: '/api.ApplicationService/DeleteThingsBoardIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.DeleteThingsBoardIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteThingsBoardIntegrationRequest, - requestDeserialize: deserialize_api_DeleteThingsBoardIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Create myDevices integration. -createMyDevicesIntegration: { - path: '/api.ApplicationService/CreateMyDevicesIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.CreateMyDevicesIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_CreateMyDevicesIntegrationRequest, - requestDeserialize: deserialize_api_CreateMyDevicesIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get myDevices integration. -getMyDevicesIntegration: { - path: '/api.ApplicationService/GetMyDevicesIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.GetMyDevicesIntegrationRequest, - responseType: api_application_pb.GetMyDevicesIntegrationResponse, - requestSerialize: serialize_api_GetMyDevicesIntegrationRequest, - requestDeserialize: deserialize_api_GetMyDevicesIntegrationRequest, - responseSerialize: serialize_api_GetMyDevicesIntegrationResponse, - responseDeserialize: deserialize_api_GetMyDevicesIntegrationResponse, - }, - // Update myDevices integration. -updateMyDevicesIntegration: { - path: '/api.ApplicationService/UpdateMyDevicesIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.UpdateMyDevicesIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateMyDevicesIntegrationRequest, - requestDeserialize: deserialize_api_UpdateMyDevicesIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete myDevices integration. -deleteMyDevicesIntegration: { - path: '/api.ApplicationService/DeleteMyDevicesIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.DeleteMyDevicesIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteMyDevicesIntegrationRequest, - requestDeserialize: deserialize_api_DeleteMyDevicesIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Create LoRaCloud integration. -createLoraCloudIntegration: { - path: '/api.ApplicationService/CreateLoraCloudIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.CreateLoraCloudIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_CreateLoraCloudIntegrationRequest, - requestDeserialize: deserialize_api_CreateLoraCloudIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get LoRaCloud integration. -getLoraCloudIntegration: { - path: '/api.ApplicationService/GetLoraCloudIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.GetLoraCloudIntegrationRequest, - responseType: api_application_pb.GetLoraCloudIntegrationResponse, - requestSerialize: serialize_api_GetLoraCloudIntegrationRequest, - requestDeserialize: deserialize_api_GetLoraCloudIntegrationRequest, - responseSerialize: serialize_api_GetLoraCloudIntegrationResponse, - responseDeserialize: deserialize_api_GetLoraCloudIntegrationResponse, - }, - // Update LoRaCloud integration. -updateLoraCloudIntegration: { - path: '/api.ApplicationService/UpdateLoraCloudIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.UpdateLoraCloudIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateLoraCloudIntegrationRequest, - requestDeserialize: deserialize_api_UpdateLoraCloudIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete LoRaCloud integration. -deleteLoraCloudIntegration: { - path: '/api.ApplicationService/DeleteLoraCloudIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.DeleteLoraCloudIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteLoraCloudIntegrationRequest, - requestDeserialize: deserialize_api_DeleteLoraCloudIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Create GCP Pub/Sub integration. -createGcpPubSubIntegration: { - path: '/api.ApplicationService/CreateGcpPubSubIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.CreateGcpPubSubIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_CreateGcpPubSubIntegrationRequest, - requestDeserialize: deserialize_api_CreateGcpPubSubIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get GCP Pub/Sub integration. -getGcpPubSubIntegration: { - path: '/api.ApplicationService/GetGcpPubSubIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.GetGcpPubSubIntegrationRequest, - responseType: api_application_pb.GetGcpPubSubIntegrationResponse, - requestSerialize: serialize_api_GetGcpPubSubIntegrationRequest, - requestDeserialize: deserialize_api_GetGcpPubSubIntegrationRequest, - responseSerialize: serialize_api_GetGcpPubSubIntegrationResponse, - responseDeserialize: deserialize_api_GetGcpPubSubIntegrationResponse, - }, - // Update GCP Pub/Sub integration. -updateGcpPubSubIntegration: { - path: '/api.ApplicationService/UpdateGcpPubSubIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.UpdateGcpPubSubIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateGcpPubSubIntegrationRequest, - requestDeserialize: deserialize_api_UpdateGcpPubSubIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete GCP Pub/Sub integration. -deleteGcpPubSubIntegration: { - path: '/api.ApplicationService/DeleteGcpPubSubIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.DeleteGcpPubSubIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteGcpPubSubIntegrationRequest, - requestDeserialize: deserialize_api_DeleteGcpPubSubIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Create AWS SNS integration. -createAwsSnsIntegration: { - path: '/api.ApplicationService/CreateAwsSnsIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.CreateAwsSnsIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_CreateAwsSnsIntegrationRequest, - requestDeserialize: deserialize_api_CreateAwsSnsIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get AWS SNS integration. -getAwsSnsIntegration: { - path: '/api.ApplicationService/GetAwsSnsIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.GetAwsSnsIntegrationRequest, - responseType: api_application_pb.GetAwsSnsIntegrationResponse, - requestSerialize: serialize_api_GetAwsSnsIntegrationRequest, - requestDeserialize: deserialize_api_GetAwsSnsIntegrationRequest, - responseSerialize: serialize_api_GetAwsSnsIntegrationResponse, - responseDeserialize: deserialize_api_GetAwsSnsIntegrationResponse, - }, - // Update AWS SNS integration. -updateAwsSnsIntegration: { - path: '/api.ApplicationService/UpdateAwsSnsIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.UpdateAwsSnsIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateAwsSnsIntegrationRequest, - requestDeserialize: deserialize_api_UpdateAwsSnsIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete AWS SNS integration. -deleteAwsSnsIntegration: { - path: '/api.ApplicationService/DeleteAwsSnsIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.DeleteAwsSnsIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteAwsSnsIntegrationRequest, - requestDeserialize: deserialize_api_DeleteAwsSnsIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Create Azure Service-Bus integration. -createAzureServiceBusIntegration: { - path: '/api.ApplicationService/CreateAzureServiceBusIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.CreateAzureServiceBusIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_CreateAzureServiceBusIntegrationRequest, - requestDeserialize: deserialize_api_CreateAzureServiceBusIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get Azure Service-Bus integration. -getAzureServiceBusIntegration: { - path: '/api.ApplicationService/GetAzureServiceBusIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.GetAzureServiceBusIntegrationRequest, - responseType: api_application_pb.GetAzureServiceBusIntegrationResponse, - requestSerialize: serialize_api_GetAzureServiceBusIntegrationRequest, - requestDeserialize: deserialize_api_GetAzureServiceBusIntegrationRequest, - responseSerialize: serialize_api_GetAzureServiceBusIntegrationResponse, - responseDeserialize: deserialize_api_GetAzureServiceBusIntegrationResponse, - }, - // Update Azure Service-Bus integration. -updateAzureServiceBusIntegration: { - path: '/api.ApplicationService/UpdateAzureServiceBusIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.UpdateAzureServiceBusIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateAzureServiceBusIntegrationRequest, - requestDeserialize: deserialize_api_UpdateAzureServiceBusIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete Azure Service-Bus integration. -deleteAzureServiceBusIntegration: { - path: '/api.ApplicationService/DeleteAzureServiceBusIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.DeleteAzureServiceBusIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteAzureServiceBusIntegrationRequest, - requestDeserialize: deserialize_api_DeleteAzureServiceBusIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Create Pilot Things integration. -createPilotThingsIntegration: { - path: '/api.ApplicationService/CreatePilotThingsIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.CreatePilotThingsIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_CreatePilotThingsIntegrationRequest, - requestDeserialize: deserialize_api_CreatePilotThingsIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get Pilot Things integration. -getPilotThingsIntegration: { - path: '/api.ApplicationService/GetPilotThingsIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.GetPilotThingsIntegrationRequest, - responseType: api_application_pb.GetPilotThingsIntegrationResponse, - requestSerialize: serialize_api_GetPilotThingsIntegrationRequest, - requestDeserialize: deserialize_api_GetPilotThingsIntegrationRequest, - responseSerialize: serialize_api_GetPilotThingsIntegrationResponse, - responseDeserialize: deserialize_api_GetPilotThingsIntegrationResponse, - }, - // Update Pilot Things integration. -updatePilotThingsIntegration: { - path: '/api.ApplicationService/UpdatePilotThingsIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.UpdatePilotThingsIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdatePilotThingsIntegrationRequest, - requestDeserialize: deserialize_api_UpdatePilotThingsIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete Pilot Things integration. -deletePilotThingsIntegration: { - path: '/api.ApplicationService/DeletePilotThingsIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.DeletePilotThingsIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeletePilotThingsIntegrationRequest, - requestDeserialize: deserialize_api_DeletePilotThingsIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Create IFTTT integration. -createIftttIntegration: { - path: '/api.ApplicationService/CreateIftttIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.CreateIftttIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_CreateIftttIntegrationRequest, - requestDeserialize: deserialize_api_CreateIftttIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get IFTTT integration. -getIftttIntegration: { - path: '/api.ApplicationService/GetIftttIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.GetIftttIntegrationRequest, - responseType: api_application_pb.GetIftttIntegrationResponse, - requestSerialize: serialize_api_GetIftttIntegrationRequest, - requestDeserialize: deserialize_api_GetIftttIntegrationRequest, - responseSerialize: serialize_api_GetIftttIntegrationResponse, - responseDeserialize: deserialize_api_GetIftttIntegrationResponse, - }, - // Update IFTTT integration. -updateIftttIntegration: { - path: '/api.ApplicationService/UpdateIftttIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.UpdateIftttIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateIftttIntegrationRequest, - requestDeserialize: deserialize_api_UpdateIftttIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete IFTTT integration. -deleteIftttIntegration: { - path: '/api.ApplicationService/DeleteIftttIntegration', - requestStream: false, - responseStream: false, - requestType: api_application_pb.DeleteIftttIntegrationRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteIftttIntegrationRequest, - requestDeserialize: deserialize_api_DeleteIftttIntegrationRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Generates application ID specific client-certificate. -generateMqttIntegrationClientCertificate: { - path: '/api.ApplicationService/GenerateMqttIntegrationClientCertificate', - requestStream: false, - responseStream: false, - requestType: api_application_pb.GenerateMqttIntegrationClientCertificateRequest, - responseType: api_application_pb.GenerateMqttIntegrationClientCertificateResponse, - requestSerialize: serialize_api_GenerateMqttIntegrationClientCertificateRequest, - requestDeserialize: deserialize_api_GenerateMqttIntegrationClientCertificateRequest, - responseSerialize: serialize_api_GenerateMqttIntegrationClientCertificateResponse, - responseDeserialize: deserialize_api_GenerateMqttIntegrationClientCertificateResponse, - }, -}; - -exports.ApplicationServiceClient = grpc.makeGenericClientConstructor(ApplicationServiceService); diff --git a/api/js/api/application_pb.d.ts b/api/js/api/application_pb.d.ts deleted file mode 100644 index 8b4edb26..00000000 --- a/api/js/api/application_pb.d.ts +++ /dev/null @@ -1,1923 +0,0 @@ -// package: api -// file: api/application.proto - -import * as jspb from "google-protobuf"; -import * as google_api_annotations_pb from "../google/api/annotations_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; - -export class Application extends jspb.Message { - getId(): string; - setId(value: string): void; - - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getTenantId(): string; - setTenantId(value: string): void; - - getTagsMap(): jspb.Map; - clearTagsMap(): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Application.AsObject; - static toObject(includeInstance: boolean, msg: Application): Application.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Application, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Application; - static deserializeBinaryFromReader(message: Application, reader: jspb.BinaryReader): Application; -} - -export namespace Application { - export type AsObject = { - id: string, - name: string, - description: string, - tenantId: string, - tagsMap: Array<[string, string]>, - } -} - -export class ApplicationListItem extends jspb.Message { - getId(): string; - setId(value: string): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ApplicationListItem.AsObject; - static toObject(includeInstance: boolean, msg: ApplicationListItem): ApplicationListItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ApplicationListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ApplicationListItem; - static deserializeBinaryFromReader(message: ApplicationListItem, reader: jspb.BinaryReader): ApplicationListItem; -} - -export namespace ApplicationListItem { - export type AsObject = { - id: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - name: string, - description: string, - } -} - -export class CreateApplicationRequest extends jspb.Message { - hasApplication(): boolean; - clearApplication(): void; - getApplication(): Application | undefined; - setApplication(value?: Application): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateApplicationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateApplicationRequest): CreateApplicationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateApplicationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateApplicationRequest; - static deserializeBinaryFromReader(message: CreateApplicationRequest, reader: jspb.BinaryReader): CreateApplicationRequest; -} - -export namespace CreateApplicationRequest { - export type AsObject = { - application?: Application.AsObject, - } -} - -export class CreateApplicationResponse extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateApplicationResponse.AsObject; - static toObject(includeInstance: boolean, msg: CreateApplicationResponse): CreateApplicationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateApplicationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateApplicationResponse; - static deserializeBinaryFromReader(message: CreateApplicationResponse, reader: jspb.BinaryReader): CreateApplicationResponse; -} - -export namespace CreateApplicationResponse { - export type AsObject = { - id: string, - } -} - -export class GetApplicationRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetApplicationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetApplicationRequest): GetApplicationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetApplicationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetApplicationRequest; - static deserializeBinaryFromReader(message: GetApplicationRequest, reader: jspb.BinaryReader): GetApplicationRequest; -} - -export namespace GetApplicationRequest { - export type AsObject = { - id: string, - } -} - -export class GetApplicationResponse extends jspb.Message { - hasApplication(): boolean; - clearApplication(): void; - getApplication(): Application | undefined; - setApplication(value?: Application): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - clearMeasurementKeysList(): void; - getMeasurementKeysList(): Array; - setMeasurementKeysList(value: Array): void; - addMeasurementKeys(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetApplicationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetApplicationResponse): GetApplicationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetApplicationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetApplicationResponse; - static deserializeBinaryFromReader(message: GetApplicationResponse, reader: jspb.BinaryReader): GetApplicationResponse; -} - -export namespace GetApplicationResponse { - export type AsObject = { - application?: Application.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - measurementKeysList: Array, - } -} - -export class UpdateApplicationRequest extends jspb.Message { - hasApplication(): boolean; - clearApplication(): void; - getApplication(): Application | undefined; - setApplication(value?: Application): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateApplicationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateApplicationRequest): UpdateApplicationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateApplicationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateApplicationRequest; - static deserializeBinaryFromReader(message: UpdateApplicationRequest, reader: jspb.BinaryReader): UpdateApplicationRequest; -} - -export namespace UpdateApplicationRequest { - export type AsObject = { - application?: Application.AsObject, - } -} - -export class DeleteApplicationRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteApplicationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteApplicationRequest): DeleteApplicationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteApplicationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteApplicationRequest; - static deserializeBinaryFromReader(message: DeleteApplicationRequest, reader: jspb.BinaryReader): DeleteApplicationRequest; -} - -export namespace DeleteApplicationRequest { - export type AsObject = { - id: string, - } -} - -export class ListApplicationsRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): void; - - getOffset(): number; - setOffset(value: number): void; - - getSearch(): string; - setSearch(value: string): void; - - getTenantId(): string; - setTenantId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListApplicationsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListApplicationsRequest): ListApplicationsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListApplicationsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListApplicationsRequest; - static deserializeBinaryFromReader(message: ListApplicationsRequest, reader: jspb.BinaryReader): ListApplicationsRequest; -} - -export namespace ListApplicationsRequest { - export type AsObject = { - limit: number, - offset: number, - search: string, - tenantId: string, - } -} - -export class ListApplicationsResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): void; - - clearResultList(): void; - getResultList(): Array; - setResultList(value: Array): void; - addResult(value?: ApplicationListItem, index?: number): ApplicationListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListApplicationsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListApplicationsResponse): ListApplicationsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListApplicationsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListApplicationsResponse; - static deserializeBinaryFromReader(message: ListApplicationsResponse, reader: jspb.BinaryReader): ListApplicationsResponse; -} - -export namespace ListApplicationsResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class ListIntegrationsRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListIntegrationsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListIntegrationsRequest): ListIntegrationsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListIntegrationsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListIntegrationsRequest; - static deserializeBinaryFromReader(message: ListIntegrationsRequest, reader: jspb.BinaryReader): ListIntegrationsRequest; -} - -export namespace ListIntegrationsRequest { - export type AsObject = { - applicationId: string, - } -} - -export class IntegrationListItem extends jspb.Message { - getKind(): IntegrationKindMap[keyof IntegrationKindMap]; - setKind(value: IntegrationKindMap[keyof IntegrationKindMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): IntegrationListItem.AsObject; - static toObject(includeInstance: boolean, msg: IntegrationListItem): IntegrationListItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: IntegrationListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): IntegrationListItem; - static deserializeBinaryFromReader(message: IntegrationListItem, reader: jspb.BinaryReader): IntegrationListItem; -} - -export namespace IntegrationListItem { - export type AsObject = { - kind: IntegrationKindMap[keyof IntegrationKindMap], - } -} - -export class ListIntegrationsResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): void; - - clearResultList(): void; - getResultList(): Array; - setResultList(value: Array): void; - addResult(value?: IntegrationListItem, index?: number): IntegrationListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListIntegrationsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListIntegrationsResponse): ListIntegrationsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListIntegrationsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListIntegrationsResponse; - static deserializeBinaryFromReader(message: ListIntegrationsResponse, reader: jspb.BinaryReader): ListIntegrationsResponse; -} - -export namespace ListIntegrationsResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class HttpIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - getHeadersMap(): jspb.Map; - clearHeadersMap(): void; - getEncoding(): EncodingMap[keyof EncodingMap]; - setEncoding(value: EncodingMap[keyof EncodingMap]): void; - - getEventEndpointUrl(): string; - setEventEndpointUrl(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HttpIntegration.AsObject; - static toObject(includeInstance: boolean, msg: HttpIntegration): HttpIntegration.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HttpIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HttpIntegration; - static deserializeBinaryFromReader(message: HttpIntegration, reader: jspb.BinaryReader): HttpIntegration; -} - -export namespace HttpIntegration { - export type AsObject = { - applicationId: string, - headersMap: Array<[string, string]>, - encoding: EncodingMap[keyof EncodingMap], - eventEndpointUrl: string, - } -} - -export class CreateHttpIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): HttpIntegration | undefined; - setIntegration(value?: HttpIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateHttpIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateHttpIntegrationRequest): CreateHttpIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateHttpIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateHttpIntegrationRequest; - static deserializeBinaryFromReader(message: CreateHttpIntegrationRequest, reader: jspb.BinaryReader): CreateHttpIntegrationRequest; -} - -export namespace CreateHttpIntegrationRequest { - export type AsObject = { - integration?: HttpIntegration.AsObject, - } -} - -export class GetHttpIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetHttpIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetHttpIntegrationRequest): GetHttpIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetHttpIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetHttpIntegrationRequest; - static deserializeBinaryFromReader(message: GetHttpIntegrationRequest, reader: jspb.BinaryReader): GetHttpIntegrationRequest; -} - -export namespace GetHttpIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetHttpIntegrationResponse extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): HttpIntegration | undefined; - setIntegration(value?: HttpIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetHttpIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetHttpIntegrationResponse): GetHttpIntegrationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetHttpIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetHttpIntegrationResponse; - static deserializeBinaryFromReader(message: GetHttpIntegrationResponse, reader: jspb.BinaryReader): GetHttpIntegrationResponse; -} - -export namespace GetHttpIntegrationResponse { - export type AsObject = { - integration?: HttpIntegration.AsObject, - } -} - -export class UpdateHttpIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): HttpIntegration | undefined; - setIntegration(value?: HttpIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateHttpIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateHttpIntegrationRequest): UpdateHttpIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateHttpIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateHttpIntegrationRequest; - static deserializeBinaryFromReader(message: UpdateHttpIntegrationRequest, reader: jspb.BinaryReader): UpdateHttpIntegrationRequest; -} - -export namespace UpdateHttpIntegrationRequest { - export type AsObject = { - integration?: HttpIntegration.AsObject, - } -} - -export class DeleteHttpIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteHttpIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteHttpIntegrationRequest): DeleteHttpIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteHttpIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteHttpIntegrationRequest; - static deserializeBinaryFromReader(message: DeleteHttpIntegrationRequest, reader: jspb.BinaryReader): DeleteHttpIntegrationRequest; -} - -export namespace DeleteHttpIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class InfluxDbIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - getEndpoint(): string; - setEndpoint(value: string): void; - - getDb(): string; - setDb(value: string): void; - - getUsername(): string; - setUsername(value: string): void; - - getPassword(): string; - setPassword(value: string): void; - - getRetentionPolicyName(): string; - setRetentionPolicyName(value: string): void; - - getPrecision(): InfluxDbPrecisionMap[keyof InfluxDbPrecisionMap]; - setPrecision(value: InfluxDbPrecisionMap[keyof InfluxDbPrecisionMap]): void; - - getVersion(): InfluxDbVersionMap[keyof InfluxDbVersionMap]; - setVersion(value: InfluxDbVersionMap[keyof InfluxDbVersionMap]): void; - - getToken(): string; - setToken(value: string): void; - - getOrganization(): string; - setOrganization(value: string): void; - - getBucket(): string; - setBucket(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InfluxDbIntegration.AsObject; - static toObject(includeInstance: boolean, msg: InfluxDbIntegration): InfluxDbIntegration.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InfluxDbIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InfluxDbIntegration; - static deserializeBinaryFromReader(message: InfluxDbIntegration, reader: jspb.BinaryReader): InfluxDbIntegration; -} - -export namespace InfluxDbIntegration { - export type AsObject = { - applicationId: string, - endpoint: string, - db: string, - username: string, - password: string, - retentionPolicyName: string, - precision: InfluxDbPrecisionMap[keyof InfluxDbPrecisionMap], - version: InfluxDbVersionMap[keyof InfluxDbVersionMap], - token: string, - organization: string, - bucket: string, - } -} - -export class CreateInfluxDbIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): InfluxDbIntegration | undefined; - setIntegration(value?: InfluxDbIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateInfluxDbIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateInfluxDbIntegrationRequest): CreateInfluxDbIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateInfluxDbIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateInfluxDbIntegrationRequest; - static deserializeBinaryFromReader(message: CreateInfluxDbIntegrationRequest, reader: jspb.BinaryReader): CreateInfluxDbIntegrationRequest; -} - -export namespace CreateInfluxDbIntegrationRequest { - export type AsObject = { - integration?: InfluxDbIntegration.AsObject, - } -} - -export class GetInfluxDbIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetInfluxDbIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetInfluxDbIntegrationRequest): GetInfluxDbIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetInfluxDbIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetInfluxDbIntegrationRequest; - static deserializeBinaryFromReader(message: GetInfluxDbIntegrationRequest, reader: jspb.BinaryReader): GetInfluxDbIntegrationRequest; -} - -export namespace GetInfluxDbIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetInfluxDbIntegrationResponse extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): InfluxDbIntegration | undefined; - setIntegration(value?: InfluxDbIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetInfluxDbIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetInfluxDbIntegrationResponse): GetInfluxDbIntegrationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetInfluxDbIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetInfluxDbIntegrationResponse; - static deserializeBinaryFromReader(message: GetInfluxDbIntegrationResponse, reader: jspb.BinaryReader): GetInfluxDbIntegrationResponse; -} - -export namespace GetInfluxDbIntegrationResponse { - export type AsObject = { - integration?: InfluxDbIntegration.AsObject, - } -} - -export class UpdateInfluxDbIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): InfluxDbIntegration | undefined; - setIntegration(value?: InfluxDbIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateInfluxDbIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateInfluxDbIntegrationRequest): UpdateInfluxDbIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateInfluxDbIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateInfluxDbIntegrationRequest; - static deserializeBinaryFromReader(message: UpdateInfluxDbIntegrationRequest, reader: jspb.BinaryReader): UpdateInfluxDbIntegrationRequest; -} - -export namespace UpdateInfluxDbIntegrationRequest { - export type AsObject = { - integration?: InfluxDbIntegration.AsObject, - } -} - -export class DeleteInfluxDbIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteInfluxDbIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteInfluxDbIntegrationRequest): DeleteInfluxDbIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteInfluxDbIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteInfluxDbIntegrationRequest; - static deserializeBinaryFromReader(message: DeleteInfluxDbIntegrationRequest, reader: jspb.BinaryReader): DeleteInfluxDbIntegrationRequest; -} - -export namespace DeleteInfluxDbIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class ThingsBoardIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - getServer(): string; - setServer(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ThingsBoardIntegration.AsObject; - static toObject(includeInstance: boolean, msg: ThingsBoardIntegration): ThingsBoardIntegration.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ThingsBoardIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ThingsBoardIntegration; - static deserializeBinaryFromReader(message: ThingsBoardIntegration, reader: jspb.BinaryReader): ThingsBoardIntegration; -} - -export namespace ThingsBoardIntegration { - export type AsObject = { - applicationId: string, - server: string, - } -} - -export class CreateThingsBoardIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): ThingsBoardIntegration | undefined; - setIntegration(value?: ThingsBoardIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateThingsBoardIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateThingsBoardIntegrationRequest): CreateThingsBoardIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateThingsBoardIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateThingsBoardIntegrationRequest; - static deserializeBinaryFromReader(message: CreateThingsBoardIntegrationRequest, reader: jspb.BinaryReader): CreateThingsBoardIntegrationRequest; -} - -export namespace CreateThingsBoardIntegrationRequest { - export type AsObject = { - integration?: ThingsBoardIntegration.AsObject, - } -} - -export class GetThingsBoardIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetThingsBoardIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetThingsBoardIntegrationRequest): GetThingsBoardIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetThingsBoardIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetThingsBoardIntegrationRequest; - static deserializeBinaryFromReader(message: GetThingsBoardIntegrationRequest, reader: jspb.BinaryReader): GetThingsBoardIntegrationRequest; -} - -export namespace GetThingsBoardIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetThingsBoardIntegrationResponse extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): ThingsBoardIntegration | undefined; - setIntegration(value?: ThingsBoardIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetThingsBoardIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetThingsBoardIntegrationResponse): GetThingsBoardIntegrationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetThingsBoardIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetThingsBoardIntegrationResponse; - static deserializeBinaryFromReader(message: GetThingsBoardIntegrationResponse, reader: jspb.BinaryReader): GetThingsBoardIntegrationResponse; -} - -export namespace GetThingsBoardIntegrationResponse { - export type AsObject = { - integration?: ThingsBoardIntegration.AsObject, - } -} - -export class UpdateThingsBoardIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): ThingsBoardIntegration | undefined; - setIntegration(value?: ThingsBoardIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateThingsBoardIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateThingsBoardIntegrationRequest): UpdateThingsBoardIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateThingsBoardIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateThingsBoardIntegrationRequest; - static deserializeBinaryFromReader(message: UpdateThingsBoardIntegrationRequest, reader: jspb.BinaryReader): UpdateThingsBoardIntegrationRequest; -} - -export namespace UpdateThingsBoardIntegrationRequest { - export type AsObject = { - integration?: ThingsBoardIntegration.AsObject, - } -} - -export class DeleteThingsBoardIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteThingsBoardIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteThingsBoardIntegrationRequest): DeleteThingsBoardIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteThingsBoardIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteThingsBoardIntegrationRequest; - static deserializeBinaryFromReader(message: DeleteThingsBoardIntegrationRequest, reader: jspb.BinaryReader): DeleteThingsBoardIntegrationRequest; -} - -export namespace DeleteThingsBoardIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class MyDevicesIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - getEndpoint(): string; - setEndpoint(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MyDevicesIntegration.AsObject; - static toObject(includeInstance: boolean, msg: MyDevicesIntegration): MyDevicesIntegration.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MyDevicesIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MyDevicesIntegration; - static deserializeBinaryFromReader(message: MyDevicesIntegration, reader: jspb.BinaryReader): MyDevicesIntegration; -} - -export namespace MyDevicesIntegration { - export type AsObject = { - applicationId: string, - endpoint: string, - } -} - -export class CreateMyDevicesIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): MyDevicesIntegration | undefined; - setIntegration(value?: MyDevicesIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateMyDevicesIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateMyDevicesIntegrationRequest): CreateMyDevicesIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateMyDevicesIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateMyDevicesIntegrationRequest; - static deserializeBinaryFromReader(message: CreateMyDevicesIntegrationRequest, reader: jspb.BinaryReader): CreateMyDevicesIntegrationRequest; -} - -export namespace CreateMyDevicesIntegrationRequest { - export type AsObject = { - integration?: MyDevicesIntegration.AsObject, - } -} - -export class GetMyDevicesIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetMyDevicesIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetMyDevicesIntegrationRequest): GetMyDevicesIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetMyDevicesIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetMyDevicesIntegrationRequest; - static deserializeBinaryFromReader(message: GetMyDevicesIntegrationRequest, reader: jspb.BinaryReader): GetMyDevicesIntegrationRequest; -} - -export namespace GetMyDevicesIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetMyDevicesIntegrationResponse extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): MyDevicesIntegration | undefined; - setIntegration(value?: MyDevicesIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetMyDevicesIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetMyDevicesIntegrationResponse): GetMyDevicesIntegrationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetMyDevicesIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetMyDevicesIntegrationResponse; - static deserializeBinaryFromReader(message: GetMyDevicesIntegrationResponse, reader: jspb.BinaryReader): GetMyDevicesIntegrationResponse; -} - -export namespace GetMyDevicesIntegrationResponse { - export type AsObject = { - integration?: MyDevicesIntegration.AsObject, - } -} - -export class UpdateMyDevicesIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): MyDevicesIntegration | undefined; - setIntegration(value?: MyDevicesIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateMyDevicesIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateMyDevicesIntegrationRequest): UpdateMyDevicesIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateMyDevicesIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateMyDevicesIntegrationRequest; - static deserializeBinaryFromReader(message: UpdateMyDevicesIntegrationRequest, reader: jspb.BinaryReader): UpdateMyDevicesIntegrationRequest; -} - -export namespace UpdateMyDevicesIntegrationRequest { - export type AsObject = { - integration?: MyDevicesIntegration.AsObject, - } -} - -export class DeleteMyDevicesIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteMyDevicesIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteMyDevicesIntegrationRequest): DeleteMyDevicesIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteMyDevicesIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteMyDevicesIntegrationRequest; - static deserializeBinaryFromReader(message: DeleteMyDevicesIntegrationRequest, reader: jspb.BinaryReader): DeleteMyDevicesIntegrationRequest; -} - -export namespace DeleteMyDevicesIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class LoraCloudIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - hasModemGeolocationServices(): boolean; - clearModemGeolocationServices(): void; - getModemGeolocationServices(): LoraCloudModemGeolocationServices | undefined; - setModemGeolocationServices(value?: LoraCloudModemGeolocationServices): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoraCloudIntegration.AsObject; - static toObject(includeInstance: boolean, msg: LoraCloudIntegration): LoraCloudIntegration.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LoraCloudIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoraCloudIntegration; - static deserializeBinaryFromReader(message: LoraCloudIntegration, reader: jspb.BinaryReader): LoraCloudIntegration; -} - -export namespace LoraCloudIntegration { - export type AsObject = { - applicationId: string, - modemGeolocationServices?: LoraCloudModemGeolocationServices.AsObject, - } -} - -export class LoraCloudModemGeolocationServices extends jspb.Message { - getToken(): string; - setToken(value: string): void; - - getModemEnabled(): boolean; - setModemEnabled(value: boolean): void; - - clearForwardFPortsList(): void; - getForwardFPortsList(): Array; - setForwardFPortsList(value: Array): void; - addForwardFPorts(value: number, index?: number): number; - - getGnssUseRxTime(): boolean; - setGnssUseRxTime(value: boolean): void; - - getGnssUseGatewayLocation(): boolean; - setGnssUseGatewayLocation(value: boolean): void; - - getParseTlv(): boolean; - setParseTlv(value: boolean): void; - - getGeolocationBufferTtl(): number; - setGeolocationBufferTtl(value: number): void; - - getGeolocationMinBufferSize(): number; - setGeolocationMinBufferSize(value: number): void; - - getGeolocationTdoa(): boolean; - setGeolocationTdoa(value: boolean): void; - - getGeolocationRssi(): boolean; - setGeolocationRssi(value: boolean): void; - - getGeolocationGnss(): boolean; - setGeolocationGnss(value: boolean): void; - - getGeolocationGnssPayloadField(): string; - setGeolocationGnssPayloadField(value: string): void; - - getGeolocationGnssUseRxTime(): boolean; - setGeolocationGnssUseRxTime(value: boolean): void; - - getGeolocationWifi(): boolean; - setGeolocationWifi(value: boolean): void; - - getGeolocationWifiPayloadField(): string; - setGeolocationWifiPayloadField(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoraCloudModemGeolocationServices.AsObject; - static toObject(includeInstance: boolean, msg: LoraCloudModemGeolocationServices): LoraCloudModemGeolocationServices.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LoraCloudModemGeolocationServices, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoraCloudModemGeolocationServices; - static deserializeBinaryFromReader(message: LoraCloudModemGeolocationServices, reader: jspb.BinaryReader): LoraCloudModemGeolocationServices; -} - -export namespace LoraCloudModemGeolocationServices { - export type AsObject = { - token: string, - modemEnabled: boolean, - forwardFPortsList: Array, - gnssUseRxTime: boolean, - gnssUseGatewayLocation: boolean, - parseTlv: boolean, - geolocationBufferTtl: number, - geolocationMinBufferSize: number, - geolocationTdoa: boolean, - geolocationRssi: boolean, - geolocationGnss: boolean, - geolocationGnssPayloadField: string, - geolocationGnssUseRxTime: boolean, - geolocationWifi: boolean, - geolocationWifiPayloadField: string, - } -} - -export class CreateLoraCloudIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): LoraCloudIntegration | undefined; - setIntegration(value?: LoraCloudIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateLoraCloudIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateLoraCloudIntegrationRequest): CreateLoraCloudIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateLoraCloudIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateLoraCloudIntegrationRequest; - static deserializeBinaryFromReader(message: CreateLoraCloudIntegrationRequest, reader: jspb.BinaryReader): CreateLoraCloudIntegrationRequest; -} - -export namespace CreateLoraCloudIntegrationRequest { - export type AsObject = { - integration?: LoraCloudIntegration.AsObject, - } -} - -export class GetLoraCloudIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetLoraCloudIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetLoraCloudIntegrationRequest): GetLoraCloudIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetLoraCloudIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetLoraCloudIntegrationRequest; - static deserializeBinaryFromReader(message: GetLoraCloudIntegrationRequest, reader: jspb.BinaryReader): GetLoraCloudIntegrationRequest; -} - -export namespace GetLoraCloudIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetLoraCloudIntegrationResponse extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): LoraCloudIntegration | undefined; - setIntegration(value?: LoraCloudIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetLoraCloudIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetLoraCloudIntegrationResponse): GetLoraCloudIntegrationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetLoraCloudIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetLoraCloudIntegrationResponse; - static deserializeBinaryFromReader(message: GetLoraCloudIntegrationResponse, reader: jspb.BinaryReader): GetLoraCloudIntegrationResponse; -} - -export namespace GetLoraCloudIntegrationResponse { - export type AsObject = { - integration?: LoraCloudIntegration.AsObject, - } -} - -export class UpdateLoraCloudIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): LoraCloudIntegration | undefined; - setIntegration(value?: LoraCloudIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateLoraCloudIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateLoraCloudIntegrationRequest): UpdateLoraCloudIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateLoraCloudIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateLoraCloudIntegrationRequest; - static deserializeBinaryFromReader(message: UpdateLoraCloudIntegrationRequest, reader: jspb.BinaryReader): UpdateLoraCloudIntegrationRequest; -} - -export namespace UpdateLoraCloudIntegrationRequest { - export type AsObject = { - integration?: LoraCloudIntegration.AsObject, - } -} - -export class DeleteLoraCloudIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteLoraCloudIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteLoraCloudIntegrationRequest): DeleteLoraCloudIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteLoraCloudIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteLoraCloudIntegrationRequest; - static deserializeBinaryFromReader(message: DeleteLoraCloudIntegrationRequest, reader: jspb.BinaryReader): DeleteLoraCloudIntegrationRequest; -} - -export namespace DeleteLoraCloudIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GcpPubSubIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - getEncoding(): EncodingMap[keyof EncodingMap]; - setEncoding(value: EncodingMap[keyof EncodingMap]): void; - - getCredentialsFile(): string; - setCredentialsFile(value: string): void; - - getProjectId(): string; - setProjectId(value: string): void; - - getTopicName(): string; - setTopicName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GcpPubSubIntegration.AsObject; - static toObject(includeInstance: boolean, msg: GcpPubSubIntegration): GcpPubSubIntegration.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GcpPubSubIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GcpPubSubIntegration; - static deserializeBinaryFromReader(message: GcpPubSubIntegration, reader: jspb.BinaryReader): GcpPubSubIntegration; -} - -export namespace GcpPubSubIntegration { - export type AsObject = { - applicationId: string, - encoding: EncodingMap[keyof EncodingMap], - credentialsFile: string, - projectId: string, - topicName: string, - } -} - -export class CreateGcpPubSubIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): GcpPubSubIntegration | undefined; - setIntegration(value?: GcpPubSubIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateGcpPubSubIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateGcpPubSubIntegrationRequest): CreateGcpPubSubIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateGcpPubSubIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateGcpPubSubIntegrationRequest; - static deserializeBinaryFromReader(message: CreateGcpPubSubIntegrationRequest, reader: jspb.BinaryReader): CreateGcpPubSubIntegrationRequest; -} - -export namespace CreateGcpPubSubIntegrationRequest { - export type AsObject = { - integration?: GcpPubSubIntegration.AsObject, - } -} - -export class GetGcpPubSubIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetGcpPubSubIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetGcpPubSubIntegrationRequest): GetGcpPubSubIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetGcpPubSubIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetGcpPubSubIntegrationRequest; - static deserializeBinaryFromReader(message: GetGcpPubSubIntegrationRequest, reader: jspb.BinaryReader): GetGcpPubSubIntegrationRequest; -} - -export namespace GetGcpPubSubIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetGcpPubSubIntegrationResponse extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): GcpPubSubIntegration | undefined; - setIntegration(value?: GcpPubSubIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetGcpPubSubIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetGcpPubSubIntegrationResponse): GetGcpPubSubIntegrationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetGcpPubSubIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetGcpPubSubIntegrationResponse; - static deserializeBinaryFromReader(message: GetGcpPubSubIntegrationResponse, reader: jspb.BinaryReader): GetGcpPubSubIntegrationResponse; -} - -export namespace GetGcpPubSubIntegrationResponse { - export type AsObject = { - integration?: GcpPubSubIntegration.AsObject, - } -} - -export class UpdateGcpPubSubIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): GcpPubSubIntegration | undefined; - setIntegration(value?: GcpPubSubIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateGcpPubSubIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateGcpPubSubIntegrationRequest): UpdateGcpPubSubIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateGcpPubSubIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateGcpPubSubIntegrationRequest; - static deserializeBinaryFromReader(message: UpdateGcpPubSubIntegrationRequest, reader: jspb.BinaryReader): UpdateGcpPubSubIntegrationRequest; -} - -export namespace UpdateGcpPubSubIntegrationRequest { - export type AsObject = { - integration?: GcpPubSubIntegration.AsObject, - } -} - -export class DeleteGcpPubSubIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteGcpPubSubIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteGcpPubSubIntegrationRequest): DeleteGcpPubSubIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteGcpPubSubIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteGcpPubSubIntegrationRequest; - static deserializeBinaryFromReader(message: DeleteGcpPubSubIntegrationRequest, reader: jspb.BinaryReader): DeleteGcpPubSubIntegrationRequest; -} - -export namespace DeleteGcpPubSubIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class AwsSnsIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - getEncoding(): EncodingMap[keyof EncodingMap]; - setEncoding(value: EncodingMap[keyof EncodingMap]): void; - - getRegion(): string; - setRegion(value: string): void; - - getAccessKeyId(): string; - setAccessKeyId(value: string): void; - - getSecretAccessKey(): string; - setSecretAccessKey(value: string): void; - - getTopicArn(): string; - setTopicArn(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AwsSnsIntegration.AsObject; - static toObject(includeInstance: boolean, msg: AwsSnsIntegration): AwsSnsIntegration.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AwsSnsIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AwsSnsIntegration; - static deserializeBinaryFromReader(message: AwsSnsIntegration, reader: jspb.BinaryReader): AwsSnsIntegration; -} - -export namespace AwsSnsIntegration { - export type AsObject = { - applicationId: string, - encoding: EncodingMap[keyof EncodingMap], - region: string, - accessKeyId: string, - secretAccessKey: string, - topicArn: string, - } -} - -export class CreateAwsSnsIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): AwsSnsIntegration | undefined; - setIntegration(value?: AwsSnsIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateAwsSnsIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateAwsSnsIntegrationRequest): CreateAwsSnsIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateAwsSnsIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateAwsSnsIntegrationRequest; - static deserializeBinaryFromReader(message: CreateAwsSnsIntegrationRequest, reader: jspb.BinaryReader): CreateAwsSnsIntegrationRequest; -} - -export namespace CreateAwsSnsIntegrationRequest { - export type AsObject = { - integration?: AwsSnsIntegration.AsObject, - } -} - -export class GetAwsSnsIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAwsSnsIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAwsSnsIntegrationRequest): GetAwsSnsIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAwsSnsIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAwsSnsIntegrationRequest; - static deserializeBinaryFromReader(message: GetAwsSnsIntegrationRequest, reader: jspb.BinaryReader): GetAwsSnsIntegrationRequest; -} - -export namespace GetAwsSnsIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetAwsSnsIntegrationResponse extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): AwsSnsIntegration | undefined; - setIntegration(value?: AwsSnsIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAwsSnsIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetAwsSnsIntegrationResponse): GetAwsSnsIntegrationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAwsSnsIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAwsSnsIntegrationResponse; - static deserializeBinaryFromReader(message: GetAwsSnsIntegrationResponse, reader: jspb.BinaryReader): GetAwsSnsIntegrationResponse; -} - -export namespace GetAwsSnsIntegrationResponse { - export type AsObject = { - integration?: AwsSnsIntegration.AsObject, - } -} - -export class UpdateAwsSnsIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): AwsSnsIntegration | undefined; - setIntegration(value?: AwsSnsIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateAwsSnsIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateAwsSnsIntegrationRequest): UpdateAwsSnsIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateAwsSnsIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateAwsSnsIntegrationRequest; - static deserializeBinaryFromReader(message: UpdateAwsSnsIntegrationRequest, reader: jspb.BinaryReader): UpdateAwsSnsIntegrationRequest; -} - -export namespace UpdateAwsSnsIntegrationRequest { - export type AsObject = { - integration?: AwsSnsIntegration.AsObject, - } -} - -export class DeleteAwsSnsIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteAwsSnsIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteAwsSnsIntegrationRequest): DeleteAwsSnsIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteAwsSnsIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteAwsSnsIntegrationRequest; - static deserializeBinaryFromReader(message: DeleteAwsSnsIntegrationRequest, reader: jspb.BinaryReader): DeleteAwsSnsIntegrationRequest; -} - -export namespace DeleteAwsSnsIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class AzureServiceBusIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - getEncoding(): EncodingMap[keyof EncodingMap]; - setEncoding(value: EncodingMap[keyof EncodingMap]): void; - - getConnectionString(): string; - setConnectionString(value: string): void; - - getPublishName(): string; - setPublishName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AzureServiceBusIntegration.AsObject; - static toObject(includeInstance: boolean, msg: AzureServiceBusIntegration): AzureServiceBusIntegration.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AzureServiceBusIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AzureServiceBusIntegration; - static deserializeBinaryFromReader(message: AzureServiceBusIntegration, reader: jspb.BinaryReader): AzureServiceBusIntegration; -} - -export namespace AzureServiceBusIntegration { - export type AsObject = { - applicationId: string, - encoding: EncodingMap[keyof EncodingMap], - connectionString: string, - publishName: string, - } -} - -export class CreateAzureServiceBusIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): AzureServiceBusIntegration | undefined; - setIntegration(value?: AzureServiceBusIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateAzureServiceBusIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateAzureServiceBusIntegrationRequest): CreateAzureServiceBusIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateAzureServiceBusIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateAzureServiceBusIntegrationRequest; - static deserializeBinaryFromReader(message: CreateAzureServiceBusIntegrationRequest, reader: jspb.BinaryReader): CreateAzureServiceBusIntegrationRequest; -} - -export namespace CreateAzureServiceBusIntegrationRequest { - export type AsObject = { - integration?: AzureServiceBusIntegration.AsObject, - } -} - -export class GetAzureServiceBusIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAzureServiceBusIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAzureServiceBusIntegrationRequest): GetAzureServiceBusIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAzureServiceBusIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAzureServiceBusIntegrationRequest; - static deserializeBinaryFromReader(message: GetAzureServiceBusIntegrationRequest, reader: jspb.BinaryReader): GetAzureServiceBusIntegrationRequest; -} - -export namespace GetAzureServiceBusIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetAzureServiceBusIntegrationResponse extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): AzureServiceBusIntegration | undefined; - setIntegration(value?: AzureServiceBusIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAzureServiceBusIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetAzureServiceBusIntegrationResponse): GetAzureServiceBusIntegrationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAzureServiceBusIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAzureServiceBusIntegrationResponse; - static deserializeBinaryFromReader(message: GetAzureServiceBusIntegrationResponse, reader: jspb.BinaryReader): GetAzureServiceBusIntegrationResponse; -} - -export namespace GetAzureServiceBusIntegrationResponse { - export type AsObject = { - integration?: AzureServiceBusIntegration.AsObject, - } -} - -export class UpdateAzureServiceBusIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): AzureServiceBusIntegration | undefined; - setIntegration(value?: AzureServiceBusIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateAzureServiceBusIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateAzureServiceBusIntegrationRequest): UpdateAzureServiceBusIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateAzureServiceBusIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateAzureServiceBusIntegrationRequest; - static deserializeBinaryFromReader(message: UpdateAzureServiceBusIntegrationRequest, reader: jspb.BinaryReader): UpdateAzureServiceBusIntegrationRequest; -} - -export namespace UpdateAzureServiceBusIntegrationRequest { - export type AsObject = { - integration?: AzureServiceBusIntegration.AsObject, - } -} - -export class DeleteAzureServiceBusIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteAzureServiceBusIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteAzureServiceBusIntegrationRequest): DeleteAzureServiceBusIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteAzureServiceBusIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteAzureServiceBusIntegrationRequest; - static deserializeBinaryFromReader(message: DeleteAzureServiceBusIntegrationRequest, reader: jspb.BinaryReader): DeleteAzureServiceBusIntegrationRequest; -} - -export namespace DeleteAzureServiceBusIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class PilotThingsIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - getServer(): string; - setServer(value: string): void; - - getToken(): string; - setToken(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PilotThingsIntegration.AsObject; - static toObject(includeInstance: boolean, msg: PilotThingsIntegration): PilotThingsIntegration.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PilotThingsIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PilotThingsIntegration; - static deserializeBinaryFromReader(message: PilotThingsIntegration, reader: jspb.BinaryReader): PilotThingsIntegration; -} - -export namespace PilotThingsIntegration { - export type AsObject = { - applicationId: string, - server: string, - token: string, - } -} - -export class CreatePilotThingsIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): PilotThingsIntegration | undefined; - setIntegration(value?: PilotThingsIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreatePilotThingsIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreatePilotThingsIntegrationRequest): CreatePilotThingsIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreatePilotThingsIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreatePilotThingsIntegrationRequest; - static deserializeBinaryFromReader(message: CreatePilotThingsIntegrationRequest, reader: jspb.BinaryReader): CreatePilotThingsIntegrationRequest; -} - -export namespace CreatePilotThingsIntegrationRequest { - export type AsObject = { - integration?: PilotThingsIntegration.AsObject, - } -} - -export class GetPilotThingsIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetPilotThingsIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetPilotThingsIntegrationRequest): GetPilotThingsIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetPilotThingsIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetPilotThingsIntegrationRequest; - static deserializeBinaryFromReader(message: GetPilotThingsIntegrationRequest, reader: jspb.BinaryReader): GetPilotThingsIntegrationRequest; -} - -export namespace GetPilotThingsIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetPilotThingsIntegrationResponse extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): PilotThingsIntegration | undefined; - setIntegration(value?: PilotThingsIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetPilotThingsIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetPilotThingsIntegrationResponse): GetPilotThingsIntegrationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetPilotThingsIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetPilotThingsIntegrationResponse; - static deserializeBinaryFromReader(message: GetPilotThingsIntegrationResponse, reader: jspb.BinaryReader): GetPilotThingsIntegrationResponse; -} - -export namespace GetPilotThingsIntegrationResponse { - export type AsObject = { - integration?: PilotThingsIntegration.AsObject, - } -} - -export class UpdatePilotThingsIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): PilotThingsIntegration | undefined; - setIntegration(value?: PilotThingsIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdatePilotThingsIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdatePilotThingsIntegrationRequest): UpdatePilotThingsIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdatePilotThingsIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdatePilotThingsIntegrationRequest; - static deserializeBinaryFromReader(message: UpdatePilotThingsIntegrationRequest, reader: jspb.BinaryReader): UpdatePilotThingsIntegrationRequest; -} - -export namespace UpdatePilotThingsIntegrationRequest { - export type AsObject = { - integration?: PilotThingsIntegration.AsObject, - } -} - -export class DeletePilotThingsIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeletePilotThingsIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeletePilotThingsIntegrationRequest): DeletePilotThingsIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeletePilotThingsIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeletePilotThingsIntegrationRequest; - static deserializeBinaryFromReader(message: DeletePilotThingsIntegrationRequest, reader: jspb.BinaryReader): DeletePilotThingsIntegrationRequest; -} - -export namespace DeletePilotThingsIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class IftttIntegration extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - getKey(): string; - setKey(value: string): void; - - clearUplinkValuesList(): void; - getUplinkValuesList(): Array; - setUplinkValuesList(value: Array): void; - addUplinkValues(value: string, index?: number): string; - - getArbitraryJson(): boolean; - setArbitraryJson(value: boolean): void; - - getEventPrefix(): string; - setEventPrefix(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): IftttIntegration.AsObject; - static toObject(includeInstance: boolean, msg: IftttIntegration): IftttIntegration.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: IftttIntegration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): IftttIntegration; - static deserializeBinaryFromReader(message: IftttIntegration, reader: jspb.BinaryReader): IftttIntegration; -} - -export namespace IftttIntegration { - export type AsObject = { - applicationId: string, - key: string, - uplinkValuesList: Array, - arbitraryJson: boolean, - eventPrefix: string, - } -} - -export class CreateIftttIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): IftttIntegration | undefined; - setIntegration(value?: IftttIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateIftttIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateIftttIntegrationRequest): CreateIftttIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateIftttIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateIftttIntegrationRequest; - static deserializeBinaryFromReader(message: CreateIftttIntegrationRequest, reader: jspb.BinaryReader): CreateIftttIntegrationRequest; -} - -export namespace CreateIftttIntegrationRequest { - export type AsObject = { - integration?: IftttIntegration.AsObject, - } -} - -export class GetIftttIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetIftttIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetIftttIntegrationRequest): GetIftttIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetIftttIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetIftttIntegrationRequest; - static deserializeBinaryFromReader(message: GetIftttIntegrationRequest, reader: jspb.BinaryReader): GetIftttIntegrationRequest; -} - -export namespace GetIftttIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GetIftttIntegrationResponse extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): IftttIntegration | undefined; - setIntegration(value?: IftttIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetIftttIntegrationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetIftttIntegrationResponse): GetIftttIntegrationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetIftttIntegrationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetIftttIntegrationResponse; - static deserializeBinaryFromReader(message: GetIftttIntegrationResponse, reader: jspb.BinaryReader): GetIftttIntegrationResponse; -} - -export namespace GetIftttIntegrationResponse { - export type AsObject = { - integration?: IftttIntegration.AsObject, - } -} - -export class UpdateIftttIntegrationRequest extends jspb.Message { - hasIntegration(): boolean; - clearIntegration(): void; - getIntegration(): IftttIntegration | undefined; - setIntegration(value?: IftttIntegration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateIftttIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateIftttIntegrationRequest): UpdateIftttIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateIftttIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateIftttIntegrationRequest; - static deserializeBinaryFromReader(message: UpdateIftttIntegrationRequest, reader: jspb.BinaryReader): UpdateIftttIntegrationRequest; -} - -export namespace UpdateIftttIntegrationRequest { - export type AsObject = { - integration?: IftttIntegration.AsObject, - } -} - -export class DeleteIftttIntegrationRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteIftttIntegrationRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteIftttIntegrationRequest): DeleteIftttIntegrationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteIftttIntegrationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteIftttIntegrationRequest; - static deserializeBinaryFromReader(message: DeleteIftttIntegrationRequest, reader: jspb.BinaryReader): DeleteIftttIntegrationRequest; -} - -export namespace DeleteIftttIntegrationRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GenerateMqttIntegrationClientCertificateRequest extends jspb.Message { - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenerateMqttIntegrationClientCertificateRequest.AsObject; - static toObject(includeInstance: boolean, msg: GenerateMqttIntegrationClientCertificateRequest): GenerateMqttIntegrationClientCertificateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GenerateMqttIntegrationClientCertificateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenerateMqttIntegrationClientCertificateRequest; - static deserializeBinaryFromReader(message: GenerateMqttIntegrationClientCertificateRequest, reader: jspb.BinaryReader): GenerateMqttIntegrationClientCertificateRequest; -} - -export namespace GenerateMqttIntegrationClientCertificateRequest { - export type AsObject = { - applicationId: string, - } -} - -export class GenerateMqttIntegrationClientCertificateResponse extends jspb.Message { - getTlsCert(): string; - setTlsCert(value: string): void; - - getTlsKey(): string; - setTlsKey(value: string): void; - - getCaCert(): string; - setCaCert(value: string): void; - - hasExpiresAt(): boolean; - clearExpiresAt(): void; - getExpiresAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setExpiresAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenerateMqttIntegrationClientCertificateResponse.AsObject; - static toObject(includeInstance: boolean, msg: GenerateMqttIntegrationClientCertificateResponse): GenerateMqttIntegrationClientCertificateResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GenerateMqttIntegrationClientCertificateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenerateMqttIntegrationClientCertificateResponse; - static deserializeBinaryFromReader(message: GenerateMqttIntegrationClientCertificateResponse, reader: jspb.BinaryReader): GenerateMqttIntegrationClientCertificateResponse; -} - -export namespace GenerateMqttIntegrationClientCertificateResponse { - export type AsObject = { - tlsCert: string, - tlsKey: string, - caCert: string, - expiresAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export interface EncodingMap { - JSON: 0; - PROTOBUF: 1; -} - -export const Encoding: EncodingMap; - -export interface IntegrationKindMap { - HTTP: 0; - INFLUX_DB: 1; - THINGS_BOARD: 2; - MY_DEVICES: 3; - LORA_CLOUD: 4; - GCP_PUB_SUB: 5; - AWS_SNS: 6; - AZURE_SERVICE_BUS: 7; - PILOT_THINGS: 8; - MQTT_GLOBAL: 9; - IFTTT: 10; -} - -export const IntegrationKind: IntegrationKindMap; - -export interface InfluxDbPrecisionMap { - NS: 0; - U: 1; - MS: 2; - S: 3; - M: 4; - H: 5; -} - -export const InfluxDbPrecision: InfluxDbPrecisionMap; - -export interface InfluxDbVersionMap { - INFLUXDB_1: 0; - INFLUXDB_2: 1; -} - -export const InfluxDbVersion: InfluxDbVersionMap; - diff --git a/api/js/api/application_pb.js b/api/js/api/application_pb.js deleted file mode 100644 index f6d4de0c..00000000 --- a/api/js/api/application_pb.js +++ /dev/null @@ -1,14595 +0,0 @@ -// source: api/application.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -goog.exportSymbol('proto.api.Application', null, global); -goog.exportSymbol('proto.api.ApplicationListItem', null, global); -goog.exportSymbol('proto.api.AwsSnsIntegration', null, global); -goog.exportSymbol('proto.api.AzureServiceBusIntegration', null, global); -goog.exportSymbol('proto.api.CreateApplicationRequest', null, global); -goog.exportSymbol('proto.api.CreateApplicationResponse', null, global); -goog.exportSymbol('proto.api.CreateAwsSnsIntegrationRequest', null, global); -goog.exportSymbol('proto.api.CreateAzureServiceBusIntegrationRequest', null, global); -goog.exportSymbol('proto.api.CreateGcpPubSubIntegrationRequest', null, global); -goog.exportSymbol('proto.api.CreateHttpIntegrationRequest', null, global); -goog.exportSymbol('proto.api.CreateIftttIntegrationRequest', null, global); -goog.exportSymbol('proto.api.CreateInfluxDbIntegrationRequest', null, global); -goog.exportSymbol('proto.api.CreateLoraCloudIntegrationRequest', null, global); -goog.exportSymbol('proto.api.CreateMyDevicesIntegrationRequest', null, global); -goog.exportSymbol('proto.api.CreatePilotThingsIntegrationRequest', null, global); -goog.exportSymbol('proto.api.CreateThingsBoardIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeleteApplicationRequest', null, global); -goog.exportSymbol('proto.api.DeleteAwsSnsIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeleteAzureServiceBusIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeleteGcpPubSubIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeleteHttpIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeleteIftttIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeleteInfluxDbIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeleteLoraCloudIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeleteMyDevicesIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeletePilotThingsIntegrationRequest', null, global); -goog.exportSymbol('proto.api.DeleteThingsBoardIntegrationRequest', null, global); -goog.exportSymbol('proto.api.Encoding', null, global); -goog.exportSymbol('proto.api.GcpPubSubIntegration', null, global); -goog.exportSymbol('proto.api.GenerateMqttIntegrationClientCertificateRequest', null, global); -goog.exportSymbol('proto.api.GenerateMqttIntegrationClientCertificateResponse', null, global); -goog.exportSymbol('proto.api.GetApplicationRequest', null, global); -goog.exportSymbol('proto.api.GetApplicationResponse', null, global); -goog.exportSymbol('proto.api.GetAwsSnsIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetAwsSnsIntegrationResponse', null, global); -goog.exportSymbol('proto.api.GetAzureServiceBusIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetAzureServiceBusIntegrationResponse', null, global); -goog.exportSymbol('proto.api.GetGcpPubSubIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetGcpPubSubIntegrationResponse', null, global); -goog.exportSymbol('proto.api.GetHttpIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetHttpIntegrationResponse', null, global); -goog.exportSymbol('proto.api.GetIftttIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetIftttIntegrationResponse', null, global); -goog.exportSymbol('proto.api.GetInfluxDbIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetInfluxDbIntegrationResponse', null, global); -goog.exportSymbol('proto.api.GetLoraCloudIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetLoraCloudIntegrationResponse', null, global); -goog.exportSymbol('proto.api.GetMyDevicesIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetMyDevicesIntegrationResponse', null, global); -goog.exportSymbol('proto.api.GetPilotThingsIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetPilotThingsIntegrationResponse', null, global); -goog.exportSymbol('proto.api.GetThingsBoardIntegrationRequest', null, global); -goog.exportSymbol('proto.api.GetThingsBoardIntegrationResponse', null, global); -goog.exportSymbol('proto.api.HttpIntegration', null, global); -goog.exportSymbol('proto.api.IftttIntegration', null, global); -goog.exportSymbol('proto.api.InfluxDbIntegration', null, global); -goog.exportSymbol('proto.api.InfluxDbPrecision', null, global); -goog.exportSymbol('proto.api.InfluxDbVersion', null, global); -goog.exportSymbol('proto.api.IntegrationKind', null, global); -goog.exportSymbol('proto.api.IntegrationListItem', null, global); -goog.exportSymbol('proto.api.ListApplicationsRequest', null, global); -goog.exportSymbol('proto.api.ListApplicationsResponse', null, global); -goog.exportSymbol('proto.api.ListIntegrationsRequest', null, global); -goog.exportSymbol('proto.api.ListIntegrationsResponse', null, global); -goog.exportSymbol('proto.api.LoraCloudIntegration', null, global); -goog.exportSymbol('proto.api.LoraCloudModemGeolocationServices', null, global); -goog.exportSymbol('proto.api.MyDevicesIntegration', null, global); -goog.exportSymbol('proto.api.PilotThingsIntegration', null, global); -goog.exportSymbol('proto.api.ThingsBoardIntegration', null, global); -goog.exportSymbol('proto.api.UpdateApplicationRequest', null, global); -goog.exportSymbol('proto.api.UpdateAwsSnsIntegrationRequest', null, global); -goog.exportSymbol('proto.api.UpdateAzureServiceBusIntegrationRequest', null, global); -goog.exportSymbol('proto.api.UpdateGcpPubSubIntegrationRequest', null, global); -goog.exportSymbol('proto.api.UpdateHttpIntegrationRequest', null, global); -goog.exportSymbol('proto.api.UpdateIftttIntegrationRequest', null, global); -goog.exportSymbol('proto.api.UpdateInfluxDbIntegrationRequest', null, global); -goog.exportSymbol('proto.api.UpdateLoraCloudIntegrationRequest', null, global); -goog.exportSymbol('proto.api.UpdateMyDevicesIntegrationRequest', null, global); -goog.exportSymbol('proto.api.UpdatePilotThingsIntegrationRequest', null, global); -goog.exportSymbol('proto.api.UpdateThingsBoardIntegrationRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.Application = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.Application, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.Application.displayName = 'proto.api.Application'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ApplicationListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ApplicationListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ApplicationListItem.displayName = 'proto.api.ApplicationListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateApplicationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateApplicationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateApplicationRequest.displayName = 'proto.api.CreateApplicationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateApplicationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateApplicationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateApplicationResponse.displayName = 'proto.api.CreateApplicationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetApplicationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetApplicationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetApplicationRequest.displayName = 'proto.api.GetApplicationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetApplicationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.GetApplicationResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.GetApplicationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetApplicationResponse.displayName = 'proto.api.GetApplicationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateApplicationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateApplicationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateApplicationRequest.displayName = 'proto.api.UpdateApplicationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteApplicationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteApplicationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteApplicationRequest.displayName = 'proto.api.DeleteApplicationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListApplicationsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListApplicationsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListApplicationsRequest.displayName = 'proto.api.ListApplicationsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListApplicationsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListApplicationsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListApplicationsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListApplicationsResponse.displayName = 'proto.api.ListApplicationsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListIntegrationsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListIntegrationsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListIntegrationsRequest.displayName = 'proto.api.ListIntegrationsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.IntegrationListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.IntegrationListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.IntegrationListItem.displayName = 'proto.api.IntegrationListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListIntegrationsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListIntegrationsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListIntegrationsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListIntegrationsResponse.displayName = 'proto.api.ListIntegrationsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.HttpIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.HttpIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.HttpIntegration.displayName = 'proto.api.HttpIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateHttpIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateHttpIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateHttpIntegrationRequest.displayName = 'proto.api.CreateHttpIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetHttpIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetHttpIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetHttpIntegrationRequest.displayName = 'proto.api.GetHttpIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetHttpIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetHttpIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetHttpIntegrationResponse.displayName = 'proto.api.GetHttpIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateHttpIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateHttpIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateHttpIntegrationRequest.displayName = 'proto.api.UpdateHttpIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteHttpIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteHttpIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteHttpIntegrationRequest.displayName = 'proto.api.DeleteHttpIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.InfluxDbIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.InfluxDbIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.InfluxDbIntegration.displayName = 'proto.api.InfluxDbIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateInfluxDbIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateInfluxDbIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateInfluxDbIntegrationRequest.displayName = 'proto.api.CreateInfluxDbIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetInfluxDbIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetInfluxDbIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetInfluxDbIntegrationRequest.displayName = 'proto.api.GetInfluxDbIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetInfluxDbIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetInfluxDbIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetInfluxDbIntegrationResponse.displayName = 'proto.api.GetInfluxDbIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateInfluxDbIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateInfluxDbIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateInfluxDbIntegrationRequest.displayName = 'proto.api.UpdateInfluxDbIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteInfluxDbIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteInfluxDbIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteInfluxDbIntegrationRequest.displayName = 'proto.api.DeleteInfluxDbIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ThingsBoardIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ThingsBoardIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ThingsBoardIntegration.displayName = 'proto.api.ThingsBoardIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateThingsBoardIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateThingsBoardIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateThingsBoardIntegrationRequest.displayName = 'proto.api.CreateThingsBoardIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetThingsBoardIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetThingsBoardIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetThingsBoardIntegrationRequest.displayName = 'proto.api.GetThingsBoardIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetThingsBoardIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetThingsBoardIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetThingsBoardIntegrationResponse.displayName = 'proto.api.GetThingsBoardIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateThingsBoardIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateThingsBoardIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateThingsBoardIntegrationRequest.displayName = 'proto.api.UpdateThingsBoardIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteThingsBoardIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteThingsBoardIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteThingsBoardIntegrationRequest.displayName = 'proto.api.DeleteThingsBoardIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.MyDevicesIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.MyDevicesIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.MyDevicesIntegration.displayName = 'proto.api.MyDevicesIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateMyDevicesIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateMyDevicesIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateMyDevicesIntegrationRequest.displayName = 'proto.api.CreateMyDevicesIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetMyDevicesIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetMyDevicesIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetMyDevicesIntegrationRequest.displayName = 'proto.api.GetMyDevicesIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetMyDevicesIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetMyDevicesIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetMyDevicesIntegrationResponse.displayName = 'proto.api.GetMyDevicesIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateMyDevicesIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateMyDevicesIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateMyDevicesIntegrationRequest.displayName = 'proto.api.UpdateMyDevicesIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteMyDevicesIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteMyDevicesIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteMyDevicesIntegrationRequest.displayName = 'proto.api.DeleteMyDevicesIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.LoraCloudIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.LoraCloudIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.LoraCloudIntegration.displayName = 'proto.api.LoraCloudIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.LoraCloudModemGeolocationServices = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.LoraCloudModemGeolocationServices.repeatedFields_, null); -}; -goog.inherits(proto.api.LoraCloudModemGeolocationServices, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.LoraCloudModemGeolocationServices.displayName = 'proto.api.LoraCloudModemGeolocationServices'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateLoraCloudIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateLoraCloudIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateLoraCloudIntegrationRequest.displayName = 'proto.api.CreateLoraCloudIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetLoraCloudIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetLoraCloudIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetLoraCloudIntegrationRequest.displayName = 'proto.api.GetLoraCloudIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetLoraCloudIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetLoraCloudIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetLoraCloudIntegrationResponse.displayName = 'proto.api.GetLoraCloudIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateLoraCloudIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateLoraCloudIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateLoraCloudIntegrationRequest.displayName = 'proto.api.UpdateLoraCloudIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteLoraCloudIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteLoraCloudIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteLoraCloudIntegrationRequest.displayName = 'proto.api.DeleteLoraCloudIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GcpPubSubIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GcpPubSubIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GcpPubSubIntegration.displayName = 'proto.api.GcpPubSubIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateGcpPubSubIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateGcpPubSubIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateGcpPubSubIntegrationRequest.displayName = 'proto.api.CreateGcpPubSubIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetGcpPubSubIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetGcpPubSubIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetGcpPubSubIntegrationRequest.displayName = 'proto.api.GetGcpPubSubIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetGcpPubSubIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetGcpPubSubIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetGcpPubSubIntegrationResponse.displayName = 'proto.api.GetGcpPubSubIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateGcpPubSubIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateGcpPubSubIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateGcpPubSubIntegrationRequest.displayName = 'proto.api.UpdateGcpPubSubIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteGcpPubSubIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteGcpPubSubIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteGcpPubSubIntegrationRequest.displayName = 'proto.api.DeleteGcpPubSubIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.AwsSnsIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.AwsSnsIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.AwsSnsIntegration.displayName = 'proto.api.AwsSnsIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateAwsSnsIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateAwsSnsIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateAwsSnsIntegrationRequest.displayName = 'proto.api.CreateAwsSnsIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetAwsSnsIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetAwsSnsIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetAwsSnsIntegrationRequest.displayName = 'proto.api.GetAwsSnsIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetAwsSnsIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetAwsSnsIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetAwsSnsIntegrationResponse.displayName = 'proto.api.GetAwsSnsIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateAwsSnsIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateAwsSnsIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateAwsSnsIntegrationRequest.displayName = 'proto.api.UpdateAwsSnsIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteAwsSnsIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteAwsSnsIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteAwsSnsIntegrationRequest.displayName = 'proto.api.DeleteAwsSnsIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.AzureServiceBusIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.AzureServiceBusIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.AzureServiceBusIntegration.displayName = 'proto.api.AzureServiceBusIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateAzureServiceBusIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateAzureServiceBusIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateAzureServiceBusIntegrationRequest.displayName = 'proto.api.CreateAzureServiceBusIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetAzureServiceBusIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetAzureServiceBusIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetAzureServiceBusIntegrationRequest.displayName = 'proto.api.GetAzureServiceBusIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetAzureServiceBusIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetAzureServiceBusIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetAzureServiceBusIntegrationResponse.displayName = 'proto.api.GetAzureServiceBusIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateAzureServiceBusIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateAzureServiceBusIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateAzureServiceBusIntegrationRequest.displayName = 'proto.api.UpdateAzureServiceBusIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteAzureServiceBusIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteAzureServiceBusIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteAzureServiceBusIntegrationRequest.displayName = 'proto.api.DeleteAzureServiceBusIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.PilotThingsIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.PilotThingsIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.PilotThingsIntegration.displayName = 'proto.api.PilotThingsIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreatePilotThingsIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreatePilotThingsIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreatePilotThingsIntegrationRequest.displayName = 'proto.api.CreatePilotThingsIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetPilotThingsIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetPilotThingsIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetPilotThingsIntegrationRequest.displayName = 'proto.api.GetPilotThingsIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetPilotThingsIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetPilotThingsIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetPilotThingsIntegrationResponse.displayName = 'proto.api.GetPilotThingsIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdatePilotThingsIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdatePilotThingsIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdatePilotThingsIntegrationRequest.displayName = 'proto.api.UpdatePilotThingsIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeletePilotThingsIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeletePilotThingsIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeletePilotThingsIntegrationRequest.displayName = 'proto.api.DeletePilotThingsIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.IftttIntegration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.IftttIntegration.repeatedFields_, null); -}; -goog.inherits(proto.api.IftttIntegration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.IftttIntegration.displayName = 'proto.api.IftttIntegration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateIftttIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateIftttIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateIftttIntegrationRequest.displayName = 'proto.api.CreateIftttIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetIftttIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetIftttIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetIftttIntegrationRequest.displayName = 'proto.api.GetIftttIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetIftttIntegrationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetIftttIntegrationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetIftttIntegrationResponse.displayName = 'proto.api.GetIftttIntegrationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateIftttIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateIftttIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateIftttIntegrationRequest.displayName = 'proto.api.UpdateIftttIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteIftttIntegrationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteIftttIntegrationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteIftttIntegrationRequest.displayName = 'proto.api.DeleteIftttIntegrationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GenerateMqttIntegrationClientCertificateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GenerateMqttIntegrationClientCertificateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GenerateMqttIntegrationClientCertificateRequest.displayName = 'proto.api.GenerateMqttIntegrationClientCertificateRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GenerateMqttIntegrationClientCertificateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GenerateMqttIntegrationClientCertificateResponse.displayName = 'proto.api.GenerateMqttIntegrationClientCertificateResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.Application.prototype.toObject = function(opt_includeInstance) { - return proto.api.Application.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.Application} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Application.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - tenantId: jspb.Message.getFieldWithDefault(msg, 4, ""), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.Application} - */ -proto.api.Application.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.Application; - return proto.api.Application.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.Application} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.Application} - */ -proto.api.Application.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 5: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.Application.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.Application.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.Application} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Application.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.Application.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Application} returns this - */ -proto.api.Application.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.Application.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Application} returns this - */ -proto.api.Application.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.api.Application.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Application} returns this - */ -proto.api.Application.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string tenant_id = 4; - * @return {string} - */ -proto.api.Application.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Application} returns this - */ -proto.api.Application.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * map tags = 5; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.Application.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 5, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.Application} returns this - */ -proto.api.Application.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ApplicationListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.ApplicationListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ApplicationListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ApplicationListItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 4, ""), - description: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ApplicationListItem} - */ -proto.api.ApplicationListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ApplicationListItem; - return proto.api.ApplicationListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ApplicationListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ApplicationListItem} - */ -proto.api.ApplicationListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ApplicationListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ApplicationListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ApplicationListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ApplicationListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.ApplicationListItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ApplicationListItem} returns this - */ -proto.api.ApplicationListItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.ApplicationListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.ApplicationListItem} returns this -*/ -proto.api.ApplicationListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.ApplicationListItem} returns this - */ -proto.api.ApplicationListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.ApplicationListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.ApplicationListItem.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.ApplicationListItem} returns this -*/ -proto.api.ApplicationListItem.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.ApplicationListItem} returns this - */ -proto.api.ApplicationListItem.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.ApplicationListItem.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string name = 4; - * @return {string} - */ -proto.api.ApplicationListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ApplicationListItem} returns this - */ -proto.api.ApplicationListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string description = 5; - * @return {string} - */ -proto.api.ApplicationListItem.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ApplicationListItem} returns this - */ -proto.api.ApplicationListItem.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateApplicationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateApplicationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateApplicationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateApplicationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - application: (f = msg.getApplication()) && proto.api.Application.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateApplicationRequest} - */ -proto.api.CreateApplicationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateApplicationRequest; - return proto.api.CreateApplicationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateApplicationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateApplicationRequest} - */ -proto.api.CreateApplicationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Application; - reader.readMessage(value,proto.api.Application.deserializeBinaryFromReader); - msg.setApplication(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateApplicationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateApplicationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateApplicationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateApplicationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplication(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Application.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Application application = 1; - * @return {?proto.api.Application} - */ -proto.api.CreateApplicationRequest.prototype.getApplication = function() { - return /** @type{?proto.api.Application} */ ( - jspb.Message.getWrapperField(this, proto.api.Application, 1)); -}; - - -/** - * @param {?proto.api.Application|undefined} value - * @return {!proto.api.CreateApplicationRequest} returns this -*/ -proto.api.CreateApplicationRequest.prototype.setApplication = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateApplicationRequest} returns this - */ -proto.api.CreateApplicationRequest.prototype.clearApplication = function() { - return this.setApplication(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateApplicationRequest.prototype.hasApplication = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateApplicationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateApplicationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateApplicationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateApplicationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateApplicationResponse} - */ -proto.api.CreateApplicationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateApplicationResponse; - return proto.api.CreateApplicationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateApplicationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateApplicationResponse} - */ -proto.api.CreateApplicationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateApplicationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateApplicationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateApplicationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateApplicationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.CreateApplicationResponse.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.CreateApplicationResponse} returns this - */ -proto.api.CreateApplicationResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetApplicationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetApplicationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetApplicationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetApplicationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetApplicationRequest} - */ -proto.api.GetApplicationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetApplicationRequest; - return proto.api.GetApplicationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetApplicationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetApplicationRequest} - */ -proto.api.GetApplicationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetApplicationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetApplicationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetApplicationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetApplicationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.GetApplicationRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetApplicationRequest} returns this - */ -proto.api.GetApplicationRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.GetApplicationResponse.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetApplicationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetApplicationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetApplicationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetApplicationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - application: (f = msg.getApplication()) && proto.api.Application.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - measurementKeysList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetApplicationResponse} - */ -proto.api.GetApplicationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetApplicationResponse; - return proto.api.GetApplicationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetApplicationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetApplicationResponse} - */ -proto.api.GetApplicationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Application; - reader.readMessage(value,proto.api.Application.deserializeBinaryFromReader); - msg.setApplication(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addMeasurementKeys(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetApplicationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetApplicationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetApplicationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetApplicationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplication(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Application.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getMeasurementKeysList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } -}; - - -/** - * optional Application application = 1; - * @return {?proto.api.Application} - */ -proto.api.GetApplicationResponse.prototype.getApplication = function() { - return /** @type{?proto.api.Application} */ ( - jspb.Message.getWrapperField(this, proto.api.Application, 1)); -}; - - -/** - * @param {?proto.api.Application|undefined} value - * @return {!proto.api.GetApplicationResponse} returns this -*/ -proto.api.GetApplicationResponse.prototype.setApplication = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetApplicationResponse} returns this - */ -proto.api.GetApplicationResponse.prototype.clearApplication = function() { - return this.setApplication(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetApplicationResponse.prototype.hasApplication = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetApplicationResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetApplicationResponse} returns this -*/ -proto.api.GetApplicationResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetApplicationResponse} returns this - */ -proto.api.GetApplicationResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetApplicationResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetApplicationResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetApplicationResponse} returns this -*/ -proto.api.GetApplicationResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetApplicationResponse} returns this - */ -proto.api.GetApplicationResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetApplicationResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * repeated string measurement_keys = 4; - * @return {!Array} - */ -proto.api.GetApplicationResponse.prototype.getMeasurementKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.GetApplicationResponse} returns this - */ -proto.api.GetApplicationResponse.prototype.setMeasurementKeysList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.api.GetApplicationResponse} returns this - */ -proto.api.GetApplicationResponse.prototype.addMeasurementKeys = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.GetApplicationResponse} returns this - */ -proto.api.GetApplicationResponse.prototype.clearMeasurementKeysList = function() { - return this.setMeasurementKeysList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateApplicationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateApplicationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateApplicationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateApplicationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - application: (f = msg.getApplication()) && proto.api.Application.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateApplicationRequest} - */ -proto.api.UpdateApplicationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateApplicationRequest; - return proto.api.UpdateApplicationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateApplicationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateApplicationRequest} - */ -proto.api.UpdateApplicationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Application; - reader.readMessage(value,proto.api.Application.deserializeBinaryFromReader); - msg.setApplication(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateApplicationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateApplicationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateApplicationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateApplicationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplication(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Application.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Application application = 1; - * @return {?proto.api.Application} - */ -proto.api.UpdateApplicationRequest.prototype.getApplication = function() { - return /** @type{?proto.api.Application} */ ( - jspb.Message.getWrapperField(this, proto.api.Application, 1)); -}; - - -/** - * @param {?proto.api.Application|undefined} value - * @return {!proto.api.UpdateApplicationRequest} returns this -*/ -proto.api.UpdateApplicationRequest.prototype.setApplication = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateApplicationRequest} returns this - */ -proto.api.UpdateApplicationRequest.prototype.clearApplication = function() { - return this.setApplication(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateApplicationRequest.prototype.hasApplication = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteApplicationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteApplicationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteApplicationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteApplicationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteApplicationRequest} - */ -proto.api.DeleteApplicationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteApplicationRequest; - return proto.api.DeleteApplicationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteApplicationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteApplicationRequest} - */ -proto.api.DeleteApplicationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteApplicationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteApplicationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteApplicationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteApplicationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeleteApplicationRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteApplicationRequest} returns this - */ -proto.api.DeleteApplicationRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListApplicationsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListApplicationsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListApplicationsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListApplicationsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - search: jspb.Message.getFieldWithDefault(msg, 3, ""), - tenantId: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListApplicationsRequest} - */ -proto.api.ListApplicationsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListApplicationsRequest; - return proto.api.ListApplicationsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListApplicationsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListApplicationsRequest} - */ -proto.api.ListApplicationsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSearch(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListApplicationsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListApplicationsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListApplicationsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListApplicationsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getSearch(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListApplicationsRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListApplicationsRequest} returns this - */ -proto.api.ListApplicationsRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListApplicationsRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListApplicationsRequest} returns this - */ -proto.api.ListApplicationsRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string search = 3; - * @return {string} - */ -proto.api.ListApplicationsRequest.prototype.getSearch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListApplicationsRequest} returns this - */ -proto.api.ListApplicationsRequest.prototype.setSearch = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string tenant_id = 4; - * @return {string} - */ -proto.api.ListApplicationsRequest.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListApplicationsRequest} returns this - */ -proto.api.ListApplicationsRequest.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListApplicationsResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListApplicationsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListApplicationsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListApplicationsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListApplicationsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.ApplicationListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListApplicationsResponse} - */ -proto.api.ListApplicationsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListApplicationsResponse; - return proto.api.ListApplicationsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListApplicationsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListApplicationsResponse} - */ -proto.api.ListApplicationsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.ApplicationListItem; - reader.readMessage(value,proto.api.ApplicationListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListApplicationsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListApplicationsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListApplicationsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListApplicationsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.ApplicationListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListApplicationsResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListApplicationsResponse} returns this - */ -proto.api.ListApplicationsResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated ApplicationListItem result = 2; - * @return {!Array} - */ -proto.api.ListApplicationsResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.ApplicationListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListApplicationsResponse} returns this -*/ -proto.api.ListApplicationsResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.ApplicationListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.ApplicationListItem} - */ -proto.api.ListApplicationsResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.ApplicationListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListApplicationsResponse} returns this - */ -proto.api.ListApplicationsResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListIntegrationsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListIntegrationsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListIntegrationsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListIntegrationsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListIntegrationsRequest} - */ -proto.api.ListIntegrationsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListIntegrationsRequest; - return proto.api.ListIntegrationsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListIntegrationsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListIntegrationsRequest} - */ -proto.api.ListIntegrationsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListIntegrationsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListIntegrationsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListIntegrationsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListIntegrationsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.ListIntegrationsRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListIntegrationsRequest} returns this - */ -proto.api.ListIntegrationsRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.IntegrationListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.IntegrationListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.IntegrationListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.IntegrationListItem.toObject = function(includeInstance, msg) { - var f, obj = { - kind: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.IntegrationListItem} - */ -proto.api.IntegrationListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.IntegrationListItem; - return proto.api.IntegrationListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.IntegrationListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.IntegrationListItem} - */ -proto.api.IntegrationListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.api.IntegrationKind} */ (reader.readEnum()); - msg.setKind(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.IntegrationListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.IntegrationListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.IntegrationListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.IntegrationListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKind(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } -}; - - -/** - * optional IntegrationKind kind = 1; - * @return {!proto.api.IntegrationKind} - */ -proto.api.IntegrationListItem.prototype.getKind = function() { - return /** @type {!proto.api.IntegrationKind} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.api.IntegrationKind} value - * @return {!proto.api.IntegrationListItem} returns this - */ -proto.api.IntegrationListItem.prototype.setKind = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListIntegrationsResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListIntegrationsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListIntegrationsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListIntegrationsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListIntegrationsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.IntegrationListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListIntegrationsResponse} - */ -proto.api.ListIntegrationsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListIntegrationsResponse; - return proto.api.ListIntegrationsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListIntegrationsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListIntegrationsResponse} - */ -proto.api.ListIntegrationsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.IntegrationListItem; - reader.readMessage(value,proto.api.IntegrationListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListIntegrationsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListIntegrationsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListIntegrationsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListIntegrationsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.IntegrationListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListIntegrationsResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListIntegrationsResponse} returns this - */ -proto.api.ListIntegrationsResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated IntegrationListItem result = 2; - * @return {!Array} - */ -proto.api.ListIntegrationsResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.IntegrationListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListIntegrationsResponse} returns this -*/ -proto.api.ListIntegrationsResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.IntegrationListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.IntegrationListItem} - */ -proto.api.ListIntegrationsResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.IntegrationListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListIntegrationsResponse} returns this - */ -proto.api.ListIntegrationsResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.HttpIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.HttpIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.HttpIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.HttpIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, undefined) : [], - encoding: jspb.Message.getFieldWithDefault(msg, 3, 0), - eventEndpointUrl: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.HttpIntegration} - */ -proto.api.HttpIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.HttpIntegration; - return proto.api.HttpIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.HttpIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.HttpIntegration} - */ -proto.api.HttpIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = msg.getHeadersMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 3: - var value = /** @type {!proto.api.Encoding} */ (reader.readEnum()); - msg.setEncoding(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setEventEndpointUrl(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.HttpIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.HttpIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.HttpIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.HttpIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHeadersMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getEncoding(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getEventEndpointUrl(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.HttpIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.HttpIntegration} returns this - */ -proto.api.HttpIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * map headers = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.HttpIntegration.prototype.getHeadersMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.HttpIntegration} returns this - */ -proto.api.HttpIntegration.prototype.clearHeadersMap = function() { - this.getHeadersMap().clear(); - return this;}; - - -/** - * optional Encoding encoding = 3; - * @return {!proto.api.Encoding} - */ -proto.api.HttpIntegration.prototype.getEncoding = function() { - return /** @type {!proto.api.Encoding} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.api.Encoding} value - * @return {!proto.api.HttpIntegration} returns this - */ -proto.api.HttpIntegration.prototype.setEncoding = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional string event_endpoint_url = 4; - * @return {string} - */ -proto.api.HttpIntegration.prototype.getEventEndpointUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.HttpIntegration} returns this - */ -proto.api.HttpIntegration.prototype.setEventEndpointUrl = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateHttpIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateHttpIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateHttpIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateHttpIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.HttpIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateHttpIntegrationRequest} - */ -proto.api.CreateHttpIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateHttpIntegrationRequest; - return proto.api.CreateHttpIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateHttpIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateHttpIntegrationRequest} - */ -proto.api.CreateHttpIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.HttpIntegration; - reader.readMessage(value,proto.api.HttpIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateHttpIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateHttpIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateHttpIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateHttpIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.HttpIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional HttpIntegration integration = 1; - * @return {?proto.api.HttpIntegration} - */ -proto.api.CreateHttpIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.HttpIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.HttpIntegration, 1)); -}; - - -/** - * @param {?proto.api.HttpIntegration|undefined} value - * @return {!proto.api.CreateHttpIntegrationRequest} returns this -*/ -proto.api.CreateHttpIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateHttpIntegrationRequest} returns this - */ -proto.api.CreateHttpIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateHttpIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetHttpIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetHttpIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetHttpIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetHttpIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetHttpIntegrationRequest} - */ -proto.api.GetHttpIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetHttpIntegrationRequest; - return proto.api.GetHttpIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetHttpIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetHttpIntegrationRequest} - */ -proto.api.GetHttpIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetHttpIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetHttpIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetHttpIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetHttpIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetHttpIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetHttpIntegrationRequest} returns this - */ -proto.api.GetHttpIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetHttpIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetHttpIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetHttpIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetHttpIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.HttpIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetHttpIntegrationResponse} - */ -proto.api.GetHttpIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetHttpIntegrationResponse; - return proto.api.GetHttpIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetHttpIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetHttpIntegrationResponse} - */ -proto.api.GetHttpIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.HttpIntegration; - reader.readMessage(value,proto.api.HttpIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetHttpIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetHttpIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetHttpIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetHttpIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.HttpIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional HttpIntegration integration = 1; - * @return {?proto.api.HttpIntegration} - */ -proto.api.GetHttpIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.HttpIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.HttpIntegration, 1)); -}; - - -/** - * @param {?proto.api.HttpIntegration|undefined} value - * @return {!proto.api.GetHttpIntegrationResponse} returns this -*/ -proto.api.GetHttpIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetHttpIntegrationResponse} returns this - */ -proto.api.GetHttpIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetHttpIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateHttpIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateHttpIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateHttpIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateHttpIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.HttpIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateHttpIntegrationRequest} - */ -proto.api.UpdateHttpIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateHttpIntegrationRequest; - return proto.api.UpdateHttpIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateHttpIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateHttpIntegrationRequest} - */ -proto.api.UpdateHttpIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.HttpIntegration; - reader.readMessage(value,proto.api.HttpIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateHttpIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateHttpIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateHttpIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateHttpIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.HttpIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional HttpIntegration integration = 1; - * @return {?proto.api.HttpIntegration} - */ -proto.api.UpdateHttpIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.HttpIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.HttpIntegration, 1)); -}; - - -/** - * @param {?proto.api.HttpIntegration|undefined} value - * @return {!proto.api.UpdateHttpIntegrationRequest} returns this -*/ -proto.api.UpdateHttpIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateHttpIntegrationRequest} returns this - */ -proto.api.UpdateHttpIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateHttpIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteHttpIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteHttpIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteHttpIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteHttpIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteHttpIntegrationRequest} - */ -proto.api.DeleteHttpIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteHttpIntegrationRequest; - return proto.api.DeleteHttpIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteHttpIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteHttpIntegrationRequest} - */ -proto.api.DeleteHttpIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteHttpIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteHttpIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteHttpIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteHttpIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeleteHttpIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteHttpIntegrationRequest} returns this - */ -proto.api.DeleteHttpIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.InfluxDbIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.InfluxDbIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.InfluxDbIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.InfluxDbIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - endpoint: jspb.Message.getFieldWithDefault(msg, 2, ""), - db: jspb.Message.getFieldWithDefault(msg, 3, ""), - username: jspb.Message.getFieldWithDefault(msg, 4, ""), - password: jspb.Message.getFieldWithDefault(msg, 5, ""), - retentionPolicyName: jspb.Message.getFieldWithDefault(msg, 6, ""), - precision: jspb.Message.getFieldWithDefault(msg, 7, 0), - version: jspb.Message.getFieldWithDefault(msg, 8, 0), - token: jspb.Message.getFieldWithDefault(msg, 9, ""), - organization: jspb.Message.getFieldWithDefault(msg, 10, ""), - bucket: jspb.Message.getFieldWithDefault(msg, 11, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.InfluxDbIntegration} - */ -proto.api.InfluxDbIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.InfluxDbIntegration; - return proto.api.InfluxDbIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.InfluxDbIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.InfluxDbIntegration} - */ -proto.api.InfluxDbIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setEndpoint(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDb(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUsername(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setRetentionPolicyName(value); - break; - case 7: - var value = /** @type {!proto.api.InfluxDbPrecision} */ (reader.readEnum()); - msg.setPrecision(value); - break; - case 8: - var value = /** @type {!proto.api.InfluxDbVersion} */ (reader.readEnum()); - msg.setVersion(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setToken(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setOrganization(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setBucket(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.InfluxDbIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.InfluxDbIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.InfluxDbIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.InfluxDbIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEndpoint(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDb(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getUsername(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getRetentionPolicyName(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getPrecision(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getVersion(); - if (f !== 0.0) { - writer.writeEnum( - 8, - f - ); - } - f = message.getToken(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getOrganization(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getBucket(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.InfluxDbIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string endpoint = 2; - * @return {string} - */ -proto.api.InfluxDbIntegration.prototype.getEndpoint = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setEndpoint = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string db = 3; - * @return {string} - */ -proto.api.InfluxDbIntegration.prototype.getDb = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setDb = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string username = 4; - * @return {string} - */ -proto.api.InfluxDbIntegration.prototype.getUsername = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setUsername = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string password = 5; - * @return {string} - */ -proto.api.InfluxDbIntegration.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setPassword = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string retention_policy_name = 6; - * @return {string} - */ -proto.api.InfluxDbIntegration.prototype.getRetentionPolicyName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setRetentionPolicyName = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional InfluxDbPrecision precision = 7; - * @return {!proto.api.InfluxDbPrecision} - */ -proto.api.InfluxDbIntegration.prototype.getPrecision = function() { - return /** @type {!proto.api.InfluxDbPrecision} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.api.InfluxDbPrecision} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setPrecision = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); -}; - - -/** - * optional InfluxDbVersion version = 8; - * @return {!proto.api.InfluxDbVersion} - */ -proto.api.InfluxDbIntegration.prototype.getVersion = function() { - return /** @type {!proto.api.InfluxDbVersion} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {!proto.api.InfluxDbVersion} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setVersion = function(value) { - return jspb.Message.setProto3EnumField(this, 8, value); -}; - - -/** - * optional string token = 9; - * @return {string} - */ -proto.api.InfluxDbIntegration.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setToken = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional string organization = 10; - * @return {string} - */ -proto.api.InfluxDbIntegration.prototype.getOrganization = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setOrganization = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); -}; - - -/** - * optional string bucket = 11; - * @return {string} - */ -proto.api.InfluxDbIntegration.prototype.getBucket = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.InfluxDbIntegration} returns this - */ -proto.api.InfluxDbIntegration.prototype.setBucket = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateInfluxDbIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateInfluxDbIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateInfluxDbIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateInfluxDbIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.InfluxDbIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateInfluxDbIntegrationRequest} - */ -proto.api.CreateInfluxDbIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateInfluxDbIntegrationRequest; - return proto.api.CreateInfluxDbIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateInfluxDbIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateInfluxDbIntegrationRequest} - */ -proto.api.CreateInfluxDbIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.InfluxDbIntegration; - reader.readMessage(value,proto.api.InfluxDbIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateInfluxDbIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateInfluxDbIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateInfluxDbIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateInfluxDbIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.InfluxDbIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional InfluxDbIntegration integration = 1; - * @return {?proto.api.InfluxDbIntegration} - */ -proto.api.CreateInfluxDbIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.InfluxDbIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.InfluxDbIntegration, 1)); -}; - - -/** - * @param {?proto.api.InfluxDbIntegration|undefined} value - * @return {!proto.api.CreateInfluxDbIntegrationRequest} returns this -*/ -proto.api.CreateInfluxDbIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateInfluxDbIntegrationRequest} returns this - */ -proto.api.CreateInfluxDbIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateInfluxDbIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetInfluxDbIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetInfluxDbIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetInfluxDbIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetInfluxDbIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetInfluxDbIntegrationRequest} - */ -proto.api.GetInfluxDbIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetInfluxDbIntegrationRequest; - return proto.api.GetInfluxDbIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetInfluxDbIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetInfluxDbIntegrationRequest} - */ -proto.api.GetInfluxDbIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetInfluxDbIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetInfluxDbIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetInfluxDbIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetInfluxDbIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetInfluxDbIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetInfluxDbIntegrationRequest} returns this - */ -proto.api.GetInfluxDbIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetInfluxDbIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetInfluxDbIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetInfluxDbIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetInfluxDbIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.InfluxDbIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetInfluxDbIntegrationResponse} - */ -proto.api.GetInfluxDbIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetInfluxDbIntegrationResponse; - return proto.api.GetInfluxDbIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetInfluxDbIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetInfluxDbIntegrationResponse} - */ -proto.api.GetInfluxDbIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.InfluxDbIntegration; - reader.readMessage(value,proto.api.InfluxDbIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetInfluxDbIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetInfluxDbIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetInfluxDbIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetInfluxDbIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.InfluxDbIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional InfluxDbIntegration integration = 1; - * @return {?proto.api.InfluxDbIntegration} - */ -proto.api.GetInfluxDbIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.InfluxDbIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.InfluxDbIntegration, 1)); -}; - - -/** - * @param {?proto.api.InfluxDbIntegration|undefined} value - * @return {!proto.api.GetInfluxDbIntegrationResponse} returns this -*/ -proto.api.GetInfluxDbIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetInfluxDbIntegrationResponse} returns this - */ -proto.api.GetInfluxDbIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetInfluxDbIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateInfluxDbIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateInfluxDbIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateInfluxDbIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateInfluxDbIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.InfluxDbIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateInfluxDbIntegrationRequest} - */ -proto.api.UpdateInfluxDbIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateInfluxDbIntegrationRequest; - return proto.api.UpdateInfluxDbIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateInfluxDbIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateInfluxDbIntegrationRequest} - */ -proto.api.UpdateInfluxDbIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.InfluxDbIntegration; - reader.readMessage(value,proto.api.InfluxDbIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateInfluxDbIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateInfluxDbIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateInfluxDbIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateInfluxDbIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.InfluxDbIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional InfluxDbIntegration integration = 1; - * @return {?proto.api.InfluxDbIntegration} - */ -proto.api.UpdateInfluxDbIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.InfluxDbIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.InfluxDbIntegration, 1)); -}; - - -/** - * @param {?proto.api.InfluxDbIntegration|undefined} value - * @return {!proto.api.UpdateInfluxDbIntegrationRequest} returns this -*/ -proto.api.UpdateInfluxDbIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateInfluxDbIntegrationRequest} returns this - */ -proto.api.UpdateInfluxDbIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateInfluxDbIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteInfluxDbIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteInfluxDbIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteInfluxDbIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteInfluxDbIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteInfluxDbIntegrationRequest} - */ -proto.api.DeleteInfluxDbIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteInfluxDbIntegrationRequest; - return proto.api.DeleteInfluxDbIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteInfluxDbIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteInfluxDbIntegrationRequest} - */ -proto.api.DeleteInfluxDbIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteInfluxDbIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteInfluxDbIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteInfluxDbIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteInfluxDbIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeleteInfluxDbIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteInfluxDbIntegrationRequest} returns this - */ -proto.api.DeleteInfluxDbIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ThingsBoardIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.ThingsBoardIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ThingsBoardIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ThingsBoardIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - server: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ThingsBoardIntegration} - */ -proto.api.ThingsBoardIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ThingsBoardIntegration; - return proto.api.ThingsBoardIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ThingsBoardIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ThingsBoardIntegration} - */ -proto.api.ThingsBoardIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setServer(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ThingsBoardIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ThingsBoardIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ThingsBoardIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ThingsBoardIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getServer(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.ThingsBoardIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ThingsBoardIntegration} returns this - */ -proto.api.ThingsBoardIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string server = 2; - * @return {string} - */ -proto.api.ThingsBoardIntegration.prototype.getServer = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ThingsBoardIntegration} returns this - */ -proto.api.ThingsBoardIntegration.prototype.setServer = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateThingsBoardIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateThingsBoardIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateThingsBoardIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateThingsBoardIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.ThingsBoardIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateThingsBoardIntegrationRequest} - */ -proto.api.CreateThingsBoardIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateThingsBoardIntegrationRequest; - return proto.api.CreateThingsBoardIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateThingsBoardIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateThingsBoardIntegrationRequest} - */ -proto.api.CreateThingsBoardIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.ThingsBoardIntegration; - reader.readMessage(value,proto.api.ThingsBoardIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateThingsBoardIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateThingsBoardIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateThingsBoardIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateThingsBoardIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.ThingsBoardIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ThingsBoardIntegration integration = 1; - * @return {?proto.api.ThingsBoardIntegration} - */ -proto.api.CreateThingsBoardIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.ThingsBoardIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.ThingsBoardIntegration, 1)); -}; - - -/** - * @param {?proto.api.ThingsBoardIntegration|undefined} value - * @return {!proto.api.CreateThingsBoardIntegrationRequest} returns this -*/ -proto.api.CreateThingsBoardIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateThingsBoardIntegrationRequest} returns this - */ -proto.api.CreateThingsBoardIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateThingsBoardIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetThingsBoardIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetThingsBoardIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetThingsBoardIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetThingsBoardIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetThingsBoardIntegrationRequest} - */ -proto.api.GetThingsBoardIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetThingsBoardIntegrationRequest; - return proto.api.GetThingsBoardIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetThingsBoardIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetThingsBoardIntegrationRequest} - */ -proto.api.GetThingsBoardIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetThingsBoardIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetThingsBoardIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetThingsBoardIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetThingsBoardIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetThingsBoardIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetThingsBoardIntegrationRequest} returns this - */ -proto.api.GetThingsBoardIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetThingsBoardIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetThingsBoardIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetThingsBoardIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetThingsBoardIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.ThingsBoardIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetThingsBoardIntegrationResponse} - */ -proto.api.GetThingsBoardIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetThingsBoardIntegrationResponse; - return proto.api.GetThingsBoardIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetThingsBoardIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetThingsBoardIntegrationResponse} - */ -proto.api.GetThingsBoardIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.ThingsBoardIntegration; - reader.readMessage(value,proto.api.ThingsBoardIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetThingsBoardIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetThingsBoardIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetThingsBoardIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetThingsBoardIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.ThingsBoardIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ThingsBoardIntegration integration = 1; - * @return {?proto.api.ThingsBoardIntegration} - */ -proto.api.GetThingsBoardIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.ThingsBoardIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.ThingsBoardIntegration, 1)); -}; - - -/** - * @param {?proto.api.ThingsBoardIntegration|undefined} value - * @return {!proto.api.GetThingsBoardIntegrationResponse} returns this -*/ -proto.api.GetThingsBoardIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetThingsBoardIntegrationResponse} returns this - */ -proto.api.GetThingsBoardIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetThingsBoardIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateThingsBoardIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateThingsBoardIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateThingsBoardIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateThingsBoardIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.ThingsBoardIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateThingsBoardIntegrationRequest} - */ -proto.api.UpdateThingsBoardIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateThingsBoardIntegrationRequest; - return proto.api.UpdateThingsBoardIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateThingsBoardIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateThingsBoardIntegrationRequest} - */ -proto.api.UpdateThingsBoardIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.ThingsBoardIntegration; - reader.readMessage(value,proto.api.ThingsBoardIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateThingsBoardIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateThingsBoardIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateThingsBoardIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateThingsBoardIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.ThingsBoardIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ThingsBoardIntegration integration = 1; - * @return {?proto.api.ThingsBoardIntegration} - */ -proto.api.UpdateThingsBoardIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.ThingsBoardIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.ThingsBoardIntegration, 1)); -}; - - -/** - * @param {?proto.api.ThingsBoardIntegration|undefined} value - * @return {!proto.api.UpdateThingsBoardIntegrationRequest} returns this -*/ -proto.api.UpdateThingsBoardIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateThingsBoardIntegrationRequest} returns this - */ -proto.api.UpdateThingsBoardIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateThingsBoardIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteThingsBoardIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteThingsBoardIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteThingsBoardIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteThingsBoardIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteThingsBoardIntegrationRequest} - */ -proto.api.DeleteThingsBoardIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteThingsBoardIntegrationRequest; - return proto.api.DeleteThingsBoardIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteThingsBoardIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteThingsBoardIntegrationRequest} - */ -proto.api.DeleteThingsBoardIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteThingsBoardIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteThingsBoardIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteThingsBoardIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteThingsBoardIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeleteThingsBoardIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteThingsBoardIntegrationRequest} returns this - */ -proto.api.DeleteThingsBoardIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.MyDevicesIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.MyDevicesIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.MyDevicesIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.MyDevicesIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - endpoint: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.MyDevicesIntegration} - */ -proto.api.MyDevicesIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.MyDevicesIntegration; - return proto.api.MyDevicesIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.MyDevicesIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.MyDevicesIntegration} - */ -proto.api.MyDevicesIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setEndpoint(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.MyDevicesIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.MyDevicesIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.MyDevicesIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.MyDevicesIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEndpoint(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.MyDevicesIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MyDevicesIntegration} returns this - */ -proto.api.MyDevicesIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string endpoint = 2; - * @return {string} - */ -proto.api.MyDevicesIntegration.prototype.getEndpoint = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MyDevicesIntegration} returns this - */ -proto.api.MyDevicesIntegration.prototype.setEndpoint = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateMyDevicesIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateMyDevicesIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateMyDevicesIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateMyDevicesIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.MyDevicesIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateMyDevicesIntegrationRequest} - */ -proto.api.CreateMyDevicesIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateMyDevicesIntegrationRequest; - return proto.api.CreateMyDevicesIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateMyDevicesIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateMyDevicesIntegrationRequest} - */ -proto.api.CreateMyDevicesIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.MyDevicesIntegration; - reader.readMessage(value,proto.api.MyDevicesIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateMyDevicesIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateMyDevicesIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateMyDevicesIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateMyDevicesIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.MyDevicesIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional MyDevicesIntegration integration = 1; - * @return {?proto.api.MyDevicesIntegration} - */ -proto.api.CreateMyDevicesIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.MyDevicesIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.MyDevicesIntegration, 1)); -}; - - -/** - * @param {?proto.api.MyDevicesIntegration|undefined} value - * @return {!proto.api.CreateMyDevicesIntegrationRequest} returns this -*/ -proto.api.CreateMyDevicesIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateMyDevicesIntegrationRequest} returns this - */ -proto.api.CreateMyDevicesIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateMyDevicesIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetMyDevicesIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetMyDevicesIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetMyDevicesIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetMyDevicesIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetMyDevicesIntegrationRequest} - */ -proto.api.GetMyDevicesIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetMyDevicesIntegrationRequest; - return proto.api.GetMyDevicesIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetMyDevicesIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetMyDevicesIntegrationRequest} - */ -proto.api.GetMyDevicesIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetMyDevicesIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetMyDevicesIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetMyDevicesIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetMyDevicesIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetMyDevicesIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetMyDevicesIntegrationRequest} returns this - */ -proto.api.GetMyDevicesIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetMyDevicesIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetMyDevicesIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetMyDevicesIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetMyDevicesIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.MyDevicesIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetMyDevicesIntegrationResponse} - */ -proto.api.GetMyDevicesIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetMyDevicesIntegrationResponse; - return proto.api.GetMyDevicesIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetMyDevicesIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetMyDevicesIntegrationResponse} - */ -proto.api.GetMyDevicesIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.MyDevicesIntegration; - reader.readMessage(value,proto.api.MyDevicesIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetMyDevicesIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetMyDevicesIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetMyDevicesIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetMyDevicesIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.MyDevicesIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional MyDevicesIntegration integration = 1; - * @return {?proto.api.MyDevicesIntegration} - */ -proto.api.GetMyDevicesIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.MyDevicesIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.MyDevicesIntegration, 1)); -}; - - -/** - * @param {?proto.api.MyDevicesIntegration|undefined} value - * @return {!proto.api.GetMyDevicesIntegrationResponse} returns this -*/ -proto.api.GetMyDevicesIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetMyDevicesIntegrationResponse} returns this - */ -proto.api.GetMyDevicesIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetMyDevicesIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateMyDevicesIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateMyDevicesIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateMyDevicesIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateMyDevicesIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.MyDevicesIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateMyDevicesIntegrationRequest} - */ -proto.api.UpdateMyDevicesIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateMyDevicesIntegrationRequest; - return proto.api.UpdateMyDevicesIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateMyDevicesIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateMyDevicesIntegrationRequest} - */ -proto.api.UpdateMyDevicesIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.MyDevicesIntegration; - reader.readMessage(value,proto.api.MyDevicesIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateMyDevicesIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateMyDevicesIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateMyDevicesIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateMyDevicesIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.MyDevicesIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional MyDevicesIntegration integration = 1; - * @return {?proto.api.MyDevicesIntegration} - */ -proto.api.UpdateMyDevicesIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.MyDevicesIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.MyDevicesIntegration, 1)); -}; - - -/** - * @param {?proto.api.MyDevicesIntegration|undefined} value - * @return {!proto.api.UpdateMyDevicesIntegrationRequest} returns this -*/ -proto.api.UpdateMyDevicesIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateMyDevicesIntegrationRequest} returns this - */ -proto.api.UpdateMyDevicesIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateMyDevicesIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteMyDevicesIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteMyDevicesIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteMyDevicesIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteMyDevicesIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteMyDevicesIntegrationRequest} - */ -proto.api.DeleteMyDevicesIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteMyDevicesIntegrationRequest; - return proto.api.DeleteMyDevicesIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteMyDevicesIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteMyDevicesIntegrationRequest} - */ -proto.api.DeleteMyDevicesIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteMyDevicesIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteMyDevicesIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteMyDevicesIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteMyDevicesIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeleteMyDevicesIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteMyDevicesIntegrationRequest} returns this - */ -proto.api.DeleteMyDevicesIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.LoraCloudIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.LoraCloudIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.LoraCloudIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LoraCloudIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - modemGeolocationServices: (f = msg.getModemGeolocationServices()) && proto.api.LoraCloudModemGeolocationServices.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.LoraCloudIntegration} - */ -proto.api.LoraCloudIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.LoraCloudIntegration; - return proto.api.LoraCloudIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.LoraCloudIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.LoraCloudIntegration} - */ -proto.api.LoraCloudIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = new proto.api.LoraCloudModemGeolocationServices; - reader.readMessage(value,proto.api.LoraCloudModemGeolocationServices.deserializeBinaryFromReader); - msg.setModemGeolocationServices(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.LoraCloudIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.LoraCloudIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.LoraCloudIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LoraCloudIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getModemGeolocationServices(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.api.LoraCloudModemGeolocationServices.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.LoraCloudIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LoraCloudIntegration} returns this - */ -proto.api.LoraCloudIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional LoraCloudModemGeolocationServices modem_geolocation_services = 2; - * @return {?proto.api.LoraCloudModemGeolocationServices} - */ -proto.api.LoraCloudIntegration.prototype.getModemGeolocationServices = function() { - return /** @type{?proto.api.LoraCloudModemGeolocationServices} */ ( - jspb.Message.getWrapperField(this, proto.api.LoraCloudModemGeolocationServices, 2)); -}; - - -/** - * @param {?proto.api.LoraCloudModemGeolocationServices|undefined} value - * @return {!proto.api.LoraCloudIntegration} returns this -*/ -proto.api.LoraCloudIntegration.prototype.setModemGeolocationServices = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.LoraCloudIntegration} returns this - */ -proto.api.LoraCloudIntegration.prototype.clearModemGeolocationServices = function() { - return this.setModemGeolocationServices(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.LoraCloudIntegration.prototype.hasModemGeolocationServices = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.LoraCloudModemGeolocationServices.repeatedFields_ = [16]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.toObject = function(opt_includeInstance) { - return proto.api.LoraCloudModemGeolocationServices.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.LoraCloudModemGeolocationServices} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LoraCloudModemGeolocationServices.toObject = function(includeInstance, msg) { - var f, obj = { - token: jspb.Message.getFieldWithDefault(msg, 1, ""), - modemEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - forwardFPortsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? undefined : f, - gnssUseRxTime: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - gnssUseGatewayLocation: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), - parseTlv: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - geolocationBufferTtl: jspb.Message.getFieldWithDefault(msg, 7, 0), - geolocationMinBufferSize: jspb.Message.getFieldWithDefault(msg, 8, 0), - geolocationTdoa: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - geolocationRssi: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - geolocationGnss: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), - geolocationGnssPayloadField: jspb.Message.getFieldWithDefault(msg, 12, ""), - geolocationGnssUseRxTime: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), - geolocationWifi: jspb.Message.getBooleanFieldWithDefault(msg, 14, false), - geolocationWifiPayloadField: jspb.Message.getFieldWithDefault(msg, 15, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.LoraCloudModemGeolocationServices} - */ -proto.api.LoraCloudModemGeolocationServices.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.LoraCloudModemGeolocationServices; - return proto.api.LoraCloudModemGeolocationServices.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.LoraCloudModemGeolocationServices} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.LoraCloudModemGeolocationServices} - */ -proto.api.LoraCloudModemGeolocationServices.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setToken(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setModemEnabled(value); - break; - case 16: - var value = /** @type {!Array} */ (reader.readPackedUint32()); - msg.setForwardFPortsList(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setGnssUseRxTime(value); - break; - case 17: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setGnssUseGatewayLocation(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setParseTlv(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setGeolocationBufferTtl(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setGeolocationMinBufferSize(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setGeolocationTdoa(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setGeolocationRssi(value); - break; - case 11: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setGeolocationGnss(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setGeolocationGnssPayloadField(value); - break; - case 13: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setGeolocationGnssUseRxTime(value); - break; - case 14: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setGeolocationWifi(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.setGeolocationWifiPayloadField(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.LoraCloudModemGeolocationServices.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.LoraCloudModemGeolocationServices} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LoraCloudModemGeolocationServices.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getToken(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getModemEnabled(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getForwardFPortsList(); - if (f.length > 0) { - writer.writePackedUint32( - 16, - f - ); - } - f = message.getGnssUseRxTime(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getGnssUseGatewayLocation(); - if (f) { - writer.writeBool( - 17, - f - ); - } - f = message.getParseTlv(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getGeolocationBufferTtl(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getGeolocationMinBufferSize(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getGeolocationTdoa(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getGeolocationRssi(); - if (f) { - writer.writeBool( - 10, - f - ); - } - f = message.getGeolocationGnss(); - if (f) { - writer.writeBool( - 11, - f - ); - } - f = message.getGeolocationGnssPayloadField(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getGeolocationGnssUseRxTime(); - if (f) { - writer.writeBool( - 13, - f - ); - } - f = message.getGeolocationWifi(); - if (f) { - writer.writeBool( - 14, - f - ); - } - f = message.getGeolocationWifiPayloadField(); - if (f.length > 0) { - writer.writeString( - 15, - f - ); - } -}; - - -/** - * optional string token = 1; - * @return {string} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setToken = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool modem_enabled = 2; - * @return {boolean} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getModemEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setModemEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * repeated uint32 forward_f_ports = 16; - * @return {!Array} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getForwardFPortsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 16)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setForwardFPortsList = function(value) { - return jspb.Message.setField(this, 16, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.addForwardFPorts = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 16, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.clearForwardFPortsList = function() { - return this.setForwardFPortsList([]); -}; - - -/** - * optional bool gnss_use_rx_time = 5; - * @return {boolean} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGnssUseRxTime = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGnssUseRxTime = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool gnss_use_gateway_location = 17; - * @return {boolean} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGnssUseGatewayLocation = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGnssUseGatewayLocation = function(value) { - return jspb.Message.setProto3BooleanField(this, 17, value); -}; - - -/** - * optional bool parse_tlv = 6; - * @return {boolean} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getParseTlv = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setParseTlv = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional uint32 geolocation_buffer_ttl = 7; - * @return {number} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGeolocationBufferTtl = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGeolocationBufferTtl = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional uint32 geolocation_min_buffer_size = 8; - * @return {number} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGeolocationMinBufferSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGeolocationMinBufferSize = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional bool geolocation_tdoa = 9; - * @return {boolean} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGeolocationTdoa = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGeolocationTdoa = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - -/** - * optional bool geolocation_rssi = 10; - * @return {boolean} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGeolocationRssi = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGeolocationRssi = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); -}; - - -/** - * optional bool geolocation_gnss = 11; - * @return {boolean} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGeolocationGnss = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGeolocationGnss = function(value) { - return jspb.Message.setProto3BooleanField(this, 11, value); -}; - - -/** - * optional string geolocation_gnss_payload_field = 12; - * @return {string} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGeolocationGnssPayloadField = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGeolocationGnssPayloadField = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional bool geolocation_gnss_use_rx_time = 13; - * @return {boolean} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGeolocationGnssUseRxTime = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGeolocationGnssUseRxTime = function(value) { - return jspb.Message.setProto3BooleanField(this, 13, value); -}; - - -/** - * optional bool geolocation_wifi = 14; - * @return {boolean} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGeolocationWifi = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGeolocationWifi = function(value) { - return jspb.Message.setProto3BooleanField(this, 14, value); -}; - - -/** - * optional string geolocation_wifi_payload_field = 15; - * @return {string} - */ -proto.api.LoraCloudModemGeolocationServices.prototype.getGeolocationWifiPayloadField = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LoraCloudModemGeolocationServices} returns this - */ -proto.api.LoraCloudModemGeolocationServices.prototype.setGeolocationWifiPayloadField = function(value) { - return jspb.Message.setProto3StringField(this, 15, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateLoraCloudIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateLoraCloudIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateLoraCloudIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateLoraCloudIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.LoraCloudIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateLoraCloudIntegrationRequest} - */ -proto.api.CreateLoraCloudIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateLoraCloudIntegrationRequest; - return proto.api.CreateLoraCloudIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateLoraCloudIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateLoraCloudIntegrationRequest} - */ -proto.api.CreateLoraCloudIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.LoraCloudIntegration; - reader.readMessage(value,proto.api.LoraCloudIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateLoraCloudIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateLoraCloudIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateLoraCloudIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateLoraCloudIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.LoraCloudIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional LoraCloudIntegration integration = 1; - * @return {?proto.api.LoraCloudIntegration} - */ -proto.api.CreateLoraCloudIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.LoraCloudIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.LoraCloudIntegration, 1)); -}; - - -/** - * @param {?proto.api.LoraCloudIntegration|undefined} value - * @return {!proto.api.CreateLoraCloudIntegrationRequest} returns this -*/ -proto.api.CreateLoraCloudIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateLoraCloudIntegrationRequest} returns this - */ -proto.api.CreateLoraCloudIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateLoraCloudIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetLoraCloudIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetLoraCloudIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetLoraCloudIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetLoraCloudIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetLoraCloudIntegrationRequest} - */ -proto.api.GetLoraCloudIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetLoraCloudIntegrationRequest; - return proto.api.GetLoraCloudIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetLoraCloudIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetLoraCloudIntegrationRequest} - */ -proto.api.GetLoraCloudIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetLoraCloudIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetLoraCloudIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetLoraCloudIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetLoraCloudIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetLoraCloudIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetLoraCloudIntegrationRequest} returns this - */ -proto.api.GetLoraCloudIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetLoraCloudIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetLoraCloudIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetLoraCloudIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetLoraCloudIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.LoraCloudIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetLoraCloudIntegrationResponse} - */ -proto.api.GetLoraCloudIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetLoraCloudIntegrationResponse; - return proto.api.GetLoraCloudIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetLoraCloudIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetLoraCloudIntegrationResponse} - */ -proto.api.GetLoraCloudIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.LoraCloudIntegration; - reader.readMessage(value,proto.api.LoraCloudIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetLoraCloudIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetLoraCloudIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetLoraCloudIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetLoraCloudIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.LoraCloudIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional LoraCloudIntegration integration = 1; - * @return {?proto.api.LoraCloudIntegration} - */ -proto.api.GetLoraCloudIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.LoraCloudIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.LoraCloudIntegration, 1)); -}; - - -/** - * @param {?proto.api.LoraCloudIntegration|undefined} value - * @return {!proto.api.GetLoraCloudIntegrationResponse} returns this -*/ -proto.api.GetLoraCloudIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetLoraCloudIntegrationResponse} returns this - */ -proto.api.GetLoraCloudIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetLoraCloudIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateLoraCloudIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateLoraCloudIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateLoraCloudIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateLoraCloudIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.LoraCloudIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateLoraCloudIntegrationRequest} - */ -proto.api.UpdateLoraCloudIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateLoraCloudIntegrationRequest; - return proto.api.UpdateLoraCloudIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateLoraCloudIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateLoraCloudIntegrationRequest} - */ -proto.api.UpdateLoraCloudIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.LoraCloudIntegration; - reader.readMessage(value,proto.api.LoraCloudIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateLoraCloudIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateLoraCloudIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateLoraCloudIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateLoraCloudIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.LoraCloudIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional LoraCloudIntegration integration = 1; - * @return {?proto.api.LoraCloudIntegration} - */ -proto.api.UpdateLoraCloudIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.LoraCloudIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.LoraCloudIntegration, 1)); -}; - - -/** - * @param {?proto.api.LoraCloudIntegration|undefined} value - * @return {!proto.api.UpdateLoraCloudIntegrationRequest} returns this -*/ -proto.api.UpdateLoraCloudIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateLoraCloudIntegrationRequest} returns this - */ -proto.api.UpdateLoraCloudIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateLoraCloudIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteLoraCloudIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteLoraCloudIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteLoraCloudIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteLoraCloudIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteLoraCloudIntegrationRequest} - */ -proto.api.DeleteLoraCloudIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteLoraCloudIntegrationRequest; - return proto.api.DeleteLoraCloudIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteLoraCloudIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteLoraCloudIntegrationRequest} - */ -proto.api.DeleteLoraCloudIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteLoraCloudIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteLoraCloudIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteLoraCloudIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteLoraCloudIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeleteLoraCloudIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteLoraCloudIntegrationRequest} returns this - */ -proto.api.DeleteLoraCloudIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GcpPubSubIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.GcpPubSubIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GcpPubSubIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GcpPubSubIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - encoding: jspb.Message.getFieldWithDefault(msg, 2, 0), - credentialsFile: jspb.Message.getFieldWithDefault(msg, 3, ""), - projectId: jspb.Message.getFieldWithDefault(msg, 4, ""), - topicName: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GcpPubSubIntegration} - */ -proto.api.GcpPubSubIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GcpPubSubIntegration; - return proto.api.GcpPubSubIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GcpPubSubIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GcpPubSubIntegration} - */ -proto.api.GcpPubSubIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {!proto.api.Encoding} */ (reader.readEnum()); - msg.setEncoding(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setCredentialsFile(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setProjectId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setTopicName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GcpPubSubIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GcpPubSubIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GcpPubSubIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GcpPubSubIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEncoding(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getCredentialsFile(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getProjectId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getTopicName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GcpPubSubIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GcpPubSubIntegration} returns this - */ -proto.api.GcpPubSubIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Encoding encoding = 2; - * @return {!proto.api.Encoding} - */ -proto.api.GcpPubSubIntegration.prototype.getEncoding = function() { - return /** @type {!proto.api.Encoding} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.api.Encoding} value - * @return {!proto.api.GcpPubSubIntegration} returns this - */ -proto.api.GcpPubSubIntegration.prototype.setEncoding = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string credentials_file = 3; - * @return {string} - */ -proto.api.GcpPubSubIntegration.prototype.getCredentialsFile = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GcpPubSubIntegration} returns this - */ -proto.api.GcpPubSubIntegration.prototype.setCredentialsFile = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string project_id = 4; - * @return {string} - */ -proto.api.GcpPubSubIntegration.prototype.getProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GcpPubSubIntegration} returns this - */ -proto.api.GcpPubSubIntegration.prototype.setProjectId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string topic_name = 5; - * @return {string} - */ -proto.api.GcpPubSubIntegration.prototype.getTopicName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GcpPubSubIntegration} returns this - */ -proto.api.GcpPubSubIntegration.prototype.setTopicName = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateGcpPubSubIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateGcpPubSubIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateGcpPubSubIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateGcpPubSubIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.GcpPubSubIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateGcpPubSubIntegrationRequest} - */ -proto.api.CreateGcpPubSubIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateGcpPubSubIntegrationRequest; - return proto.api.CreateGcpPubSubIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateGcpPubSubIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateGcpPubSubIntegrationRequest} - */ -proto.api.CreateGcpPubSubIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.GcpPubSubIntegration; - reader.readMessage(value,proto.api.GcpPubSubIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateGcpPubSubIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateGcpPubSubIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateGcpPubSubIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateGcpPubSubIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.GcpPubSubIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional GcpPubSubIntegration integration = 1; - * @return {?proto.api.GcpPubSubIntegration} - */ -proto.api.CreateGcpPubSubIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.GcpPubSubIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.GcpPubSubIntegration, 1)); -}; - - -/** - * @param {?proto.api.GcpPubSubIntegration|undefined} value - * @return {!proto.api.CreateGcpPubSubIntegrationRequest} returns this -*/ -proto.api.CreateGcpPubSubIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateGcpPubSubIntegrationRequest} returns this - */ -proto.api.CreateGcpPubSubIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateGcpPubSubIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetGcpPubSubIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetGcpPubSubIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetGcpPubSubIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGcpPubSubIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetGcpPubSubIntegrationRequest} - */ -proto.api.GetGcpPubSubIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetGcpPubSubIntegrationRequest; - return proto.api.GetGcpPubSubIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetGcpPubSubIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetGcpPubSubIntegrationRequest} - */ -proto.api.GetGcpPubSubIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetGcpPubSubIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetGcpPubSubIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetGcpPubSubIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGcpPubSubIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetGcpPubSubIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetGcpPubSubIntegrationRequest} returns this - */ -proto.api.GetGcpPubSubIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetGcpPubSubIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetGcpPubSubIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetGcpPubSubIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGcpPubSubIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.GcpPubSubIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetGcpPubSubIntegrationResponse} - */ -proto.api.GetGcpPubSubIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetGcpPubSubIntegrationResponse; - return proto.api.GetGcpPubSubIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetGcpPubSubIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetGcpPubSubIntegrationResponse} - */ -proto.api.GetGcpPubSubIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.GcpPubSubIntegration; - reader.readMessage(value,proto.api.GcpPubSubIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetGcpPubSubIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetGcpPubSubIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetGcpPubSubIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGcpPubSubIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.GcpPubSubIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional GcpPubSubIntegration integration = 1; - * @return {?proto.api.GcpPubSubIntegration} - */ -proto.api.GetGcpPubSubIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.GcpPubSubIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.GcpPubSubIntegration, 1)); -}; - - -/** - * @param {?proto.api.GcpPubSubIntegration|undefined} value - * @return {!proto.api.GetGcpPubSubIntegrationResponse} returns this -*/ -proto.api.GetGcpPubSubIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGcpPubSubIntegrationResponse} returns this - */ -proto.api.GetGcpPubSubIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGcpPubSubIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateGcpPubSubIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateGcpPubSubIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateGcpPubSubIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateGcpPubSubIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.GcpPubSubIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateGcpPubSubIntegrationRequest} - */ -proto.api.UpdateGcpPubSubIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateGcpPubSubIntegrationRequest; - return proto.api.UpdateGcpPubSubIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateGcpPubSubIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateGcpPubSubIntegrationRequest} - */ -proto.api.UpdateGcpPubSubIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.GcpPubSubIntegration; - reader.readMessage(value,proto.api.GcpPubSubIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateGcpPubSubIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateGcpPubSubIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateGcpPubSubIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateGcpPubSubIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.GcpPubSubIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional GcpPubSubIntegration integration = 1; - * @return {?proto.api.GcpPubSubIntegration} - */ -proto.api.UpdateGcpPubSubIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.GcpPubSubIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.GcpPubSubIntegration, 1)); -}; - - -/** - * @param {?proto.api.GcpPubSubIntegration|undefined} value - * @return {!proto.api.UpdateGcpPubSubIntegrationRequest} returns this -*/ -proto.api.UpdateGcpPubSubIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateGcpPubSubIntegrationRequest} returns this - */ -proto.api.UpdateGcpPubSubIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateGcpPubSubIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteGcpPubSubIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteGcpPubSubIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteGcpPubSubIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteGcpPubSubIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteGcpPubSubIntegrationRequest} - */ -proto.api.DeleteGcpPubSubIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteGcpPubSubIntegrationRequest; - return proto.api.DeleteGcpPubSubIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteGcpPubSubIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteGcpPubSubIntegrationRequest} - */ -proto.api.DeleteGcpPubSubIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteGcpPubSubIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteGcpPubSubIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteGcpPubSubIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteGcpPubSubIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeleteGcpPubSubIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteGcpPubSubIntegrationRequest} returns this - */ -proto.api.DeleteGcpPubSubIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.AwsSnsIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.AwsSnsIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.AwsSnsIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AwsSnsIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - encoding: jspb.Message.getFieldWithDefault(msg, 2, 0), - region: jspb.Message.getFieldWithDefault(msg, 3, ""), - accessKeyId: jspb.Message.getFieldWithDefault(msg, 4, ""), - secretAccessKey: jspb.Message.getFieldWithDefault(msg, 5, ""), - topicArn: jspb.Message.getFieldWithDefault(msg, 6, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.AwsSnsIntegration} - */ -proto.api.AwsSnsIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.AwsSnsIntegration; - return proto.api.AwsSnsIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.AwsSnsIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.AwsSnsIntegration} - */ -proto.api.AwsSnsIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {!proto.api.Encoding} */ (reader.readEnum()); - msg.setEncoding(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setRegion(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setAccessKeyId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setSecretAccessKey(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setTopicArn(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.AwsSnsIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.AwsSnsIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.AwsSnsIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AwsSnsIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEncoding(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getRegion(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getAccessKeyId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getSecretAccessKey(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getTopicArn(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.AwsSnsIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AwsSnsIntegration} returns this - */ -proto.api.AwsSnsIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Encoding encoding = 2; - * @return {!proto.api.Encoding} - */ -proto.api.AwsSnsIntegration.prototype.getEncoding = function() { - return /** @type {!proto.api.Encoding} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.api.Encoding} value - * @return {!proto.api.AwsSnsIntegration} returns this - */ -proto.api.AwsSnsIntegration.prototype.setEncoding = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string region = 3; - * @return {string} - */ -proto.api.AwsSnsIntegration.prototype.getRegion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AwsSnsIntegration} returns this - */ -proto.api.AwsSnsIntegration.prototype.setRegion = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string access_key_id = 4; - * @return {string} - */ -proto.api.AwsSnsIntegration.prototype.getAccessKeyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AwsSnsIntegration} returns this - */ -proto.api.AwsSnsIntegration.prototype.setAccessKeyId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string secret_access_key = 5; - * @return {string} - */ -proto.api.AwsSnsIntegration.prototype.getSecretAccessKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AwsSnsIntegration} returns this - */ -proto.api.AwsSnsIntegration.prototype.setSecretAccessKey = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string topic_arn = 6; - * @return {string} - */ -proto.api.AwsSnsIntegration.prototype.getTopicArn = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AwsSnsIntegration} returns this - */ -proto.api.AwsSnsIntegration.prototype.setTopicArn = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateAwsSnsIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateAwsSnsIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateAwsSnsIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateAwsSnsIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.AwsSnsIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateAwsSnsIntegrationRequest} - */ -proto.api.CreateAwsSnsIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateAwsSnsIntegrationRequest; - return proto.api.CreateAwsSnsIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateAwsSnsIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateAwsSnsIntegrationRequest} - */ -proto.api.CreateAwsSnsIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.AwsSnsIntegration; - reader.readMessage(value,proto.api.AwsSnsIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateAwsSnsIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateAwsSnsIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateAwsSnsIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateAwsSnsIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.AwsSnsIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional AwsSnsIntegration integration = 1; - * @return {?proto.api.AwsSnsIntegration} - */ -proto.api.CreateAwsSnsIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.AwsSnsIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.AwsSnsIntegration, 1)); -}; - - -/** - * @param {?proto.api.AwsSnsIntegration|undefined} value - * @return {!proto.api.CreateAwsSnsIntegrationRequest} returns this -*/ -proto.api.CreateAwsSnsIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateAwsSnsIntegrationRequest} returns this - */ -proto.api.CreateAwsSnsIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateAwsSnsIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetAwsSnsIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetAwsSnsIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetAwsSnsIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetAwsSnsIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetAwsSnsIntegrationRequest} - */ -proto.api.GetAwsSnsIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetAwsSnsIntegrationRequest; - return proto.api.GetAwsSnsIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetAwsSnsIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetAwsSnsIntegrationRequest} - */ -proto.api.GetAwsSnsIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetAwsSnsIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetAwsSnsIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetAwsSnsIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetAwsSnsIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetAwsSnsIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetAwsSnsIntegrationRequest} returns this - */ -proto.api.GetAwsSnsIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetAwsSnsIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetAwsSnsIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetAwsSnsIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetAwsSnsIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.AwsSnsIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetAwsSnsIntegrationResponse} - */ -proto.api.GetAwsSnsIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetAwsSnsIntegrationResponse; - return proto.api.GetAwsSnsIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetAwsSnsIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetAwsSnsIntegrationResponse} - */ -proto.api.GetAwsSnsIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.AwsSnsIntegration; - reader.readMessage(value,proto.api.AwsSnsIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetAwsSnsIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetAwsSnsIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetAwsSnsIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetAwsSnsIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.AwsSnsIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional AwsSnsIntegration integration = 1; - * @return {?proto.api.AwsSnsIntegration} - */ -proto.api.GetAwsSnsIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.AwsSnsIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.AwsSnsIntegration, 1)); -}; - - -/** - * @param {?proto.api.AwsSnsIntegration|undefined} value - * @return {!proto.api.GetAwsSnsIntegrationResponse} returns this -*/ -proto.api.GetAwsSnsIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetAwsSnsIntegrationResponse} returns this - */ -proto.api.GetAwsSnsIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetAwsSnsIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateAwsSnsIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateAwsSnsIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateAwsSnsIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateAwsSnsIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.AwsSnsIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateAwsSnsIntegrationRequest} - */ -proto.api.UpdateAwsSnsIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateAwsSnsIntegrationRequest; - return proto.api.UpdateAwsSnsIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateAwsSnsIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateAwsSnsIntegrationRequest} - */ -proto.api.UpdateAwsSnsIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.AwsSnsIntegration; - reader.readMessage(value,proto.api.AwsSnsIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateAwsSnsIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateAwsSnsIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateAwsSnsIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateAwsSnsIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.AwsSnsIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional AwsSnsIntegration integration = 1; - * @return {?proto.api.AwsSnsIntegration} - */ -proto.api.UpdateAwsSnsIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.AwsSnsIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.AwsSnsIntegration, 1)); -}; - - -/** - * @param {?proto.api.AwsSnsIntegration|undefined} value - * @return {!proto.api.UpdateAwsSnsIntegrationRequest} returns this -*/ -proto.api.UpdateAwsSnsIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateAwsSnsIntegrationRequest} returns this - */ -proto.api.UpdateAwsSnsIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateAwsSnsIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteAwsSnsIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteAwsSnsIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteAwsSnsIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteAwsSnsIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteAwsSnsIntegrationRequest} - */ -proto.api.DeleteAwsSnsIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteAwsSnsIntegrationRequest; - return proto.api.DeleteAwsSnsIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteAwsSnsIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteAwsSnsIntegrationRequest} - */ -proto.api.DeleteAwsSnsIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteAwsSnsIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteAwsSnsIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteAwsSnsIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteAwsSnsIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeleteAwsSnsIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteAwsSnsIntegrationRequest} returns this - */ -proto.api.DeleteAwsSnsIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.AzureServiceBusIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.AzureServiceBusIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.AzureServiceBusIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AzureServiceBusIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - encoding: jspb.Message.getFieldWithDefault(msg, 2, 0), - connectionString: jspb.Message.getFieldWithDefault(msg, 3, ""), - publishName: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.AzureServiceBusIntegration} - */ -proto.api.AzureServiceBusIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.AzureServiceBusIntegration; - return proto.api.AzureServiceBusIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.AzureServiceBusIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.AzureServiceBusIntegration} - */ -proto.api.AzureServiceBusIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {!proto.api.Encoding} */ (reader.readEnum()); - msg.setEncoding(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setConnectionString(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPublishName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.AzureServiceBusIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.AzureServiceBusIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.AzureServiceBusIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AzureServiceBusIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEncoding(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getConnectionString(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPublishName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.AzureServiceBusIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AzureServiceBusIntegration} returns this - */ -proto.api.AzureServiceBusIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Encoding encoding = 2; - * @return {!proto.api.Encoding} - */ -proto.api.AzureServiceBusIntegration.prototype.getEncoding = function() { - return /** @type {!proto.api.Encoding} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.api.Encoding} value - * @return {!proto.api.AzureServiceBusIntegration} returns this - */ -proto.api.AzureServiceBusIntegration.prototype.setEncoding = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string connection_string = 3; - * @return {string} - */ -proto.api.AzureServiceBusIntegration.prototype.getConnectionString = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AzureServiceBusIntegration} returns this - */ -proto.api.AzureServiceBusIntegration.prototype.setConnectionString = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string publish_name = 4; - * @return {string} - */ -proto.api.AzureServiceBusIntegration.prototype.getPublishName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AzureServiceBusIntegration} returns this - */ -proto.api.AzureServiceBusIntegration.prototype.setPublishName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateAzureServiceBusIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateAzureServiceBusIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateAzureServiceBusIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateAzureServiceBusIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.AzureServiceBusIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateAzureServiceBusIntegrationRequest} - */ -proto.api.CreateAzureServiceBusIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateAzureServiceBusIntegrationRequest; - return proto.api.CreateAzureServiceBusIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateAzureServiceBusIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateAzureServiceBusIntegrationRequest} - */ -proto.api.CreateAzureServiceBusIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.AzureServiceBusIntegration; - reader.readMessage(value,proto.api.AzureServiceBusIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateAzureServiceBusIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateAzureServiceBusIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateAzureServiceBusIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateAzureServiceBusIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.AzureServiceBusIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional AzureServiceBusIntegration integration = 1; - * @return {?proto.api.AzureServiceBusIntegration} - */ -proto.api.CreateAzureServiceBusIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.AzureServiceBusIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.AzureServiceBusIntegration, 1)); -}; - - -/** - * @param {?proto.api.AzureServiceBusIntegration|undefined} value - * @return {!proto.api.CreateAzureServiceBusIntegrationRequest} returns this -*/ -proto.api.CreateAzureServiceBusIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateAzureServiceBusIntegrationRequest} returns this - */ -proto.api.CreateAzureServiceBusIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateAzureServiceBusIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetAzureServiceBusIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetAzureServiceBusIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetAzureServiceBusIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetAzureServiceBusIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetAzureServiceBusIntegrationRequest} - */ -proto.api.GetAzureServiceBusIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetAzureServiceBusIntegrationRequest; - return proto.api.GetAzureServiceBusIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetAzureServiceBusIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetAzureServiceBusIntegrationRequest} - */ -proto.api.GetAzureServiceBusIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetAzureServiceBusIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetAzureServiceBusIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetAzureServiceBusIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetAzureServiceBusIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetAzureServiceBusIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetAzureServiceBusIntegrationRequest} returns this - */ -proto.api.GetAzureServiceBusIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetAzureServiceBusIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetAzureServiceBusIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetAzureServiceBusIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetAzureServiceBusIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.AzureServiceBusIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetAzureServiceBusIntegrationResponse} - */ -proto.api.GetAzureServiceBusIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetAzureServiceBusIntegrationResponse; - return proto.api.GetAzureServiceBusIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetAzureServiceBusIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetAzureServiceBusIntegrationResponse} - */ -proto.api.GetAzureServiceBusIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.AzureServiceBusIntegration; - reader.readMessage(value,proto.api.AzureServiceBusIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetAzureServiceBusIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetAzureServiceBusIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetAzureServiceBusIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetAzureServiceBusIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.AzureServiceBusIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional AzureServiceBusIntegration integration = 1; - * @return {?proto.api.AzureServiceBusIntegration} - */ -proto.api.GetAzureServiceBusIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.AzureServiceBusIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.AzureServiceBusIntegration, 1)); -}; - - -/** - * @param {?proto.api.AzureServiceBusIntegration|undefined} value - * @return {!proto.api.GetAzureServiceBusIntegrationResponse} returns this -*/ -proto.api.GetAzureServiceBusIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetAzureServiceBusIntegrationResponse} returns this - */ -proto.api.GetAzureServiceBusIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetAzureServiceBusIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateAzureServiceBusIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateAzureServiceBusIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateAzureServiceBusIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateAzureServiceBusIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.AzureServiceBusIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateAzureServiceBusIntegrationRequest} - */ -proto.api.UpdateAzureServiceBusIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateAzureServiceBusIntegrationRequest; - return proto.api.UpdateAzureServiceBusIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateAzureServiceBusIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateAzureServiceBusIntegrationRequest} - */ -proto.api.UpdateAzureServiceBusIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.AzureServiceBusIntegration; - reader.readMessage(value,proto.api.AzureServiceBusIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateAzureServiceBusIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateAzureServiceBusIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateAzureServiceBusIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateAzureServiceBusIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.AzureServiceBusIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional AzureServiceBusIntegration integration = 1; - * @return {?proto.api.AzureServiceBusIntegration} - */ -proto.api.UpdateAzureServiceBusIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.AzureServiceBusIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.AzureServiceBusIntegration, 1)); -}; - - -/** - * @param {?proto.api.AzureServiceBusIntegration|undefined} value - * @return {!proto.api.UpdateAzureServiceBusIntegrationRequest} returns this -*/ -proto.api.UpdateAzureServiceBusIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateAzureServiceBusIntegrationRequest} returns this - */ -proto.api.UpdateAzureServiceBusIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateAzureServiceBusIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteAzureServiceBusIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteAzureServiceBusIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteAzureServiceBusIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteAzureServiceBusIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteAzureServiceBusIntegrationRequest} - */ -proto.api.DeleteAzureServiceBusIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteAzureServiceBusIntegrationRequest; - return proto.api.DeleteAzureServiceBusIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteAzureServiceBusIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteAzureServiceBusIntegrationRequest} - */ -proto.api.DeleteAzureServiceBusIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteAzureServiceBusIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteAzureServiceBusIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteAzureServiceBusIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteAzureServiceBusIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeleteAzureServiceBusIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteAzureServiceBusIntegrationRequest} returns this - */ -proto.api.DeleteAzureServiceBusIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.PilotThingsIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.PilotThingsIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.PilotThingsIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.PilotThingsIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - server: jspb.Message.getFieldWithDefault(msg, 2, ""), - token: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.PilotThingsIntegration} - */ -proto.api.PilotThingsIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.PilotThingsIntegration; - return proto.api.PilotThingsIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.PilotThingsIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.PilotThingsIntegration} - */ -proto.api.PilotThingsIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setServer(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setToken(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.PilotThingsIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.PilotThingsIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.PilotThingsIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.PilotThingsIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getServer(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getToken(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.PilotThingsIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.PilotThingsIntegration} returns this - */ -proto.api.PilotThingsIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string server = 2; - * @return {string} - */ -proto.api.PilotThingsIntegration.prototype.getServer = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.PilotThingsIntegration} returns this - */ -proto.api.PilotThingsIntegration.prototype.setServer = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string token = 3; - * @return {string} - */ -proto.api.PilotThingsIntegration.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.PilotThingsIntegration} returns this - */ -proto.api.PilotThingsIntegration.prototype.setToken = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreatePilotThingsIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreatePilotThingsIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreatePilotThingsIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreatePilotThingsIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.PilotThingsIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreatePilotThingsIntegrationRequest} - */ -proto.api.CreatePilotThingsIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreatePilotThingsIntegrationRequest; - return proto.api.CreatePilotThingsIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreatePilotThingsIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreatePilotThingsIntegrationRequest} - */ -proto.api.CreatePilotThingsIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.PilotThingsIntegration; - reader.readMessage(value,proto.api.PilotThingsIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreatePilotThingsIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreatePilotThingsIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreatePilotThingsIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreatePilotThingsIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.PilotThingsIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional PilotThingsIntegration integration = 1; - * @return {?proto.api.PilotThingsIntegration} - */ -proto.api.CreatePilotThingsIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.PilotThingsIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.PilotThingsIntegration, 1)); -}; - - -/** - * @param {?proto.api.PilotThingsIntegration|undefined} value - * @return {!proto.api.CreatePilotThingsIntegrationRequest} returns this -*/ -proto.api.CreatePilotThingsIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreatePilotThingsIntegrationRequest} returns this - */ -proto.api.CreatePilotThingsIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreatePilotThingsIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetPilotThingsIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetPilotThingsIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetPilotThingsIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetPilotThingsIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetPilotThingsIntegrationRequest} - */ -proto.api.GetPilotThingsIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetPilotThingsIntegrationRequest; - return proto.api.GetPilotThingsIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetPilotThingsIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetPilotThingsIntegrationRequest} - */ -proto.api.GetPilotThingsIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetPilotThingsIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetPilotThingsIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetPilotThingsIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetPilotThingsIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetPilotThingsIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetPilotThingsIntegrationRequest} returns this - */ -proto.api.GetPilotThingsIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetPilotThingsIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetPilotThingsIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetPilotThingsIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetPilotThingsIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.PilotThingsIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetPilotThingsIntegrationResponse} - */ -proto.api.GetPilotThingsIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetPilotThingsIntegrationResponse; - return proto.api.GetPilotThingsIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetPilotThingsIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetPilotThingsIntegrationResponse} - */ -proto.api.GetPilotThingsIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.PilotThingsIntegration; - reader.readMessage(value,proto.api.PilotThingsIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetPilotThingsIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetPilotThingsIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetPilotThingsIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetPilotThingsIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.PilotThingsIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional PilotThingsIntegration integration = 1; - * @return {?proto.api.PilotThingsIntegration} - */ -proto.api.GetPilotThingsIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.PilotThingsIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.PilotThingsIntegration, 1)); -}; - - -/** - * @param {?proto.api.PilotThingsIntegration|undefined} value - * @return {!proto.api.GetPilotThingsIntegrationResponse} returns this -*/ -proto.api.GetPilotThingsIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetPilotThingsIntegrationResponse} returns this - */ -proto.api.GetPilotThingsIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetPilotThingsIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdatePilotThingsIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdatePilotThingsIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdatePilotThingsIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdatePilotThingsIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.PilotThingsIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdatePilotThingsIntegrationRequest} - */ -proto.api.UpdatePilotThingsIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdatePilotThingsIntegrationRequest; - return proto.api.UpdatePilotThingsIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdatePilotThingsIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdatePilotThingsIntegrationRequest} - */ -proto.api.UpdatePilotThingsIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.PilotThingsIntegration; - reader.readMessage(value,proto.api.PilotThingsIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdatePilotThingsIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdatePilotThingsIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdatePilotThingsIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdatePilotThingsIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.PilotThingsIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional PilotThingsIntegration integration = 1; - * @return {?proto.api.PilotThingsIntegration} - */ -proto.api.UpdatePilotThingsIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.PilotThingsIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.PilotThingsIntegration, 1)); -}; - - -/** - * @param {?proto.api.PilotThingsIntegration|undefined} value - * @return {!proto.api.UpdatePilotThingsIntegrationRequest} returns this -*/ -proto.api.UpdatePilotThingsIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdatePilotThingsIntegrationRequest} returns this - */ -proto.api.UpdatePilotThingsIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdatePilotThingsIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeletePilotThingsIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeletePilotThingsIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeletePilotThingsIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeletePilotThingsIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeletePilotThingsIntegrationRequest} - */ -proto.api.DeletePilotThingsIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeletePilotThingsIntegrationRequest; - return proto.api.DeletePilotThingsIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeletePilotThingsIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeletePilotThingsIntegrationRequest} - */ -proto.api.DeletePilotThingsIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeletePilotThingsIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeletePilotThingsIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeletePilotThingsIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeletePilotThingsIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeletePilotThingsIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeletePilotThingsIntegrationRequest} returns this - */ -proto.api.DeletePilotThingsIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.IftttIntegration.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.IftttIntegration.prototype.toObject = function(opt_includeInstance) { - return proto.api.IftttIntegration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.IftttIntegration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.IftttIntegration.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - key: jspb.Message.getFieldWithDefault(msg, 2, ""), - uplinkValuesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - arbitraryJson: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - eventPrefix: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.IftttIntegration} - */ -proto.api.IftttIntegration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.IftttIntegration; - return proto.api.IftttIntegration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.IftttIntegration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.IftttIntegration} - */ -proto.api.IftttIntegration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addUplinkValues(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setArbitraryJson(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setEventPrefix(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.IftttIntegration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.IftttIntegration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.IftttIntegration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.IftttIntegration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getUplinkValuesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } - f = message.getArbitraryJson(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getEventPrefix(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.IftttIntegration.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.IftttIntegration} returns this - */ -proto.api.IftttIntegration.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string key = 2; - * @return {string} - */ -proto.api.IftttIntegration.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.IftttIntegration} returns this - */ -proto.api.IftttIntegration.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated string uplink_values = 3; - * @return {!Array} - */ -proto.api.IftttIntegration.prototype.getUplinkValuesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.IftttIntegration} returns this - */ -proto.api.IftttIntegration.prototype.setUplinkValuesList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.api.IftttIntegration} returns this - */ -proto.api.IftttIntegration.prototype.addUplinkValues = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.IftttIntegration} returns this - */ -proto.api.IftttIntegration.prototype.clearUplinkValuesList = function() { - return this.setUplinkValuesList([]); -}; - - -/** - * optional bool arbitrary_json = 4; - * @return {boolean} - */ -proto.api.IftttIntegration.prototype.getArbitraryJson = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.IftttIntegration} returns this - */ -proto.api.IftttIntegration.prototype.setArbitraryJson = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional string event_prefix = 5; - * @return {string} - */ -proto.api.IftttIntegration.prototype.getEventPrefix = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.IftttIntegration} returns this - */ -proto.api.IftttIntegration.prototype.setEventPrefix = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateIftttIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateIftttIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateIftttIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateIftttIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.IftttIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateIftttIntegrationRequest} - */ -proto.api.CreateIftttIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateIftttIntegrationRequest; - return proto.api.CreateIftttIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateIftttIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateIftttIntegrationRequest} - */ -proto.api.CreateIftttIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.IftttIntegration; - reader.readMessage(value,proto.api.IftttIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateIftttIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateIftttIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateIftttIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateIftttIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.IftttIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional IftttIntegration integration = 1; - * @return {?proto.api.IftttIntegration} - */ -proto.api.CreateIftttIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.IftttIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.IftttIntegration, 1)); -}; - - -/** - * @param {?proto.api.IftttIntegration|undefined} value - * @return {!proto.api.CreateIftttIntegrationRequest} returns this -*/ -proto.api.CreateIftttIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateIftttIntegrationRequest} returns this - */ -proto.api.CreateIftttIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateIftttIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetIftttIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetIftttIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetIftttIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetIftttIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetIftttIntegrationRequest} - */ -proto.api.GetIftttIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetIftttIntegrationRequest; - return proto.api.GetIftttIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetIftttIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetIftttIntegrationRequest} - */ -proto.api.GetIftttIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetIftttIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetIftttIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetIftttIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetIftttIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GetIftttIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetIftttIntegrationRequest} returns this - */ -proto.api.GetIftttIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetIftttIntegrationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetIftttIntegrationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetIftttIntegrationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetIftttIntegrationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.IftttIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetIftttIntegrationResponse} - */ -proto.api.GetIftttIntegrationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetIftttIntegrationResponse; - return proto.api.GetIftttIntegrationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetIftttIntegrationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetIftttIntegrationResponse} - */ -proto.api.GetIftttIntegrationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.IftttIntegration; - reader.readMessage(value,proto.api.IftttIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetIftttIntegrationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetIftttIntegrationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetIftttIntegrationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetIftttIntegrationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.IftttIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional IftttIntegration integration = 1; - * @return {?proto.api.IftttIntegration} - */ -proto.api.GetIftttIntegrationResponse.prototype.getIntegration = function() { - return /** @type{?proto.api.IftttIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.IftttIntegration, 1)); -}; - - -/** - * @param {?proto.api.IftttIntegration|undefined} value - * @return {!proto.api.GetIftttIntegrationResponse} returns this -*/ -proto.api.GetIftttIntegrationResponse.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetIftttIntegrationResponse} returns this - */ -proto.api.GetIftttIntegrationResponse.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetIftttIntegrationResponse.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateIftttIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateIftttIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateIftttIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateIftttIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - integration: (f = msg.getIntegration()) && proto.api.IftttIntegration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateIftttIntegrationRequest} - */ -proto.api.UpdateIftttIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateIftttIntegrationRequest; - return proto.api.UpdateIftttIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateIftttIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateIftttIntegrationRequest} - */ -proto.api.UpdateIftttIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.IftttIntegration; - reader.readMessage(value,proto.api.IftttIntegration.deserializeBinaryFromReader); - msg.setIntegration(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateIftttIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateIftttIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateIftttIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateIftttIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIntegration(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.IftttIntegration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional IftttIntegration integration = 1; - * @return {?proto.api.IftttIntegration} - */ -proto.api.UpdateIftttIntegrationRequest.prototype.getIntegration = function() { - return /** @type{?proto.api.IftttIntegration} */ ( - jspb.Message.getWrapperField(this, proto.api.IftttIntegration, 1)); -}; - - -/** - * @param {?proto.api.IftttIntegration|undefined} value - * @return {!proto.api.UpdateIftttIntegrationRequest} returns this -*/ -proto.api.UpdateIftttIntegrationRequest.prototype.setIntegration = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateIftttIntegrationRequest} returns this - */ -proto.api.UpdateIftttIntegrationRequest.prototype.clearIntegration = function() { - return this.setIntegration(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateIftttIntegrationRequest.prototype.hasIntegration = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteIftttIntegrationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteIftttIntegrationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteIftttIntegrationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteIftttIntegrationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteIftttIntegrationRequest} - */ -proto.api.DeleteIftttIntegrationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteIftttIntegrationRequest; - return proto.api.DeleteIftttIntegrationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteIftttIntegrationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteIftttIntegrationRequest} - */ -proto.api.DeleteIftttIntegrationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteIftttIntegrationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteIftttIntegrationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteIftttIntegrationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteIftttIntegrationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.DeleteIftttIntegrationRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteIftttIntegrationRequest} returns this - */ -proto.api.DeleteIftttIntegrationRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GenerateMqttIntegrationClientCertificateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GenerateMqttIntegrationClientCertificateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GenerateMqttIntegrationClientCertificateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GenerateMqttIntegrationClientCertificateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - applicationId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GenerateMqttIntegrationClientCertificateRequest} - */ -proto.api.GenerateMqttIntegrationClientCertificateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GenerateMqttIntegrationClientCertificateRequest; - return proto.api.GenerateMqttIntegrationClientCertificateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GenerateMqttIntegrationClientCertificateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GenerateMqttIntegrationClientCertificateRequest} - */ -proto.api.GenerateMqttIntegrationClientCertificateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GenerateMqttIntegrationClientCertificateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GenerateMqttIntegrationClientCertificateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GenerateMqttIntegrationClientCertificateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GenerateMqttIntegrationClientCertificateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string application_id = 1; - * @return {string} - */ -proto.api.GenerateMqttIntegrationClientCertificateRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GenerateMqttIntegrationClientCertificateRequest} returns this - */ -proto.api.GenerateMqttIntegrationClientCertificateRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GenerateMqttIntegrationClientCertificateResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GenerateMqttIntegrationClientCertificateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - tlsCert: jspb.Message.getFieldWithDefault(msg, 1, ""), - tlsKey: jspb.Message.getFieldWithDefault(msg, 2, ""), - caCert: jspb.Message.getFieldWithDefault(msg, 3, ""), - expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GenerateMqttIntegrationClientCertificateResponse} - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GenerateMqttIntegrationClientCertificateResponse; - return proto.api.GenerateMqttIntegrationClientCertificateResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GenerateMqttIntegrationClientCertificateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GenerateMqttIntegrationClientCertificateResponse} - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTlsCert(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTlsKey(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setCaCert(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setExpiresAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GenerateMqttIntegrationClientCertificateResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GenerateMqttIntegrationClientCertificateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTlsCert(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTlsKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getCaCert(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getExpiresAt(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string tls_cert = 1; - * @return {string} - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.getTlsCert = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GenerateMqttIntegrationClientCertificateResponse} returns this - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.setTlsCert = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string tls_key = 2; - * @return {string} - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.getTlsKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GenerateMqttIntegrationClientCertificateResponse} returns this - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.setTlsKey = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string ca_cert = 3; - * @return {string} - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.getCaCert = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GenerateMqttIntegrationClientCertificateResponse} returns this - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.setCaCert = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional google.protobuf.Timestamp expires_at = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.getExpiresAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GenerateMqttIntegrationClientCertificateResponse} returns this -*/ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.setExpiresAt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GenerateMqttIntegrationClientCertificateResponse} returns this - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.clearExpiresAt = function() { - return this.setExpiresAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GenerateMqttIntegrationClientCertificateResponse.prototype.hasExpiresAt = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * @enum {number} - */ -proto.api.Encoding = { - JSON: 0, - PROTOBUF: 1 -}; - -/** - * @enum {number} - */ -proto.api.IntegrationKind = { - HTTP: 0, - INFLUX_DB: 1, - THINGS_BOARD: 2, - MY_DEVICES: 3, - LORA_CLOUD: 4, - GCP_PUB_SUB: 5, - AWS_SNS: 6, - AZURE_SERVICE_BUS: 7, - PILOT_THINGS: 8, - MQTT_GLOBAL: 9, - IFTTT: 10 -}; - -/** - * @enum {number} - */ -proto.api.InfluxDbPrecision = { - NS: 0, - U: 1, - MS: 2, - S: 3, - M: 4, - H: 5 -}; - -/** - * @enum {number} - */ -proto.api.InfluxDbVersion = { - INFLUXDB_1: 0, - INFLUXDB_2: 1 -}; - -goog.object.extend(exports, proto.api); diff --git a/api/js/api/device_grpc_pb.d.ts b/api/js/api/device_grpc_pb.d.ts deleted file mode 100644 index 9c2bf103..00000000 --- a/api/js/api/device_grpc_pb.d.ts +++ /dev/null @@ -1,120 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -// package: api -// file: api/device.proto - -import * as api_device_pb from "../api/device_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; -import * as grpc from "@grpc/grpc-js"; - -interface IDeviceServiceService extends grpc.ServiceDefinition { - create: grpc.MethodDefinition; - get: grpc.MethodDefinition; - update: grpc.MethodDefinition; - delete: grpc.MethodDefinition; - list: grpc.MethodDefinition; - createKeys: grpc.MethodDefinition; - getKeys: grpc.MethodDefinition; - updateKeys: grpc.MethodDefinition; - deleteKeys: grpc.MethodDefinition; - flushDevNonces: grpc.MethodDefinition; - activate: grpc.MethodDefinition; - deactivate: grpc.MethodDefinition; - getActivation: grpc.MethodDefinition; - getRandomDevAddr: grpc.MethodDefinition; - getMetrics: grpc.MethodDefinition; - getLinkMetrics: grpc.MethodDefinition; - enqueue: grpc.MethodDefinition; - flushQueue: grpc.MethodDefinition; - getQueue: grpc.MethodDefinition; - getNextFCntDown: grpc.MethodDefinition; -} - -export const DeviceServiceService: IDeviceServiceService; - -export interface IDeviceServiceServer extends grpc.UntypedServiceImplementation { - create: grpc.handleUnaryCall; - get: grpc.handleUnaryCall; - update: grpc.handleUnaryCall; - delete: grpc.handleUnaryCall; - list: grpc.handleUnaryCall; - createKeys: grpc.handleUnaryCall; - getKeys: grpc.handleUnaryCall; - updateKeys: grpc.handleUnaryCall; - deleteKeys: grpc.handleUnaryCall; - flushDevNonces: grpc.handleUnaryCall; - activate: grpc.handleUnaryCall; - deactivate: grpc.handleUnaryCall; - getActivation: grpc.handleUnaryCall; - getRandomDevAddr: grpc.handleUnaryCall; - getMetrics: grpc.handleUnaryCall; - getLinkMetrics: grpc.handleUnaryCall; - enqueue: grpc.handleUnaryCall; - flushQueue: grpc.handleUnaryCall; - getQueue: grpc.handleUnaryCall; - getNextFCntDown: grpc.handleUnaryCall; -} - -export class DeviceServiceClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - create(argument: api_device_pb.CreateDeviceRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - create(argument: api_device_pb.CreateDeviceRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - create(argument: api_device_pb.CreateDeviceRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_device_pb.GetDeviceRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_device_pb.GetDeviceRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_device_pb.GetDeviceRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_device_pb.UpdateDeviceRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_device_pb.UpdateDeviceRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_device_pb.UpdateDeviceRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_device_pb.DeleteDeviceRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_device_pb.DeleteDeviceRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_device_pb.DeleteDeviceRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_device_pb.ListDevicesRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_device_pb.ListDevicesRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_device_pb.ListDevicesRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createKeys(argument: api_device_pb.CreateDeviceKeysRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createKeys(argument: api_device_pb.CreateDeviceKeysRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createKeys(argument: api_device_pb.CreateDeviceKeysRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getKeys(argument: api_device_pb.GetDeviceKeysRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getKeys(argument: api_device_pb.GetDeviceKeysRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getKeys(argument: api_device_pb.GetDeviceKeysRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateKeys(argument: api_device_pb.UpdateDeviceKeysRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateKeys(argument: api_device_pb.UpdateDeviceKeysRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateKeys(argument: api_device_pb.UpdateDeviceKeysRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteKeys(argument: api_device_pb.DeleteDeviceKeysRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteKeys(argument: api_device_pb.DeleteDeviceKeysRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteKeys(argument: api_device_pb.DeleteDeviceKeysRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - flushDevNonces(argument: api_device_pb.FlushDevNoncesRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - flushDevNonces(argument: api_device_pb.FlushDevNoncesRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - flushDevNonces(argument: api_device_pb.FlushDevNoncesRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - activate(argument: api_device_pb.ActivateDeviceRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - activate(argument: api_device_pb.ActivateDeviceRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - activate(argument: api_device_pb.ActivateDeviceRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deactivate(argument: api_device_pb.DeactivateDeviceRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deactivate(argument: api_device_pb.DeactivateDeviceRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deactivate(argument: api_device_pb.DeactivateDeviceRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getActivation(argument: api_device_pb.GetDeviceActivationRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getActivation(argument: api_device_pb.GetDeviceActivationRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getActivation(argument: api_device_pb.GetDeviceActivationRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getRandomDevAddr(argument: api_device_pb.GetRandomDevAddrRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getRandomDevAddr(argument: api_device_pb.GetRandomDevAddrRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getRandomDevAddr(argument: api_device_pb.GetRandomDevAddrRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getMetrics(argument: api_device_pb.GetDeviceMetricsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getMetrics(argument: api_device_pb.GetDeviceMetricsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getMetrics(argument: api_device_pb.GetDeviceMetricsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getLinkMetrics(argument: api_device_pb.GetDeviceLinkMetricsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getLinkMetrics(argument: api_device_pb.GetDeviceLinkMetricsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getLinkMetrics(argument: api_device_pb.GetDeviceLinkMetricsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - enqueue(argument: api_device_pb.EnqueueDeviceQueueItemRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - enqueue(argument: api_device_pb.EnqueueDeviceQueueItemRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - enqueue(argument: api_device_pb.EnqueueDeviceQueueItemRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - flushQueue(argument: api_device_pb.FlushDeviceQueueRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - flushQueue(argument: api_device_pb.FlushDeviceQueueRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - flushQueue(argument: api_device_pb.FlushDeviceQueueRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getQueue(argument: api_device_pb.GetDeviceQueueItemsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getQueue(argument: api_device_pb.GetDeviceQueueItemsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getQueue(argument: api_device_pb.GetDeviceQueueItemsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getNextFCntDown(argument: api_device_pb.GetDeviceNextFCntDownRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getNextFCntDown(argument: api_device_pb.GetDeviceNextFCntDownRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getNextFCntDown(argument: api_device_pb.GetDeviceNextFCntDownRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; -} diff --git a/api/js/api/device_grpc_pb.js b/api/js/api/device_grpc_pb.js deleted file mode 100644 index 3b8db85f..00000000 --- a/api/js/api/device_grpc_pb.js +++ /dev/null @@ -1,606 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var api_device_pb = require('../api/device_pb.js'); -var common_common_pb = require('../common/common_pb.js'); -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); - -function serialize_api_ActivateDeviceRequest(arg) { - if (!(arg instanceof api_device_pb.ActivateDeviceRequest)) { - throw new Error('Expected argument of type api.ActivateDeviceRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ActivateDeviceRequest(buffer_arg) { - return api_device_pb.ActivateDeviceRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateDeviceKeysRequest(arg) { - if (!(arg instanceof api_device_pb.CreateDeviceKeysRequest)) { - throw new Error('Expected argument of type api.CreateDeviceKeysRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateDeviceKeysRequest(buffer_arg) { - return api_device_pb.CreateDeviceKeysRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateDeviceRequest(arg) { - if (!(arg instanceof api_device_pb.CreateDeviceRequest)) { - throw new Error('Expected argument of type api.CreateDeviceRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateDeviceRequest(buffer_arg) { - return api_device_pb.CreateDeviceRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeactivateDeviceRequest(arg) { - if (!(arg instanceof api_device_pb.DeactivateDeviceRequest)) { - throw new Error('Expected argument of type api.DeactivateDeviceRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeactivateDeviceRequest(buffer_arg) { - return api_device_pb.DeactivateDeviceRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteDeviceKeysRequest(arg) { - if (!(arg instanceof api_device_pb.DeleteDeviceKeysRequest)) { - throw new Error('Expected argument of type api.DeleteDeviceKeysRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteDeviceKeysRequest(buffer_arg) { - return api_device_pb.DeleteDeviceKeysRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteDeviceRequest(arg) { - if (!(arg instanceof api_device_pb.DeleteDeviceRequest)) { - throw new Error('Expected argument of type api.DeleteDeviceRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteDeviceRequest(buffer_arg) { - return api_device_pb.DeleteDeviceRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_EnqueueDeviceQueueItemRequest(arg) { - if (!(arg instanceof api_device_pb.EnqueueDeviceQueueItemRequest)) { - throw new Error('Expected argument of type api.EnqueueDeviceQueueItemRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_EnqueueDeviceQueueItemRequest(buffer_arg) { - return api_device_pb.EnqueueDeviceQueueItemRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_EnqueueDeviceQueueItemResponse(arg) { - if (!(arg instanceof api_device_pb.EnqueueDeviceQueueItemResponse)) { - throw new Error('Expected argument of type api.EnqueueDeviceQueueItemResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_EnqueueDeviceQueueItemResponse(buffer_arg) { - return api_device_pb.EnqueueDeviceQueueItemResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_FlushDevNoncesRequest(arg) { - if (!(arg instanceof api_device_pb.FlushDevNoncesRequest)) { - throw new Error('Expected argument of type api.FlushDevNoncesRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_FlushDevNoncesRequest(buffer_arg) { - return api_device_pb.FlushDevNoncesRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_FlushDeviceQueueRequest(arg) { - if (!(arg instanceof api_device_pb.FlushDeviceQueueRequest)) { - throw new Error('Expected argument of type api.FlushDeviceQueueRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_FlushDeviceQueueRequest(buffer_arg) { - return api_device_pb.FlushDeviceQueueRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDeviceActivationRequest(arg) { - if (!(arg instanceof api_device_pb.GetDeviceActivationRequest)) { - throw new Error('Expected argument of type api.GetDeviceActivationRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDeviceActivationRequest(buffer_arg) { - return api_device_pb.GetDeviceActivationRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDeviceActivationResponse(arg) { - if (!(arg instanceof api_device_pb.GetDeviceActivationResponse)) { - throw new Error('Expected argument of type api.GetDeviceActivationResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDeviceActivationResponse(buffer_arg) { - return api_device_pb.GetDeviceActivationResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDeviceKeysRequest(arg) { - if (!(arg instanceof api_device_pb.GetDeviceKeysRequest)) { - throw new Error('Expected argument of type api.GetDeviceKeysRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDeviceKeysRequest(buffer_arg) { - return api_device_pb.GetDeviceKeysRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDeviceKeysResponse(arg) { - if (!(arg instanceof api_device_pb.GetDeviceKeysResponse)) { - throw new Error('Expected argument of type api.GetDeviceKeysResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDeviceKeysResponse(buffer_arg) { - return api_device_pb.GetDeviceKeysResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDeviceLinkMetricsRequest(arg) { - if (!(arg instanceof api_device_pb.GetDeviceLinkMetricsRequest)) { - throw new Error('Expected argument of type api.GetDeviceLinkMetricsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDeviceLinkMetricsRequest(buffer_arg) { - return api_device_pb.GetDeviceLinkMetricsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDeviceLinkMetricsResponse(arg) { - if (!(arg instanceof api_device_pb.GetDeviceLinkMetricsResponse)) { - throw new Error('Expected argument of type api.GetDeviceLinkMetricsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDeviceLinkMetricsResponse(buffer_arg) { - return api_device_pb.GetDeviceLinkMetricsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDeviceMetricsRequest(arg) { - if (!(arg instanceof api_device_pb.GetDeviceMetricsRequest)) { - throw new Error('Expected argument of type api.GetDeviceMetricsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDeviceMetricsRequest(buffer_arg) { - return api_device_pb.GetDeviceMetricsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDeviceMetricsResponse(arg) { - if (!(arg instanceof api_device_pb.GetDeviceMetricsResponse)) { - throw new Error('Expected argument of type api.GetDeviceMetricsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDeviceMetricsResponse(buffer_arg) { - return api_device_pb.GetDeviceMetricsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDeviceNextFCntDownRequest(arg) { - if (!(arg instanceof api_device_pb.GetDeviceNextFCntDownRequest)) { - throw new Error('Expected argument of type api.GetDeviceNextFCntDownRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDeviceNextFCntDownRequest(buffer_arg) { - return api_device_pb.GetDeviceNextFCntDownRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDeviceNextFCntDownResponse(arg) { - if (!(arg instanceof api_device_pb.GetDeviceNextFCntDownResponse)) { - throw new Error('Expected argument of type api.GetDeviceNextFCntDownResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDeviceNextFCntDownResponse(buffer_arg) { - return api_device_pb.GetDeviceNextFCntDownResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDeviceQueueItemsRequest(arg) { - if (!(arg instanceof api_device_pb.GetDeviceQueueItemsRequest)) { - throw new Error('Expected argument of type api.GetDeviceQueueItemsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDeviceQueueItemsRequest(buffer_arg) { - return api_device_pb.GetDeviceQueueItemsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDeviceQueueItemsResponse(arg) { - if (!(arg instanceof api_device_pb.GetDeviceQueueItemsResponse)) { - throw new Error('Expected argument of type api.GetDeviceQueueItemsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDeviceQueueItemsResponse(buffer_arg) { - return api_device_pb.GetDeviceQueueItemsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDeviceRequest(arg) { - if (!(arg instanceof api_device_pb.GetDeviceRequest)) { - throw new Error('Expected argument of type api.GetDeviceRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDeviceRequest(buffer_arg) { - return api_device_pb.GetDeviceRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDeviceResponse(arg) { - if (!(arg instanceof api_device_pb.GetDeviceResponse)) { - throw new Error('Expected argument of type api.GetDeviceResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDeviceResponse(buffer_arg) { - return api_device_pb.GetDeviceResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetRandomDevAddrRequest(arg) { - if (!(arg instanceof api_device_pb.GetRandomDevAddrRequest)) { - throw new Error('Expected argument of type api.GetRandomDevAddrRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetRandomDevAddrRequest(buffer_arg) { - return api_device_pb.GetRandomDevAddrRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetRandomDevAddrResponse(arg) { - if (!(arg instanceof api_device_pb.GetRandomDevAddrResponse)) { - throw new Error('Expected argument of type api.GetRandomDevAddrResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetRandomDevAddrResponse(buffer_arg) { - return api_device_pb.GetRandomDevAddrResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListDevicesRequest(arg) { - if (!(arg instanceof api_device_pb.ListDevicesRequest)) { - throw new Error('Expected argument of type api.ListDevicesRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListDevicesRequest(buffer_arg) { - return api_device_pb.ListDevicesRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListDevicesResponse(arg) { - if (!(arg instanceof api_device_pb.ListDevicesResponse)) { - throw new Error('Expected argument of type api.ListDevicesResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListDevicesResponse(buffer_arg) { - return api_device_pb.ListDevicesResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateDeviceKeysRequest(arg) { - if (!(arg instanceof api_device_pb.UpdateDeviceKeysRequest)) { - throw new Error('Expected argument of type api.UpdateDeviceKeysRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateDeviceKeysRequest(buffer_arg) { - return api_device_pb.UpdateDeviceKeysRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateDeviceRequest(arg) { - if (!(arg instanceof api_device_pb.UpdateDeviceRequest)) { - throw new Error('Expected argument of type api.UpdateDeviceRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateDeviceRequest(buffer_arg) { - return api_device_pb.UpdateDeviceRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_google_protobuf_Empty(arg) { - if (!(arg instanceof google_protobuf_empty_pb.Empty)) { - throw new Error('Expected argument of type google.protobuf.Empty'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_google_protobuf_Empty(buffer_arg) { - return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -// DeviceService is the service providing API methods for managing devices. -var DeviceServiceService = exports.DeviceServiceService = { - // Create the given device. -create: { - path: '/api.DeviceService/Create', - requestStream: false, - responseStream: false, - requestType: api_device_pb.CreateDeviceRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_CreateDeviceRequest, - requestDeserialize: deserialize_api_CreateDeviceRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get returns the device for the given DevEUI. -get: { - path: '/api.DeviceService/Get', - requestStream: false, - responseStream: false, - requestType: api_device_pb.GetDeviceRequest, - responseType: api_device_pb.GetDeviceResponse, - requestSerialize: serialize_api_GetDeviceRequest, - requestDeserialize: deserialize_api_GetDeviceRequest, - responseSerialize: serialize_api_GetDeviceResponse, - responseDeserialize: deserialize_api_GetDeviceResponse, - }, - // Update the given device. -update: { - path: '/api.DeviceService/Update', - requestStream: false, - responseStream: false, - requestType: api_device_pb.UpdateDeviceRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateDeviceRequest, - requestDeserialize: deserialize_api_UpdateDeviceRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete the device with the given DevEUI. -delete: { - path: '/api.DeviceService/Delete', - requestStream: false, - responseStream: false, - requestType: api_device_pb.DeleteDeviceRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteDeviceRequest, - requestDeserialize: deserialize_api_DeleteDeviceRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get the list of devices. -list: { - path: '/api.DeviceService/List', - requestStream: false, - responseStream: false, - requestType: api_device_pb.ListDevicesRequest, - responseType: api_device_pb.ListDevicesResponse, - requestSerialize: serialize_api_ListDevicesRequest, - requestDeserialize: deserialize_api_ListDevicesRequest, - responseSerialize: serialize_api_ListDevicesResponse, - responseDeserialize: deserialize_api_ListDevicesResponse, - }, - // Create the given device-keys. -createKeys: { - path: '/api.DeviceService/CreateKeys', - requestStream: false, - responseStream: false, - requestType: api_device_pb.CreateDeviceKeysRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_CreateDeviceKeysRequest, - requestDeserialize: deserialize_api_CreateDeviceKeysRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get the device-keys for the given DevEUI. -getKeys: { - path: '/api.DeviceService/GetKeys', - requestStream: false, - responseStream: false, - requestType: api_device_pb.GetDeviceKeysRequest, - responseType: api_device_pb.GetDeviceKeysResponse, - requestSerialize: serialize_api_GetDeviceKeysRequest, - requestDeserialize: deserialize_api_GetDeviceKeysRequest, - responseSerialize: serialize_api_GetDeviceKeysResponse, - responseDeserialize: deserialize_api_GetDeviceKeysResponse, - }, - // Update the given device-keys. -updateKeys: { - path: '/api.DeviceService/UpdateKeys', - requestStream: false, - responseStream: false, - requestType: api_device_pb.UpdateDeviceKeysRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateDeviceKeysRequest, - requestDeserialize: deserialize_api_UpdateDeviceKeysRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete the device-keys for the given DevEUI. -deleteKeys: { - path: '/api.DeviceService/DeleteKeys', - requestStream: false, - responseStream: false, - requestType: api_device_pb.DeleteDeviceKeysRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteDeviceKeysRequest, - requestDeserialize: deserialize_api_DeleteDeviceKeysRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // FlushDevNonces flushes the OTAA device nonces. -flushDevNonces: { - path: '/api.DeviceService/FlushDevNonces', - requestStream: false, - responseStream: false, - requestType: api_device_pb.FlushDevNoncesRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_FlushDevNoncesRequest, - requestDeserialize: deserialize_api_FlushDevNoncesRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Activate (re)activates the device with the given parameters (for ABP or for -// importing OTAA activations). -activate: { - path: '/api.DeviceService/Activate', - requestStream: false, - responseStream: false, - requestType: api_device_pb.ActivateDeviceRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_ActivateDeviceRequest, - requestDeserialize: deserialize_api_ActivateDeviceRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Deactivate de-activates the device. -deactivate: { - path: '/api.DeviceService/Deactivate', - requestStream: false, - responseStream: false, - requestType: api_device_pb.DeactivateDeviceRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeactivateDeviceRequest, - requestDeserialize: deserialize_api_DeactivateDeviceRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // GetActivation returns the current activation details of the device (OTAA or -// ABP). -getActivation: { - path: '/api.DeviceService/GetActivation', - requestStream: false, - responseStream: false, - requestType: api_device_pb.GetDeviceActivationRequest, - responseType: api_device_pb.GetDeviceActivationResponse, - requestSerialize: serialize_api_GetDeviceActivationRequest, - requestDeserialize: deserialize_api_GetDeviceActivationRequest, - responseSerialize: serialize_api_GetDeviceActivationResponse, - responseDeserialize: deserialize_api_GetDeviceActivationResponse, - }, - // GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into -// account. -getRandomDevAddr: { - path: '/api.DeviceService/GetRandomDevAddr', - requestStream: false, - responseStream: false, - requestType: api_device_pb.GetRandomDevAddrRequest, - responseType: api_device_pb.GetRandomDevAddrResponse, - requestSerialize: serialize_api_GetRandomDevAddrRequest, - requestDeserialize: deserialize_api_GetRandomDevAddrRequest, - responseSerialize: serialize_api_GetRandomDevAddrResponse, - responseDeserialize: deserialize_api_GetRandomDevAddrResponse, - }, - // GetMetrics returns the device metrics. -// Note that this requires a device-profile with codec and measurements -// configured. -getMetrics: { - path: '/api.DeviceService/GetMetrics', - requestStream: false, - responseStream: false, - requestType: api_device_pb.GetDeviceMetricsRequest, - responseType: api_device_pb.GetDeviceMetricsResponse, - requestSerialize: serialize_api_GetDeviceMetricsRequest, - requestDeserialize: deserialize_api_GetDeviceMetricsRequest, - responseSerialize: serialize_api_GetDeviceMetricsResponse, - responseDeserialize: deserialize_api_GetDeviceMetricsResponse, - }, - // GetLinkMetrics returns the device link metrics. -// This includes uplinks, downlinks, RSSI, SNR, etc... -getLinkMetrics: { - path: '/api.DeviceService/GetLinkMetrics', - requestStream: false, - responseStream: false, - requestType: api_device_pb.GetDeviceLinkMetricsRequest, - responseType: api_device_pb.GetDeviceLinkMetricsResponse, - requestSerialize: serialize_api_GetDeviceLinkMetricsRequest, - requestDeserialize: deserialize_api_GetDeviceLinkMetricsRequest, - responseSerialize: serialize_api_GetDeviceLinkMetricsResponse, - responseDeserialize: deserialize_api_GetDeviceLinkMetricsResponse, - }, - // Enqueue adds the given item to the downlink queue. -enqueue: { - path: '/api.DeviceService/Enqueue', - requestStream: false, - responseStream: false, - requestType: api_device_pb.EnqueueDeviceQueueItemRequest, - responseType: api_device_pb.EnqueueDeviceQueueItemResponse, - requestSerialize: serialize_api_EnqueueDeviceQueueItemRequest, - requestDeserialize: deserialize_api_EnqueueDeviceQueueItemRequest, - responseSerialize: serialize_api_EnqueueDeviceQueueItemResponse, - responseDeserialize: deserialize_api_EnqueueDeviceQueueItemResponse, - }, - // FlushQueue flushes the downlink device-queue. -flushQueue: { - path: '/api.DeviceService/FlushQueue', - requestStream: false, - responseStream: false, - requestType: api_device_pb.FlushDeviceQueueRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_FlushDeviceQueueRequest, - requestDeserialize: deserialize_api_FlushDeviceQueueRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // GetQueue returns the downlink device-queue. -getQueue: { - path: '/api.DeviceService/GetQueue', - requestStream: false, - responseStream: false, - requestType: api_device_pb.GetDeviceQueueItemsRequest, - responseType: api_device_pb.GetDeviceQueueItemsResponse, - requestSerialize: serialize_api_GetDeviceQueueItemsRequest, - requestDeserialize: deserialize_api_GetDeviceQueueItemsRequest, - responseSerialize: serialize_api_GetDeviceQueueItemsResponse, - responseDeserialize: deserialize_api_GetDeviceQueueItemsResponse, - }, - // GetNextFCntDown returns the next FCntDown to use for enqueing encrypted -// downlinks. The difference with the DeviceActivation f_cont_down is that -// this method takes potential existing queue-items into account. -getNextFCntDown: { - path: '/api.DeviceService/GetNextFCntDown', - requestStream: false, - responseStream: false, - requestType: api_device_pb.GetDeviceNextFCntDownRequest, - responseType: api_device_pb.GetDeviceNextFCntDownResponse, - requestSerialize: serialize_api_GetDeviceNextFCntDownRequest, - requestDeserialize: deserialize_api_GetDeviceNextFCntDownRequest, - responseSerialize: serialize_api_GetDeviceNextFCntDownResponse, - responseDeserialize: deserialize_api_GetDeviceNextFCntDownResponse, - }, -}; - -exports.DeviceServiceClient = grpc.makeGenericClientConstructor(DeviceServiceService); diff --git a/api/js/api/device_pb.d.ts b/api/js/api/device_pb.d.ts deleted file mode 100644 index 9472eb83..00000000 --- a/api/js/api/device_pb.d.ts +++ /dev/null @@ -1,1074 +0,0 @@ -// package: api -// file: api/device.proto - -import * as jspb from "google-protobuf"; -import * as common_common_pb from "../common/common_pb"; -import * as google_api_annotations_pb from "../google/api/annotations_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; - -export class Device extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getApplicationId(): string; - setApplicationId(value: string): void; - - getDeviceProfileId(): string; - setDeviceProfileId(value: string): void; - - getSkipFcntCheck(): boolean; - setSkipFcntCheck(value: boolean): void; - - getIsDisabled(): boolean; - setIsDisabled(value: boolean): void; - - getVariablesMap(): jspb.Map; - clearVariablesMap(): void; - getTagsMap(): jspb.Map; - clearTagsMap(): void; - getJoinEui(): string; - setJoinEui(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Device.AsObject; - static toObject(includeInstance: boolean, msg: Device): Device.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Device, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Device; - static deserializeBinaryFromReader(message: Device, reader: jspb.BinaryReader): Device; -} - -export namespace Device { - export type AsObject = { - devEui: string, - name: string, - description: string, - applicationId: string, - deviceProfileId: string, - skipFcntCheck: boolean, - isDisabled: boolean, - variablesMap: Array<[string, string]>, - tagsMap: Array<[string, string]>, - joinEui: string, - } -} - -export class DeviceStatus extends jspb.Message { - getMargin(): number; - setMargin(value: number): void; - - getExternalPowerSource(): boolean; - setExternalPowerSource(value: boolean): void; - - getBatteryLevel(): number; - setBatteryLevel(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceStatus.AsObject; - static toObject(includeInstance: boolean, msg: DeviceStatus): DeviceStatus.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeviceStatus, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceStatus; - static deserializeBinaryFromReader(message: DeviceStatus, reader: jspb.BinaryReader): DeviceStatus; -} - -export namespace DeviceStatus { - export type AsObject = { - margin: number, - externalPowerSource: boolean, - batteryLevel: number, - } -} - -export class DeviceListItem extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasLastSeenAt(): boolean; - clearLastSeenAt(): void; - getLastSeenAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setLastSeenAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getDeviceProfileId(): string; - setDeviceProfileId(value: string): void; - - getDeviceProfileName(): string; - setDeviceProfileName(value: string): void; - - hasDeviceStatus(): boolean; - clearDeviceStatus(): void; - getDeviceStatus(): DeviceStatus | undefined; - setDeviceStatus(value?: DeviceStatus): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceListItem.AsObject; - static toObject(includeInstance: boolean, msg: DeviceListItem): DeviceListItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeviceListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceListItem; - static deserializeBinaryFromReader(message: DeviceListItem, reader: jspb.BinaryReader): DeviceListItem; -} - -export namespace DeviceListItem { - export type AsObject = { - devEui: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - lastSeenAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - name: string, - description: string, - deviceProfileId: string, - deviceProfileName: string, - deviceStatus?: DeviceStatus.AsObject, - } -} - -export class DeviceKeys extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - getNwkKey(): string; - setNwkKey(value: string): void; - - getAppKey(): string; - setAppKey(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceKeys.AsObject; - static toObject(includeInstance: boolean, msg: DeviceKeys): DeviceKeys.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeviceKeys, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceKeys; - static deserializeBinaryFromReader(message: DeviceKeys, reader: jspb.BinaryReader): DeviceKeys; -} - -export namespace DeviceKeys { - export type AsObject = { - devEui: string, - nwkKey: string, - appKey: string, - } -} - -export class CreateDeviceRequest extends jspb.Message { - hasDevice(): boolean; - clearDevice(): void; - getDevice(): Device | undefined; - setDevice(value?: Device): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateDeviceRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateDeviceRequest): CreateDeviceRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateDeviceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateDeviceRequest; - static deserializeBinaryFromReader(message: CreateDeviceRequest, reader: jspb.BinaryReader): CreateDeviceRequest; -} - -export namespace CreateDeviceRequest { - export type AsObject = { - device?: Device.AsObject, - } -} - -export class GetDeviceRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceRequest): GetDeviceRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeviceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceRequest; - static deserializeBinaryFromReader(message: GetDeviceRequest, reader: jspb.BinaryReader): GetDeviceRequest; -} - -export namespace GetDeviceRequest { - export type AsObject = { - devEui: string, - } -} - -export class GetDeviceResponse extends jspb.Message { - hasDevice(): boolean; - clearDevice(): void; - getDevice(): Device | undefined; - setDevice(value?: Device): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasLastSeenAt(): boolean; - clearLastSeenAt(): void; - getLastSeenAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setLastSeenAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasDeviceStatus(): boolean; - clearDeviceStatus(): void; - getDeviceStatus(): DeviceStatus | undefined; - setDeviceStatus(value?: DeviceStatus): void; - - getClassEnabled(): common_common_pb.DeviceClassMap[keyof common_common_pb.DeviceClassMap]; - setClassEnabled(value: common_common_pb.DeviceClassMap[keyof common_common_pb.DeviceClassMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceResponse): GetDeviceResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeviceResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceResponse; - static deserializeBinaryFromReader(message: GetDeviceResponse, reader: jspb.BinaryReader): GetDeviceResponse; -} - -export namespace GetDeviceResponse { - export type AsObject = { - device?: Device.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - lastSeenAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - deviceStatus?: DeviceStatus.AsObject, - classEnabled: common_common_pb.DeviceClassMap[keyof common_common_pb.DeviceClassMap], - } -} - -export class UpdateDeviceRequest extends jspb.Message { - hasDevice(): boolean; - clearDevice(): void; - getDevice(): Device | undefined; - setDevice(value?: Device): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateDeviceRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateDeviceRequest): UpdateDeviceRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateDeviceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateDeviceRequest; - static deserializeBinaryFromReader(message: UpdateDeviceRequest, reader: jspb.BinaryReader): UpdateDeviceRequest; -} - -export namespace UpdateDeviceRequest { - export type AsObject = { - device?: Device.AsObject, - } -} - -export class DeleteDeviceRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteDeviceRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteDeviceRequest): DeleteDeviceRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteDeviceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteDeviceRequest; - static deserializeBinaryFromReader(message: DeleteDeviceRequest, reader: jspb.BinaryReader): DeleteDeviceRequest; -} - -export namespace DeleteDeviceRequest { - export type AsObject = { - devEui: string, - } -} - -export class ListDevicesRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): void; - - getOffset(): number; - setOffset(value: number): void; - - getSearch(): string; - setSearch(value: string): void; - - getApplicationId(): string; - setApplicationId(value: string): void; - - getMulticastGroupId(): string; - setMulticastGroupId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListDevicesRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListDevicesRequest): ListDevicesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListDevicesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListDevicesRequest; - static deserializeBinaryFromReader(message: ListDevicesRequest, reader: jspb.BinaryReader): ListDevicesRequest; -} - -export namespace ListDevicesRequest { - export type AsObject = { - limit: number, - offset: number, - search: string, - applicationId: string, - multicastGroupId: string, - } -} - -export class ListDevicesResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): void; - - clearResultList(): void; - getResultList(): Array; - setResultList(value: Array): void; - addResult(value?: DeviceListItem, index?: number): DeviceListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListDevicesResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListDevicesResponse): ListDevicesResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListDevicesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListDevicesResponse; - static deserializeBinaryFromReader(message: ListDevicesResponse, reader: jspb.BinaryReader): ListDevicesResponse; -} - -export namespace ListDevicesResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class CreateDeviceKeysRequest extends jspb.Message { - hasDeviceKeys(): boolean; - clearDeviceKeys(): void; - getDeviceKeys(): DeviceKeys | undefined; - setDeviceKeys(value?: DeviceKeys): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateDeviceKeysRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateDeviceKeysRequest): CreateDeviceKeysRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateDeviceKeysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateDeviceKeysRequest; - static deserializeBinaryFromReader(message: CreateDeviceKeysRequest, reader: jspb.BinaryReader): CreateDeviceKeysRequest; -} - -export namespace CreateDeviceKeysRequest { - export type AsObject = { - deviceKeys?: DeviceKeys.AsObject, - } -} - -export class GetDeviceKeysRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceKeysRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceKeysRequest): GetDeviceKeysRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeviceKeysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceKeysRequest; - static deserializeBinaryFromReader(message: GetDeviceKeysRequest, reader: jspb.BinaryReader): GetDeviceKeysRequest; -} - -export namespace GetDeviceKeysRequest { - export type AsObject = { - devEui: string, - } -} - -export class GetDeviceKeysResponse extends jspb.Message { - hasDeviceKeys(): boolean; - clearDeviceKeys(): void; - getDeviceKeys(): DeviceKeys | undefined; - setDeviceKeys(value?: DeviceKeys): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceKeysResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceKeysResponse): GetDeviceKeysResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeviceKeysResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceKeysResponse; - static deserializeBinaryFromReader(message: GetDeviceKeysResponse, reader: jspb.BinaryReader): GetDeviceKeysResponse; -} - -export namespace GetDeviceKeysResponse { - export type AsObject = { - deviceKeys?: DeviceKeys.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateDeviceKeysRequest extends jspb.Message { - hasDeviceKeys(): boolean; - clearDeviceKeys(): void; - getDeviceKeys(): DeviceKeys | undefined; - setDeviceKeys(value?: DeviceKeys): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateDeviceKeysRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateDeviceKeysRequest): UpdateDeviceKeysRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateDeviceKeysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateDeviceKeysRequest; - static deserializeBinaryFromReader(message: UpdateDeviceKeysRequest, reader: jspb.BinaryReader): UpdateDeviceKeysRequest; -} - -export namespace UpdateDeviceKeysRequest { - export type AsObject = { - deviceKeys?: DeviceKeys.AsObject, - } -} - -export class DeleteDeviceKeysRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteDeviceKeysRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteDeviceKeysRequest): DeleteDeviceKeysRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteDeviceKeysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteDeviceKeysRequest; - static deserializeBinaryFromReader(message: DeleteDeviceKeysRequest, reader: jspb.BinaryReader): DeleteDeviceKeysRequest; -} - -export namespace DeleteDeviceKeysRequest { - export type AsObject = { - devEui: string, - } -} - -export class DeviceActivation extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - getDevAddr(): string; - setDevAddr(value: string): void; - - getAppSKey(): string; - setAppSKey(value: string): void; - - getNwkSEncKey(): string; - setNwkSEncKey(value: string): void; - - getSNwkSIntKey(): string; - setSNwkSIntKey(value: string): void; - - getFNwkSIntKey(): string; - setFNwkSIntKey(value: string): void; - - getFCntUp(): number; - setFCntUp(value: number): void; - - getNFCntDown(): number; - setNFCntDown(value: number): void; - - getAFCntDown(): number; - setAFCntDown(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceActivation.AsObject; - static toObject(includeInstance: boolean, msg: DeviceActivation): DeviceActivation.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeviceActivation, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceActivation; - static deserializeBinaryFromReader(message: DeviceActivation, reader: jspb.BinaryReader): DeviceActivation; -} - -export namespace DeviceActivation { - export type AsObject = { - devEui: string, - devAddr: string, - appSKey: string, - nwkSEncKey: string, - sNwkSIntKey: string, - fNwkSIntKey: string, - fCntUp: number, - nFCntDown: number, - aFCntDown: number, - } -} - -export class ActivateDeviceRequest extends jspb.Message { - hasDeviceActivation(): boolean; - clearDeviceActivation(): void; - getDeviceActivation(): DeviceActivation | undefined; - setDeviceActivation(value?: DeviceActivation): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ActivateDeviceRequest.AsObject; - static toObject(includeInstance: boolean, msg: ActivateDeviceRequest): ActivateDeviceRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ActivateDeviceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ActivateDeviceRequest; - static deserializeBinaryFromReader(message: ActivateDeviceRequest, reader: jspb.BinaryReader): ActivateDeviceRequest; -} - -export namespace ActivateDeviceRequest { - export type AsObject = { - deviceActivation?: DeviceActivation.AsObject, - } -} - -export class DeactivateDeviceRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeactivateDeviceRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeactivateDeviceRequest): DeactivateDeviceRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeactivateDeviceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeactivateDeviceRequest; - static deserializeBinaryFromReader(message: DeactivateDeviceRequest, reader: jspb.BinaryReader): DeactivateDeviceRequest; -} - -export namespace DeactivateDeviceRequest { - export type AsObject = { - devEui: string, - } -} - -export class GetDeviceActivationRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceActivationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceActivationRequest): GetDeviceActivationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeviceActivationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceActivationRequest; - static deserializeBinaryFromReader(message: GetDeviceActivationRequest, reader: jspb.BinaryReader): GetDeviceActivationRequest; -} - -export namespace GetDeviceActivationRequest { - export type AsObject = { - devEui: string, - } -} - -export class GetDeviceActivationResponse extends jspb.Message { - hasDeviceActivation(): boolean; - clearDeviceActivation(): void; - getDeviceActivation(): DeviceActivation | undefined; - setDeviceActivation(value?: DeviceActivation): void; - - hasJoinServerContext(): boolean; - clearJoinServerContext(): void; - getJoinServerContext(): common_common_pb.JoinServerContext | undefined; - setJoinServerContext(value?: common_common_pb.JoinServerContext): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceActivationResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceActivationResponse): GetDeviceActivationResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeviceActivationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceActivationResponse; - static deserializeBinaryFromReader(message: GetDeviceActivationResponse, reader: jspb.BinaryReader): GetDeviceActivationResponse; -} - -export namespace GetDeviceActivationResponse { - export type AsObject = { - deviceActivation?: DeviceActivation.AsObject, - joinServerContext?: common_common_pb.JoinServerContext.AsObject, - } -} - -export class GetRandomDevAddrRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRandomDevAddrRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetRandomDevAddrRequest): GetRandomDevAddrRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetRandomDevAddrRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetRandomDevAddrRequest; - static deserializeBinaryFromReader(message: GetRandomDevAddrRequest, reader: jspb.BinaryReader): GetRandomDevAddrRequest; -} - -export namespace GetRandomDevAddrRequest { - export type AsObject = { - devEui: string, - } -} - -export class GetRandomDevAddrResponse extends jspb.Message { - getDevAddr(): string; - setDevAddr(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRandomDevAddrResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetRandomDevAddrResponse): GetRandomDevAddrResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetRandomDevAddrResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetRandomDevAddrResponse; - static deserializeBinaryFromReader(message: GetRandomDevAddrResponse, reader: jspb.BinaryReader): GetRandomDevAddrResponse; -} - -export namespace GetRandomDevAddrResponse { - export type AsObject = { - devAddr: string, - } -} - -export class GetDeviceMetricsRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - hasStart(): boolean; - clearStart(): void; - getStart(): google_protobuf_timestamp_pb.Timestamp | undefined; - setStart(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasEnd(): boolean; - clearEnd(): void; - getEnd(): google_protobuf_timestamp_pb.Timestamp | undefined; - setEnd(value?: google_protobuf_timestamp_pb.Timestamp): void; - - getAggregation(): common_common_pb.AggregationMap[keyof common_common_pb.AggregationMap]; - setAggregation(value: common_common_pb.AggregationMap[keyof common_common_pb.AggregationMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceMetricsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceMetricsRequest): GetDeviceMetricsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeviceMetricsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceMetricsRequest; - static deserializeBinaryFromReader(message: GetDeviceMetricsRequest, reader: jspb.BinaryReader): GetDeviceMetricsRequest; -} - -export namespace GetDeviceMetricsRequest { - export type AsObject = { - devEui: string, - start?: google_protobuf_timestamp_pb.Timestamp.AsObject, - end?: google_protobuf_timestamp_pb.Timestamp.AsObject, - aggregation: common_common_pb.AggregationMap[keyof common_common_pb.AggregationMap], - } -} - -export class GetDeviceMetricsResponse extends jspb.Message { - getMetricsMap(): jspb.Map; - clearMetricsMap(): void; - getStatesMap(): jspb.Map; - clearStatesMap(): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceMetricsResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceMetricsResponse): GetDeviceMetricsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeviceMetricsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceMetricsResponse; - static deserializeBinaryFromReader(message: GetDeviceMetricsResponse, reader: jspb.BinaryReader): GetDeviceMetricsResponse; -} - -export namespace GetDeviceMetricsResponse { - export type AsObject = { - metricsMap: Array<[string, common_common_pb.Metric.AsObject]>, - statesMap: Array<[string, DeviceState.AsObject]>, - } -} - -export class DeviceState extends jspb.Message { - getName(): string; - setName(value: string): void; - - getValue(): string; - setValue(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceState.AsObject; - static toObject(includeInstance: boolean, msg: DeviceState): DeviceState.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeviceState, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceState; - static deserializeBinaryFromReader(message: DeviceState, reader: jspb.BinaryReader): DeviceState; -} - -export namespace DeviceState { - export type AsObject = { - name: string, - value: string, - } -} - -export class GetDeviceLinkMetricsRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - hasStart(): boolean; - clearStart(): void; - getStart(): google_protobuf_timestamp_pb.Timestamp | undefined; - setStart(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasEnd(): boolean; - clearEnd(): void; - getEnd(): google_protobuf_timestamp_pb.Timestamp | undefined; - setEnd(value?: google_protobuf_timestamp_pb.Timestamp): void; - - getAggregation(): common_common_pb.AggregationMap[keyof common_common_pb.AggregationMap]; - setAggregation(value: common_common_pb.AggregationMap[keyof common_common_pb.AggregationMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceLinkMetricsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceLinkMetricsRequest): GetDeviceLinkMetricsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeviceLinkMetricsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceLinkMetricsRequest; - static deserializeBinaryFromReader(message: GetDeviceLinkMetricsRequest, reader: jspb.BinaryReader): GetDeviceLinkMetricsRequest; -} - -export namespace GetDeviceLinkMetricsRequest { - export type AsObject = { - devEui: string, - start?: google_protobuf_timestamp_pb.Timestamp.AsObject, - end?: google_protobuf_timestamp_pb.Timestamp.AsObject, - aggregation: common_common_pb.AggregationMap[keyof common_common_pb.AggregationMap], - } -} - -export class GetDeviceLinkMetricsResponse extends jspb.Message { - hasRxPackets(): boolean; - clearRxPackets(): void; - getRxPackets(): common_common_pb.Metric | undefined; - setRxPackets(value?: common_common_pb.Metric): void; - - hasGwRssi(): boolean; - clearGwRssi(): void; - getGwRssi(): common_common_pb.Metric | undefined; - setGwRssi(value?: common_common_pb.Metric): void; - - hasGwSnr(): boolean; - clearGwSnr(): void; - getGwSnr(): common_common_pb.Metric | undefined; - setGwSnr(value?: common_common_pb.Metric): void; - - hasRxPacketsPerFreq(): boolean; - clearRxPacketsPerFreq(): void; - getRxPacketsPerFreq(): common_common_pb.Metric | undefined; - setRxPacketsPerFreq(value?: common_common_pb.Metric): void; - - hasRxPacketsPerDr(): boolean; - clearRxPacketsPerDr(): void; - getRxPacketsPerDr(): common_common_pb.Metric | undefined; - setRxPacketsPerDr(value?: common_common_pb.Metric): void; - - hasErrors(): boolean; - clearErrors(): void; - getErrors(): common_common_pb.Metric | undefined; - setErrors(value?: common_common_pb.Metric): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceLinkMetricsResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceLinkMetricsResponse): GetDeviceLinkMetricsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeviceLinkMetricsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceLinkMetricsResponse; - static deserializeBinaryFromReader(message: GetDeviceLinkMetricsResponse, reader: jspb.BinaryReader): GetDeviceLinkMetricsResponse; -} - -export namespace GetDeviceLinkMetricsResponse { - export type AsObject = { - rxPackets?: common_common_pb.Metric.AsObject, - gwRssi?: common_common_pb.Metric.AsObject, - gwSnr?: common_common_pb.Metric.AsObject, - rxPacketsPerFreq?: common_common_pb.Metric.AsObject, - rxPacketsPerDr?: common_common_pb.Metric.AsObject, - errors?: common_common_pb.Metric.AsObject, - } -} - -export class DeviceQueueItem extends jspb.Message { - getId(): string; - setId(value: string): void; - - getDevEui(): string; - setDevEui(value: string): void; - - getConfirmed(): boolean; - setConfirmed(value: boolean): void; - - getFPort(): number; - setFPort(value: number): void; - - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): void; - - hasObject(): boolean; - clearObject(): void; - getObject(): google_protobuf_struct_pb.Struct | undefined; - setObject(value?: google_protobuf_struct_pb.Struct): void; - - getIsPending(): boolean; - setIsPending(value: boolean): void; - - getFCntDown(): number; - setFCntDown(value: number): void; - - getIsEncrypted(): boolean; - setIsEncrypted(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceQueueItem.AsObject; - static toObject(includeInstance: boolean, msg: DeviceQueueItem): DeviceQueueItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeviceQueueItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceQueueItem; - static deserializeBinaryFromReader(message: DeviceQueueItem, reader: jspb.BinaryReader): DeviceQueueItem; -} - -export namespace DeviceQueueItem { - export type AsObject = { - id: string, - devEui: string, - confirmed: boolean, - fPort: number, - data: Uint8Array | string, - object?: google_protobuf_struct_pb.Struct.AsObject, - isPending: boolean, - fCntDown: number, - isEncrypted: boolean, - } -} - -export class EnqueueDeviceQueueItemRequest extends jspb.Message { - hasQueueItem(): boolean; - clearQueueItem(): void; - getQueueItem(): DeviceQueueItem | undefined; - setQueueItem(value?: DeviceQueueItem): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EnqueueDeviceQueueItemRequest.AsObject; - static toObject(includeInstance: boolean, msg: EnqueueDeviceQueueItemRequest): EnqueueDeviceQueueItemRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EnqueueDeviceQueueItemRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EnqueueDeviceQueueItemRequest; - static deserializeBinaryFromReader(message: EnqueueDeviceQueueItemRequest, reader: jspb.BinaryReader): EnqueueDeviceQueueItemRequest; -} - -export namespace EnqueueDeviceQueueItemRequest { - export type AsObject = { - queueItem?: DeviceQueueItem.AsObject, - } -} - -export class EnqueueDeviceQueueItemResponse extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EnqueueDeviceQueueItemResponse.AsObject; - static toObject(includeInstance: boolean, msg: EnqueueDeviceQueueItemResponse): EnqueueDeviceQueueItemResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EnqueueDeviceQueueItemResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EnqueueDeviceQueueItemResponse; - static deserializeBinaryFromReader(message: EnqueueDeviceQueueItemResponse, reader: jspb.BinaryReader): EnqueueDeviceQueueItemResponse; -} - -export namespace EnqueueDeviceQueueItemResponse { - export type AsObject = { - id: string, - } -} - -export class FlushDeviceQueueRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FlushDeviceQueueRequest.AsObject; - static toObject(includeInstance: boolean, msg: FlushDeviceQueueRequest): FlushDeviceQueueRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FlushDeviceQueueRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FlushDeviceQueueRequest; - static deserializeBinaryFromReader(message: FlushDeviceQueueRequest, reader: jspb.BinaryReader): FlushDeviceQueueRequest; -} - -export namespace FlushDeviceQueueRequest { - export type AsObject = { - devEui: string, - } -} - -export class GetDeviceQueueItemsRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - getCountOnly(): boolean; - setCountOnly(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceQueueItemsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceQueueItemsRequest): GetDeviceQueueItemsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeviceQueueItemsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceQueueItemsRequest; - static deserializeBinaryFromReader(message: GetDeviceQueueItemsRequest, reader: jspb.BinaryReader): GetDeviceQueueItemsRequest; -} - -export namespace GetDeviceQueueItemsRequest { - export type AsObject = { - devEui: string, - countOnly: boolean, - } -} - -export class GetDeviceQueueItemsResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): void; - - clearResultList(): void; - getResultList(): Array; - setResultList(value: Array): void; - addResult(value?: DeviceQueueItem, index?: number): DeviceQueueItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceQueueItemsResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceQueueItemsResponse): GetDeviceQueueItemsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeviceQueueItemsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceQueueItemsResponse; - static deserializeBinaryFromReader(message: GetDeviceQueueItemsResponse, reader: jspb.BinaryReader): GetDeviceQueueItemsResponse; -} - -export namespace GetDeviceQueueItemsResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class FlushDevNoncesRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FlushDevNoncesRequest.AsObject; - static toObject(includeInstance: boolean, msg: FlushDevNoncesRequest): FlushDevNoncesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FlushDevNoncesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FlushDevNoncesRequest; - static deserializeBinaryFromReader(message: FlushDevNoncesRequest, reader: jspb.BinaryReader): FlushDevNoncesRequest; -} - -export namespace FlushDevNoncesRequest { - export type AsObject = { - devEui: string, - } -} - -export class GetDeviceNextFCntDownRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceNextFCntDownRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceNextFCntDownRequest): GetDeviceNextFCntDownRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeviceNextFCntDownRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceNextFCntDownRequest; - static deserializeBinaryFromReader(message: GetDeviceNextFCntDownRequest, reader: jspb.BinaryReader): GetDeviceNextFCntDownRequest; -} - -export namespace GetDeviceNextFCntDownRequest { - export type AsObject = { - devEui: string, - } -} - -export class GetDeviceNextFCntDownResponse extends jspb.Message { - getFCntDown(): number; - setFCntDown(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceNextFCntDownResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceNextFCntDownResponse): GetDeviceNextFCntDownResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeviceNextFCntDownResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceNextFCntDownResponse; - static deserializeBinaryFromReader(message: GetDeviceNextFCntDownResponse, reader: jspb.BinaryReader): GetDeviceNextFCntDownResponse; -} - -export namespace GetDeviceNextFCntDownResponse { - export type AsObject = { - fCntDown: number, - } -} - diff --git a/api/js/api/device_pb.js b/api/js/api/device_pb.js deleted file mode 100644 index c2a71da3..00000000 --- a/api/js/api/device_pb.js +++ /dev/null @@ -1,8346 +0,0 @@ -// source: api/device.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); -goog.object.extend(proto, google_protobuf_struct_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -goog.exportSymbol('proto.api.ActivateDeviceRequest', null, global); -goog.exportSymbol('proto.api.CreateDeviceKeysRequest', null, global); -goog.exportSymbol('proto.api.CreateDeviceRequest', null, global); -goog.exportSymbol('proto.api.DeactivateDeviceRequest', null, global); -goog.exportSymbol('proto.api.DeleteDeviceKeysRequest', null, global); -goog.exportSymbol('proto.api.DeleteDeviceRequest', null, global); -goog.exportSymbol('proto.api.Device', null, global); -goog.exportSymbol('proto.api.DeviceActivation', null, global); -goog.exportSymbol('proto.api.DeviceKeys', null, global); -goog.exportSymbol('proto.api.DeviceListItem', null, global); -goog.exportSymbol('proto.api.DeviceQueueItem', null, global); -goog.exportSymbol('proto.api.DeviceState', null, global); -goog.exportSymbol('proto.api.DeviceStatus', null, global); -goog.exportSymbol('proto.api.EnqueueDeviceQueueItemRequest', null, global); -goog.exportSymbol('proto.api.EnqueueDeviceQueueItemResponse', null, global); -goog.exportSymbol('proto.api.FlushDevNoncesRequest', null, global); -goog.exportSymbol('proto.api.FlushDeviceQueueRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceActivationRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceActivationResponse', null, global); -goog.exportSymbol('proto.api.GetDeviceKeysRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceKeysResponse', null, global); -goog.exportSymbol('proto.api.GetDeviceLinkMetricsRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceLinkMetricsResponse', null, global); -goog.exportSymbol('proto.api.GetDeviceMetricsRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceMetricsResponse', null, global); -goog.exportSymbol('proto.api.GetDeviceNextFCntDownRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceNextFCntDownResponse', null, global); -goog.exportSymbol('proto.api.GetDeviceQueueItemsRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceQueueItemsResponse', null, global); -goog.exportSymbol('proto.api.GetDeviceRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceResponse', null, global); -goog.exportSymbol('proto.api.GetRandomDevAddrRequest', null, global); -goog.exportSymbol('proto.api.GetRandomDevAddrResponse', null, global); -goog.exportSymbol('proto.api.ListDevicesRequest', null, global); -goog.exportSymbol('proto.api.ListDevicesResponse', null, global); -goog.exportSymbol('proto.api.UpdateDeviceKeysRequest', null, global); -goog.exportSymbol('proto.api.UpdateDeviceRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.Device = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.Device, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.Device.displayName = 'proto.api.Device'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceStatus = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceStatus, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceStatus.displayName = 'proto.api.DeviceStatus'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceListItem.displayName = 'proto.api.DeviceListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceKeys = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceKeys, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceKeys.displayName = 'proto.api.DeviceKeys'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateDeviceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateDeviceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateDeviceRequest.displayName = 'proto.api.CreateDeviceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceRequest.displayName = 'proto.api.GetDeviceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceResponse.displayName = 'proto.api.GetDeviceResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateDeviceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateDeviceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateDeviceRequest.displayName = 'proto.api.UpdateDeviceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteDeviceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteDeviceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteDeviceRequest.displayName = 'proto.api.DeleteDeviceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListDevicesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListDevicesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListDevicesRequest.displayName = 'proto.api.ListDevicesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListDevicesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListDevicesResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListDevicesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListDevicesResponse.displayName = 'proto.api.ListDevicesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateDeviceKeysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateDeviceKeysRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateDeviceKeysRequest.displayName = 'proto.api.CreateDeviceKeysRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceKeysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceKeysRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceKeysRequest.displayName = 'proto.api.GetDeviceKeysRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceKeysResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceKeysResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceKeysResponse.displayName = 'proto.api.GetDeviceKeysResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateDeviceKeysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateDeviceKeysRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateDeviceKeysRequest.displayName = 'proto.api.UpdateDeviceKeysRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteDeviceKeysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteDeviceKeysRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteDeviceKeysRequest.displayName = 'proto.api.DeleteDeviceKeysRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceActivation = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceActivation, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceActivation.displayName = 'proto.api.DeviceActivation'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ActivateDeviceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ActivateDeviceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ActivateDeviceRequest.displayName = 'proto.api.ActivateDeviceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeactivateDeviceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeactivateDeviceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeactivateDeviceRequest.displayName = 'proto.api.DeactivateDeviceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceActivationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceActivationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceActivationRequest.displayName = 'proto.api.GetDeviceActivationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceActivationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceActivationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceActivationResponse.displayName = 'proto.api.GetDeviceActivationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetRandomDevAddrRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetRandomDevAddrRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetRandomDevAddrRequest.displayName = 'proto.api.GetRandomDevAddrRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetRandomDevAddrResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetRandomDevAddrResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetRandomDevAddrResponse.displayName = 'proto.api.GetRandomDevAddrResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceMetricsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceMetricsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceMetricsRequest.displayName = 'proto.api.GetDeviceMetricsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceMetricsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceMetricsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceMetricsResponse.displayName = 'proto.api.GetDeviceMetricsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceState = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceState, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceState.displayName = 'proto.api.DeviceState'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceLinkMetricsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceLinkMetricsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceLinkMetricsRequest.displayName = 'proto.api.GetDeviceLinkMetricsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceLinkMetricsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceLinkMetricsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceLinkMetricsResponse.displayName = 'proto.api.GetDeviceLinkMetricsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceQueueItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceQueueItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceQueueItem.displayName = 'proto.api.DeviceQueueItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.EnqueueDeviceQueueItemRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.EnqueueDeviceQueueItemRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.EnqueueDeviceQueueItemRequest.displayName = 'proto.api.EnqueueDeviceQueueItemRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.EnqueueDeviceQueueItemResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.EnqueueDeviceQueueItemResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.EnqueueDeviceQueueItemResponse.displayName = 'proto.api.EnqueueDeviceQueueItemResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.FlushDeviceQueueRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.FlushDeviceQueueRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.FlushDeviceQueueRequest.displayName = 'proto.api.FlushDeviceQueueRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceQueueItemsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceQueueItemsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceQueueItemsRequest.displayName = 'proto.api.GetDeviceQueueItemsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceQueueItemsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.GetDeviceQueueItemsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.GetDeviceQueueItemsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceQueueItemsResponse.displayName = 'proto.api.GetDeviceQueueItemsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.FlushDevNoncesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.FlushDevNoncesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.FlushDevNoncesRequest.displayName = 'proto.api.FlushDevNoncesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceNextFCntDownRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceNextFCntDownRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceNextFCntDownRequest.displayName = 'proto.api.GetDeviceNextFCntDownRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceNextFCntDownResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceNextFCntDownResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceNextFCntDownResponse.displayName = 'proto.api.GetDeviceNextFCntDownResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.Device.prototype.toObject = function(opt_includeInstance) { - return proto.api.Device.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.Device} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Device.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - applicationId: jspb.Message.getFieldWithDefault(msg, 4, ""), - deviceProfileId: jspb.Message.getFieldWithDefault(msg, 5, ""), - skipFcntCheck: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - isDisabled: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - variablesMap: (f = msg.getVariablesMap()) ? f.toObject(includeInstance, undefined) : [], - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [], - joinEui: jspb.Message.getFieldWithDefault(msg, 10, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.Device} - */ -proto.api.Device.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.Device; - return proto.api.Device.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.Device} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.Device} - */ -proto.api.Device.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceProfileId(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSkipFcntCheck(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsDisabled(value); - break; - case 8: - var value = msg.getVariablesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 9: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setJoinEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.Device.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.Device.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.Device} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Device.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getDeviceProfileId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getSkipFcntCheck(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getIsDisabled(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getVariablesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(8, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getJoinEui(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.Device.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.Device.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.api.Device.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string application_id = 4; - * @return {string} - */ -proto.api.Device.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string device_profile_id = 5; - * @return {string} - */ -proto.api.Device.prototype.getDeviceProfileId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.setDeviceProfileId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional bool skip_fcnt_check = 6; - * @return {boolean} - */ -proto.api.Device.prototype.getSkipFcntCheck = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.setSkipFcntCheck = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional bool is_disabled = 7; - * @return {boolean} - */ -proto.api.Device.prototype.getIsDisabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.setIsDisabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * map variables = 8; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.Device.prototype.getVariablesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 8, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.clearVariablesMap = function() { - this.getVariablesMap().clear(); - return this;}; - - -/** - * map tags = 9; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.Device.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 9, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - -/** - * optional string join_eui = 10; - * @return {string} - */ -proto.api.Device.prototype.getJoinEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Device} returns this - */ -proto.api.Device.prototype.setJoinEui = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceStatus.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceStatus.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceStatus} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceStatus.toObject = function(includeInstance, msg) { - var f, obj = { - margin: jspb.Message.getFieldWithDefault(msg, 1, 0), - externalPowerSource: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - batteryLevel: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceStatus} - */ -proto.api.DeviceStatus.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceStatus; - return proto.api.DeviceStatus.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceStatus} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceStatus} - */ -proto.api.DeviceStatus.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMargin(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setExternalPowerSource(value); - break; - case 3: - var value = /** @type {number} */ (reader.readFloat()); - msg.setBatteryLevel(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceStatus.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceStatus.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceStatus} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceStatus.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMargin(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getExternalPowerSource(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getBatteryLevel(); - if (f !== 0.0) { - writer.writeFloat( - 3, - f - ); - } -}; - - -/** - * optional int32 margin = 1; - * @return {number} - */ -proto.api.DeviceStatus.prototype.getMargin = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceStatus} returns this - */ -proto.api.DeviceStatus.prototype.setMargin = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool external_power_source = 2; - * @return {boolean} - */ -proto.api.DeviceStatus.prototype.getExternalPowerSource = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceStatus} returns this - */ -proto.api.DeviceStatus.prototype.setExternalPowerSource = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional float battery_level = 3; - * @return {number} - */ -proto.api.DeviceStatus.prototype.getBatteryLevel = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceStatus} returns this - */ -proto.api.DeviceStatus.prototype.setBatteryLevel = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceListItem.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - lastSeenAt: (f = msg.getLastSeenAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 5, ""), - description: jspb.Message.getFieldWithDefault(msg, 6, ""), - deviceProfileId: jspb.Message.getFieldWithDefault(msg, 7, ""), - deviceProfileName: jspb.Message.getFieldWithDefault(msg, 8, ""), - deviceStatus: (f = msg.getDeviceStatus()) && proto.api.DeviceStatus.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceListItem} - */ -proto.api.DeviceListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceListItem; - return proto.api.DeviceListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceListItem} - */ -proto.api.DeviceListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setLastSeenAt(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceProfileId(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceProfileName(value); - break; - case 9: - var value = new proto.api.DeviceStatus; - reader.readMessage(value,proto.api.DeviceStatus.deserializeBinaryFromReader); - msg.setDeviceStatus(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getLastSeenAt(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getDeviceProfileId(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getDeviceProfileName(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getDeviceStatus(); - if (f != null) { - writer.writeMessage( - 9, - f, - proto.api.DeviceStatus.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.DeviceListItem.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceListItem} returns this - */ -proto.api.DeviceListItem.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.DeviceListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.DeviceListItem} returns this -*/ -proto.api.DeviceListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.DeviceListItem} returns this - */ -proto.api.DeviceListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.DeviceListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.DeviceListItem.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.DeviceListItem} returns this -*/ -proto.api.DeviceListItem.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.DeviceListItem} returns this - */ -proto.api.DeviceListItem.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.DeviceListItem.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp last_seen_at = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.DeviceListItem.prototype.getLastSeenAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.DeviceListItem} returns this -*/ -proto.api.DeviceListItem.prototype.setLastSeenAt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.DeviceListItem} returns this - */ -proto.api.DeviceListItem.prototype.clearLastSeenAt = function() { - return this.setLastSeenAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.DeviceListItem.prototype.hasLastSeenAt = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string name = 5; - * @return {string} - */ -proto.api.DeviceListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceListItem} returns this - */ -proto.api.DeviceListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string description = 6; - * @return {string} - */ -proto.api.DeviceListItem.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceListItem} returns this - */ -proto.api.DeviceListItem.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string device_profile_id = 7; - * @return {string} - */ -proto.api.DeviceListItem.prototype.getDeviceProfileId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceListItem} returns this - */ -proto.api.DeviceListItem.prototype.setDeviceProfileId = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string device_profile_name = 8; - * @return {string} - */ -proto.api.DeviceListItem.prototype.getDeviceProfileName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceListItem} returns this - */ -proto.api.DeviceListItem.prototype.setDeviceProfileName = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional DeviceStatus device_status = 9; - * @return {?proto.api.DeviceStatus} - */ -proto.api.DeviceListItem.prototype.getDeviceStatus = function() { - return /** @type{?proto.api.DeviceStatus} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceStatus, 9)); -}; - - -/** - * @param {?proto.api.DeviceStatus|undefined} value - * @return {!proto.api.DeviceListItem} returns this -*/ -proto.api.DeviceListItem.prototype.setDeviceStatus = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.DeviceListItem} returns this - */ -proto.api.DeviceListItem.prototype.clearDeviceStatus = function() { - return this.setDeviceStatus(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.DeviceListItem.prototype.hasDeviceStatus = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceKeys.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceKeys.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceKeys} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceKeys.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - nwkKey: jspb.Message.getFieldWithDefault(msg, 2, ""), - appKey: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceKeys} - */ -proto.api.DeviceKeys.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceKeys; - return proto.api.DeviceKeys.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceKeys} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceKeys} - */ -proto.api.DeviceKeys.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setNwkKey(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAppKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceKeys.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceKeys.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceKeys} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceKeys.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getNwkKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getAppKey(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.DeviceKeys.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceKeys} returns this - */ -proto.api.DeviceKeys.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string nwk_key = 2; - * @return {string} - */ -proto.api.DeviceKeys.prototype.getNwkKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceKeys} returns this - */ -proto.api.DeviceKeys.prototype.setNwkKey = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string app_key = 3; - * @return {string} - */ -proto.api.DeviceKeys.prototype.getAppKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceKeys} returns this - */ -proto.api.DeviceKeys.prototype.setAppKey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateDeviceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateDeviceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateDeviceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - device: (f = msg.getDevice()) && proto.api.Device.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateDeviceRequest} - */ -proto.api.CreateDeviceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateDeviceRequest; - return proto.api.CreateDeviceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateDeviceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateDeviceRequest} - */ -proto.api.CreateDeviceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Device; - reader.readMessage(value,proto.api.Device.deserializeBinaryFromReader); - msg.setDevice(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateDeviceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateDeviceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateDeviceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevice(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Device.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Device device = 1; - * @return {?proto.api.Device} - */ -proto.api.CreateDeviceRequest.prototype.getDevice = function() { - return /** @type{?proto.api.Device} */ ( - jspb.Message.getWrapperField(this, proto.api.Device, 1)); -}; - - -/** - * @param {?proto.api.Device|undefined} value - * @return {!proto.api.CreateDeviceRequest} returns this -*/ -proto.api.CreateDeviceRequest.prototype.setDevice = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateDeviceRequest} returns this - */ -proto.api.CreateDeviceRequest.prototype.clearDevice = function() { - return this.setDevice(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateDeviceRequest.prototype.hasDevice = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceRequest} - */ -proto.api.GetDeviceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceRequest; - return proto.api.GetDeviceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceRequest} - */ -proto.api.GetDeviceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.GetDeviceRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDeviceRequest} returns this - */ -proto.api.GetDeviceRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceResponse.toObject = function(includeInstance, msg) { - var f, obj = { - device: (f = msg.getDevice()) && proto.api.Device.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - lastSeenAt: (f = msg.getLastSeenAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - deviceStatus: (f = msg.getDeviceStatus()) && proto.api.DeviceStatus.toObject(includeInstance, f), - classEnabled: jspb.Message.getFieldWithDefault(msg, 6, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceResponse} - */ -proto.api.GetDeviceResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceResponse; - return proto.api.GetDeviceResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceResponse} - */ -proto.api.GetDeviceResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Device; - reader.readMessage(value,proto.api.Device.deserializeBinaryFromReader); - msg.setDevice(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setLastSeenAt(value); - break; - case 5: - var value = new proto.api.DeviceStatus; - reader.readMessage(value,proto.api.DeviceStatus.deserializeBinaryFromReader); - msg.setDeviceStatus(value); - break; - case 6: - var value = /** @type {!proto.common.DeviceClass} */ (reader.readEnum()); - msg.setClassEnabled(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevice(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Device.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getLastSeenAt(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDeviceStatus(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.api.DeviceStatus.serializeBinaryToWriter - ); - } - f = message.getClassEnabled(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } -}; - - -/** - * optional Device device = 1; - * @return {?proto.api.Device} - */ -proto.api.GetDeviceResponse.prototype.getDevice = function() { - return /** @type{?proto.api.Device} */ ( - jspb.Message.getWrapperField(this, proto.api.Device, 1)); -}; - - -/** - * @param {?proto.api.Device|undefined} value - * @return {!proto.api.GetDeviceResponse} returns this -*/ -proto.api.GetDeviceResponse.prototype.setDevice = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceResponse} returns this - */ -proto.api.GetDeviceResponse.prototype.clearDevice = function() { - return this.setDevice(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceResponse.prototype.hasDevice = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceResponse} returns this -*/ -proto.api.GetDeviceResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceResponse} returns this - */ -proto.api.GetDeviceResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceResponse} returns this -*/ -proto.api.GetDeviceResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceResponse} returns this - */ -proto.api.GetDeviceResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp last_seen_at = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceResponse.prototype.getLastSeenAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceResponse} returns this -*/ -proto.api.GetDeviceResponse.prototype.setLastSeenAt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceResponse} returns this - */ -proto.api.GetDeviceResponse.prototype.clearLastSeenAt = function() { - return this.setLastSeenAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceResponse.prototype.hasLastSeenAt = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional DeviceStatus device_status = 5; - * @return {?proto.api.DeviceStatus} - */ -proto.api.GetDeviceResponse.prototype.getDeviceStatus = function() { - return /** @type{?proto.api.DeviceStatus} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceStatus, 5)); -}; - - -/** - * @param {?proto.api.DeviceStatus|undefined} value - * @return {!proto.api.GetDeviceResponse} returns this -*/ -proto.api.GetDeviceResponse.prototype.setDeviceStatus = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceResponse} returns this - */ -proto.api.GetDeviceResponse.prototype.clearDeviceStatus = function() { - return this.setDeviceStatus(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceResponse.prototype.hasDeviceStatus = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional common.DeviceClass class_enabled = 6; - * @return {!proto.common.DeviceClass} - */ -proto.api.GetDeviceResponse.prototype.getClassEnabled = function() { - return /** @type {!proto.common.DeviceClass} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.common.DeviceClass} value - * @return {!proto.api.GetDeviceResponse} returns this - */ -proto.api.GetDeviceResponse.prototype.setClassEnabled = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateDeviceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateDeviceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateDeviceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateDeviceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - device: (f = msg.getDevice()) && proto.api.Device.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateDeviceRequest} - */ -proto.api.UpdateDeviceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateDeviceRequest; - return proto.api.UpdateDeviceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateDeviceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateDeviceRequest} - */ -proto.api.UpdateDeviceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Device; - reader.readMessage(value,proto.api.Device.deserializeBinaryFromReader); - msg.setDevice(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateDeviceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateDeviceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateDeviceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateDeviceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevice(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Device.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Device device = 1; - * @return {?proto.api.Device} - */ -proto.api.UpdateDeviceRequest.prototype.getDevice = function() { - return /** @type{?proto.api.Device} */ ( - jspb.Message.getWrapperField(this, proto.api.Device, 1)); -}; - - -/** - * @param {?proto.api.Device|undefined} value - * @return {!proto.api.UpdateDeviceRequest} returns this -*/ -proto.api.UpdateDeviceRequest.prototype.setDevice = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateDeviceRequest} returns this - */ -proto.api.UpdateDeviceRequest.prototype.clearDevice = function() { - return this.setDevice(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateDeviceRequest.prototype.hasDevice = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteDeviceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteDeviceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteDeviceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteDeviceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteDeviceRequest} - */ -proto.api.DeleteDeviceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteDeviceRequest; - return proto.api.DeleteDeviceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteDeviceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteDeviceRequest} - */ -proto.api.DeleteDeviceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteDeviceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteDeviceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteDeviceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteDeviceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.DeleteDeviceRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteDeviceRequest} returns this - */ -proto.api.DeleteDeviceRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListDevicesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListDevicesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListDevicesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDevicesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - search: jspb.Message.getFieldWithDefault(msg, 3, ""), - applicationId: jspb.Message.getFieldWithDefault(msg, 4, ""), - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListDevicesRequest} - */ -proto.api.ListDevicesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListDevicesRequest; - return proto.api.ListDevicesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListDevicesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListDevicesRequest} - */ -proto.api.ListDevicesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSearch(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListDevicesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListDevicesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListDevicesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDevicesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getSearch(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListDevicesRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDevicesRequest} returns this - */ -proto.api.ListDevicesRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListDevicesRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDevicesRequest} returns this - */ -proto.api.ListDevicesRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string search = 3; - * @return {string} - */ -proto.api.ListDevicesRequest.prototype.getSearch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListDevicesRequest} returns this - */ -proto.api.ListDevicesRequest.prototype.setSearch = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string application_id = 4; - * @return {string} - */ -proto.api.ListDevicesRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListDevicesRequest} returns this - */ -proto.api.ListDevicesRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string multicast_group_id = 5; - * @return {string} - */ -proto.api.ListDevicesRequest.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListDevicesRequest} returns this - */ -proto.api.ListDevicesRequest.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListDevicesResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListDevicesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListDevicesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListDevicesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDevicesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.DeviceListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListDevicesResponse} - */ -proto.api.ListDevicesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListDevicesResponse; - return proto.api.ListDevicesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListDevicesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListDevicesResponse} - */ -proto.api.ListDevicesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.DeviceListItem; - reader.readMessage(value,proto.api.DeviceListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListDevicesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListDevicesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListDevicesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDevicesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.DeviceListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListDevicesResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDevicesResponse} returns this - */ -proto.api.ListDevicesResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated DeviceListItem result = 2; - * @return {!Array} - */ -proto.api.ListDevicesResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.DeviceListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListDevicesResponse} returns this -*/ -proto.api.ListDevicesResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.DeviceListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.DeviceListItem} - */ -proto.api.ListDevicesResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.DeviceListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListDevicesResponse} returns this - */ -proto.api.ListDevicesResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateDeviceKeysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateDeviceKeysRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateDeviceKeysRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceKeysRequest.toObject = function(includeInstance, msg) { - var f, obj = { - deviceKeys: (f = msg.getDeviceKeys()) && proto.api.DeviceKeys.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateDeviceKeysRequest} - */ -proto.api.CreateDeviceKeysRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateDeviceKeysRequest; - return proto.api.CreateDeviceKeysRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateDeviceKeysRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateDeviceKeysRequest} - */ -proto.api.CreateDeviceKeysRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceKeys; - reader.readMessage(value,proto.api.DeviceKeys.deserializeBinaryFromReader); - msg.setDeviceKeys(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateDeviceKeysRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateDeviceKeysRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateDeviceKeysRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceKeysRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceKeys(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceKeys.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceKeys device_keys = 1; - * @return {?proto.api.DeviceKeys} - */ -proto.api.CreateDeviceKeysRequest.prototype.getDeviceKeys = function() { - return /** @type{?proto.api.DeviceKeys} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceKeys, 1)); -}; - - -/** - * @param {?proto.api.DeviceKeys|undefined} value - * @return {!proto.api.CreateDeviceKeysRequest} returns this -*/ -proto.api.CreateDeviceKeysRequest.prototype.setDeviceKeys = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateDeviceKeysRequest} returns this - */ -proto.api.CreateDeviceKeysRequest.prototype.clearDeviceKeys = function() { - return this.setDeviceKeys(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateDeviceKeysRequest.prototype.hasDeviceKeys = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceKeysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceKeysRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceKeysRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceKeysRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceKeysRequest} - */ -proto.api.GetDeviceKeysRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceKeysRequest; - return proto.api.GetDeviceKeysRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceKeysRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceKeysRequest} - */ -proto.api.GetDeviceKeysRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceKeysRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceKeysRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceKeysRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceKeysRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.GetDeviceKeysRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDeviceKeysRequest} returns this - */ -proto.api.GetDeviceKeysRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceKeysResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceKeysResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceKeysResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceKeysResponse.toObject = function(includeInstance, msg) { - var f, obj = { - deviceKeys: (f = msg.getDeviceKeys()) && proto.api.DeviceKeys.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceKeysResponse} - */ -proto.api.GetDeviceKeysResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceKeysResponse; - return proto.api.GetDeviceKeysResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceKeysResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceKeysResponse} - */ -proto.api.GetDeviceKeysResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceKeys; - reader.readMessage(value,proto.api.DeviceKeys.deserializeBinaryFromReader); - msg.setDeviceKeys(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceKeysResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceKeysResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceKeysResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceKeysResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceKeys(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceKeys.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceKeys device_keys = 1; - * @return {?proto.api.DeviceKeys} - */ -proto.api.GetDeviceKeysResponse.prototype.getDeviceKeys = function() { - return /** @type{?proto.api.DeviceKeys} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceKeys, 1)); -}; - - -/** - * @param {?proto.api.DeviceKeys|undefined} value - * @return {!proto.api.GetDeviceKeysResponse} returns this -*/ -proto.api.GetDeviceKeysResponse.prototype.setDeviceKeys = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceKeysResponse} returns this - */ -proto.api.GetDeviceKeysResponse.prototype.clearDeviceKeys = function() { - return this.setDeviceKeys(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceKeysResponse.prototype.hasDeviceKeys = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceKeysResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceKeysResponse} returns this -*/ -proto.api.GetDeviceKeysResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceKeysResponse} returns this - */ -proto.api.GetDeviceKeysResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceKeysResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceKeysResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceKeysResponse} returns this -*/ -proto.api.GetDeviceKeysResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceKeysResponse} returns this - */ -proto.api.GetDeviceKeysResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceKeysResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateDeviceKeysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateDeviceKeysRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateDeviceKeysRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateDeviceKeysRequest.toObject = function(includeInstance, msg) { - var f, obj = { - deviceKeys: (f = msg.getDeviceKeys()) && proto.api.DeviceKeys.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateDeviceKeysRequest} - */ -proto.api.UpdateDeviceKeysRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateDeviceKeysRequest; - return proto.api.UpdateDeviceKeysRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateDeviceKeysRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateDeviceKeysRequest} - */ -proto.api.UpdateDeviceKeysRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceKeys; - reader.readMessage(value,proto.api.DeviceKeys.deserializeBinaryFromReader); - msg.setDeviceKeys(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateDeviceKeysRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateDeviceKeysRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateDeviceKeysRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateDeviceKeysRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceKeys(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceKeys.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceKeys device_keys = 1; - * @return {?proto.api.DeviceKeys} - */ -proto.api.UpdateDeviceKeysRequest.prototype.getDeviceKeys = function() { - return /** @type{?proto.api.DeviceKeys} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceKeys, 1)); -}; - - -/** - * @param {?proto.api.DeviceKeys|undefined} value - * @return {!proto.api.UpdateDeviceKeysRequest} returns this -*/ -proto.api.UpdateDeviceKeysRequest.prototype.setDeviceKeys = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateDeviceKeysRequest} returns this - */ -proto.api.UpdateDeviceKeysRequest.prototype.clearDeviceKeys = function() { - return this.setDeviceKeys(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateDeviceKeysRequest.prototype.hasDeviceKeys = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteDeviceKeysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteDeviceKeysRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteDeviceKeysRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteDeviceKeysRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteDeviceKeysRequest} - */ -proto.api.DeleteDeviceKeysRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteDeviceKeysRequest; - return proto.api.DeleteDeviceKeysRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteDeviceKeysRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteDeviceKeysRequest} - */ -proto.api.DeleteDeviceKeysRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteDeviceKeysRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteDeviceKeysRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteDeviceKeysRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteDeviceKeysRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.DeleteDeviceKeysRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteDeviceKeysRequest} returns this - */ -proto.api.DeleteDeviceKeysRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceActivation.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceActivation.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceActivation} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceActivation.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - devAddr: jspb.Message.getFieldWithDefault(msg, 2, ""), - appSKey: jspb.Message.getFieldWithDefault(msg, 3, ""), - nwkSEncKey: jspb.Message.getFieldWithDefault(msg, 4, ""), - sNwkSIntKey: jspb.Message.getFieldWithDefault(msg, 8, ""), - fNwkSIntKey: jspb.Message.getFieldWithDefault(msg, 9, ""), - fCntUp: jspb.Message.getFieldWithDefault(msg, 5, 0), - nFCntDown: jspb.Message.getFieldWithDefault(msg, 6, 0), - aFCntDown: jspb.Message.getFieldWithDefault(msg, 10, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceActivation} - */ -proto.api.DeviceActivation.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceActivation; - return proto.api.DeviceActivation.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceActivation} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceActivation} - */ -proto.api.DeviceActivation.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDevAddr(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAppSKey(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setNwkSEncKey(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setSNwkSIntKey(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setFNwkSIntKey(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCntUp(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setNFCntDown(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAFCntDown(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceActivation.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceActivation.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceActivation} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceActivation.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDevAddr(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getAppSKey(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getNwkSEncKey(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getSNwkSIntKey(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getFNwkSIntKey(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getFCntUp(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getNFCntDown(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } - f = message.getAFCntDown(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.DeviceActivation.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceActivation} returns this - */ -proto.api.DeviceActivation.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string dev_addr = 2; - * @return {string} - */ -proto.api.DeviceActivation.prototype.getDevAddr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceActivation} returns this - */ -proto.api.DeviceActivation.prototype.setDevAddr = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string app_s_key = 3; - * @return {string} - */ -proto.api.DeviceActivation.prototype.getAppSKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceActivation} returns this - */ -proto.api.DeviceActivation.prototype.setAppSKey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string nwk_s_enc_key = 4; - * @return {string} - */ -proto.api.DeviceActivation.prototype.getNwkSEncKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceActivation} returns this - */ -proto.api.DeviceActivation.prototype.setNwkSEncKey = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string s_nwk_s_int_key = 8; - * @return {string} - */ -proto.api.DeviceActivation.prototype.getSNwkSIntKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceActivation} returns this - */ -proto.api.DeviceActivation.prototype.setSNwkSIntKey = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string f_nwk_s_int_key = 9; - * @return {string} - */ -proto.api.DeviceActivation.prototype.getFNwkSIntKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceActivation} returns this - */ -proto.api.DeviceActivation.prototype.setFNwkSIntKey = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional uint32 f_cnt_up = 5; - * @return {number} - */ -proto.api.DeviceActivation.prototype.getFCntUp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceActivation} returns this - */ -proto.api.DeviceActivation.prototype.setFCntUp = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional uint32 n_f_cnt_down = 6; - * @return {number} - */ -proto.api.DeviceActivation.prototype.getNFCntDown = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceActivation} returns this - */ -proto.api.DeviceActivation.prototype.setNFCntDown = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional uint32 a_f_cnt_down = 10; - * @return {number} - */ -proto.api.DeviceActivation.prototype.getAFCntDown = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceActivation} returns this - */ -proto.api.DeviceActivation.prototype.setAFCntDown = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ActivateDeviceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ActivateDeviceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ActivateDeviceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ActivateDeviceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - deviceActivation: (f = msg.getDeviceActivation()) && proto.api.DeviceActivation.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ActivateDeviceRequest} - */ -proto.api.ActivateDeviceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ActivateDeviceRequest; - return proto.api.ActivateDeviceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ActivateDeviceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ActivateDeviceRequest} - */ -proto.api.ActivateDeviceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceActivation; - reader.readMessage(value,proto.api.DeviceActivation.deserializeBinaryFromReader); - msg.setDeviceActivation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ActivateDeviceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ActivateDeviceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ActivateDeviceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ActivateDeviceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceActivation(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceActivation.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceActivation device_activation = 1; - * @return {?proto.api.DeviceActivation} - */ -proto.api.ActivateDeviceRequest.prototype.getDeviceActivation = function() { - return /** @type{?proto.api.DeviceActivation} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceActivation, 1)); -}; - - -/** - * @param {?proto.api.DeviceActivation|undefined} value - * @return {!proto.api.ActivateDeviceRequest} returns this -*/ -proto.api.ActivateDeviceRequest.prototype.setDeviceActivation = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.ActivateDeviceRequest} returns this - */ -proto.api.ActivateDeviceRequest.prototype.clearDeviceActivation = function() { - return this.setDeviceActivation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.ActivateDeviceRequest.prototype.hasDeviceActivation = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeactivateDeviceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeactivateDeviceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeactivateDeviceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeactivateDeviceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeactivateDeviceRequest} - */ -proto.api.DeactivateDeviceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeactivateDeviceRequest; - return proto.api.DeactivateDeviceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeactivateDeviceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeactivateDeviceRequest} - */ -proto.api.DeactivateDeviceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeactivateDeviceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeactivateDeviceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeactivateDeviceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeactivateDeviceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.DeactivateDeviceRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeactivateDeviceRequest} returns this - */ -proto.api.DeactivateDeviceRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceActivationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceActivationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceActivationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceActivationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceActivationRequest} - */ -proto.api.GetDeviceActivationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceActivationRequest; - return proto.api.GetDeviceActivationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceActivationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceActivationRequest} - */ -proto.api.GetDeviceActivationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceActivationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceActivationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceActivationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceActivationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.GetDeviceActivationRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDeviceActivationRequest} returns this - */ -proto.api.GetDeviceActivationRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceActivationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceActivationResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceActivationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceActivationResponse.toObject = function(includeInstance, msg) { - var f, obj = { - deviceActivation: (f = msg.getDeviceActivation()) && proto.api.DeviceActivation.toObject(includeInstance, f), - joinServerContext: (f = msg.getJoinServerContext()) && common_common_pb.JoinServerContext.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceActivationResponse} - */ -proto.api.GetDeviceActivationResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceActivationResponse; - return proto.api.GetDeviceActivationResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceActivationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceActivationResponse} - */ -proto.api.GetDeviceActivationResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceActivation; - reader.readMessage(value,proto.api.DeviceActivation.deserializeBinaryFromReader); - msg.setDeviceActivation(value); - break; - case 2: - var value = new common_common_pb.JoinServerContext; - reader.readMessage(value,common_common_pb.JoinServerContext.deserializeBinaryFromReader); - msg.setJoinServerContext(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceActivationResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceActivationResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceActivationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceActivationResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceActivation(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceActivation.serializeBinaryToWriter - ); - } - f = message.getJoinServerContext(); - if (f != null) { - writer.writeMessage( - 2, - f, - common_common_pb.JoinServerContext.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceActivation device_activation = 1; - * @return {?proto.api.DeviceActivation} - */ -proto.api.GetDeviceActivationResponse.prototype.getDeviceActivation = function() { - return /** @type{?proto.api.DeviceActivation} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceActivation, 1)); -}; - - -/** - * @param {?proto.api.DeviceActivation|undefined} value - * @return {!proto.api.GetDeviceActivationResponse} returns this -*/ -proto.api.GetDeviceActivationResponse.prototype.setDeviceActivation = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceActivationResponse} returns this - */ -proto.api.GetDeviceActivationResponse.prototype.clearDeviceActivation = function() { - return this.setDeviceActivation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceActivationResponse.prototype.hasDeviceActivation = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional common.JoinServerContext join_server_context = 2; - * @return {?proto.common.JoinServerContext} - */ -proto.api.GetDeviceActivationResponse.prototype.getJoinServerContext = function() { - return /** @type{?proto.common.JoinServerContext} */ ( - jspb.Message.getWrapperField(this, common_common_pb.JoinServerContext, 2)); -}; - - -/** - * @param {?proto.common.JoinServerContext|undefined} value - * @return {!proto.api.GetDeviceActivationResponse} returns this -*/ -proto.api.GetDeviceActivationResponse.prototype.setJoinServerContext = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceActivationResponse} returns this - */ -proto.api.GetDeviceActivationResponse.prototype.clearJoinServerContext = function() { - return this.setJoinServerContext(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceActivationResponse.prototype.hasJoinServerContext = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetRandomDevAddrRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetRandomDevAddrRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetRandomDevAddrRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetRandomDevAddrRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetRandomDevAddrRequest} - */ -proto.api.GetRandomDevAddrRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetRandomDevAddrRequest; - return proto.api.GetRandomDevAddrRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetRandomDevAddrRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetRandomDevAddrRequest} - */ -proto.api.GetRandomDevAddrRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetRandomDevAddrRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetRandomDevAddrRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetRandomDevAddrRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetRandomDevAddrRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.GetRandomDevAddrRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetRandomDevAddrRequest} returns this - */ -proto.api.GetRandomDevAddrRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetRandomDevAddrResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetRandomDevAddrResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetRandomDevAddrResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetRandomDevAddrResponse.toObject = function(includeInstance, msg) { - var f, obj = { - devAddr: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetRandomDevAddrResponse} - */ -proto.api.GetRandomDevAddrResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetRandomDevAddrResponse; - return proto.api.GetRandomDevAddrResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetRandomDevAddrResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetRandomDevAddrResponse} - */ -proto.api.GetRandomDevAddrResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevAddr(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetRandomDevAddrResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetRandomDevAddrResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetRandomDevAddrResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetRandomDevAddrResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevAddr(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_addr = 1; - * @return {string} - */ -proto.api.GetRandomDevAddrResponse.prototype.getDevAddr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetRandomDevAddrResponse} returns this - */ -proto.api.GetRandomDevAddrResponse.prototype.setDevAddr = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceMetricsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceMetricsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceMetricsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceMetricsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - start: (f = msg.getStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - end: (f = msg.getEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - aggregation: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceMetricsRequest} - */ -proto.api.GetDeviceMetricsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceMetricsRequest; - return proto.api.GetDeviceMetricsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceMetricsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceMetricsRequest} - */ -proto.api.GetDeviceMetricsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setStart(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setEnd(value); - break; - case 4: - var value = /** @type {!proto.common.Aggregation} */ (reader.readEnum()); - msg.setAggregation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceMetricsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceMetricsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceMetricsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceMetricsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getStart(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getEnd(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getAggregation(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.GetDeviceMetricsRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDeviceMetricsRequest} returns this - */ -proto.api.GetDeviceMetricsRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp start = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceMetricsRequest.prototype.getStart = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceMetricsRequest} returns this -*/ -proto.api.GetDeviceMetricsRequest.prototype.setStart = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceMetricsRequest} returns this - */ -proto.api.GetDeviceMetricsRequest.prototype.clearStart = function() { - return this.setStart(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceMetricsRequest.prototype.hasStart = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp end = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceMetricsRequest.prototype.getEnd = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceMetricsRequest} returns this -*/ -proto.api.GetDeviceMetricsRequest.prototype.setEnd = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceMetricsRequest} returns this - */ -proto.api.GetDeviceMetricsRequest.prototype.clearEnd = function() { - return this.setEnd(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceMetricsRequest.prototype.hasEnd = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional common.Aggregation aggregation = 4; - * @return {!proto.common.Aggregation} - */ -proto.api.GetDeviceMetricsRequest.prototype.getAggregation = function() { - return /** @type {!proto.common.Aggregation} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.common.Aggregation} value - * @return {!proto.api.GetDeviceMetricsRequest} returns this - */ -proto.api.GetDeviceMetricsRequest.prototype.setAggregation = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceMetricsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceMetricsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceMetricsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceMetricsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - metricsMap: (f = msg.getMetricsMap()) ? f.toObject(includeInstance, proto.common.Metric.toObject) : [], - statesMap: (f = msg.getStatesMap()) ? f.toObject(includeInstance, proto.api.DeviceState.toObject) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceMetricsResponse} - */ -proto.api.GetDeviceMetricsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceMetricsResponse; - return proto.api.GetDeviceMetricsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceMetricsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceMetricsResponse} - */ -proto.api.GetDeviceMetricsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = msg.getMetricsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.common.Metric.deserializeBinaryFromReader, "", new proto.common.Metric()); - }); - break; - case 2: - var value = msg.getStatesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.api.DeviceState.deserializeBinaryFromReader, "", new proto.api.DeviceState()); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceMetricsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceMetricsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceMetricsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceMetricsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMetricsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.common.Metric.serializeBinaryToWriter); - } - f = message.getStatesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.api.DeviceState.serializeBinaryToWriter); - } -}; - - -/** - * map metrics = 1; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.GetDeviceMetricsResponse.prototype.getMetricsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, opt_noLazyCreate, - proto.common.Metric)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.GetDeviceMetricsResponse} returns this - */ -proto.api.GetDeviceMetricsResponse.prototype.clearMetricsMap = function() { - this.getMetricsMap().clear(); - return this;}; - - -/** - * map states = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.GetDeviceMetricsResponse.prototype.getStatesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - proto.api.DeviceState)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.GetDeviceMetricsResponse} returns this - */ -proto.api.GetDeviceMetricsResponse.prototype.clearStatesMap = function() { - this.getStatesMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceState.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceState.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceState} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceState.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - value: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceState} - */ -proto.api.DeviceState.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceState; - return proto.api.DeviceState.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceState} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceState} - */ -proto.api.DeviceState.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceState.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceState.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceState} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceState.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.DeviceState.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceState} returns this - */ -proto.api.DeviceState.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string value = 3; - * @return {string} - */ -proto.api.DeviceState.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceState} returns this - */ -proto.api.DeviceState.prototype.setValue = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceLinkMetricsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceLinkMetricsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceLinkMetricsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - start: (f = msg.getStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - end: (f = msg.getEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - aggregation: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceLinkMetricsRequest} - */ -proto.api.GetDeviceLinkMetricsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceLinkMetricsRequest; - return proto.api.GetDeviceLinkMetricsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceLinkMetricsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceLinkMetricsRequest} - */ -proto.api.GetDeviceLinkMetricsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setStart(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setEnd(value); - break; - case 4: - var value = /** @type {!proto.common.Aggregation} */ (reader.readEnum()); - msg.setAggregation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceLinkMetricsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceLinkMetricsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceLinkMetricsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getStart(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getEnd(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getAggregation(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDeviceLinkMetricsRequest} returns this - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp start = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.getStart = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceLinkMetricsRequest} returns this -*/ -proto.api.GetDeviceLinkMetricsRequest.prototype.setStart = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceLinkMetricsRequest} returns this - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.clearStart = function() { - return this.setStart(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.hasStart = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp end = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.getEnd = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceLinkMetricsRequest} returns this -*/ -proto.api.GetDeviceLinkMetricsRequest.prototype.setEnd = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceLinkMetricsRequest} returns this - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.clearEnd = function() { - return this.setEnd(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.hasEnd = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional common.Aggregation aggregation = 4; - * @return {!proto.common.Aggregation} - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.getAggregation = function() { - return /** @type {!proto.common.Aggregation} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.common.Aggregation} value - * @return {!proto.api.GetDeviceLinkMetricsRequest} returns this - */ -proto.api.GetDeviceLinkMetricsRequest.prototype.setAggregation = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceLinkMetricsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceLinkMetricsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceLinkMetricsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - rxPackets: (f = msg.getRxPackets()) && common_common_pb.Metric.toObject(includeInstance, f), - gwRssi: (f = msg.getGwRssi()) && common_common_pb.Metric.toObject(includeInstance, f), - gwSnr: (f = msg.getGwSnr()) && common_common_pb.Metric.toObject(includeInstance, f), - rxPacketsPerFreq: (f = msg.getRxPacketsPerFreq()) && common_common_pb.Metric.toObject(includeInstance, f), - rxPacketsPerDr: (f = msg.getRxPacketsPerDr()) && common_common_pb.Metric.toObject(includeInstance, f), - errors: (f = msg.getErrors()) && common_common_pb.Metric.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceLinkMetricsResponse} - */ -proto.api.GetDeviceLinkMetricsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceLinkMetricsResponse; - return proto.api.GetDeviceLinkMetricsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceLinkMetricsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceLinkMetricsResponse} - */ -proto.api.GetDeviceLinkMetricsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setRxPackets(value); - break; - case 2: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setGwRssi(value); - break; - case 3: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setGwSnr(value); - break; - case 4: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setRxPacketsPerFreq(value); - break; - case 5: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setRxPacketsPerDr(value); - break; - case 6: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setErrors(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceLinkMetricsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceLinkMetricsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceLinkMetricsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRxPackets(); - if (f != null) { - writer.writeMessage( - 1, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getGwRssi(); - if (f != null) { - writer.writeMessage( - 2, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getGwSnr(); - if (f != null) { - writer.writeMessage( - 3, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getRxPacketsPerFreq(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getRxPacketsPerDr(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getErrors(); - if (f != null) { - writer.writeMessage( - 6, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } -}; - - -/** - * optional common.Metric rx_packets = 1; - * @return {?proto.common.Metric} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.getRxPackets = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 1)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this -*/ -proto.api.GetDeviceLinkMetricsResponse.prototype.setRxPackets = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.clearRxPackets = function() { - return this.setRxPackets(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.hasRxPackets = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional common.Metric gw_rssi = 2; - * @return {?proto.common.Metric} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.getGwRssi = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 2)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this -*/ -proto.api.GetDeviceLinkMetricsResponse.prototype.setGwRssi = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.clearGwRssi = function() { - return this.setGwRssi(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.hasGwRssi = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional common.Metric gw_snr = 3; - * @return {?proto.common.Metric} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.getGwSnr = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 3)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this -*/ -proto.api.GetDeviceLinkMetricsResponse.prototype.setGwSnr = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.clearGwSnr = function() { - return this.setGwSnr(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.hasGwSnr = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional common.Metric rx_packets_per_freq = 4; - * @return {?proto.common.Metric} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.getRxPacketsPerFreq = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 4)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this -*/ -proto.api.GetDeviceLinkMetricsResponse.prototype.setRxPacketsPerFreq = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.clearRxPacketsPerFreq = function() { - return this.setRxPacketsPerFreq(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.hasRxPacketsPerFreq = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional common.Metric rx_packets_per_dr = 5; - * @return {?proto.common.Metric} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.getRxPacketsPerDr = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 5)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this -*/ -proto.api.GetDeviceLinkMetricsResponse.prototype.setRxPacketsPerDr = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.clearRxPacketsPerDr = function() { - return this.setRxPacketsPerDr(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.hasRxPacketsPerDr = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional common.Metric errors = 6; - * @return {?proto.common.Metric} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.getErrors = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 6)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this -*/ -proto.api.GetDeviceLinkMetricsResponse.prototype.setErrors = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceLinkMetricsResponse} returns this - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.clearErrors = function() { - return this.setErrors(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceLinkMetricsResponse.prototype.hasErrors = function() { - return jspb.Message.getField(this, 6) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceQueueItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceQueueItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceQueueItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceQueueItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - devEui: jspb.Message.getFieldWithDefault(msg, 2, ""), - confirmed: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - fPort: jspb.Message.getFieldWithDefault(msg, 4, 0), - data: msg.getData_asB64(), - object: (f = msg.getObject()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - isPending: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - fCntDown: jspb.Message.getFieldWithDefault(msg, 8, 0), - isEncrypted: jspb.Message.getBooleanFieldWithDefault(msg, 9, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceQueueItem} - */ -proto.api.DeviceQueueItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceQueueItem; - return proto.api.DeviceQueueItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceQueueItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceQueueItem} - */ -proto.api.DeviceQueueItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setConfirmed(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFPort(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 6: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setObject(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsPending(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCntDown(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsEncrypted(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceQueueItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceQueueItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceQueueItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceQueueItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getConfirmed(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getFPort(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } - f = message.getObject(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getIsPending(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getFCntDown(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getIsEncrypted(); - if (f) { - writer.writeBool( - 9, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeviceQueueItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceQueueItem} returns this - */ -proto.api.DeviceQueueItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string dev_eui = 2; - * @return {string} - */ -proto.api.DeviceQueueItem.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceQueueItem} returns this - */ -proto.api.DeviceQueueItem.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool confirmed = 3; - * @return {boolean} - */ -proto.api.DeviceQueueItem.prototype.getConfirmed = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceQueueItem} returns this - */ -proto.api.DeviceQueueItem.prototype.setConfirmed = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional uint32 f_port = 4; - * @return {number} - */ -proto.api.DeviceQueueItem.prototype.getFPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceQueueItem} returns this - */ -proto.api.DeviceQueueItem.prototype.setFPort = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional bytes data = 5; - * @return {!(string|Uint8Array)} - */ -proto.api.DeviceQueueItem.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes data = 5; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.api.DeviceQueueItem.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.api.DeviceQueueItem.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.api.DeviceQueueItem} returns this - */ -proto.api.DeviceQueueItem.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - -/** - * optional google.protobuf.Struct object = 6; - * @return {?proto.google.protobuf.Struct} - */ -proto.api.DeviceQueueItem.prototype.getObject = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 6)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.api.DeviceQueueItem} returns this -*/ -proto.api.DeviceQueueItem.prototype.setObject = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.DeviceQueueItem} returns this - */ -proto.api.DeviceQueueItem.prototype.clearObject = function() { - return this.setObject(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.DeviceQueueItem.prototype.hasObject = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional bool is_pending = 7; - * @return {boolean} - */ -proto.api.DeviceQueueItem.prototype.getIsPending = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceQueueItem} returns this - */ -proto.api.DeviceQueueItem.prototype.setIsPending = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * optional uint32 f_cnt_down = 8; - * @return {number} - */ -proto.api.DeviceQueueItem.prototype.getFCntDown = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceQueueItem} returns this - */ -proto.api.DeviceQueueItem.prototype.setFCntDown = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional bool is_encrypted = 9; - * @return {boolean} - */ -proto.api.DeviceQueueItem.prototype.getIsEncrypted = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceQueueItem} returns this - */ -proto.api.DeviceQueueItem.prototype.setIsEncrypted = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.EnqueueDeviceQueueItemRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.EnqueueDeviceQueueItemRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.EnqueueDeviceQueueItemRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.EnqueueDeviceQueueItemRequest.toObject = function(includeInstance, msg) { - var f, obj = { - queueItem: (f = msg.getQueueItem()) && proto.api.DeviceQueueItem.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.EnqueueDeviceQueueItemRequest} - */ -proto.api.EnqueueDeviceQueueItemRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.EnqueueDeviceQueueItemRequest; - return proto.api.EnqueueDeviceQueueItemRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.EnqueueDeviceQueueItemRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.EnqueueDeviceQueueItemRequest} - */ -proto.api.EnqueueDeviceQueueItemRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceQueueItem; - reader.readMessage(value,proto.api.DeviceQueueItem.deserializeBinaryFromReader); - msg.setQueueItem(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.EnqueueDeviceQueueItemRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.EnqueueDeviceQueueItemRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.EnqueueDeviceQueueItemRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.EnqueueDeviceQueueItemRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getQueueItem(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceQueueItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceQueueItem queue_item = 1; - * @return {?proto.api.DeviceQueueItem} - */ -proto.api.EnqueueDeviceQueueItemRequest.prototype.getQueueItem = function() { - return /** @type{?proto.api.DeviceQueueItem} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceQueueItem, 1)); -}; - - -/** - * @param {?proto.api.DeviceQueueItem|undefined} value - * @return {!proto.api.EnqueueDeviceQueueItemRequest} returns this -*/ -proto.api.EnqueueDeviceQueueItemRequest.prototype.setQueueItem = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.EnqueueDeviceQueueItemRequest} returns this - */ -proto.api.EnqueueDeviceQueueItemRequest.prototype.clearQueueItem = function() { - return this.setQueueItem(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.EnqueueDeviceQueueItemRequest.prototype.hasQueueItem = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.EnqueueDeviceQueueItemResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.EnqueueDeviceQueueItemResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.EnqueueDeviceQueueItemResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.EnqueueDeviceQueueItemResponse.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.EnqueueDeviceQueueItemResponse} - */ -proto.api.EnqueueDeviceQueueItemResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.EnqueueDeviceQueueItemResponse; - return proto.api.EnqueueDeviceQueueItemResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.EnqueueDeviceQueueItemResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.EnqueueDeviceQueueItemResponse} - */ -proto.api.EnqueueDeviceQueueItemResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.EnqueueDeviceQueueItemResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.EnqueueDeviceQueueItemResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.EnqueueDeviceQueueItemResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.EnqueueDeviceQueueItemResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.EnqueueDeviceQueueItemResponse.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.EnqueueDeviceQueueItemResponse} returns this - */ -proto.api.EnqueueDeviceQueueItemResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.FlushDeviceQueueRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.FlushDeviceQueueRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.FlushDeviceQueueRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.FlushDeviceQueueRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.FlushDeviceQueueRequest} - */ -proto.api.FlushDeviceQueueRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.FlushDeviceQueueRequest; - return proto.api.FlushDeviceQueueRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.FlushDeviceQueueRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.FlushDeviceQueueRequest} - */ -proto.api.FlushDeviceQueueRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.FlushDeviceQueueRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.FlushDeviceQueueRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.FlushDeviceQueueRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.FlushDeviceQueueRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.FlushDeviceQueueRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.FlushDeviceQueueRequest} returns this - */ -proto.api.FlushDeviceQueueRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceQueueItemsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceQueueItemsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceQueueItemsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceQueueItemsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - countOnly: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceQueueItemsRequest} - */ -proto.api.GetDeviceQueueItemsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceQueueItemsRequest; - return proto.api.GetDeviceQueueItemsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceQueueItemsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceQueueItemsRequest} - */ -proto.api.GetDeviceQueueItemsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCountOnly(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceQueueItemsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceQueueItemsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceQueueItemsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceQueueItemsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCountOnly(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.GetDeviceQueueItemsRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDeviceQueueItemsRequest} returns this - */ -proto.api.GetDeviceQueueItemsRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool count_only = 2; - * @return {boolean} - */ -proto.api.GetDeviceQueueItemsRequest.prototype.getCountOnly = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.GetDeviceQueueItemsRequest} returns this - */ -proto.api.GetDeviceQueueItemsRequest.prototype.setCountOnly = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.GetDeviceQueueItemsResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceQueueItemsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceQueueItemsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceQueueItemsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceQueueItemsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.DeviceQueueItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceQueueItemsResponse} - */ -proto.api.GetDeviceQueueItemsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceQueueItemsResponse; - return proto.api.GetDeviceQueueItemsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceQueueItemsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceQueueItemsResponse} - */ -proto.api.GetDeviceQueueItemsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.DeviceQueueItem; - reader.readMessage(value,proto.api.DeviceQueueItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceQueueItemsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceQueueItemsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceQueueItemsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceQueueItemsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.DeviceQueueItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.GetDeviceQueueItemsResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetDeviceQueueItemsResponse} returns this - */ -proto.api.GetDeviceQueueItemsResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated DeviceQueueItem result = 2; - * @return {!Array} - */ -proto.api.GetDeviceQueueItemsResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.DeviceQueueItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.GetDeviceQueueItemsResponse} returns this -*/ -proto.api.GetDeviceQueueItemsResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.DeviceQueueItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.DeviceQueueItem} - */ -proto.api.GetDeviceQueueItemsResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.DeviceQueueItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.GetDeviceQueueItemsResponse} returns this - */ -proto.api.GetDeviceQueueItemsResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.FlushDevNoncesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.FlushDevNoncesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.FlushDevNoncesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.FlushDevNoncesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.FlushDevNoncesRequest} - */ -proto.api.FlushDevNoncesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.FlushDevNoncesRequest; - return proto.api.FlushDevNoncesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.FlushDevNoncesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.FlushDevNoncesRequest} - */ -proto.api.FlushDevNoncesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.FlushDevNoncesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.FlushDevNoncesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.FlushDevNoncesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.FlushDevNoncesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.FlushDevNoncesRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.FlushDevNoncesRequest} returns this - */ -proto.api.FlushDevNoncesRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceNextFCntDownRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceNextFCntDownRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceNextFCntDownRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceNextFCntDownRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceNextFCntDownRequest} - */ -proto.api.GetDeviceNextFCntDownRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceNextFCntDownRequest; - return proto.api.GetDeviceNextFCntDownRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceNextFCntDownRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceNextFCntDownRequest} - */ -proto.api.GetDeviceNextFCntDownRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceNextFCntDownRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceNextFCntDownRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceNextFCntDownRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceNextFCntDownRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.GetDeviceNextFCntDownRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDeviceNextFCntDownRequest} returns this - */ -proto.api.GetDeviceNextFCntDownRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceNextFCntDownResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceNextFCntDownResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceNextFCntDownResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceNextFCntDownResponse.toObject = function(includeInstance, msg) { - var f, obj = { - fCntDown: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceNextFCntDownResponse} - */ -proto.api.GetDeviceNextFCntDownResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceNextFCntDownResponse; - return proto.api.GetDeviceNextFCntDownResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceNextFCntDownResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceNextFCntDownResponse} - */ -proto.api.GetDeviceNextFCntDownResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCntDown(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceNextFCntDownResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceNextFCntDownResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceNextFCntDownResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceNextFCntDownResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFCntDown(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } -}; - - -/** - * optional uint32 f_cnt_down = 1; - * @return {number} - */ -proto.api.GetDeviceNextFCntDownResponse.prototype.getFCntDown = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetDeviceNextFCntDownResponse} returns this - */ -proto.api.GetDeviceNextFCntDownResponse.prototype.setFCntDown = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -goog.object.extend(exports, proto.api); diff --git a/api/js/api/device_profile_grpc_pb.d.ts b/api/js/api/device_profile_grpc_pb.d.ts deleted file mode 100644 index 1e9a4592..00000000 --- a/api/js/api/device_profile_grpc_pb.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -// package: api -// file: api/device_profile.proto - -import * as api_device_profile_pb from "../api/device_profile_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; -import * as grpc from "@grpc/grpc-js"; - -interface IDeviceProfileServiceService extends grpc.ServiceDefinition { - create: grpc.MethodDefinition; - get: grpc.MethodDefinition; - update: grpc.MethodDefinition; - delete: grpc.MethodDefinition; - list: grpc.MethodDefinition; - listAdrAlgorithms: grpc.MethodDefinition; -} - -export const DeviceProfileServiceService: IDeviceProfileServiceService; - -export interface IDeviceProfileServiceServer extends grpc.UntypedServiceImplementation { - create: grpc.handleUnaryCall; - get: grpc.handleUnaryCall; - update: grpc.handleUnaryCall; - delete: grpc.handleUnaryCall; - list: grpc.handleUnaryCall; - listAdrAlgorithms: grpc.handleUnaryCall; -} - -export class DeviceProfileServiceClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - create(argument: api_device_profile_pb.CreateDeviceProfileRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - create(argument: api_device_profile_pb.CreateDeviceProfileRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - create(argument: api_device_profile_pb.CreateDeviceProfileRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_device_profile_pb.GetDeviceProfileRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_device_profile_pb.GetDeviceProfileRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_device_profile_pb.GetDeviceProfileRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_device_profile_pb.UpdateDeviceProfileRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_device_profile_pb.UpdateDeviceProfileRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_device_profile_pb.UpdateDeviceProfileRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_device_profile_pb.DeleteDeviceProfileRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_device_profile_pb.DeleteDeviceProfileRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_device_profile_pb.DeleteDeviceProfileRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_device_profile_pb.ListDeviceProfilesRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_device_profile_pb.ListDeviceProfilesRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_device_profile_pb.ListDeviceProfilesRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listAdrAlgorithms(argument: google_protobuf_empty_pb.Empty, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listAdrAlgorithms(argument: google_protobuf_empty_pb.Empty, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listAdrAlgorithms(argument: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; -} diff --git a/api/js/api/device_profile_grpc_pb.js b/api/js/api/device_profile_grpc_pb.js deleted file mode 100644 index 7209d76e..00000000 --- a/api/js/api/device_profile_grpc_pb.js +++ /dev/null @@ -1,199 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var api_device_profile_pb = require('../api/device_profile_pb.js'); -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -var common_common_pb = require('../common/common_pb.js'); - -function serialize_api_CreateDeviceProfileRequest(arg) { - if (!(arg instanceof api_device_profile_pb.CreateDeviceProfileRequest)) { - throw new Error('Expected argument of type api.CreateDeviceProfileRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateDeviceProfileRequest(buffer_arg) { - return api_device_profile_pb.CreateDeviceProfileRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateDeviceProfileResponse(arg) { - if (!(arg instanceof api_device_profile_pb.CreateDeviceProfileResponse)) { - throw new Error('Expected argument of type api.CreateDeviceProfileResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateDeviceProfileResponse(buffer_arg) { - return api_device_profile_pb.CreateDeviceProfileResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteDeviceProfileRequest(arg) { - if (!(arg instanceof api_device_profile_pb.DeleteDeviceProfileRequest)) { - throw new Error('Expected argument of type api.DeleteDeviceProfileRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteDeviceProfileRequest(buffer_arg) { - return api_device_profile_pb.DeleteDeviceProfileRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDeviceProfileRequest(arg) { - if (!(arg instanceof api_device_profile_pb.GetDeviceProfileRequest)) { - throw new Error('Expected argument of type api.GetDeviceProfileRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDeviceProfileRequest(buffer_arg) { - return api_device_profile_pb.GetDeviceProfileRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDeviceProfileResponse(arg) { - if (!(arg instanceof api_device_profile_pb.GetDeviceProfileResponse)) { - throw new Error('Expected argument of type api.GetDeviceProfileResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDeviceProfileResponse(buffer_arg) { - return api_device_profile_pb.GetDeviceProfileResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListDeviceProfileAdrAlgorithmsResponse(arg) { - if (!(arg instanceof api_device_profile_pb.ListDeviceProfileAdrAlgorithmsResponse)) { - throw new Error('Expected argument of type api.ListDeviceProfileAdrAlgorithmsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListDeviceProfileAdrAlgorithmsResponse(buffer_arg) { - return api_device_profile_pb.ListDeviceProfileAdrAlgorithmsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListDeviceProfilesRequest(arg) { - if (!(arg instanceof api_device_profile_pb.ListDeviceProfilesRequest)) { - throw new Error('Expected argument of type api.ListDeviceProfilesRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListDeviceProfilesRequest(buffer_arg) { - return api_device_profile_pb.ListDeviceProfilesRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListDeviceProfilesResponse(arg) { - if (!(arg instanceof api_device_profile_pb.ListDeviceProfilesResponse)) { - throw new Error('Expected argument of type api.ListDeviceProfilesResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListDeviceProfilesResponse(buffer_arg) { - return api_device_profile_pb.ListDeviceProfilesResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateDeviceProfileRequest(arg) { - if (!(arg instanceof api_device_profile_pb.UpdateDeviceProfileRequest)) { - throw new Error('Expected argument of type api.UpdateDeviceProfileRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateDeviceProfileRequest(buffer_arg) { - return api_device_profile_pb.UpdateDeviceProfileRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_google_protobuf_Empty(arg) { - if (!(arg instanceof google_protobuf_empty_pb.Empty)) { - throw new Error('Expected argument of type google.protobuf.Empty'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_google_protobuf_Empty(buffer_arg) { - return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -// DeviceProfileService is the service providing API methods for managing -// device-profiles. -var DeviceProfileServiceService = exports.DeviceProfileServiceService = { - // Create the given device-profile. -create: { - path: '/api.DeviceProfileService/Create', - requestStream: false, - responseStream: false, - requestType: api_device_profile_pb.CreateDeviceProfileRequest, - responseType: api_device_profile_pb.CreateDeviceProfileResponse, - requestSerialize: serialize_api_CreateDeviceProfileRequest, - requestDeserialize: deserialize_api_CreateDeviceProfileRequest, - responseSerialize: serialize_api_CreateDeviceProfileResponse, - responseDeserialize: deserialize_api_CreateDeviceProfileResponse, - }, - // Get the device-profile for the given ID. -get: { - path: '/api.DeviceProfileService/Get', - requestStream: false, - responseStream: false, - requestType: api_device_profile_pb.GetDeviceProfileRequest, - responseType: api_device_profile_pb.GetDeviceProfileResponse, - requestSerialize: serialize_api_GetDeviceProfileRequest, - requestDeserialize: deserialize_api_GetDeviceProfileRequest, - responseSerialize: serialize_api_GetDeviceProfileResponse, - responseDeserialize: deserialize_api_GetDeviceProfileResponse, - }, - // Update the given device-profile. -update: { - path: '/api.DeviceProfileService/Update', - requestStream: false, - responseStream: false, - requestType: api_device_profile_pb.UpdateDeviceProfileRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateDeviceProfileRequest, - requestDeserialize: deserialize_api_UpdateDeviceProfileRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete the device-profile with the given ID. -delete: { - path: '/api.DeviceProfileService/Delete', - requestStream: false, - responseStream: false, - requestType: api_device_profile_pb.DeleteDeviceProfileRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteDeviceProfileRequest, - requestDeserialize: deserialize_api_DeleteDeviceProfileRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // List the available device-profiles. -list: { - path: '/api.DeviceProfileService/List', - requestStream: false, - responseStream: false, - requestType: api_device_profile_pb.ListDeviceProfilesRequest, - responseType: api_device_profile_pb.ListDeviceProfilesResponse, - requestSerialize: serialize_api_ListDeviceProfilesRequest, - requestDeserialize: deserialize_api_ListDeviceProfilesRequest, - responseSerialize: serialize_api_ListDeviceProfilesResponse, - responseDeserialize: deserialize_api_ListDeviceProfilesResponse, - }, - // List available ADR algorithms. -listAdrAlgorithms: { - path: '/api.DeviceProfileService/ListAdrAlgorithms', - requestStream: false, - responseStream: false, - requestType: google_protobuf_empty_pb.Empty, - responseType: api_device_profile_pb.ListDeviceProfileAdrAlgorithmsResponse, - requestSerialize: serialize_google_protobuf_Empty, - requestDeserialize: deserialize_google_protobuf_Empty, - responseSerialize: serialize_api_ListDeviceProfileAdrAlgorithmsResponse, - responseDeserialize: deserialize_api_ListDeviceProfileAdrAlgorithmsResponse, - }, -}; - -exports.DeviceProfileServiceClient = grpc.makeGenericClientConstructor(DeviceProfileServiceService); diff --git a/api/js/api/device_profile_pb.d.ts b/api/js/api/device_profile_pb.d.ts deleted file mode 100644 index 2105940d..00000000 --- a/api/js/api/device_profile_pb.d.ts +++ /dev/null @@ -1,610 +0,0 @@ -// package: api -// file: api/device_profile.proto - -import * as jspb from "google-protobuf"; -import * as google_api_annotations_pb from "../google/api/annotations_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; -import * as common_common_pb from "../common/common_pb"; - -export class DeviceProfile extends jspb.Message { - getId(): string; - setId(value: string): void; - - getTenantId(): string; - setTenantId(value: string): void; - - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getRegion(): common_common_pb.RegionMap[keyof common_common_pb.RegionMap]; - setRegion(value: common_common_pb.RegionMap[keyof common_common_pb.RegionMap]): void; - - getMacVersion(): common_common_pb.MacVersionMap[keyof common_common_pb.MacVersionMap]; - setMacVersion(value: common_common_pb.MacVersionMap[keyof common_common_pb.MacVersionMap]): void; - - getRegParamsRevision(): common_common_pb.RegParamsRevisionMap[keyof common_common_pb.RegParamsRevisionMap]; - setRegParamsRevision(value: common_common_pb.RegParamsRevisionMap[keyof common_common_pb.RegParamsRevisionMap]): void; - - getAdrAlgorithmId(): string; - setAdrAlgorithmId(value: string): void; - - getPayloadCodecRuntime(): CodecRuntimeMap[keyof CodecRuntimeMap]; - setPayloadCodecRuntime(value: CodecRuntimeMap[keyof CodecRuntimeMap]): void; - - getPayloadCodecScript(): string; - setPayloadCodecScript(value: string): void; - - getFlushQueueOnActivate(): boolean; - setFlushQueueOnActivate(value: boolean): void; - - getUplinkInterval(): number; - setUplinkInterval(value: number): void; - - getDeviceStatusReqInterval(): number; - setDeviceStatusReqInterval(value: number): void; - - getSupportsOtaa(): boolean; - setSupportsOtaa(value: boolean): void; - - getSupportsClassB(): boolean; - setSupportsClassB(value: boolean): void; - - getSupportsClassC(): boolean; - setSupportsClassC(value: boolean): void; - - getClassBTimeout(): number; - setClassBTimeout(value: number): void; - - getClassBPingSlotNbK(): number; - setClassBPingSlotNbK(value: number): void; - - getClassBPingSlotDr(): number; - setClassBPingSlotDr(value: number): void; - - getClassBPingSlotFreq(): number; - setClassBPingSlotFreq(value: number): void; - - getClassCTimeout(): number; - setClassCTimeout(value: number): void; - - getAbpRx1Delay(): number; - setAbpRx1Delay(value: number): void; - - getAbpRx1DrOffset(): number; - setAbpRx1DrOffset(value: number): void; - - getAbpRx2Dr(): number; - setAbpRx2Dr(value: number): void; - - getAbpRx2Freq(): number; - setAbpRx2Freq(value: number): void; - - getTagsMap(): jspb.Map; - clearTagsMap(): void; - getMeasurementsMap(): jspb.Map; - clearMeasurementsMap(): void; - getAutoDetectMeasurements(): boolean; - setAutoDetectMeasurements(value: boolean): void; - - getRegionConfigId(): string; - setRegionConfigId(value: string): void; - - getIsRelay(): boolean; - setIsRelay(value: boolean): void; - - getIsRelayEd(): boolean; - setIsRelayEd(value: boolean): void; - - getRelayEdRelayOnly(): boolean; - setRelayEdRelayOnly(value: boolean): void; - - getRelayEnabled(): boolean; - setRelayEnabled(value: boolean): void; - - getRelayCadPeriodicity(): CadPeriodicityMap[keyof CadPeriodicityMap]; - setRelayCadPeriodicity(value: CadPeriodicityMap[keyof CadPeriodicityMap]): void; - - getRelayDefaultChannelIndex(): number; - setRelayDefaultChannelIndex(value: number): void; - - getRelaySecondChannelFreq(): number; - setRelaySecondChannelFreq(value: number): void; - - getRelaySecondChannelDr(): number; - setRelaySecondChannelDr(value: number): void; - - getRelaySecondChannelAckOffset(): SecondChAckOffsetMap[keyof SecondChAckOffsetMap]; - setRelaySecondChannelAckOffset(value: SecondChAckOffsetMap[keyof SecondChAckOffsetMap]): void; - - getRelayEdActivationMode(): RelayModeActivationMap[keyof RelayModeActivationMap]; - setRelayEdActivationMode(value: RelayModeActivationMap[keyof RelayModeActivationMap]): void; - - getRelayEdSmartEnableLevel(): number; - setRelayEdSmartEnableLevel(value: number): void; - - getRelayEdBackOff(): number; - setRelayEdBackOff(value: number): void; - - getRelayEdUplinkLimitBucketSize(): number; - setRelayEdUplinkLimitBucketSize(value: number): void; - - getRelayEdUplinkLimitReloadRate(): number; - setRelayEdUplinkLimitReloadRate(value: number): void; - - getRelayJoinReqLimitReloadRate(): number; - setRelayJoinReqLimitReloadRate(value: number): void; - - getRelayNotifyLimitReloadRate(): number; - setRelayNotifyLimitReloadRate(value: number): void; - - getRelayGlobalUplinkLimitReloadRate(): number; - setRelayGlobalUplinkLimitReloadRate(value: number): void; - - getRelayOverallLimitReloadRate(): number; - setRelayOverallLimitReloadRate(value: number): void; - - getRelayJoinReqLimitBucketSize(): number; - setRelayJoinReqLimitBucketSize(value: number): void; - - getRelayNotifyLimitBucketSize(): number; - setRelayNotifyLimitBucketSize(value: number): void; - - getRelayGlobalUplinkLimitBucketSize(): number; - setRelayGlobalUplinkLimitBucketSize(value: number): void; - - getRelayOverallLimitBucketSize(): number; - setRelayOverallLimitBucketSize(value: number): void; - - getAllowRoaming(): boolean; - setAllowRoaming(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceProfile.AsObject; - static toObject(includeInstance: boolean, msg: DeviceProfile): DeviceProfile.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeviceProfile, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceProfile; - static deserializeBinaryFromReader(message: DeviceProfile, reader: jspb.BinaryReader): DeviceProfile; -} - -export namespace DeviceProfile { - export type AsObject = { - id: string, - tenantId: string, - name: string, - description: string, - region: common_common_pb.RegionMap[keyof common_common_pb.RegionMap], - macVersion: common_common_pb.MacVersionMap[keyof common_common_pb.MacVersionMap], - regParamsRevision: common_common_pb.RegParamsRevisionMap[keyof common_common_pb.RegParamsRevisionMap], - adrAlgorithmId: string, - payloadCodecRuntime: CodecRuntimeMap[keyof CodecRuntimeMap], - payloadCodecScript: string, - flushQueueOnActivate: boolean, - uplinkInterval: number, - deviceStatusReqInterval: number, - supportsOtaa: boolean, - supportsClassB: boolean, - supportsClassC: boolean, - classBTimeout: number, - classBPingSlotNbK: number, - classBPingSlotDr: number, - classBPingSlotFreq: number, - classCTimeout: number, - abpRx1Delay: number, - abpRx1DrOffset: number, - abpRx2Dr: number, - abpRx2Freq: number, - tagsMap: Array<[string, string]>, - measurementsMap: Array<[string, Measurement.AsObject]>, - autoDetectMeasurements: boolean, - regionConfigId: string, - isRelay: boolean, - isRelayEd: boolean, - relayEdRelayOnly: boolean, - relayEnabled: boolean, - relayCadPeriodicity: CadPeriodicityMap[keyof CadPeriodicityMap], - relayDefaultChannelIndex: number, - relaySecondChannelFreq: number, - relaySecondChannelDr: number, - relaySecondChannelAckOffset: SecondChAckOffsetMap[keyof SecondChAckOffsetMap], - relayEdActivationMode: RelayModeActivationMap[keyof RelayModeActivationMap], - relayEdSmartEnableLevel: number, - relayEdBackOff: number, - relayEdUplinkLimitBucketSize: number, - relayEdUplinkLimitReloadRate: number, - relayJoinReqLimitReloadRate: number, - relayNotifyLimitReloadRate: number, - relayGlobalUplinkLimitReloadRate: number, - relayOverallLimitReloadRate: number, - relayJoinReqLimitBucketSize: number, - relayNotifyLimitBucketSize: number, - relayGlobalUplinkLimitBucketSize: number, - relayOverallLimitBucketSize: number, - allowRoaming: boolean, - } -} - -export class Measurement extends jspb.Message { - getName(): string; - setName(value: string): void; - - getKind(): MeasurementKindMap[keyof MeasurementKindMap]; - setKind(value: MeasurementKindMap[keyof MeasurementKindMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Measurement.AsObject; - static toObject(includeInstance: boolean, msg: Measurement): Measurement.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Measurement, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Measurement; - static deserializeBinaryFromReader(message: Measurement, reader: jspb.BinaryReader): Measurement; -} - -export namespace Measurement { - export type AsObject = { - name: string, - kind: MeasurementKindMap[keyof MeasurementKindMap], - } -} - -export class DeviceProfileListItem extends jspb.Message { - getId(): string; - setId(value: string): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - getName(): string; - setName(value: string): void; - - getRegion(): common_common_pb.RegionMap[keyof common_common_pb.RegionMap]; - setRegion(value: common_common_pb.RegionMap[keyof common_common_pb.RegionMap]): void; - - getMacVersion(): common_common_pb.MacVersionMap[keyof common_common_pb.MacVersionMap]; - setMacVersion(value: common_common_pb.MacVersionMap[keyof common_common_pb.MacVersionMap]): void; - - getRegParamsRevision(): common_common_pb.RegParamsRevisionMap[keyof common_common_pb.RegParamsRevisionMap]; - setRegParamsRevision(value: common_common_pb.RegParamsRevisionMap[keyof common_common_pb.RegParamsRevisionMap]): void; - - getSupportsOtaa(): boolean; - setSupportsOtaa(value: boolean): void; - - getSupportsClassB(): boolean; - setSupportsClassB(value: boolean): void; - - getSupportsClassC(): boolean; - setSupportsClassC(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceProfileListItem.AsObject; - static toObject(includeInstance: boolean, msg: DeviceProfileListItem): DeviceProfileListItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeviceProfileListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceProfileListItem; - static deserializeBinaryFromReader(message: DeviceProfileListItem, reader: jspb.BinaryReader): DeviceProfileListItem; -} - -export namespace DeviceProfileListItem { - export type AsObject = { - id: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - name: string, - region: common_common_pb.RegionMap[keyof common_common_pb.RegionMap], - macVersion: common_common_pb.MacVersionMap[keyof common_common_pb.MacVersionMap], - regParamsRevision: common_common_pb.RegParamsRevisionMap[keyof common_common_pb.RegParamsRevisionMap], - supportsOtaa: boolean, - supportsClassB: boolean, - supportsClassC: boolean, - } -} - -export class CreateDeviceProfileRequest extends jspb.Message { - hasDeviceProfile(): boolean; - clearDeviceProfile(): void; - getDeviceProfile(): DeviceProfile | undefined; - setDeviceProfile(value?: DeviceProfile): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateDeviceProfileRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateDeviceProfileRequest): CreateDeviceProfileRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateDeviceProfileRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateDeviceProfileRequest; - static deserializeBinaryFromReader(message: CreateDeviceProfileRequest, reader: jspb.BinaryReader): CreateDeviceProfileRequest; -} - -export namespace CreateDeviceProfileRequest { - export type AsObject = { - deviceProfile?: DeviceProfile.AsObject, - } -} - -export class CreateDeviceProfileResponse extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateDeviceProfileResponse.AsObject; - static toObject(includeInstance: boolean, msg: CreateDeviceProfileResponse): CreateDeviceProfileResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateDeviceProfileResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateDeviceProfileResponse; - static deserializeBinaryFromReader(message: CreateDeviceProfileResponse, reader: jspb.BinaryReader): CreateDeviceProfileResponse; -} - -export namespace CreateDeviceProfileResponse { - export type AsObject = { - id: string, - } -} - -export class GetDeviceProfileRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceProfileRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceProfileRequest): GetDeviceProfileRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeviceProfileRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceProfileRequest; - static deserializeBinaryFromReader(message: GetDeviceProfileRequest, reader: jspb.BinaryReader): GetDeviceProfileRequest; -} - -export namespace GetDeviceProfileRequest { - export type AsObject = { - id: string, - } -} - -export class GetDeviceProfileResponse extends jspb.Message { - hasDeviceProfile(): boolean; - clearDeviceProfile(): void; - getDeviceProfile(): DeviceProfile | undefined; - setDeviceProfile(value?: DeviceProfile): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceProfileResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceProfileResponse): GetDeviceProfileResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeviceProfileResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceProfileResponse; - static deserializeBinaryFromReader(message: GetDeviceProfileResponse, reader: jspb.BinaryReader): GetDeviceProfileResponse; -} - -export namespace GetDeviceProfileResponse { - export type AsObject = { - deviceProfile?: DeviceProfile.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateDeviceProfileRequest extends jspb.Message { - hasDeviceProfile(): boolean; - clearDeviceProfile(): void; - getDeviceProfile(): DeviceProfile | undefined; - setDeviceProfile(value?: DeviceProfile): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateDeviceProfileRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateDeviceProfileRequest): UpdateDeviceProfileRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateDeviceProfileRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateDeviceProfileRequest; - static deserializeBinaryFromReader(message: UpdateDeviceProfileRequest, reader: jspb.BinaryReader): UpdateDeviceProfileRequest; -} - -export namespace UpdateDeviceProfileRequest { - export type AsObject = { - deviceProfile?: DeviceProfile.AsObject, - } -} - -export class DeleteDeviceProfileRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteDeviceProfileRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteDeviceProfileRequest): DeleteDeviceProfileRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteDeviceProfileRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteDeviceProfileRequest; - static deserializeBinaryFromReader(message: DeleteDeviceProfileRequest, reader: jspb.BinaryReader): DeleteDeviceProfileRequest; -} - -export namespace DeleteDeviceProfileRequest { - export type AsObject = { - id: string, - } -} - -export class ListDeviceProfilesRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): void; - - getOffset(): number; - setOffset(value: number): void; - - getSearch(): string; - setSearch(value: string): void; - - getTenantId(): string; - setTenantId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListDeviceProfilesRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListDeviceProfilesRequest): ListDeviceProfilesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListDeviceProfilesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListDeviceProfilesRequest; - static deserializeBinaryFromReader(message: ListDeviceProfilesRequest, reader: jspb.BinaryReader): ListDeviceProfilesRequest; -} - -export namespace ListDeviceProfilesRequest { - export type AsObject = { - limit: number, - offset: number, - search: string, - tenantId: string, - } -} - -export class ListDeviceProfilesResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): void; - - clearResultList(): void; - getResultList(): Array; - setResultList(value: Array): void; - addResult(value?: DeviceProfileListItem, index?: number): DeviceProfileListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListDeviceProfilesResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListDeviceProfilesResponse): ListDeviceProfilesResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListDeviceProfilesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListDeviceProfilesResponse; - static deserializeBinaryFromReader(message: ListDeviceProfilesResponse, reader: jspb.BinaryReader): ListDeviceProfilesResponse; -} - -export namespace ListDeviceProfilesResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class ListDeviceProfileAdrAlgorithmsResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): void; - - clearResultList(): void; - getResultList(): Array; - setResultList(value: Array): void; - addResult(value?: AdrAlgorithmListItem, index?: number): AdrAlgorithmListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListDeviceProfileAdrAlgorithmsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListDeviceProfileAdrAlgorithmsResponse): ListDeviceProfileAdrAlgorithmsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListDeviceProfileAdrAlgorithmsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListDeviceProfileAdrAlgorithmsResponse; - static deserializeBinaryFromReader(message: ListDeviceProfileAdrAlgorithmsResponse, reader: jspb.BinaryReader): ListDeviceProfileAdrAlgorithmsResponse; -} - -export namespace ListDeviceProfileAdrAlgorithmsResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class AdrAlgorithmListItem extends jspb.Message { - getId(): string; - setId(value: string): void; - - getName(): string; - setName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AdrAlgorithmListItem.AsObject; - static toObject(includeInstance: boolean, msg: AdrAlgorithmListItem): AdrAlgorithmListItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AdrAlgorithmListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AdrAlgorithmListItem; - static deserializeBinaryFromReader(message: AdrAlgorithmListItem, reader: jspb.BinaryReader): AdrAlgorithmListItem; -} - -export namespace AdrAlgorithmListItem { - export type AsObject = { - id: string, - name: string, - } -} - -export interface CodecRuntimeMap { - NONE: 0; - CAYENNE_LPP: 1; - JS: 2; -} - -export const CodecRuntime: CodecRuntimeMap; - -export interface MeasurementKindMap { - UNKNOWN: 0; - COUNTER: 1; - ABSOLUTE: 2; - GAUGE: 3; - STRING: 4; -} - -export const MeasurementKind: MeasurementKindMap; - -export interface CadPeriodicityMap { - SEC_1: 0; - MS_500: 1; - MS_250: 2; - MS_100: 3; - MS_50: 4; - MS_20: 5; -} - -export const CadPeriodicity: CadPeriodicityMap; - -export interface SecondChAckOffsetMap { - KHZ_0: 0; - KHZ_200: 1; - KHZ_400: 2; - KHZ_800: 3; - KHZ_1600: 4; - KHZ_3200: 5; -} - -export const SecondChAckOffset: SecondChAckOffsetMap; - -export interface RelayModeActivationMap { - DISABLE_RELAY_MODE: 0; - ENABLE_RELAY_MODE: 1; - DYNAMIC: 2; - END_DEVICE_CONTROLLED: 3; -} - -export const RelayModeActivation: RelayModeActivationMap; - diff --git a/api/js/api/device_profile_pb.js b/api/js/api/device_profile_pb.js deleted file mode 100644 index c57996a6..00000000 --- a/api/js/api/device_profile_pb.js +++ /dev/null @@ -1,4341 +0,0 @@ -// source: api/device_profile.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -goog.exportSymbol('proto.api.AdrAlgorithmListItem', null, global); -goog.exportSymbol('proto.api.CadPeriodicity', null, global); -goog.exportSymbol('proto.api.CodecRuntime', null, global); -goog.exportSymbol('proto.api.CreateDeviceProfileRequest', null, global); -goog.exportSymbol('proto.api.CreateDeviceProfileResponse', null, global); -goog.exportSymbol('proto.api.DeleteDeviceProfileRequest', null, global); -goog.exportSymbol('proto.api.DeviceProfile', null, global); -goog.exportSymbol('proto.api.DeviceProfileListItem', null, global); -goog.exportSymbol('proto.api.GetDeviceProfileRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceProfileResponse', null, global); -goog.exportSymbol('proto.api.ListDeviceProfileAdrAlgorithmsResponse', null, global); -goog.exportSymbol('proto.api.ListDeviceProfilesRequest', null, global); -goog.exportSymbol('proto.api.ListDeviceProfilesResponse', null, global); -goog.exportSymbol('proto.api.Measurement', null, global); -goog.exportSymbol('proto.api.MeasurementKind', null, global); -goog.exportSymbol('proto.api.RelayModeActivation', null, global); -goog.exportSymbol('proto.api.SecondChAckOffset', null, global); -goog.exportSymbol('proto.api.UpdateDeviceProfileRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceProfile = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceProfile, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceProfile.displayName = 'proto.api.DeviceProfile'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.Measurement = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.Measurement, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.Measurement.displayName = 'proto.api.Measurement'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceProfileListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceProfileListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceProfileListItem.displayName = 'proto.api.DeviceProfileListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateDeviceProfileRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateDeviceProfileRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateDeviceProfileRequest.displayName = 'proto.api.CreateDeviceProfileRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateDeviceProfileResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateDeviceProfileResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateDeviceProfileResponse.displayName = 'proto.api.CreateDeviceProfileResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceProfileRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceProfileRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceProfileRequest.displayName = 'proto.api.GetDeviceProfileRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceProfileResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceProfileResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceProfileResponse.displayName = 'proto.api.GetDeviceProfileResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateDeviceProfileRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateDeviceProfileRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateDeviceProfileRequest.displayName = 'proto.api.UpdateDeviceProfileRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteDeviceProfileRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteDeviceProfileRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteDeviceProfileRequest.displayName = 'proto.api.DeleteDeviceProfileRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListDeviceProfilesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListDeviceProfilesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListDeviceProfilesRequest.displayName = 'proto.api.ListDeviceProfilesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListDeviceProfilesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListDeviceProfilesResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListDeviceProfilesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListDeviceProfilesResponse.displayName = 'proto.api.ListDeviceProfilesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListDeviceProfileAdrAlgorithmsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListDeviceProfileAdrAlgorithmsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListDeviceProfileAdrAlgorithmsResponse.displayName = 'proto.api.ListDeviceProfileAdrAlgorithmsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.AdrAlgorithmListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.AdrAlgorithmListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.AdrAlgorithmListItem.displayName = 'proto.api.AdrAlgorithmListItem'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceProfile.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceProfile.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceProfile} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceProfile.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - tenantId: jspb.Message.getFieldWithDefault(msg, 2, ""), - name: jspb.Message.getFieldWithDefault(msg, 3, ""), - description: jspb.Message.getFieldWithDefault(msg, 26, ""), - region: jspb.Message.getFieldWithDefault(msg, 4, 0), - macVersion: jspb.Message.getFieldWithDefault(msg, 5, 0), - regParamsRevision: jspb.Message.getFieldWithDefault(msg, 6, 0), - adrAlgorithmId: jspb.Message.getFieldWithDefault(msg, 7, ""), - payloadCodecRuntime: jspb.Message.getFieldWithDefault(msg, 8, 0), - payloadCodecScript: jspb.Message.getFieldWithDefault(msg, 9, ""), - flushQueueOnActivate: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - uplinkInterval: jspb.Message.getFieldWithDefault(msg, 11, 0), - deviceStatusReqInterval: jspb.Message.getFieldWithDefault(msg, 12, 0), - supportsOtaa: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), - supportsClassB: jspb.Message.getBooleanFieldWithDefault(msg, 14, false), - supportsClassC: jspb.Message.getBooleanFieldWithDefault(msg, 15, false), - classBTimeout: jspb.Message.getFieldWithDefault(msg, 16, 0), - classBPingSlotNbK: jspb.Message.getFieldWithDefault(msg, 17, 0), - classBPingSlotDr: jspb.Message.getFieldWithDefault(msg, 18, 0), - classBPingSlotFreq: jspb.Message.getFieldWithDefault(msg, 19, 0), - classCTimeout: jspb.Message.getFieldWithDefault(msg, 20, 0), - abpRx1Delay: jspb.Message.getFieldWithDefault(msg, 21, 0), - abpRx1DrOffset: jspb.Message.getFieldWithDefault(msg, 22, 0), - abpRx2Dr: jspb.Message.getFieldWithDefault(msg, 23, 0), - abpRx2Freq: jspb.Message.getFieldWithDefault(msg, 24, 0), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [], - measurementsMap: (f = msg.getMeasurementsMap()) ? f.toObject(includeInstance, proto.api.Measurement.toObject) : [], - autoDetectMeasurements: jspb.Message.getBooleanFieldWithDefault(msg, 28, false), - regionConfigId: jspb.Message.getFieldWithDefault(msg, 29, ""), - isRelay: jspb.Message.getBooleanFieldWithDefault(msg, 30, false), - isRelayEd: jspb.Message.getBooleanFieldWithDefault(msg, 31, false), - relayEdRelayOnly: jspb.Message.getBooleanFieldWithDefault(msg, 32, false), - relayEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 33, false), - relayCadPeriodicity: jspb.Message.getFieldWithDefault(msg, 34, 0), - relayDefaultChannelIndex: jspb.Message.getFieldWithDefault(msg, 35, 0), - relaySecondChannelFreq: jspb.Message.getFieldWithDefault(msg, 36, 0), - relaySecondChannelDr: jspb.Message.getFieldWithDefault(msg, 37, 0), - relaySecondChannelAckOffset: jspb.Message.getFieldWithDefault(msg, 38, 0), - relayEdActivationMode: jspb.Message.getFieldWithDefault(msg, 39, 0), - relayEdSmartEnableLevel: jspb.Message.getFieldWithDefault(msg, 40, 0), - relayEdBackOff: jspb.Message.getFieldWithDefault(msg, 41, 0), - relayEdUplinkLimitBucketSize: jspb.Message.getFieldWithDefault(msg, 42, 0), - relayEdUplinkLimitReloadRate: jspb.Message.getFieldWithDefault(msg, 43, 0), - relayJoinReqLimitReloadRate: jspb.Message.getFieldWithDefault(msg, 44, 0), - relayNotifyLimitReloadRate: jspb.Message.getFieldWithDefault(msg, 45, 0), - relayGlobalUplinkLimitReloadRate: jspb.Message.getFieldWithDefault(msg, 46, 0), - relayOverallLimitReloadRate: jspb.Message.getFieldWithDefault(msg, 47, 0), - relayJoinReqLimitBucketSize: jspb.Message.getFieldWithDefault(msg, 48, 0), - relayNotifyLimitBucketSize: jspb.Message.getFieldWithDefault(msg, 49, 0), - relayGlobalUplinkLimitBucketSize: jspb.Message.getFieldWithDefault(msg, 50, 0), - relayOverallLimitBucketSize: jspb.Message.getFieldWithDefault(msg, 51, 0), - allowRoaming: jspb.Message.getBooleanFieldWithDefault(msg, 52, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceProfile} - */ -proto.api.DeviceProfile.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceProfile; - return proto.api.DeviceProfile.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceProfile} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceProfile} - */ -proto.api.DeviceProfile.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 26: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {!proto.common.Region} */ (reader.readEnum()); - msg.setRegion(value); - break; - case 5: - var value = /** @type {!proto.common.MacVersion} */ (reader.readEnum()); - msg.setMacVersion(value); - break; - case 6: - var value = /** @type {!proto.common.RegParamsRevision} */ (reader.readEnum()); - msg.setRegParamsRevision(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setAdrAlgorithmId(value); - break; - case 8: - var value = /** @type {!proto.api.CodecRuntime} */ (reader.readEnum()); - msg.setPayloadCodecRuntime(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setPayloadCodecScript(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setFlushQueueOnActivate(value); - break; - case 11: - var value = /** @type {number} */ (reader.readUint32()); - msg.setUplinkInterval(value); - break; - case 12: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDeviceStatusReqInterval(value); - break; - case 13: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsOtaa(value); - break; - case 14: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsClassB(value); - break; - case 15: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsClassC(value); - break; - case 16: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBTimeout(value); - break; - case 17: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotNbK(value); - break; - case 18: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotDr(value); - break; - case 19: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotFreq(value); - break; - case 20: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassCTimeout(value); - break; - case 21: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAbpRx1Delay(value); - break; - case 22: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAbpRx1DrOffset(value); - break; - case 23: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAbpRx2Dr(value); - break; - case 24: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAbpRx2Freq(value); - break; - case 25: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 27: - var value = msg.getMeasurementsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.api.Measurement.deserializeBinaryFromReader, "", new proto.api.Measurement()); - }); - break; - case 28: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAutoDetectMeasurements(value); - break; - case 29: - var value = /** @type {string} */ (reader.readString()); - msg.setRegionConfigId(value); - break; - case 30: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsRelay(value); - break; - case 31: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsRelayEd(value); - break; - case 32: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setRelayEdRelayOnly(value); - break; - case 33: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setRelayEnabled(value); - break; - case 34: - var value = /** @type {!proto.api.CadPeriodicity} */ (reader.readEnum()); - msg.setRelayCadPeriodicity(value); - break; - case 35: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayDefaultChannelIndex(value); - break; - case 36: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelaySecondChannelFreq(value); - break; - case 37: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelaySecondChannelDr(value); - break; - case 38: - var value = /** @type {!proto.api.SecondChAckOffset} */ (reader.readEnum()); - msg.setRelaySecondChannelAckOffset(value); - break; - case 39: - var value = /** @type {!proto.api.RelayModeActivation} */ (reader.readEnum()); - msg.setRelayEdActivationMode(value); - break; - case 40: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayEdSmartEnableLevel(value); - break; - case 41: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayEdBackOff(value); - break; - case 42: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayEdUplinkLimitBucketSize(value); - break; - case 43: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayEdUplinkLimitReloadRate(value); - break; - case 44: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayJoinReqLimitReloadRate(value); - break; - case 45: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayNotifyLimitReloadRate(value); - break; - case 46: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayGlobalUplinkLimitReloadRate(value); - break; - case 47: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayOverallLimitReloadRate(value); - break; - case 48: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayJoinReqLimitBucketSize(value); - break; - case 49: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayNotifyLimitBucketSize(value); - break; - case 50: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayGlobalUplinkLimitBucketSize(value); - break; - case 51: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRelayOverallLimitBucketSize(value); - break; - case 52: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAllowRoaming(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceProfile.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceProfile.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceProfile} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceProfile.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 26, - f - ); - } - f = message.getRegion(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getMacVersion(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } - f = message.getRegParamsRevision(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getAdrAlgorithmId(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getPayloadCodecRuntime(); - if (f !== 0.0) { - writer.writeEnum( - 8, - f - ); - } - f = message.getPayloadCodecScript(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getFlushQueueOnActivate(); - if (f) { - writer.writeBool( - 10, - f - ); - } - f = message.getUplinkInterval(); - if (f !== 0) { - writer.writeUint32( - 11, - f - ); - } - f = message.getDeviceStatusReqInterval(); - if (f !== 0) { - writer.writeUint32( - 12, - f - ); - } - f = message.getSupportsOtaa(); - if (f) { - writer.writeBool( - 13, - f - ); - } - f = message.getSupportsClassB(); - if (f) { - writer.writeBool( - 14, - f - ); - } - f = message.getSupportsClassC(); - if (f) { - writer.writeBool( - 15, - f - ); - } - f = message.getClassBTimeout(); - if (f !== 0) { - writer.writeUint32( - 16, - f - ); - } - f = message.getClassBPingSlotNbK(); - if (f !== 0) { - writer.writeUint32( - 17, - f - ); - } - f = message.getClassBPingSlotDr(); - if (f !== 0) { - writer.writeUint32( - 18, - f - ); - } - f = message.getClassBPingSlotFreq(); - if (f !== 0) { - writer.writeUint32( - 19, - f - ); - } - f = message.getClassCTimeout(); - if (f !== 0) { - writer.writeUint32( - 20, - f - ); - } - f = message.getAbpRx1Delay(); - if (f !== 0) { - writer.writeUint32( - 21, - f - ); - } - f = message.getAbpRx1DrOffset(); - if (f !== 0) { - writer.writeUint32( - 22, - f - ); - } - f = message.getAbpRx2Dr(); - if (f !== 0) { - writer.writeUint32( - 23, - f - ); - } - f = message.getAbpRx2Freq(); - if (f !== 0) { - writer.writeUint32( - 24, - f - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(25, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getMeasurementsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(27, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.api.Measurement.serializeBinaryToWriter); - } - f = message.getAutoDetectMeasurements(); - if (f) { - writer.writeBool( - 28, - f - ); - } - f = message.getRegionConfigId(); - if (f.length > 0) { - writer.writeString( - 29, - f - ); - } - f = message.getIsRelay(); - if (f) { - writer.writeBool( - 30, - f - ); - } - f = message.getIsRelayEd(); - if (f) { - writer.writeBool( - 31, - f - ); - } - f = message.getRelayEdRelayOnly(); - if (f) { - writer.writeBool( - 32, - f - ); - } - f = message.getRelayEnabled(); - if (f) { - writer.writeBool( - 33, - f - ); - } - f = message.getRelayCadPeriodicity(); - if (f !== 0.0) { - writer.writeEnum( - 34, - f - ); - } - f = message.getRelayDefaultChannelIndex(); - if (f !== 0) { - writer.writeUint32( - 35, - f - ); - } - f = message.getRelaySecondChannelFreq(); - if (f !== 0) { - writer.writeUint32( - 36, - f - ); - } - f = message.getRelaySecondChannelDr(); - if (f !== 0) { - writer.writeUint32( - 37, - f - ); - } - f = message.getRelaySecondChannelAckOffset(); - if (f !== 0.0) { - writer.writeEnum( - 38, - f - ); - } - f = message.getRelayEdActivationMode(); - if (f !== 0.0) { - writer.writeEnum( - 39, - f - ); - } - f = message.getRelayEdSmartEnableLevel(); - if (f !== 0) { - writer.writeUint32( - 40, - f - ); - } - f = message.getRelayEdBackOff(); - if (f !== 0) { - writer.writeUint32( - 41, - f - ); - } - f = message.getRelayEdUplinkLimitBucketSize(); - if (f !== 0) { - writer.writeUint32( - 42, - f - ); - } - f = message.getRelayEdUplinkLimitReloadRate(); - if (f !== 0) { - writer.writeUint32( - 43, - f - ); - } - f = message.getRelayJoinReqLimitReloadRate(); - if (f !== 0) { - writer.writeUint32( - 44, - f - ); - } - f = message.getRelayNotifyLimitReloadRate(); - if (f !== 0) { - writer.writeUint32( - 45, - f - ); - } - f = message.getRelayGlobalUplinkLimitReloadRate(); - if (f !== 0) { - writer.writeUint32( - 46, - f - ); - } - f = message.getRelayOverallLimitReloadRate(); - if (f !== 0) { - writer.writeUint32( - 47, - f - ); - } - f = message.getRelayJoinReqLimitBucketSize(); - if (f !== 0) { - writer.writeUint32( - 48, - f - ); - } - f = message.getRelayNotifyLimitBucketSize(); - if (f !== 0) { - writer.writeUint32( - 49, - f - ); - } - f = message.getRelayGlobalUplinkLimitBucketSize(); - if (f !== 0) { - writer.writeUint32( - 50, - f - ); - } - f = message.getRelayOverallLimitBucketSize(); - if (f !== 0) { - writer.writeUint32( - 51, - f - ); - } - f = message.getAllowRoaming(); - if (f) { - writer.writeBool( - 52, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeviceProfile.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string tenant_id = 2; - * @return {string} - */ -proto.api.DeviceProfile.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string name = 3; - * @return {string} - */ -proto.api.DeviceProfile.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string description = 26; - * @return {string} - */ -proto.api.DeviceProfile.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 26, value); -}; - - -/** - * optional common.Region region = 4; - * @return {!proto.common.Region} - */ -proto.api.DeviceProfile.prototype.getRegion = function() { - return /** @type {!proto.common.Region} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.common.Region} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRegion = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional common.MacVersion mac_version = 5; - * @return {!proto.common.MacVersion} - */ -proto.api.DeviceProfile.prototype.getMacVersion = function() { - return /** @type {!proto.common.MacVersion} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {!proto.common.MacVersion} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setMacVersion = function(value) { - return jspb.Message.setProto3EnumField(this, 5, value); -}; - - -/** - * optional common.RegParamsRevision reg_params_revision = 6; - * @return {!proto.common.RegParamsRevision} - */ -proto.api.DeviceProfile.prototype.getRegParamsRevision = function() { - return /** @type {!proto.common.RegParamsRevision} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.common.RegParamsRevision} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRegParamsRevision = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional string adr_algorithm_id = 7; - * @return {string} - */ -proto.api.DeviceProfile.prototype.getAdrAlgorithmId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setAdrAlgorithmId = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional CodecRuntime payload_codec_runtime = 8; - * @return {!proto.api.CodecRuntime} - */ -proto.api.DeviceProfile.prototype.getPayloadCodecRuntime = function() { - return /** @type {!proto.api.CodecRuntime} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {!proto.api.CodecRuntime} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setPayloadCodecRuntime = function(value) { - return jspb.Message.setProto3EnumField(this, 8, value); -}; - - -/** - * optional string payload_codec_script = 9; - * @return {string} - */ -proto.api.DeviceProfile.prototype.getPayloadCodecScript = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setPayloadCodecScript = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional bool flush_queue_on_activate = 10; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getFlushQueueOnActivate = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setFlushQueueOnActivate = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); -}; - - -/** - * optional uint32 uplink_interval = 11; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getUplinkInterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setUplinkInterval = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional uint32 device_status_req_interval = 12; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getDeviceStatusReqInterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setDeviceStatusReqInterval = function(value) { - return jspb.Message.setProto3IntField(this, 12, value); -}; - - -/** - * optional bool supports_otaa = 13; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getSupportsOtaa = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setSupportsOtaa = function(value) { - return jspb.Message.setProto3BooleanField(this, 13, value); -}; - - -/** - * optional bool supports_class_b = 14; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getSupportsClassB = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setSupportsClassB = function(value) { - return jspb.Message.setProto3BooleanField(this, 14, value); -}; - - -/** - * optional bool supports_class_c = 15; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getSupportsClassC = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setSupportsClassC = function(value) { - return jspb.Message.setProto3BooleanField(this, 15, value); -}; - - -/** - * optional uint32 class_b_timeout = 16; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getClassBTimeout = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setClassBTimeout = function(value) { - return jspb.Message.setProto3IntField(this, 16, value); -}; - - -/** - * optional uint32 class_b_ping_slot_nb_k = 17; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getClassBPingSlotNbK = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setClassBPingSlotNbK = function(value) { - return jspb.Message.setProto3IntField(this, 17, value); -}; - - -/** - * optional uint32 class_b_ping_slot_dr = 18; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getClassBPingSlotDr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setClassBPingSlotDr = function(value) { - return jspb.Message.setProto3IntField(this, 18, value); -}; - - -/** - * optional uint32 class_b_ping_slot_freq = 19; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getClassBPingSlotFreq = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setClassBPingSlotFreq = function(value) { - return jspb.Message.setProto3IntField(this, 19, value); -}; - - -/** - * optional uint32 class_c_timeout = 20; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getClassCTimeout = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setClassCTimeout = function(value) { - return jspb.Message.setProto3IntField(this, 20, value); -}; - - -/** - * optional uint32 abp_rx1_delay = 21; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getAbpRx1Delay = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setAbpRx1Delay = function(value) { - return jspb.Message.setProto3IntField(this, 21, value); -}; - - -/** - * optional uint32 abp_rx1_dr_offset = 22; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getAbpRx1DrOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setAbpRx1DrOffset = function(value) { - return jspb.Message.setProto3IntField(this, 22, value); -}; - - -/** - * optional uint32 abp_rx2_dr = 23; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getAbpRx2Dr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setAbpRx2Dr = function(value) { - return jspb.Message.setProto3IntField(this, 23, value); -}; - - -/** - * optional uint32 abp_rx2_freq = 24; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getAbpRx2Freq = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setAbpRx2Freq = function(value) { - return jspb.Message.setProto3IntField(this, 24, value); -}; - - -/** - * map tags = 25; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.DeviceProfile.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 25, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - -/** - * map measurements = 27; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.DeviceProfile.prototype.getMeasurementsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 27, opt_noLazyCreate, - proto.api.Measurement)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.clearMeasurementsMap = function() { - this.getMeasurementsMap().clear(); - return this;}; - - -/** - * optional bool auto_detect_measurements = 28; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getAutoDetectMeasurements = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 28, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setAutoDetectMeasurements = function(value) { - return jspb.Message.setProto3BooleanField(this, 28, value); -}; - - -/** - * optional string region_config_id = 29; - * @return {string} - */ -proto.api.DeviceProfile.prototype.getRegionConfigId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 29, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRegionConfigId = function(value) { - return jspb.Message.setProto3StringField(this, 29, value); -}; - - -/** - * optional bool is_relay = 30; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getIsRelay = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 30, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setIsRelay = function(value) { - return jspb.Message.setProto3BooleanField(this, 30, value); -}; - - -/** - * optional bool is_relay_ed = 31; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getIsRelayEd = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 31, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setIsRelayEd = function(value) { - return jspb.Message.setProto3BooleanField(this, 31, value); -}; - - -/** - * optional bool relay_ed_relay_only = 32; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getRelayEdRelayOnly = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 32, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayEdRelayOnly = function(value) { - return jspb.Message.setProto3BooleanField(this, 32, value); -}; - - -/** - * optional bool relay_enabled = 33; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getRelayEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 33, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 33, value); -}; - - -/** - * optional CadPeriodicity relay_cad_periodicity = 34; - * @return {!proto.api.CadPeriodicity} - */ -proto.api.DeviceProfile.prototype.getRelayCadPeriodicity = function() { - return /** @type {!proto.api.CadPeriodicity} */ (jspb.Message.getFieldWithDefault(this, 34, 0)); -}; - - -/** - * @param {!proto.api.CadPeriodicity} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayCadPeriodicity = function(value) { - return jspb.Message.setProto3EnumField(this, 34, value); -}; - - -/** - * optional uint32 relay_default_channel_index = 35; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayDefaultChannelIndex = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 35, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayDefaultChannelIndex = function(value) { - return jspb.Message.setProto3IntField(this, 35, value); -}; - - -/** - * optional uint32 relay_second_channel_freq = 36; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelaySecondChannelFreq = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 36, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelaySecondChannelFreq = function(value) { - return jspb.Message.setProto3IntField(this, 36, value); -}; - - -/** - * optional uint32 relay_second_channel_dr = 37; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelaySecondChannelDr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 37, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelaySecondChannelDr = function(value) { - return jspb.Message.setProto3IntField(this, 37, value); -}; - - -/** - * optional SecondChAckOffset relay_second_channel_ack_offset = 38; - * @return {!proto.api.SecondChAckOffset} - */ -proto.api.DeviceProfile.prototype.getRelaySecondChannelAckOffset = function() { - return /** @type {!proto.api.SecondChAckOffset} */ (jspb.Message.getFieldWithDefault(this, 38, 0)); -}; - - -/** - * @param {!proto.api.SecondChAckOffset} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelaySecondChannelAckOffset = function(value) { - return jspb.Message.setProto3EnumField(this, 38, value); -}; - - -/** - * optional RelayModeActivation relay_ed_activation_mode = 39; - * @return {!proto.api.RelayModeActivation} - */ -proto.api.DeviceProfile.prototype.getRelayEdActivationMode = function() { - return /** @type {!proto.api.RelayModeActivation} */ (jspb.Message.getFieldWithDefault(this, 39, 0)); -}; - - -/** - * @param {!proto.api.RelayModeActivation} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayEdActivationMode = function(value) { - return jspb.Message.setProto3EnumField(this, 39, value); -}; - - -/** - * optional uint32 relay_ed_smart_enable_level = 40; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayEdSmartEnableLevel = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 40, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayEdSmartEnableLevel = function(value) { - return jspb.Message.setProto3IntField(this, 40, value); -}; - - -/** - * optional uint32 relay_ed_back_off = 41; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayEdBackOff = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 41, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayEdBackOff = function(value) { - return jspb.Message.setProto3IntField(this, 41, value); -}; - - -/** - * optional uint32 relay_ed_uplink_limit_bucket_size = 42; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayEdUplinkLimitBucketSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 42, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayEdUplinkLimitBucketSize = function(value) { - return jspb.Message.setProto3IntField(this, 42, value); -}; - - -/** - * optional uint32 relay_ed_uplink_limit_reload_rate = 43; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayEdUplinkLimitReloadRate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 43, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayEdUplinkLimitReloadRate = function(value) { - return jspb.Message.setProto3IntField(this, 43, value); -}; - - -/** - * optional uint32 relay_join_req_limit_reload_rate = 44; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayJoinReqLimitReloadRate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 44, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayJoinReqLimitReloadRate = function(value) { - return jspb.Message.setProto3IntField(this, 44, value); -}; - - -/** - * optional uint32 relay_notify_limit_reload_rate = 45; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayNotifyLimitReloadRate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 45, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayNotifyLimitReloadRate = function(value) { - return jspb.Message.setProto3IntField(this, 45, value); -}; - - -/** - * optional uint32 relay_global_uplink_limit_reload_rate = 46; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayGlobalUplinkLimitReloadRate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 46, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayGlobalUplinkLimitReloadRate = function(value) { - return jspb.Message.setProto3IntField(this, 46, value); -}; - - -/** - * optional uint32 relay_overall_limit_reload_rate = 47; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayOverallLimitReloadRate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 47, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayOverallLimitReloadRate = function(value) { - return jspb.Message.setProto3IntField(this, 47, value); -}; - - -/** - * optional uint32 relay_join_req_limit_bucket_size = 48; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayJoinReqLimitBucketSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 48, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayJoinReqLimitBucketSize = function(value) { - return jspb.Message.setProto3IntField(this, 48, value); -}; - - -/** - * optional uint32 relay_notify_limit_bucket_size = 49; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayNotifyLimitBucketSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 49, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayNotifyLimitBucketSize = function(value) { - return jspb.Message.setProto3IntField(this, 49, value); -}; - - -/** - * optional uint32 relay_global_uplink_limit_bucket_size = 50; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayGlobalUplinkLimitBucketSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 50, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayGlobalUplinkLimitBucketSize = function(value) { - return jspb.Message.setProto3IntField(this, 50, value); -}; - - -/** - * optional uint32 relay_overall_limit_bucket_size = 51; - * @return {number} - */ -proto.api.DeviceProfile.prototype.getRelayOverallLimitBucketSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 51, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setRelayOverallLimitBucketSize = function(value) { - return jspb.Message.setProto3IntField(this, 51, value); -}; - - -/** - * optional bool allow_roaming = 52; - * @return {boolean} - */ -proto.api.DeviceProfile.prototype.getAllowRoaming = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 52, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfile} returns this - */ -proto.api.DeviceProfile.prototype.setAllowRoaming = function(value) { - return jspb.Message.setProto3BooleanField(this, 52, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.Measurement.prototype.toObject = function(opt_includeInstance) { - return proto.api.Measurement.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.Measurement} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Measurement.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - kind: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.Measurement} - */ -proto.api.Measurement.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.Measurement; - return proto.api.Measurement.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.Measurement} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.Measurement} - */ -proto.api.Measurement.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {!proto.api.MeasurementKind} */ (reader.readEnum()); - msg.setKind(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.Measurement.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.Measurement.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.Measurement} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Measurement.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getKind(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.Measurement.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Measurement} returns this - */ -proto.api.Measurement.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional MeasurementKind kind = 3; - * @return {!proto.api.MeasurementKind} - */ -proto.api.Measurement.prototype.getKind = function() { - return /** @type {!proto.api.MeasurementKind} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.api.MeasurementKind} value - * @return {!proto.api.Measurement} returns this - */ -proto.api.Measurement.prototype.setKind = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceProfileListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceProfileListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceProfileListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceProfileListItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 4, ""), - region: jspb.Message.getFieldWithDefault(msg, 5, 0), - macVersion: jspb.Message.getFieldWithDefault(msg, 6, 0), - regParamsRevision: jspb.Message.getFieldWithDefault(msg, 7, 0), - supportsOtaa: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - supportsClassB: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - supportsClassC: jspb.Message.getBooleanFieldWithDefault(msg, 10, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceProfileListItem} - */ -proto.api.DeviceProfileListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceProfileListItem; - return proto.api.DeviceProfileListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceProfileListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceProfileListItem} - */ -proto.api.DeviceProfileListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 5: - var value = /** @type {!proto.common.Region} */ (reader.readEnum()); - msg.setRegion(value); - break; - case 6: - var value = /** @type {!proto.common.MacVersion} */ (reader.readEnum()); - msg.setMacVersion(value); - break; - case 7: - var value = /** @type {!proto.common.RegParamsRevision} */ (reader.readEnum()); - msg.setRegParamsRevision(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsOtaa(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsClassB(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsClassC(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceProfileListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceProfileListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceProfileListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceProfileListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRegion(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } - f = message.getMacVersion(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getRegParamsRevision(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getSupportsOtaa(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getSupportsClassB(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getSupportsClassC(); - if (f) { - writer.writeBool( - 10, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeviceProfileListItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.DeviceProfileListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.DeviceProfileListItem} returns this -*/ -proto.api.DeviceProfileListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.DeviceProfileListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.DeviceProfileListItem.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.DeviceProfileListItem} returns this -*/ -proto.api.DeviceProfileListItem.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.DeviceProfileListItem.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string name = 4; - * @return {string} - */ -proto.api.DeviceProfileListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional common.Region region = 5; - * @return {!proto.common.Region} - */ -proto.api.DeviceProfileListItem.prototype.getRegion = function() { - return /** @type {!proto.common.Region} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {!proto.common.Region} value - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.setRegion = function(value) { - return jspb.Message.setProto3EnumField(this, 5, value); -}; - - -/** - * optional common.MacVersion mac_version = 6; - * @return {!proto.common.MacVersion} - */ -proto.api.DeviceProfileListItem.prototype.getMacVersion = function() { - return /** @type {!proto.common.MacVersion} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.common.MacVersion} value - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.setMacVersion = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional common.RegParamsRevision reg_params_revision = 7; - * @return {!proto.common.RegParamsRevision} - */ -proto.api.DeviceProfileListItem.prototype.getRegParamsRevision = function() { - return /** @type {!proto.common.RegParamsRevision} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.common.RegParamsRevision} value - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.setRegParamsRevision = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); -}; - - -/** - * optional bool supports_otaa = 8; - * @return {boolean} - */ -proto.api.DeviceProfileListItem.prototype.getSupportsOtaa = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.setSupportsOtaa = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); -}; - - -/** - * optional bool supports_class_b = 9; - * @return {boolean} - */ -proto.api.DeviceProfileListItem.prototype.getSupportsClassB = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.setSupportsClassB = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - -/** - * optional bool supports_class_c = 10; - * @return {boolean} - */ -proto.api.DeviceProfileListItem.prototype.getSupportsClassC = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileListItem} returns this - */ -proto.api.DeviceProfileListItem.prototype.setSupportsClassC = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateDeviceProfileRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateDeviceProfileRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateDeviceProfileRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceProfileRequest.toObject = function(includeInstance, msg) { - var f, obj = { - deviceProfile: (f = msg.getDeviceProfile()) && proto.api.DeviceProfile.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateDeviceProfileRequest} - */ -proto.api.CreateDeviceProfileRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateDeviceProfileRequest; - return proto.api.CreateDeviceProfileRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateDeviceProfileRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateDeviceProfileRequest} - */ -proto.api.CreateDeviceProfileRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceProfile; - reader.readMessage(value,proto.api.DeviceProfile.deserializeBinaryFromReader); - msg.setDeviceProfile(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateDeviceProfileRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateDeviceProfileRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateDeviceProfileRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceProfileRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceProfile(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceProfile.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceProfile device_profile = 1; - * @return {?proto.api.DeviceProfile} - */ -proto.api.CreateDeviceProfileRequest.prototype.getDeviceProfile = function() { - return /** @type{?proto.api.DeviceProfile} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceProfile, 1)); -}; - - -/** - * @param {?proto.api.DeviceProfile|undefined} value - * @return {!proto.api.CreateDeviceProfileRequest} returns this -*/ -proto.api.CreateDeviceProfileRequest.prototype.setDeviceProfile = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateDeviceProfileRequest} returns this - */ -proto.api.CreateDeviceProfileRequest.prototype.clearDeviceProfile = function() { - return this.setDeviceProfile(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateDeviceProfileRequest.prototype.hasDeviceProfile = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateDeviceProfileResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateDeviceProfileResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateDeviceProfileResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceProfileResponse.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateDeviceProfileResponse} - */ -proto.api.CreateDeviceProfileResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateDeviceProfileResponse; - return proto.api.CreateDeviceProfileResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateDeviceProfileResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateDeviceProfileResponse} - */ -proto.api.CreateDeviceProfileResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateDeviceProfileResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateDeviceProfileResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateDeviceProfileResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceProfileResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.CreateDeviceProfileResponse.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.CreateDeviceProfileResponse} returns this - */ -proto.api.CreateDeviceProfileResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceProfileRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceProfileRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceProfileRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceProfileRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceProfileRequest} - */ -proto.api.GetDeviceProfileRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceProfileRequest; - return proto.api.GetDeviceProfileRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceProfileRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceProfileRequest} - */ -proto.api.GetDeviceProfileRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceProfileRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceProfileRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceProfileRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceProfileRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.GetDeviceProfileRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDeviceProfileRequest} returns this - */ -proto.api.GetDeviceProfileRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceProfileResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceProfileResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceProfileResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceProfileResponse.toObject = function(includeInstance, msg) { - var f, obj = { - deviceProfile: (f = msg.getDeviceProfile()) && proto.api.DeviceProfile.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceProfileResponse} - */ -proto.api.GetDeviceProfileResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceProfileResponse; - return proto.api.GetDeviceProfileResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceProfileResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceProfileResponse} - */ -proto.api.GetDeviceProfileResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceProfile; - reader.readMessage(value,proto.api.DeviceProfile.deserializeBinaryFromReader); - msg.setDeviceProfile(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceProfileResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceProfileResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceProfileResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceProfileResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceProfile(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceProfile.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceProfile device_profile = 1; - * @return {?proto.api.DeviceProfile} - */ -proto.api.GetDeviceProfileResponse.prototype.getDeviceProfile = function() { - return /** @type{?proto.api.DeviceProfile} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceProfile, 1)); -}; - - -/** - * @param {?proto.api.DeviceProfile|undefined} value - * @return {!proto.api.GetDeviceProfileResponse} returns this -*/ -proto.api.GetDeviceProfileResponse.prototype.setDeviceProfile = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceProfileResponse} returns this - */ -proto.api.GetDeviceProfileResponse.prototype.clearDeviceProfile = function() { - return this.setDeviceProfile(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceProfileResponse.prototype.hasDeviceProfile = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceProfileResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceProfileResponse} returns this -*/ -proto.api.GetDeviceProfileResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceProfileResponse} returns this - */ -proto.api.GetDeviceProfileResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceProfileResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceProfileResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceProfileResponse} returns this -*/ -proto.api.GetDeviceProfileResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceProfileResponse} returns this - */ -proto.api.GetDeviceProfileResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceProfileResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateDeviceProfileRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateDeviceProfileRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateDeviceProfileRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateDeviceProfileRequest.toObject = function(includeInstance, msg) { - var f, obj = { - deviceProfile: (f = msg.getDeviceProfile()) && proto.api.DeviceProfile.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateDeviceProfileRequest} - */ -proto.api.UpdateDeviceProfileRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateDeviceProfileRequest; - return proto.api.UpdateDeviceProfileRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateDeviceProfileRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateDeviceProfileRequest} - */ -proto.api.UpdateDeviceProfileRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceProfile; - reader.readMessage(value,proto.api.DeviceProfile.deserializeBinaryFromReader); - msg.setDeviceProfile(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateDeviceProfileRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateDeviceProfileRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateDeviceProfileRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateDeviceProfileRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceProfile(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceProfile.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceProfile device_profile = 1; - * @return {?proto.api.DeviceProfile} - */ -proto.api.UpdateDeviceProfileRequest.prototype.getDeviceProfile = function() { - return /** @type{?proto.api.DeviceProfile} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceProfile, 1)); -}; - - -/** - * @param {?proto.api.DeviceProfile|undefined} value - * @return {!proto.api.UpdateDeviceProfileRequest} returns this -*/ -proto.api.UpdateDeviceProfileRequest.prototype.setDeviceProfile = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateDeviceProfileRequest} returns this - */ -proto.api.UpdateDeviceProfileRequest.prototype.clearDeviceProfile = function() { - return this.setDeviceProfile(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateDeviceProfileRequest.prototype.hasDeviceProfile = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteDeviceProfileRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteDeviceProfileRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteDeviceProfileRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteDeviceProfileRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteDeviceProfileRequest} - */ -proto.api.DeleteDeviceProfileRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteDeviceProfileRequest; - return proto.api.DeleteDeviceProfileRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteDeviceProfileRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteDeviceProfileRequest} - */ -proto.api.DeleteDeviceProfileRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteDeviceProfileRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteDeviceProfileRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteDeviceProfileRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteDeviceProfileRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeleteDeviceProfileRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteDeviceProfileRequest} returns this - */ -proto.api.DeleteDeviceProfileRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListDeviceProfilesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListDeviceProfilesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListDeviceProfilesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfilesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - search: jspb.Message.getFieldWithDefault(msg, 3, ""), - tenantId: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListDeviceProfilesRequest} - */ -proto.api.ListDeviceProfilesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListDeviceProfilesRequest; - return proto.api.ListDeviceProfilesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListDeviceProfilesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListDeviceProfilesRequest} - */ -proto.api.ListDeviceProfilesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSearch(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListDeviceProfilesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListDeviceProfilesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListDeviceProfilesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfilesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getSearch(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListDeviceProfilesRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDeviceProfilesRequest} returns this - */ -proto.api.ListDeviceProfilesRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListDeviceProfilesRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDeviceProfilesRequest} returns this - */ -proto.api.ListDeviceProfilesRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string search = 3; - * @return {string} - */ -proto.api.ListDeviceProfilesRequest.prototype.getSearch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListDeviceProfilesRequest} returns this - */ -proto.api.ListDeviceProfilesRequest.prototype.setSearch = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string tenant_id = 4; - * @return {string} - */ -proto.api.ListDeviceProfilesRequest.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListDeviceProfilesRequest} returns this - */ -proto.api.ListDeviceProfilesRequest.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListDeviceProfilesResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListDeviceProfilesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListDeviceProfilesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListDeviceProfilesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfilesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.DeviceProfileListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListDeviceProfilesResponse} - */ -proto.api.ListDeviceProfilesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListDeviceProfilesResponse; - return proto.api.ListDeviceProfilesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListDeviceProfilesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListDeviceProfilesResponse} - */ -proto.api.ListDeviceProfilesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.DeviceProfileListItem; - reader.readMessage(value,proto.api.DeviceProfileListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListDeviceProfilesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListDeviceProfilesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListDeviceProfilesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfilesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.DeviceProfileListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListDeviceProfilesResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDeviceProfilesResponse} returns this - */ -proto.api.ListDeviceProfilesResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated DeviceProfileListItem result = 2; - * @return {!Array} - */ -proto.api.ListDeviceProfilesResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.DeviceProfileListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListDeviceProfilesResponse} returns this -*/ -proto.api.ListDeviceProfilesResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.DeviceProfileListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.DeviceProfileListItem} - */ -proto.api.ListDeviceProfilesResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.DeviceProfileListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListDeviceProfilesResponse} returns this - */ -proto.api.ListDeviceProfilesResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListDeviceProfileAdrAlgorithmsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListDeviceProfileAdrAlgorithmsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.AdrAlgorithmListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListDeviceProfileAdrAlgorithmsResponse} - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListDeviceProfileAdrAlgorithmsResponse; - return proto.api.ListDeviceProfileAdrAlgorithmsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListDeviceProfileAdrAlgorithmsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListDeviceProfileAdrAlgorithmsResponse} - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.AdrAlgorithmListItem; - reader.readMessage(value,proto.api.AdrAlgorithmListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListDeviceProfileAdrAlgorithmsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListDeviceProfileAdrAlgorithmsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.AdrAlgorithmListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDeviceProfileAdrAlgorithmsResponse} returns this - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated AdrAlgorithmListItem result = 2; - * @return {!Array} - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.AdrAlgorithmListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListDeviceProfileAdrAlgorithmsResponse} returns this -*/ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.AdrAlgorithmListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.AdrAlgorithmListItem} - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.AdrAlgorithmListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListDeviceProfileAdrAlgorithmsResponse} returns this - */ -proto.api.ListDeviceProfileAdrAlgorithmsResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.AdrAlgorithmListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.AdrAlgorithmListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.AdrAlgorithmListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AdrAlgorithmListItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.AdrAlgorithmListItem} - */ -proto.api.AdrAlgorithmListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.AdrAlgorithmListItem; - return proto.api.AdrAlgorithmListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.AdrAlgorithmListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.AdrAlgorithmListItem} - */ -proto.api.AdrAlgorithmListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.AdrAlgorithmListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.AdrAlgorithmListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.AdrAlgorithmListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AdrAlgorithmListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.AdrAlgorithmListItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AdrAlgorithmListItem} returns this - */ -proto.api.AdrAlgorithmListItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.AdrAlgorithmListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AdrAlgorithmListItem} returns this - */ -proto.api.AdrAlgorithmListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * @enum {number} - */ -proto.api.CodecRuntime = { - NONE: 0, - CAYENNE_LPP: 1, - JS: 2 -}; - -/** - * @enum {number} - */ -proto.api.MeasurementKind = { - UNKNOWN: 0, - COUNTER: 1, - ABSOLUTE: 2, - GAUGE: 3, - STRING: 4 -}; - -/** - * @enum {number} - */ -proto.api.CadPeriodicity = { - SEC_1: 0, - MS_500: 1, - MS_250: 2, - MS_100: 3, - MS_50: 4, - MS_20: 5 -}; - -/** - * @enum {number} - */ -proto.api.SecondChAckOffset = { - KHZ_0: 0, - KHZ_200: 1, - KHZ_400: 2, - KHZ_800: 3, - KHZ_1600: 4, - KHZ_3200: 5 -}; - -/** - * @enum {number} - */ -proto.api.RelayModeActivation = { - DISABLE_RELAY_MODE: 0, - ENABLE_RELAY_MODE: 1, - DYNAMIC: 2, - END_DEVICE_CONTROLLED: 3 -}; - -goog.object.extend(exports, proto.api); diff --git a/api/js/api/device_profile_template_grpc_pb.d.ts b/api/js/api/device_profile_template_grpc_pb.d.ts deleted file mode 100644 index 105781a4..00000000 --- a/api/js/api/device_profile_template_grpc_pb.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -// package: api -// file: api/device_profile_template.proto - -import * as api_device_profile_template_pb from "../api/device_profile_template_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; -import * as grpc from "@grpc/grpc-js"; - -interface IDeviceProfileTemplateServiceService extends grpc.ServiceDefinition { - create: grpc.MethodDefinition; - get: grpc.MethodDefinition; - update: grpc.MethodDefinition; - delete: grpc.MethodDefinition; - list: grpc.MethodDefinition; -} - -export const DeviceProfileTemplateServiceService: IDeviceProfileTemplateServiceService; - -export interface IDeviceProfileTemplateServiceServer extends grpc.UntypedServiceImplementation { - create: grpc.handleUnaryCall; - get: grpc.handleUnaryCall; - update: grpc.handleUnaryCall; - delete: grpc.handleUnaryCall; - list: grpc.handleUnaryCall; -} - -export class DeviceProfileTemplateServiceClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - create(argument: api_device_profile_template_pb.CreateDeviceProfileTemplateRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - create(argument: api_device_profile_template_pb.CreateDeviceProfileTemplateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - create(argument: api_device_profile_template_pb.CreateDeviceProfileTemplateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_device_profile_template_pb.GetDeviceProfileTemplateRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_device_profile_template_pb.GetDeviceProfileTemplateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_device_profile_template_pb.GetDeviceProfileTemplateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_device_profile_template_pb.UpdateDeviceProfileTemplateRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_device_profile_template_pb.UpdateDeviceProfileTemplateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_device_profile_template_pb.UpdateDeviceProfileTemplateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_device_profile_template_pb.DeleteDeviceProfileTemplateRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_device_profile_template_pb.DeleteDeviceProfileTemplateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_device_profile_template_pb.DeleteDeviceProfileTemplateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_device_profile_template_pb.ListDeviceProfileTemplatesRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_device_profile_template_pb.ListDeviceProfileTemplatesRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_device_profile_template_pb.ListDeviceProfileTemplatesRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; -} diff --git a/api/js/api/device_profile_template_grpc_pb.js b/api/js/api/device_profile_template_grpc_pb.js deleted file mode 100644 index 06424b2d..00000000 --- a/api/js/api/device_profile_template_grpc_pb.js +++ /dev/null @@ -1,165 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var api_device_profile_template_pb = require('../api/device_profile_template_pb.js'); -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -var common_common_pb = require('../common/common_pb.js'); -var api_device_profile_pb = require('../api/device_profile_pb.js'); - -function serialize_api_CreateDeviceProfileTemplateRequest(arg) { - if (!(arg instanceof api_device_profile_template_pb.CreateDeviceProfileTemplateRequest)) { - throw new Error('Expected argument of type api.CreateDeviceProfileTemplateRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateDeviceProfileTemplateRequest(buffer_arg) { - return api_device_profile_template_pb.CreateDeviceProfileTemplateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteDeviceProfileTemplateRequest(arg) { - if (!(arg instanceof api_device_profile_template_pb.DeleteDeviceProfileTemplateRequest)) { - throw new Error('Expected argument of type api.DeleteDeviceProfileTemplateRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteDeviceProfileTemplateRequest(buffer_arg) { - return api_device_profile_template_pb.DeleteDeviceProfileTemplateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDeviceProfileTemplateRequest(arg) { - if (!(arg instanceof api_device_profile_template_pb.GetDeviceProfileTemplateRequest)) { - throw new Error('Expected argument of type api.GetDeviceProfileTemplateRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDeviceProfileTemplateRequest(buffer_arg) { - return api_device_profile_template_pb.GetDeviceProfileTemplateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDeviceProfileTemplateResponse(arg) { - if (!(arg instanceof api_device_profile_template_pb.GetDeviceProfileTemplateResponse)) { - throw new Error('Expected argument of type api.GetDeviceProfileTemplateResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDeviceProfileTemplateResponse(buffer_arg) { - return api_device_profile_template_pb.GetDeviceProfileTemplateResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListDeviceProfileTemplatesRequest(arg) { - if (!(arg instanceof api_device_profile_template_pb.ListDeviceProfileTemplatesRequest)) { - throw new Error('Expected argument of type api.ListDeviceProfileTemplatesRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListDeviceProfileTemplatesRequest(buffer_arg) { - return api_device_profile_template_pb.ListDeviceProfileTemplatesRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListDeviceProfileTemplatesResponse(arg) { - if (!(arg instanceof api_device_profile_template_pb.ListDeviceProfileTemplatesResponse)) { - throw new Error('Expected argument of type api.ListDeviceProfileTemplatesResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListDeviceProfileTemplatesResponse(buffer_arg) { - return api_device_profile_template_pb.ListDeviceProfileTemplatesResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateDeviceProfileTemplateRequest(arg) { - if (!(arg instanceof api_device_profile_template_pb.UpdateDeviceProfileTemplateRequest)) { - throw new Error('Expected argument of type api.UpdateDeviceProfileTemplateRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateDeviceProfileTemplateRequest(buffer_arg) { - return api_device_profile_template_pb.UpdateDeviceProfileTemplateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_google_protobuf_Empty(arg) { - if (!(arg instanceof google_protobuf_empty_pb.Empty)) { - throw new Error('Expected argument of type google.protobuf.Empty'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_google_protobuf_Empty(buffer_arg) { - return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -// DeviceProfileTemplateService is the service providing API methods for managing device-profile templates. -var DeviceProfileTemplateServiceService = exports.DeviceProfileTemplateServiceService = { - // Create the given device-profile template. -create: { - path: '/api.DeviceProfileTemplateService/Create', - requestStream: false, - responseStream: false, - requestType: api_device_profile_template_pb.CreateDeviceProfileTemplateRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_CreateDeviceProfileTemplateRequest, - requestDeserialize: deserialize_api_CreateDeviceProfileTemplateRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get the device-profile template for the given ID. -get: { - path: '/api.DeviceProfileTemplateService/Get', - requestStream: false, - responseStream: false, - requestType: api_device_profile_template_pb.GetDeviceProfileTemplateRequest, - responseType: api_device_profile_template_pb.GetDeviceProfileTemplateResponse, - requestSerialize: serialize_api_GetDeviceProfileTemplateRequest, - requestDeserialize: deserialize_api_GetDeviceProfileTemplateRequest, - responseSerialize: serialize_api_GetDeviceProfileTemplateResponse, - responseDeserialize: deserialize_api_GetDeviceProfileTemplateResponse, - }, - // Update the given device-profile template. -update: { - path: '/api.DeviceProfileTemplateService/Update', - requestStream: false, - responseStream: false, - requestType: api_device_profile_template_pb.UpdateDeviceProfileTemplateRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateDeviceProfileTemplateRequest, - requestDeserialize: deserialize_api_UpdateDeviceProfileTemplateRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete the device-profile template with the given ID. -delete: { - path: '/api.DeviceProfileTemplateService/Delete', - requestStream: false, - responseStream: false, - requestType: api_device_profile_template_pb.DeleteDeviceProfileTemplateRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteDeviceProfileTemplateRequest, - requestDeserialize: deserialize_api_DeleteDeviceProfileTemplateRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // List the available device-profile templates. -list: { - path: '/api.DeviceProfileTemplateService/List', - requestStream: false, - responseStream: false, - requestType: api_device_profile_template_pb.ListDeviceProfileTemplatesRequest, - responseType: api_device_profile_template_pb.ListDeviceProfileTemplatesResponse, - requestSerialize: serialize_api_ListDeviceProfileTemplatesRequest, - requestDeserialize: deserialize_api_ListDeviceProfileTemplatesRequest, - responseSerialize: serialize_api_ListDeviceProfileTemplatesResponse, - responseDeserialize: deserialize_api_ListDeviceProfileTemplatesResponse, - }, -}; - -exports.DeviceProfileTemplateServiceClient = grpc.makeGenericClientConstructor(DeviceProfileTemplateServiceService); diff --git a/api/js/api/device_profile_template_pb.d.ts b/api/js/api/device_profile_template_pb.d.ts deleted file mode 100644 index 1bac253f..00000000 --- a/api/js/api/device_profile_template_pb.d.ts +++ /dev/null @@ -1,376 +0,0 @@ -// package: api -// file: api/device_profile_template.proto - -import * as jspb from "google-protobuf"; -import * as google_api_annotations_pb from "../google/api/annotations_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; -import * as common_common_pb from "../common/common_pb"; -import * as api_device_profile_pb from "../api/device_profile_pb"; - -export class DeviceProfileTemplate extends jspb.Message { - getId(): string; - setId(value: string): void; - - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getVendor(): string; - setVendor(value: string): void; - - getFirmware(): string; - setFirmware(value: string): void; - - getRegion(): common_common_pb.RegionMap[keyof common_common_pb.RegionMap]; - setRegion(value: common_common_pb.RegionMap[keyof common_common_pb.RegionMap]): void; - - getMacVersion(): common_common_pb.MacVersionMap[keyof common_common_pb.MacVersionMap]; - setMacVersion(value: common_common_pb.MacVersionMap[keyof common_common_pb.MacVersionMap]): void; - - getRegParamsRevision(): common_common_pb.RegParamsRevisionMap[keyof common_common_pb.RegParamsRevisionMap]; - setRegParamsRevision(value: common_common_pb.RegParamsRevisionMap[keyof common_common_pb.RegParamsRevisionMap]): void; - - getAdrAlgorithmId(): string; - setAdrAlgorithmId(value: string): void; - - getPayloadCodecRuntime(): api_device_profile_pb.CodecRuntimeMap[keyof api_device_profile_pb.CodecRuntimeMap]; - setPayloadCodecRuntime(value: api_device_profile_pb.CodecRuntimeMap[keyof api_device_profile_pb.CodecRuntimeMap]): void; - - getPayloadCodecScript(): string; - setPayloadCodecScript(value: string): void; - - getFlushQueueOnActivate(): boolean; - setFlushQueueOnActivate(value: boolean): void; - - getUplinkInterval(): number; - setUplinkInterval(value: number): void; - - getDeviceStatusReqInterval(): number; - setDeviceStatusReqInterval(value: number): void; - - getSupportsOtaa(): boolean; - setSupportsOtaa(value: boolean): void; - - getSupportsClassB(): boolean; - setSupportsClassB(value: boolean): void; - - getSupportsClassC(): boolean; - setSupportsClassC(value: boolean): void; - - getClassBTimeout(): number; - setClassBTimeout(value: number): void; - - getClassBPingSlotNbK(): number; - setClassBPingSlotNbK(value: number): void; - - getClassBPingSlotDr(): number; - setClassBPingSlotDr(value: number): void; - - getClassBPingSlotFreq(): number; - setClassBPingSlotFreq(value: number): void; - - getClassCTimeout(): number; - setClassCTimeout(value: number): void; - - getAbpRx1Delay(): number; - setAbpRx1Delay(value: number): void; - - getAbpRx1DrOffset(): number; - setAbpRx1DrOffset(value: number): void; - - getAbpRx2Dr(): number; - setAbpRx2Dr(value: number): void; - - getAbpRx2Freq(): number; - setAbpRx2Freq(value: number): void; - - getTagsMap(): jspb.Map; - clearTagsMap(): void; - getMeasurementsMap(): jspb.Map; - clearMeasurementsMap(): void; - getAutoDetectMeasurements(): boolean; - setAutoDetectMeasurements(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceProfileTemplate.AsObject; - static toObject(includeInstance: boolean, msg: DeviceProfileTemplate): DeviceProfileTemplate.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeviceProfileTemplate, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceProfileTemplate; - static deserializeBinaryFromReader(message: DeviceProfileTemplate, reader: jspb.BinaryReader): DeviceProfileTemplate; -} - -export namespace DeviceProfileTemplate { - export type AsObject = { - id: string, - name: string, - description: string, - vendor: string, - firmware: string, - region: common_common_pb.RegionMap[keyof common_common_pb.RegionMap], - macVersion: common_common_pb.MacVersionMap[keyof common_common_pb.MacVersionMap], - regParamsRevision: common_common_pb.RegParamsRevisionMap[keyof common_common_pb.RegParamsRevisionMap], - adrAlgorithmId: string, - payloadCodecRuntime: api_device_profile_pb.CodecRuntimeMap[keyof api_device_profile_pb.CodecRuntimeMap], - payloadCodecScript: string, - flushQueueOnActivate: boolean, - uplinkInterval: number, - deviceStatusReqInterval: number, - supportsOtaa: boolean, - supportsClassB: boolean, - supportsClassC: boolean, - classBTimeout: number, - classBPingSlotNbK: number, - classBPingSlotDr: number, - classBPingSlotFreq: number, - classCTimeout: number, - abpRx1Delay: number, - abpRx1DrOffset: number, - abpRx2Dr: number, - abpRx2Freq: number, - tagsMap: Array<[string, string]>, - measurementsMap: Array<[string, api_device_profile_pb.Measurement.AsObject]>, - autoDetectMeasurements: boolean, - } -} - -export class DeviceProfileTemplateListItem extends jspb.Message { - getId(): string; - setId(value: string): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - getName(): string; - setName(value: string): void; - - getVendor(): string; - setVendor(value: string): void; - - getFirmware(): string; - setFirmware(value: string): void; - - getRegion(): common_common_pb.RegionMap[keyof common_common_pb.RegionMap]; - setRegion(value: common_common_pb.RegionMap[keyof common_common_pb.RegionMap]): void; - - getMacVersion(): common_common_pb.MacVersionMap[keyof common_common_pb.MacVersionMap]; - setMacVersion(value: common_common_pb.MacVersionMap[keyof common_common_pb.MacVersionMap]): void; - - getRegParamsRevision(): common_common_pb.RegParamsRevisionMap[keyof common_common_pb.RegParamsRevisionMap]; - setRegParamsRevision(value: common_common_pb.RegParamsRevisionMap[keyof common_common_pb.RegParamsRevisionMap]): void; - - getSupportsOtaa(): boolean; - setSupportsOtaa(value: boolean): void; - - getSupportsClassB(): boolean; - setSupportsClassB(value: boolean): void; - - getSupportsClassC(): boolean; - setSupportsClassC(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceProfileTemplateListItem.AsObject; - static toObject(includeInstance: boolean, msg: DeviceProfileTemplateListItem): DeviceProfileTemplateListItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeviceProfileTemplateListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceProfileTemplateListItem; - static deserializeBinaryFromReader(message: DeviceProfileTemplateListItem, reader: jspb.BinaryReader): DeviceProfileTemplateListItem; -} - -export namespace DeviceProfileTemplateListItem { - export type AsObject = { - id: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - name: string, - vendor: string, - firmware: string, - region: common_common_pb.RegionMap[keyof common_common_pb.RegionMap], - macVersion: common_common_pb.MacVersionMap[keyof common_common_pb.MacVersionMap], - regParamsRevision: common_common_pb.RegParamsRevisionMap[keyof common_common_pb.RegParamsRevisionMap], - supportsOtaa: boolean, - supportsClassB: boolean, - supportsClassC: boolean, - } -} - -export class CreateDeviceProfileTemplateRequest extends jspb.Message { - hasDeviceProfileTemplate(): boolean; - clearDeviceProfileTemplate(): void; - getDeviceProfileTemplate(): DeviceProfileTemplate | undefined; - setDeviceProfileTemplate(value?: DeviceProfileTemplate): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateDeviceProfileTemplateRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateDeviceProfileTemplateRequest): CreateDeviceProfileTemplateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateDeviceProfileTemplateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateDeviceProfileTemplateRequest; - static deserializeBinaryFromReader(message: CreateDeviceProfileTemplateRequest, reader: jspb.BinaryReader): CreateDeviceProfileTemplateRequest; -} - -export namespace CreateDeviceProfileTemplateRequest { - export type AsObject = { - deviceProfileTemplate?: DeviceProfileTemplate.AsObject, - } -} - -export class GetDeviceProfileTemplateRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceProfileTemplateRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceProfileTemplateRequest): GetDeviceProfileTemplateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeviceProfileTemplateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceProfileTemplateRequest; - static deserializeBinaryFromReader(message: GetDeviceProfileTemplateRequest, reader: jspb.BinaryReader): GetDeviceProfileTemplateRequest; -} - -export namespace GetDeviceProfileTemplateRequest { - export type AsObject = { - id: string, - } -} - -export class GetDeviceProfileTemplateResponse extends jspb.Message { - hasDeviceProfileTemplate(): boolean; - clearDeviceProfileTemplate(): void; - getDeviceProfileTemplate(): DeviceProfileTemplate | undefined; - setDeviceProfileTemplate(value?: DeviceProfileTemplate): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeviceProfileTemplateResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDeviceProfileTemplateResponse): GetDeviceProfileTemplateResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeviceProfileTemplateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeviceProfileTemplateResponse; - static deserializeBinaryFromReader(message: GetDeviceProfileTemplateResponse, reader: jspb.BinaryReader): GetDeviceProfileTemplateResponse; -} - -export namespace GetDeviceProfileTemplateResponse { - export type AsObject = { - deviceProfileTemplate?: DeviceProfileTemplate.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateDeviceProfileTemplateRequest extends jspb.Message { - hasDeviceProfileTemplate(): boolean; - clearDeviceProfileTemplate(): void; - getDeviceProfileTemplate(): DeviceProfileTemplate | undefined; - setDeviceProfileTemplate(value?: DeviceProfileTemplate): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateDeviceProfileTemplateRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateDeviceProfileTemplateRequest): UpdateDeviceProfileTemplateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateDeviceProfileTemplateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateDeviceProfileTemplateRequest; - static deserializeBinaryFromReader(message: UpdateDeviceProfileTemplateRequest, reader: jspb.BinaryReader): UpdateDeviceProfileTemplateRequest; -} - -export namespace UpdateDeviceProfileTemplateRequest { - export type AsObject = { - deviceProfileTemplate?: DeviceProfileTemplate.AsObject, - } -} - -export class DeleteDeviceProfileTemplateRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteDeviceProfileTemplateRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteDeviceProfileTemplateRequest): DeleteDeviceProfileTemplateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteDeviceProfileTemplateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteDeviceProfileTemplateRequest; - static deserializeBinaryFromReader(message: DeleteDeviceProfileTemplateRequest, reader: jspb.BinaryReader): DeleteDeviceProfileTemplateRequest; -} - -export namespace DeleteDeviceProfileTemplateRequest { - export type AsObject = { - id: string, - } -} - -export class ListDeviceProfileTemplatesRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): void; - - getOffset(): number; - setOffset(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListDeviceProfileTemplatesRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListDeviceProfileTemplatesRequest): ListDeviceProfileTemplatesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListDeviceProfileTemplatesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListDeviceProfileTemplatesRequest; - static deserializeBinaryFromReader(message: ListDeviceProfileTemplatesRequest, reader: jspb.BinaryReader): ListDeviceProfileTemplatesRequest; -} - -export namespace ListDeviceProfileTemplatesRequest { - export type AsObject = { - limit: number, - offset: number, - } -} - -export class ListDeviceProfileTemplatesResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): void; - - clearResultList(): void; - getResultList(): Array; - setResultList(value: Array): void; - addResult(value?: DeviceProfileTemplateListItem, index?: number): DeviceProfileTemplateListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListDeviceProfileTemplatesResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListDeviceProfileTemplatesResponse): ListDeviceProfileTemplatesResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListDeviceProfileTemplatesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListDeviceProfileTemplatesResponse; - static deserializeBinaryFromReader(message: ListDeviceProfileTemplatesResponse, reader: jspb.BinaryReader): ListDeviceProfileTemplatesResponse; -} - -export namespace ListDeviceProfileTemplatesResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - diff --git a/api/js/api/device_profile_template_pb.js b/api/js/api/device_profile_template_pb.js deleted file mode 100644 index 1ff06108..00000000 --- a/api/js/api/device_profile_template_pb.js +++ /dev/null @@ -1,2866 +0,0 @@ -// source: api/device_profile_template.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -var api_device_profile_pb = require('../api/device_profile_pb.js'); -goog.object.extend(proto, api_device_profile_pb); -goog.exportSymbol('proto.api.CreateDeviceProfileTemplateRequest', null, global); -goog.exportSymbol('proto.api.DeleteDeviceProfileTemplateRequest', null, global); -goog.exportSymbol('proto.api.DeviceProfileTemplate', null, global); -goog.exportSymbol('proto.api.DeviceProfileTemplateListItem', null, global); -goog.exportSymbol('proto.api.GetDeviceProfileTemplateRequest', null, global); -goog.exportSymbol('proto.api.GetDeviceProfileTemplateResponse', null, global); -goog.exportSymbol('proto.api.ListDeviceProfileTemplatesRequest', null, global); -goog.exportSymbol('proto.api.ListDeviceProfileTemplatesResponse', null, global); -goog.exportSymbol('proto.api.UpdateDeviceProfileTemplateRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceProfileTemplate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceProfileTemplate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceProfileTemplate.displayName = 'proto.api.DeviceProfileTemplate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeviceProfileTemplateListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeviceProfileTemplateListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeviceProfileTemplateListItem.displayName = 'proto.api.DeviceProfileTemplateListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateDeviceProfileTemplateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateDeviceProfileTemplateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateDeviceProfileTemplateRequest.displayName = 'proto.api.CreateDeviceProfileTemplateRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceProfileTemplateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceProfileTemplateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceProfileTemplateRequest.displayName = 'proto.api.GetDeviceProfileTemplateRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDeviceProfileTemplateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDeviceProfileTemplateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDeviceProfileTemplateResponse.displayName = 'proto.api.GetDeviceProfileTemplateResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateDeviceProfileTemplateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateDeviceProfileTemplateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateDeviceProfileTemplateRequest.displayName = 'proto.api.UpdateDeviceProfileTemplateRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteDeviceProfileTemplateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteDeviceProfileTemplateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteDeviceProfileTemplateRequest.displayName = 'proto.api.DeleteDeviceProfileTemplateRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListDeviceProfileTemplatesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListDeviceProfileTemplatesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListDeviceProfileTemplatesRequest.displayName = 'proto.api.ListDeviceProfileTemplatesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListDeviceProfileTemplatesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListDeviceProfileTemplatesResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListDeviceProfileTemplatesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListDeviceProfileTemplatesResponse.displayName = 'proto.api.ListDeviceProfileTemplatesResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceProfileTemplate.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceProfileTemplate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceProfileTemplate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceProfileTemplate.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - vendor: jspb.Message.getFieldWithDefault(msg, 4, ""), - firmware: jspb.Message.getFieldWithDefault(msg, 5, ""), - region: jspb.Message.getFieldWithDefault(msg, 6, 0), - macVersion: jspb.Message.getFieldWithDefault(msg, 7, 0), - regParamsRevision: jspb.Message.getFieldWithDefault(msg, 8, 0), - adrAlgorithmId: jspb.Message.getFieldWithDefault(msg, 9, ""), - payloadCodecRuntime: jspb.Message.getFieldWithDefault(msg, 10, 0), - payloadCodecScript: jspb.Message.getFieldWithDefault(msg, 11, ""), - flushQueueOnActivate: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), - uplinkInterval: jspb.Message.getFieldWithDefault(msg, 13, 0), - deviceStatusReqInterval: jspb.Message.getFieldWithDefault(msg, 14, 0), - supportsOtaa: jspb.Message.getBooleanFieldWithDefault(msg, 15, false), - supportsClassB: jspb.Message.getBooleanFieldWithDefault(msg, 16, false), - supportsClassC: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), - classBTimeout: jspb.Message.getFieldWithDefault(msg, 18, 0), - classBPingSlotNbK: jspb.Message.getFieldWithDefault(msg, 19, 0), - classBPingSlotDr: jspb.Message.getFieldWithDefault(msg, 20, 0), - classBPingSlotFreq: jspb.Message.getFieldWithDefault(msg, 21, 0), - classCTimeout: jspb.Message.getFieldWithDefault(msg, 22, 0), - abpRx1Delay: jspb.Message.getFieldWithDefault(msg, 23, 0), - abpRx1DrOffset: jspb.Message.getFieldWithDefault(msg, 24, 0), - abpRx2Dr: jspb.Message.getFieldWithDefault(msg, 25, 0), - abpRx2Freq: jspb.Message.getFieldWithDefault(msg, 26, 0), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [], - measurementsMap: (f = msg.getMeasurementsMap()) ? f.toObject(includeInstance, proto.api.Measurement.toObject) : [], - autoDetectMeasurements: jspb.Message.getBooleanFieldWithDefault(msg, 29, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceProfileTemplate} - */ -proto.api.DeviceProfileTemplate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceProfileTemplate; - return proto.api.DeviceProfileTemplate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceProfileTemplate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceProfileTemplate} - */ -proto.api.DeviceProfileTemplate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setVendor(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setFirmware(value); - break; - case 6: - var value = /** @type {!proto.common.Region} */ (reader.readEnum()); - msg.setRegion(value); - break; - case 7: - var value = /** @type {!proto.common.MacVersion} */ (reader.readEnum()); - msg.setMacVersion(value); - break; - case 8: - var value = /** @type {!proto.common.RegParamsRevision} */ (reader.readEnum()); - msg.setRegParamsRevision(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setAdrAlgorithmId(value); - break; - case 10: - var value = /** @type {!proto.api.CodecRuntime} */ (reader.readEnum()); - msg.setPayloadCodecRuntime(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setPayloadCodecScript(value); - break; - case 12: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setFlushQueueOnActivate(value); - break; - case 13: - var value = /** @type {number} */ (reader.readUint32()); - msg.setUplinkInterval(value); - break; - case 14: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDeviceStatusReqInterval(value); - break; - case 15: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsOtaa(value); - break; - case 16: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsClassB(value); - break; - case 17: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsClassC(value); - break; - case 18: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBTimeout(value); - break; - case 19: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotNbK(value); - break; - case 20: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotDr(value); - break; - case 21: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotFreq(value); - break; - case 22: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassCTimeout(value); - break; - case 23: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAbpRx1Delay(value); - break; - case 24: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAbpRx1DrOffset(value); - break; - case 25: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAbpRx2Dr(value); - break; - case 26: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAbpRx2Freq(value); - break; - case 27: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 28: - var value = msg.getMeasurementsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.api.Measurement.deserializeBinaryFromReader, "", new proto.api.Measurement()); - }); - break; - case 29: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAutoDetectMeasurements(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceProfileTemplate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceProfileTemplate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceProfileTemplate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceProfileTemplate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getVendor(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getFirmware(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getRegion(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getMacVersion(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getRegParamsRevision(); - if (f !== 0.0) { - writer.writeEnum( - 8, - f - ); - } - f = message.getAdrAlgorithmId(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getPayloadCodecRuntime(); - if (f !== 0.0) { - writer.writeEnum( - 10, - f - ); - } - f = message.getPayloadCodecScript(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getFlushQueueOnActivate(); - if (f) { - writer.writeBool( - 12, - f - ); - } - f = message.getUplinkInterval(); - if (f !== 0) { - writer.writeUint32( - 13, - f - ); - } - f = message.getDeviceStatusReqInterval(); - if (f !== 0) { - writer.writeUint32( - 14, - f - ); - } - f = message.getSupportsOtaa(); - if (f) { - writer.writeBool( - 15, - f - ); - } - f = message.getSupportsClassB(); - if (f) { - writer.writeBool( - 16, - f - ); - } - f = message.getSupportsClassC(); - if (f) { - writer.writeBool( - 17, - f - ); - } - f = message.getClassBTimeout(); - if (f !== 0) { - writer.writeUint32( - 18, - f - ); - } - f = message.getClassBPingSlotNbK(); - if (f !== 0) { - writer.writeUint32( - 19, - f - ); - } - f = message.getClassBPingSlotDr(); - if (f !== 0) { - writer.writeUint32( - 20, - f - ); - } - f = message.getClassBPingSlotFreq(); - if (f !== 0) { - writer.writeUint32( - 21, - f - ); - } - f = message.getClassCTimeout(); - if (f !== 0) { - writer.writeUint32( - 22, - f - ); - } - f = message.getAbpRx1Delay(); - if (f !== 0) { - writer.writeUint32( - 23, - f - ); - } - f = message.getAbpRx1DrOffset(); - if (f !== 0) { - writer.writeUint32( - 24, - f - ); - } - f = message.getAbpRx2Dr(); - if (f !== 0) { - writer.writeUint32( - 25, - f - ); - } - f = message.getAbpRx2Freq(); - if (f !== 0) { - writer.writeUint32( - 26, - f - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(27, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getMeasurementsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(28, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.api.Measurement.serializeBinaryToWriter); - } - f = message.getAutoDetectMeasurements(); - if (f) { - writer.writeBool( - 29, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeviceProfileTemplate.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.DeviceProfileTemplate.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.api.DeviceProfileTemplate.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string vendor = 4; - * @return {string} - */ -proto.api.DeviceProfileTemplate.prototype.getVendor = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setVendor = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string firmware = 5; - * @return {string} - */ -proto.api.DeviceProfileTemplate.prototype.getFirmware = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setFirmware = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional common.Region region = 6; - * @return {!proto.common.Region} - */ -proto.api.DeviceProfileTemplate.prototype.getRegion = function() { - return /** @type {!proto.common.Region} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.common.Region} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setRegion = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional common.MacVersion mac_version = 7; - * @return {!proto.common.MacVersion} - */ -proto.api.DeviceProfileTemplate.prototype.getMacVersion = function() { - return /** @type {!proto.common.MacVersion} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.common.MacVersion} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setMacVersion = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); -}; - - -/** - * optional common.RegParamsRevision reg_params_revision = 8; - * @return {!proto.common.RegParamsRevision} - */ -proto.api.DeviceProfileTemplate.prototype.getRegParamsRevision = function() { - return /** @type {!proto.common.RegParamsRevision} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {!proto.common.RegParamsRevision} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setRegParamsRevision = function(value) { - return jspb.Message.setProto3EnumField(this, 8, value); -}; - - -/** - * optional string adr_algorithm_id = 9; - * @return {string} - */ -proto.api.DeviceProfileTemplate.prototype.getAdrAlgorithmId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setAdrAlgorithmId = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional CodecRuntime payload_codec_runtime = 10; - * @return {!proto.api.CodecRuntime} - */ -proto.api.DeviceProfileTemplate.prototype.getPayloadCodecRuntime = function() { - return /** @type {!proto.api.CodecRuntime} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {!proto.api.CodecRuntime} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setPayloadCodecRuntime = function(value) { - return jspb.Message.setProto3EnumField(this, 10, value); -}; - - -/** - * optional string payload_codec_script = 11; - * @return {string} - */ -proto.api.DeviceProfileTemplate.prototype.getPayloadCodecScript = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setPayloadCodecScript = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional bool flush_queue_on_activate = 12; - * @return {boolean} - */ -proto.api.DeviceProfileTemplate.prototype.getFlushQueueOnActivate = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setFlushQueueOnActivate = function(value) { - return jspb.Message.setProto3BooleanField(this, 12, value); -}; - - -/** - * optional uint32 uplink_interval = 13; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getUplinkInterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setUplinkInterval = function(value) { - return jspb.Message.setProto3IntField(this, 13, value); -}; - - -/** - * optional uint32 device_status_req_interval = 14; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getDeviceStatusReqInterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setDeviceStatusReqInterval = function(value) { - return jspb.Message.setProto3IntField(this, 14, value); -}; - - -/** - * optional bool supports_otaa = 15; - * @return {boolean} - */ -proto.api.DeviceProfileTemplate.prototype.getSupportsOtaa = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setSupportsOtaa = function(value) { - return jspb.Message.setProto3BooleanField(this, 15, value); -}; - - -/** - * optional bool supports_class_b = 16; - * @return {boolean} - */ -proto.api.DeviceProfileTemplate.prototype.getSupportsClassB = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setSupportsClassB = function(value) { - return jspb.Message.setProto3BooleanField(this, 16, value); -}; - - -/** - * optional bool supports_class_c = 17; - * @return {boolean} - */ -proto.api.DeviceProfileTemplate.prototype.getSupportsClassC = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setSupportsClassC = function(value) { - return jspb.Message.setProto3BooleanField(this, 17, value); -}; - - -/** - * optional uint32 class_b_timeout = 18; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getClassBTimeout = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setClassBTimeout = function(value) { - return jspb.Message.setProto3IntField(this, 18, value); -}; - - -/** - * optional uint32 class_b_ping_slot_nb_k = 19; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getClassBPingSlotNbK = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setClassBPingSlotNbK = function(value) { - return jspb.Message.setProto3IntField(this, 19, value); -}; - - -/** - * optional uint32 class_b_ping_slot_dr = 20; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getClassBPingSlotDr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setClassBPingSlotDr = function(value) { - return jspb.Message.setProto3IntField(this, 20, value); -}; - - -/** - * optional uint32 class_b_ping_slot_freq = 21; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getClassBPingSlotFreq = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setClassBPingSlotFreq = function(value) { - return jspb.Message.setProto3IntField(this, 21, value); -}; - - -/** - * optional uint32 class_c_timeout = 22; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getClassCTimeout = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setClassCTimeout = function(value) { - return jspb.Message.setProto3IntField(this, 22, value); -}; - - -/** - * optional uint32 abp_rx1_delay = 23; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getAbpRx1Delay = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setAbpRx1Delay = function(value) { - return jspb.Message.setProto3IntField(this, 23, value); -}; - - -/** - * optional uint32 abp_rx1_dr_offset = 24; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getAbpRx1DrOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setAbpRx1DrOffset = function(value) { - return jspb.Message.setProto3IntField(this, 24, value); -}; - - -/** - * optional uint32 abp_rx2_dr = 25; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getAbpRx2Dr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setAbpRx2Dr = function(value) { - return jspb.Message.setProto3IntField(this, 25, value); -}; - - -/** - * optional uint32 abp_rx2_freq = 26; - * @return {number} - */ -proto.api.DeviceProfileTemplate.prototype.getAbpRx2Freq = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 26, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setAbpRx2Freq = function(value) { - return jspb.Message.setProto3IntField(this, 26, value); -}; - - -/** - * map tags = 27; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.DeviceProfileTemplate.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 27, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - -/** - * map measurements = 28; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.DeviceProfileTemplate.prototype.getMeasurementsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 28, opt_noLazyCreate, - proto.api.Measurement)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.clearMeasurementsMap = function() { - this.getMeasurementsMap().clear(); - return this;}; - - -/** - * optional bool auto_detect_measurements = 29; - * @return {boolean} - */ -proto.api.DeviceProfileTemplate.prototype.getAutoDetectMeasurements = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 29, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileTemplate} returns this - */ -proto.api.DeviceProfileTemplate.prototype.setAutoDetectMeasurements = function(value) { - return jspb.Message.setProto3BooleanField(this, 29, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeviceProfileTemplateListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeviceProfileTemplateListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeviceProfileTemplateListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceProfileTemplateListItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 4, ""), - vendor: jspb.Message.getFieldWithDefault(msg, 5, ""), - firmware: jspb.Message.getFieldWithDefault(msg, 6, ""), - region: jspb.Message.getFieldWithDefault(msg, 7, 0), - macVersion: jspb.Message.getFieldWithDefault(msg, 8, 0), - regParamsRevision: jspb.Message.getFieldWithDefault(msg, 9, 0), - supportsOtaa: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - supportsClassB: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), - supportsClassC: jspb.Message.getBooleanFieldWithDefault(msg, 12, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeviceProfileTemplateListItem} - */ -proto.api.DeviceProfileTemplateListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeviceProfileTemplateListItem; - return proto.api.DeviceProfileTemplateListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeviceProfileTemplateListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeviceProfileTemplateListItem} - */ -proto.api.DeviceProfileTemplateListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setVendor(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setFirmware(value); - break; - case 7: - var value = /** @type {!proto.common.Region} */ (reader.readEnum()); - msg.setRegion(value); - break; - case 8: - var value = /** @type {!proto.common.MacVersion} */ (reader.readEnum()); - msg.setMacVersion(value); - break; - case 9: - var value = /** @type {!proto.common.RegParamsRevision} */ (reader.readEnum()); - msg.setRegParamsRevision(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsOtaa(value); - break; - case 11: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsClassB(value); - break; - case 12: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSupportsClassC(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeviceProfileTemplateListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeviceProfileTemplateListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeviceProfileTemplateListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeviceProfileTemplateListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getVendor(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getFirmware(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getRegion(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getMacVersion(); - if (f !== 0.0) { - writer.writeEnum( - 8, - f - ); - } - f = message.getRegParamsRevision(); - if (f !== 0.0) { - writer.writeEnum( - 9, - f - ); - } - f = message.getSupportsOtaa(); - if (f) { - writer.writeBool( - 10, - f - ); - } - f = message.getSupportsClassB(); - if (f) { - writer.writeBool( - 11, - f - ); - } - f = message.getSupportsClassC(); - if (f) { - writer.writeBool( - 12, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this -*/ -proto.api.DeviceProfileTemplateListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.DeviceProfileTemplateListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this -*/ -proto.api.DeviceProfileTemplateListItem.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.DeviceProfileTemplateListItem.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string name = 4; - * @return {string} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string vendor = 5; - * @return {string} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getVendor = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setVendor = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string firmware = 6; - * @return {string} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getFirmware = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setFirmware = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional common.Region region = 7; - * @return {!proto.common.Region} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getRegion = function() { - return /** @type {!proto.common.Region} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.common.Region} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setRegion = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); -}; - - -/** - * optional common.MacVersion mac_version = 8; - * @return {!proto.common.MacVersion} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getMacVersion = function() { - return /** @type {!proto.common.MacVersion} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {!proto.common.MacVersion} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setMacVersion = function(value) { - return jspb.Message.setProto3EnumField(this, 8, value); -}; - - -/** - * optional common.RegParamsRevision reg_params_revision = 9; - * @return {!proto.common.RegParamsRevision} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getRegParamsRevision = function() { - return /** @type {!proto.common.RegParamsRevision} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {!proto.common.RegParamsRevision} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setRegParamsRevision = function(value) { - return jspb.Message.setProto3EnumField(this, 9, value); -}; - - -/** - * optional bool supports_otaa = 10; - * @return {boolean} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getSupportsOtaa = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setSupportsOtaa = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); -}; - - -/** - * optional bool supports_class_b = 11; - * @return {boolean} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getSupportsClassB = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setSupportsClassB = function(value) { - return jspb.Message.setProto3BooleanField(this, 11, value); -}; - - -/** - * optional bool supports_class_c = 12; - * @return {boolean} - */ -proto.api.DeviceProfileTemplateListItem.prototype.getSupportsClassC = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.DeviceProfileTemplateListItem} returns this - */ -proto.api.DeviceProfileTemplateListItem.prototype.setSupportsClassC = function(value) { - return jspb.Message.setProto3BooleanField(this, 12, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateDeviceProfileTemplateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateDeviceProfileTemplateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateDeviceProfileTemplateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceProfileTemplateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - deviceProfileTemplate: (f = msg.getDeviceProfileTemplate()) && proto.api.DeviceProfileTemplate.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateDeviceProfileTemplateRequest} - */ -proto.api.CreateDeviceProfileTemplateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateDeviceProfileTemplateRequest; - return proto.api.CreateDeviceProfileTemplateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateDeviceProfileTemplateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateDeviceProfileTemplateRequest} - */ -proto.api.CreateDeviceProfileTemplateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceProfileTemplate; - reader.readMessage(value,proto.api.DeviceProfileTemplate.deserializeBinaryFromReader); - msg.setDeviceProfileTemplate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateDeviceProfileTemplateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateDeviceProfileTemplateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateDeviceProfileTemplateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateDeviceProfileTemplateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceProfileTemplate(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceProfileTemplate.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceProfileTemplate device_profile_template = 1; - * @return {?proto.api.DeviceProfileTemplate} - */ -proto.api.CreateDeviceProfileTemplateRequest.prototype.getDeviceProfileTemplate = function() { - return /** @type{?proto.api.DeviceProfileTemplate} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceProfileTemplate, 1)); -}; - - -/** - * @param {?proto.api.DeviceProfileTemplate|undefined} value - * @return {!proto.api.CreateDeviceProfileTemplateRequest} returns this -*/ -proto.api.CreateDeviceProfileTemplateRequest.prototype.setDeviceProfileTemplate = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateDeviceProfileTemplateRequest} returns this - */ -proto.api.CreateDeviceProfileTemplateRequest.prototype.clearDeviceProfileTemplate = function() { - return this.setDeviceProfileTemplate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateDeviceProfileTemplateRequest.prototype.hasDeviceProfileTemplate = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceProfileTemplateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceProfileTemplateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceProfileTemplateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceProfileTemplateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceProfileTemplateRequest} - */ -proto.api.GetDeviceProfileTemplateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceProfileTemplateRequest; - return proto.api.GetDeviceProfileTemplateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceProfileTemplateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceProfileTemplateRequest} - */ -proto.api.GetDeviceProfileTemplateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceProfileTemplateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceProfileTemplateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceProfileTemplateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceProfileTemplateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.GetDeviceProfileTemplateRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDeviceProfileTemplateRequest} returns this - */ -proto.api.GetDeviceProfileTemplateRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDeviceProfileTemplateResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDeviceProfileTemplateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceProfileTemplateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - deviceProfileTemplate: (f = msg.getDeviceProfileTemplate()) && proto.api.DeviceProfileTemplate.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDeviceProfileTemplateResponse} - */ -proto.api.GetDeviceProfileTemplateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDeviceProfileTemplateResponse; - return proto.api.GetDeviceProfileTemplateResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDeviceProfileTemplateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDeviceProfileTemplateResponse} - */ -proto.api.GetDeviceProfileTemplateResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceProfileTemplate; - reader.readMessage(value,proto.api.DeviceProfileTemplate.deserializeBinaryFromReader); - msg.setDeviceProfileTemplate(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDeviceProfileTemplateResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDeviceProfileTemplateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDeviceProfileTemplateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceProfileTemplate(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceProfileTemplate.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceProfileTemplate device_profile_template = 1; - * @return {?proto.api.DeviceProfileTemplate} - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.getDeviceProfileTemplate = function() { - return /** @type{?proto.api.DeviceProfileTemplate} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceProfileTemplate, 1)); -}; - - -/** - * @param {?proto.api.DeviceProfileTemplate|undefined} value - * @return {!proto.api.GetDeviceProfileTemplateResponse} returns this -*/ -proto.api.GetDeviceProfileTemplateResponse.prototype.setDeviceProfileTemplate = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceProfileTemplateResponse} returns this - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.clearDeviceProfileTemplate = function() { - return this.setDeviceProfileTemplate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.hasDeviceProfileTemplate = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceProfileTemplateResponse} returns this -*/ -proto.api.GetDeviceProfileTemplateResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceProfileTemplateResponse} returns this - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetDeviceProfileTemplateResponse} returns this -*/ -proto.api.GetDeviceProfileTemplateResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetDeviceProfileTemplateResponse} returns this - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetDeviceProfileTemplateResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateDeviceProfileTemplateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateDeviceProfileTemplateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateDeviceProfileTemplateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateDeviceProfileTemplateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - deviceProfileTemplate: (f = msg.getDeviceProfileTemplate()) && proto.api.DeviceProfileTemplate.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateDeviceProfileTemplateRequest} - */ -proto.api.UpdateDeviceProfileTemplateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateDeviceProfileTemplateRequest; - return proto.api.UpdateDeviceProfileTemplateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateDeviceProfileTemplateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateDeviceProfileTemplateRequest} - */ -proto.api.UpdateDeviceProfileTemplateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.DeviceProfileTemplate; - reader.readMessage(value,proto.api.DeviceProfileTemplate.deserializeBinaryFromReader); - msg.setDeviceProfileTemplate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateDeviceProfileTemplateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateDeviceProfileTemplateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateDeviceProfileTemplateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateDeviceProfileTemplateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeviceProfileTemplate(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.DeviceProfileTemplate.serializeBinaryToWriter - ); - } -}; - - -/** - * optional DeviceProfileTemplate device_profile_template = 1; - * @return {?proto.api.DeviceProfileTemplate} - */ -proto.api.UpdateDeviceProfileTemplateRequest.prototype.getDeviceProfileTemplate = function() { - return /** @type{?proto.api.DeviceProfileTemplate} */ ( - jspb.Message.getWrapperField(this, proto.api.DeviceProfileTemplate, 1)); -}; - - -/** - * @param {?proto.api.DeviceProfileTemplate|undefined} value - * @return {!proto.api.UpdateDeviceProfileTemplateRequest} returns this -*/ -proto.api.UpdateDeviceProfileTemplateRequest.prototype.setDeviceProfileTemplate = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateDeviceProfileTemplateRequest} returns this - */ -proto.api.UpdateDeviceProfileTemplateRequest.prototype.clearDeviceProfileTemplate = function() { - return this.setDeviceProfileTemplate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateDeviceProfileTemplateRequest.prototype.hasDeviceProfileTemplate = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteDeviceProfileTemplateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteDeviceProfileTemplateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteDeviceProfileTemplateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteDeviceProfileTemplateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteDeviceProfileTemplateRequest} - */ -proto.api.DeleteDeviceProfileTemplateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteDeviceProfileTemplateRequest; - return proto.api.DeleteDeviceProfileTemplateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteDeviceProfileTemplateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteDeviceProfileTemplateRequest} - */ -proto.api.DeleteDeviceProfileTemplateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteDeviceProfileTemplateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteDeviceProfileTemplateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteDeviceProfileTemplateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteDeviceProfileTemplateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeleteDeviceProfileTemplateRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteDeviceProfileTemplateRequest} returns this - */ -proto.api.DeleteDeviceProfileTemplateRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListDeviceProfileTemplatesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListDeviceProfileTemplatesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListDeviceProfileTemplatesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfileTemplatesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListDeviceProfileTemplatesRequest} - */ -proto.api.ListDeviceProfileTemplatesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListDeviceProfileTemplatesRequest; - return proto.api.ListDeviceProfileTemplatesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListDeviceProfileTemplatesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListDeviceProfileTemplatesRequest} - */ -proto.api.ListDeviceProfileTemplatesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListDeviceProfileTemplatesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListDeviceProfileTemplatesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListDeviceProfileTemplatesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfileTemplatesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListDeviceProfileTemplatesRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDeviceProfileTemplatesRequest} returns this - */ -proto.api.ListDeviceProfileTemplatesRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListDeviceProfileTemplatesRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDeviceProfileTemplatesRequest} returns this - */ -proto.api.ListDeviceProfileTemplatesRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListDeviceProfileTemplatesResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListDeviceProfileTemplatesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListDeviceProfileTemplatesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListDeviceProfileTemplatesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfileTemplatesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.DeviceProfileTemplateListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListDeviceProfileTemplatesResponse} - */ -proto.api.ListDeviceProfileTemplatesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListDeviceProfileTemplatesResponse; - return proto.api.ListDeviceProfileTemplatesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListDeviceProfileTemplatesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListDeviceProfileTemplatesResponse} - */ -proto.api.ListDeviceProfileTemplatesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.DeviceProfileTemplateListItem; - reader.readMessage(value,proto.api.DeviceProfileTemplateListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListDeviceProfileTemplatesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListDeviceProfileTemplatesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListDeviceProfileTemplatesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListDeviceProfileTemplatesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.DeviceProfileTemplateListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListDeviceProfileTemplatesResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListDeviceProfileTemplatesResponse} returns this - */ -proto.api.ListDeviceProfileTemplatesResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated DeviceProfileTemplateListItem result = 2; - * @return {!Array} - */ -proto.api.ListDeviceProfileTemplatesResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.DeviceProfileTemplateListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListDeviceProfileTemplatesResponse} returns this -*/ -proto.api.ListDeviceProfileTemplatesResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.DeviceProfileTemplateListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.DeviceProfileTemplateListItem} - */ -proto.api.ListDeviceProfileTemplatesResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.DeviceProfileTemplateListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListDeviceProfileTemplatesResponse} returns this - */ -proto.api.ListDeviceProfileTemplatesResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - -goog.object.extend(exports, proto.api); diff --git a/api/js/api/gateway_grpc_pb.d.ts b/api/js/api/gateway_grpc_pb.d.ts deleted file mode 100644 index 86663ed3..00000000 --- a/api/js/api/gateway_grpc_pb.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -// package: api -// file: api/gateway.proto - -import * as api_gateway_pb from "../api/gateway_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; -import * as grpc from "@grpc/grpc-js"; - -interface IGatewayServiceService extends grpc.ServiceDefinition { - create: grpc.MethodDefinition; - get: grpc.MethodDefinition; - update: grpc.MethodDefinition; - delete: grpc.MethodDefinition; - list: grpc.MethodDefinition; - generateClientCertificate: grpc.MethodDefinition; - getMetrics: grpc.MethodDefinition; -} - -export const GatewayServiceService: IGatewayServiceService; - -export interface IGatewayServiceServer extends grpc.UntypedServiceImplementation { - create: grpc.handleUnaryCall; - get: grpc.handleUnaryCall; - update: grpc.handleUnaryCall; - delete: grpc.handleUnaryCall; - list: grpc.handleUnaryCall; - generateClientCertificate: grpc.handleUnaryCall; - getMetrics: grpc.handleUnaryCall; -} - -export class GatewayServiceClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - create(argument: api_gateway_pb.CreateGatewayRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - create(argument: api_gateway_pb.CreateGatewayRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - create(argument: api_gateway_pb.CreateGatewayRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_gateway_pb.GetGatewayRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_gateway_pb.GetGatewayRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_gateway_pb.GetGatewayRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_gateway_pb.UpdateGatewayRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_gateway_pb.UpdateGatewayRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_gateway_pb.UpdateGatewayRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_gateway_pb.DeleteGatewayRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_gateway_pb.DeleteGatewayRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_gateway_pb.DeleteGatewayRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_gateway_pb.ListGatewaysRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_gateway_pb.ListGatewaysRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_gateway_pb.ListGatewaysRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateClientCertificate(argument: api_gateway_pb.GenerateGatewayClientCertificateRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateClientCertificate(argument: api_gateway_pb.GenerateGatewayClientCertificateRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - generateClientCertificate(argument: api_gateway_pb.GenerateGatewayClientCertificateRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getMetrics(argument: api_gateway_pb.GetGatewayMetricsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getMetrics(argument: api_gateway_pb.GetGatewayMetricsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getMetrics(argument: api_gateway_pb.GetGatewayMetricsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; -} diff --git a/api/js/api/gateway_grpc_pb.js b/api/js/api/gateway_grpc_pb.js deleted file mode 100644 index dc846a8a..00000000 --- a/api/js/api/gateway_grpc_pb.js +++ /dev/null @@ -1,232 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var api_gateway_pb = require('../api/gateway_pb.js'); -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -var common_common_pb = require('../common/common_pb.js'); - -function serialize_api_CreateGatewayRequest(arg) { - if (!(arg instanceof api_gateway_pb.CreateGatewayRequest)) { - throw new Error('Expected argument of type api.CreateGatewayRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateGatewayRequest(buffer_arg) { - return api_gateway_pb.CreateGatewayRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteGatewayRequest(arg) { - if (!(arg instanceof api_gateway_pb.DeleteGatewayRequest)) { - throw new Error('Expected argument of type api.DeleteGatewayRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteGatewayRequest(buffer_arg) { - return api_gateway_pb.DeleteGatewayRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GenerateGatewayClientCertificateRequest(arg) { - if (!(arg instanceof api_gateway_pb.GenerateGatewayClientCertificateRequest)) { - throw new Error('Expected argument of type api.GenerateGatewayClientCertificateRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GenerateGatewayClientCertificateRequest(buffer_arg) { - return api_gateway_pb.GenerateGatewayClientCertificateRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GenerateGatewayClientCertificateResponse(arg) { - if (!(arg instanceof api_gateway_pb.GenerateGatewayClientCertificateResponse)) { - throw new Error('Expected argument of type api.GenerateGatewayClientCertificateResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GenerateGatewayClientCertificateResponse(buffer_arg) { - return api_gateway_pb.GenerateGatewayClientCertificateResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetGatewayMetricsRequest(arg) { - if (!(arg instanceof api_gateway_pb.GetGatewayMetricsRequest)) { - throw new Error('Expected argument of type api.GetGatewayMetricsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetGatewayMetricsRequest(buffer_arg) { - return api_gateway_pb.GetGatewayMetricsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetGatewayMetricsResponse(arg) { - if (!(arg instanceof api_gateway_pb.GetGatewayMetricsResponse)) { - throw new Error('Expected argument of type api.GetGatewayMetricsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetGatewayMetricsResponse(buffer_arg) { - return api_gateway_pb.GetGatewayMetricsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetGatewayRequest(arg) { - if (!(arg instanceof api_gateway_pb.GetGatewayRequest)) { - throw new Error('Expected argument of type api.GetGatewayRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetGatewayRequest(buffer_arg) { - return api_gateway_pb.GetGatewayRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetGatewayResponse(arg) { - if (!(arg instanceof api_gateway_pb.GetGatewayResponse)) { - throw new Error('Expected argument of type api.GetGatewayResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetGatewayResponse(buffer_arg) { - return api_gateway_pb.GetGatewayResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListGatewaysRequest(arg) { - if (!(arg instanceof api_gateway_pb.ListGatewaysRequest)) { - throw new Error('Expected argument of type api.ListGatewaysRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListGatewaysRequest(buffer_arg) { - return api_gateway_pb.ListGatewaysRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListGatewaysResponse(arg) { - if (!(arg instanceof api_gateway_pb.ListGatewaysResponse)) { - throw new Error('Expected argument of type api.ListGatewaysResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListGatewaysResponse(buffer_arg) { - return api_gateway_pb.ListGatewaysResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateGatewayRequest(arg) { - if (!(arg instanceof api_gateway_pb.UpdateGatewayRequest)) { - throw new Error('Expected argument of type api.UpdateGatewayRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateGatewayRequest(buffer_arg) { - return api_gateway_pb.UpdateGatewayRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_google_protobuf_Empty(arg) { - if (!(arg instanceof google_protobuf_empty_pb.Empty)) { - throw new Error('Expected argument of type google.protobuf.Empty'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_google_protobuf_Empty(buffer_arg) { - return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -// GatewayService is the service providing API methods for managing gateways. -var GatewayServiceService = exports.GatewayServiceService = { - // Create creates the given gateway. -create: { - path: '/api.GatewayService/Create', - requestStream: false, - responseStream: false, - requestType: api_gateway_pb.CreateGatewayRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_CreateGatewayRequest, - requestDeserialize: deserialize_api_CreateGatewayRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get returns the gateway for the given Gateway ID. -get: { - path: '/api.GatewayService/Get', - requestStream: false, - responseStream: false, - requestType: api_gateway_pb.GetGatewayRequest, - responseType: api_gateway_pb.GetGatewayResponse, - requestSerialize: serialize_api_GetGatewayRequest, - requestDeserialize: deserialize_api_GetGatewayRequest, - responseSerialize: serialize_api_GetGatewayResponse, - responseDeserialize: deserialize_api_GetGatewayResponse, - }, - // Update updates the given gateway. -update: { - path: '/api.GatewayService/Update', - requestStream: false, - responseStream: false, - requestType: api_gateway_pb.UpdateGatewayRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateGatewayRequest, - requestDeserialize: deserialize_api_UpdateGatewayRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete deletes the gateway matching the given Gateway ID. -delete: { - path: '/api.GatewayService/Delete', - requestStream: false, - responseStream: false, - requestType: api_gateway_pb.DeleteGatewayRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteGatewayRequest, - requestDeserialize: deserialize_api_DeleteGatewayRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get the list of gateways. -list: { - path: '/api.GatewayService/List', - requestStream: false, - responseStream: false, - requestType: api_gateway_pb.ListGatewaysRequest, - responseType: api_gateway_pb.ListGatewaysResponse, - requestSerialize: serialize_api_ListGatewaysRequest, - requestDeserialize: deserialize_api_ListGatewaysRequest, - responseSerialize: serialize_api_ListGatewaysResponse, - responseDeserialize: deserialize_api_ListGatewaysResponse, - }, - // Generate client-certificate for the gateway. -generateClientCertificate: { - path: '/api.GatewayService/GenerateClientCertificate', - requestStream: false, - responseStream: false, - requestType: api_gateway_pb.GenerateGatewayClientCertificateRequest, - responseType: api_gateway_pb.GenerateGatewayClientCertificateResponse, - requestSerialize: serialize_api_GenerateGatewayClientCertificateRequest, - requestDeserialize: deserialize_api_GenerateGatewayClientCertificateRequest, - responseSerialize: serialize_api_GenerateGatewayClientCertificateResponse, - responseDeserialize: deserialize_api_GenerateGatewayClientCertificateResponse, - }, - // GetMetrics returns the gateway metrics. -getMetrics: { - path: '/api.GatewayService/GetMetrics', - requestStream: false, - responseStream: false, - requestType: api_gateway_pb.GetGatewayMetricsRequest, - responseType: api_gateway_pb.GetGatewayMetricsResponse, - requestSerialize: serialize_api_GetGatewayMetricsRequest, - requestDeserialize: deserialize_api_GetGatewayMetricsRequest, - responseSerialize: serialize_api_GetGatewayMetricsResponse, - responseDeserialize: deserialize_api_GetGatewayMetricsResponse, - }, -}; - -exports.GatewayServiceClient = grpc.makeGenericClientConstructor(GatewayServiceService); diff --git a/api/js/api/gateway_pb.d.ts b/api/js/api/gateway_pb.d.ts deleted file mode 100644 index b2644b18..00000000 --- a/api/js/api/gateway_pb.d.ts +++ /dev/null @@ -1,462 +0,0 @@ -// package: api -// file: api/gateway.proto - -import * as jspb from "google-protobuf"; -import * as google_api_annotations_pb from "../google/api/annotations_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; -import * as common_common_pb from "../common/common_pb"; - -export class Gateway extends jspb.Message { - getGatewayId(): string; - setGatewayId(value: string): void; - - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - hasLocation(): boolean; - clearLocation(): void; - getLocation(): common_common_pb.Location | undefined; - setLocation(value?: common_common_pb.Location): void; - - getTenantId(): string; - setTenantId(value: string): void; - - getTagsMap(): jspb.Map; - clearTagsMap(): void; - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - getStatsInterval(): number; - setStatsInterval(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Gateway.AsObject; - static toObject(includeInstance: boolean, msg: Gateway): Gateway.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Gateway, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Gateway; - static deserializeBinaryFromReader(message: Gateway, reader: jspb.BinaryReader): Gateway; -} - -export namespace Gateway { - export type AsObject = { - gatewayId: string, - name: string, - description: string, - location?: common_common_pb.Location.AsObject, - tenantId: string, - tagsMap: Array<[string, string]>, - metadataMap: Array<[string, string]>, - statsInterval: number, - } -} - -export class GatewayListItem extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): void; - - getGatewayId(): string; - setGatewayId(value: string): void; - - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - hasLocation(): boolean; - clearLocation(): void; - getLocation(): common_common_pb.Location | undefined; - setLocation(value?: common_common_pb.Location): void; - - getPropertiesMap(): jspb.Map; - clearPropertiesMap(): void; - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasLastSeenAt(): boolean; - clearLastSeenAt(): void; - getLastSeenAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setLastSeenAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - getState(): GatewayStateMap[keyof GatewayStateMap]; - setState(value: GatewayStateMap[keyof GatewayStateMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GatewayListItem.AsObject; - static toObject(includeInstance: boolean, msg: GatewayListItem): GatewayListItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GatewayListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GatewayListItem; - static deserializeBinaryFromReader(message: GatewayListItem, reader: jspb.BinaryReader): GatewayListItem; -} - -export namespace GatewayListItem { - export type AsObject = { - tenantId: string, - gatewayId: string, - name: string, - description: string, - location?: common_common_pb.Location.AsObject, - propertiesMap: Array<[string, string]>, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - lastSeenAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - state: GatewayStateMap[keyof GatewayStateMap], - } -} - -export class CreateGatewayRequest extends jspb.Message { - hasGateway(): boolean; - clearGateway(): void; - getGateway(): Gateway | undefined; - setGateway(value?: Gateway): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateGatewayRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateGatewayRequest): CreateGatewayRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateGatewayRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateGatewayRequest; - static deserializeBinaryFromReader(message: CreateGatewayRequest, reader: jspb.BinaryReader): CreateGatewayRequest; -} - -export namespace CreateGatewayRequest { - export type AsObject = { - gateway?: Gateway.AsObject, - } -} - -export class GetGatewayRequest extends jspb.Message { - getGatewayId(): string; - setGatewayId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetGatewayRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetGatewayRequest): GetGatewayRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetGatewayRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetGatewayRequest; - static deserializeBinaryFromReader(message: GetGatewayRequest, reader: jspb.BinaryReader): GetGatewayRequest; -} - -export namespace GetGatewayRequest { - export type AsObject = { - gatewayId: string, - } -} - -export class GetGatewayResponse extends jspb.Message { - hasGateway(): boolean; - clearGateway(): void; - getGateway(): Gateway | undefined; - setGateway(value?: Gateway): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasLastSeenAt(): boolean; - clearLastSeenAt(): void; - getLastSeenAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setLastSeenAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetGatewayResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetGatewayResponse): GetGatewayResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetGatewayResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetGatewayResponse; - static deserializeBinaryFromReader(message: GetGatewayResponse, reader: jspb.BinaryReader): GetGatewayResponse; -} - -export namespace GetGatewayResponse { - export type AsObject = { - gateway?: Gateway.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - lastSeenAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateGatewayRequest extends jspb.Message { - hasGateway(): boolean; - clearGateway(): void; - getGateway(): Gateway | undefined; - setGateway(value?: Gateway): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateGatewayRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateGatewayRequest): UpdateGatewayRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateGatewayRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateGatewayRequest; - static deserializeBinaryFromReader(message: UpdateGatewayRequest, reader: jspb.BinaryReader): UpdateGatewayRequest; -} - -export namespace UpdateGatewayRequest { - export type AsObject = { - gateway?: Gateway.AsObject, - } -} - -export class DeleteGatewayRequest extends jspb.Message { - getGatewayId(): string; - setGatewayId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteGatewayRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteGatewayRequest): DeleteGatewayRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteGatewayRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteGatewayRequest; - static deserializeBinaryFromReader(message: DeleteGatewayRequest, reader: jspb.BinaryReader): DeleteGatewayRequest; -} - -export namespace DeleteGatewayRequest { - export type AsObject = { - gatewayId: string, - } -} - -export class ListGatewaysRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): void; - - getOffset(): number; - setOffset(value: number): void; - - getSearch(): string; - setSearch(value: string): void; - - getTenantId(): string; - setTenantId(value: string): void; - - getMulticastGroupId(): string; - setMulticastGroupId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListGatewaysRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListGatewaysRequest): ListGatewaysRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListGatewaysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListGatewaysRequest; - static deserializeBinaryFromReader(message: ListGatewaysRequest, reader: jspb.BinaryReader): ListGatewaysRequest; -} - -export namespace ListGatewaysRequest { - export type AsObject = { - limit: number, - offset: number, - search: string, - tenantId: string, - multicastGroupId: string, - } -} - -export class ListGatewaysResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): void; - - clearResultList(): void; - getResultList(): Array; - setResultList(value: Array): void; - addResult(value?: GatewayListItem, index?: number): GatewayListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListGatewaysResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListGatewaysResponse): ListGatewaysResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListGatewaysResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListGatewaysResponse; - static deserializeBinaryFromReader(message: ListGatewaysResponse, reader: jspb.BinaryReader): ListGatewaysResponse; -} - -export namespace ListGatewaysResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class GenerateGatewayClientCertificateRequest extends jspb.Message { - getGatewayId(): string; - setGatewayId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenerateGatewayClientCertificateRequest.AsObject; - static toObject(includeInstance: boolean, msg: GenerateGatewayClientCertificateRequest): GenerateGatewayClientCertificateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GenerateGatewayClientCertificateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenerateGatewayClientCertificateRequest; - static deserializeBinaryFromReader(message: GenerateGatewayClientCertificateRequest, reader: jspb.BinaryReader): GenerateGatewayClientCertificateRequest; -} - -export namespace GenerateGatewayClientCertificateRequest { - export type AsObject = { - gatewayId: string, - } -} - -export class GenerateGatewayClientCertificateResponse extends jspb.Message { - getTlsCert(): string; - setTlsCert(value: string): void; - - getTlsKey(): string; - setTlsKey(value: string): void; - - getCaCert(): string; - setCaCert(value: string): void; - - hasExpiresAt(): boolean; - clearExpiresAt(): void; - getExpiresAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setExpiresAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GenerateGatewayClientCertificateResponse.AsObject; - static toObject(includeInstance: boolean, msg: GenerateGatewayClientCertificateResponse): GenerateGatewayClientCertificateResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GenerateGatewayClientCertificateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GenerateGatewayClientCertificateResponse; - static deserializeBinaryFromReader(message: GenerateGatewayClientCertificateResponse, reader: jspb.BinaryReader): GenerateGatewayClientCertificateResponse; -} - -export namespace GenerateGatewayClientCertificateResponse { - export type AsObject = { - tlsCert: string, - tlsKey: string, - caCert: string, - expiresAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class GetGatewayMetricsRequest extends jspb.Message { - getGatewayId(): string; - setGatewayId(value: string): void; - - hasStart(): boolean; - clearStart(): void; - getStart(): google_protobuf_timestamp_pb.Timestamp | undefined; - setStart(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasEnd(): boolean; - clearEnd(): void; - getEnd(): google_protobuf_timestamp_pb.Timestamp | undefined; - setEnd(value?: google_protobuf_timestamp_pb.Timestamp): void; - - getAggregation(): common_common_pb.AggregationMap[keyof common_common_pb.AggregationMap]; - setAggregation(value: common_common_pb.AggregationMap[keyof common_common_pb.AggregationMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetGatewayMetricsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetGatewayMetricsRequest): GetGatewayMetricsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetGatewayMetricsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetGatewayMetricsRequest; - static deserializeBinaryFromReader(message: GetGatewayMetricsRequest, reader: jspb.BinaryReader): GetGatewayMetricsRequest; -} - -export namespace GetGatewayMetricsRequest { - export type AsObject = { - gatewayId: string, - start?: google_protobuf_timestamp_pb.Timestamp.AsObject, - end?: google_protobuf_timestamp_pb.Timestamp.AsObject, - aggregation: common_common_pb.AggregationMap[keyof common_common_pb.AggregationMap], - } -} - -export class GetGatewayMetricsResponse extends jspb.Message { - hasRxPackets(): boolean; - clearRxPackets(): void; - getRxPackets(): common_common_pb.Metric | undefined; - setRxPackets(value?: common_common_pb.Metric): void; - - hasTxPackets(): boolean; - clearTxPackets(): void; - getTxPackets(): common_common_pb.Metric | undefined; - setTxPackets(value?: common_common_pb.Metric): void; - - hasTxPacketsPerFreq(): boolean; - clearTxPacketsPerFreq(): void; - getTxPacketsPerFreq(): common_common_pb.Metric | undefined; - setTxPacketsPerFreq(value?: common_common_pb.Metric): void; - - hasRxPacketsPerFreq(): boolean; - clearRxPacketsPerFreq(): void; - getRxPacketsPerFreq(): common_common_pb.Metric | undefined; - setRxPacketsPerFreq(value?: common_common_pb.Metric): void; - - hasTxPacketsPerDr(): boolean; - clearTxPacketsPerDr(): void; - getTxPacketsPerDr(): common_common_pb.Metric | undefined; - setTxPacketsPerDr(value?: common_common_pb.Metric): void; - - hasRxPacketsPerDr(): boolean; - clearRxPacketsPerDr(): void; - getRxPacketsPerDr(): common_common_pb.Metric | undefined; - setRxPacketsPerDr(value?: common_common_pb.Metric): void; - - hasTxPacketsPerStatus(): boolean; - clearTxPacketsPerStatus(): void; - getTxPacketsPerStatus(): common_common_pb.Metric | undefined; - setTxPacketsPerStatus(value?: common_common_pb.Metric): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetGatewayMetricsResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetGatewayMetricsResponse): GetGatewayMetricsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetGatewayMetricsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetGatewayMetricsResponse; - static deserializeBinaryFromReader(message: GetGatewayMetricsResponse, reader: jspb.BinaryReader): GetGatewayMetricsResponse; -} - -export namespace GetGatewayMetricsResponse { - export type AsObject = { - rxPackets?: common_common_pb.Metric.AsObject, - txPackets?: common_common_pb.Metric.AsObject, - txPacketsPerFreq?: common_common_pb.Metric.AsObject, - rxPacketsPerFreq?: common_common_pb.Metric.AsObject, - txPacketsPerDr?: common_common_pb.Metric.AsObject, - rxPacketsPerDr?: common_common_pb.Metric.AsObject, - txPacketsPerStatus?: common_common_pb.Metric.AsObject, - } -} - -export interface GatewayStateMap { - NEVER_SEEN: 0; - ONLINE: 1; - OFFLINE: 2; -} - -export const GatewayState: GatewayStateMap; - diff --git a/api/js/api/gateway_pb.js b/api/js/api/gateway_pb.js deleted file mode 100644 index 8dc37764..00000000 --- a/api/js/api/gateway_pb.js +++ /dev/null @@ -1,3569 +0,0 @@ -// source: api/gateway.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -goog.exportSymbol('proto.api.CreateGatewayRequest', null, global); -goog.exportSymbol('proto.api.DeleteGatewayRequest', null, global); -goog.exportSymbol('proto.api.Gateway', null, global); -goog.exportSymbol('proto.api.GatewayListItem', null, global); -goog.exportSymbol('proto.api.GatewayState', null, global); -goog.exportSymbol('proto.api.GenerateGatewayClientCertificateRequest', null, global); -goog.exportSymbol('proto.api.GenerateGatewayClientCertificateResponse', null, global); -goog.exportSymbol('proto.api.GetGatewayMetricsRequest', null, global); -goog.exportSymbol('proto.api.GetGatewayMetricsResponse', null, global); -goog.exportSymbol('proto.api.GetGatewayRequest', null, global); -goog.exportSymbol('proto.api.GetGatewayResponse', null, global); -goog.exportSymbol('proto.api.ListGatewaysRequest', null, global); -goog.exportSymbol('proto.api.ListGatewaysResponse', null, global); -goog.exportSymbol('proto.api.UpdateGatewayRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.Gateway = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.Gateway, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.Gateway.displayName = 'proto.api.Gateway'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GatewayListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GatewayListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GatewayListItem.displayName = 'proto.api.GatewayListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateGatewayRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateGatewayRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateGatewayRequest.displayName = 'proto.api.CreateGatewayRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetGatewayRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetGatewayRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetGatewayRequest.displayName = 'proto.api.GetGatewayRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetGatewayResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetGatewayResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetGatewayResponse.displayName = 'proto.api.GetGatewayResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateGatewayRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateGatewayRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateGatewayRequest.displayName = 'proto.api.UpdateGatewayRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteGatewayRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteGatewayRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteGatewayRequest.displayName = 'proto.api.DeleteGatewayRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListGatewaysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListGatewaysRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListGatewaysRequest.displayName = 'proto.api.ListGatewaysRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListGatewaysResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListGatewaysResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListGatewaysResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListGatewaysResponse.displayName = 'proto.api.ListGatewaysResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GenerateGatewayClientCertificateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GenerateGatewayClientCertificateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GenerateGatewayClientCertificateRequest.displayName = 'proto.api.GenerateGatewayClientCertificateRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GenerateGatewayClientCertificateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GenerateGatewayClientCertificateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GenerateGatewayClientCertificateResponse.displayName = 'proto.api.GenerateGatewayClientCertificateResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetGatewayMetricsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetGatewayMetricsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetGatewayMetricsRequest.displayName = 'proto.api.GetGatewayMetricsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetGatewayMetricsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetGatewayMetricsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetGatewayMetricsResponse.displayName = 'proto.api.GetGatewayMetricsResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.Gateway.prototype.toObject = function(opt_includeInstance) { - return proto.api.Gateway.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.Gateway} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Gateway.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - location: (f = msg.getLocation()) && common_common_pb.Location.toObject(includeInstance, f), - tenantId: jspb.Message.getFieldWithDefault(msg, 5, ""), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [], - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [], - statsInterval: jspb.Message.getFieldWithDefault(msg, 8, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.Gateway} - */ -proto.api.Gateway.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.Gateway; - return proto.api.Gateway.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.Gateway} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.Gateway} - */ -proto.api.Gateway.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = new common_common_pb.Location; - reader.readMessage(value,common_common_pb.Location.deserializeBinaryFromReader); - msg.setLocation(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 6: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 7: - var value = msg.getMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setStatsInterval(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.Gateway.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.Gateway.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.Gateway} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Gateway.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getLocation(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_common_pb.Location.serializeBinaryToWriter - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getStatsInterval(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } -}; - - -/** - * optional string gateway_id = 1; - * @return {string} - */ -proto.api.Gateway.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Gateway} returns this - */ -proto.api.Gateway.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.Gateway.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Gateway} returns this - */ -proto.api.Gateway.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.api.Gateway.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Gateway} returns this - */ -proto.api.Gateway.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional common.Location location = 4; - * @return {?proto.common.Location} - */ -proto.api.Gateway.prototype.getLocation = function() { - return /** @type{?proto.common.Location} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Location, 4)); -}; - - -/** - * @param {?proto.common.Location|undefined} value - * @return {!proto.api.Gateway} returns this -*/ -proto.api.Gateway.prototype.setLocation = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.Gateway} returns this - */ -proto.api.Gateway.prototype.clearLocation = function() { - return this.setLocation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.Gateway.prototype.hasLocation = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string tenant_id = 5; - * @return {string} - */ -proto.api.Gateway.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Gateway} returns this - */ -proto.api.Gateway.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * map tags = 6; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.Gateway.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 6, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.Gateway} returns this - */ -proto.api.Gateway.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - -/** - * map metadata = 7; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.Gateway.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 7, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.Gateway} returns this - */ -proto.api.Gateway.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - - -/** - * optional uint32 stats_interval = 8; - * @return {number} - */ -proto.api.Gateway.prototype.getStatsInterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.Gateway} returns this - */ -proto.api.Gateway.prototype.setStatsInterval = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GatewayListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.GatewayListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GatewayListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GatewayListItem.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, ""), - gatewayId: jspb.Message.getFieldWithDefault(msg, 2, ""), - name: jspb.Message.getFieldWithDefault(msg, 3, ""), - description: jspb.Message.getFieldWithDefault(msg, 4, ""), - location: (f = msg.getLocation()) && common_common_pb.Location.toObject(includeInstance, f), - propertiesMap: (f = msg.getPropertiesMap()) ? f.toObject(includeInstance, undefined) : [], - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - lastSeenAt: (f = msg.getLastSeenAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - state: jspb.Message.getFieldWithDefault(msg, 10, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GatewayListItem} - */ -proto.api.GatewayListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GatewayListItem; - return proto.api.GatewayListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GatewayListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GatewayListItem} - */ -proto.api.GatewayListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 5: - var value = new common_common_pb.Location; - reader.readMessage(value,common_common_pb.Location.deserializeBinaryFromReader); - msg.setLocation(value); - break; - case 6: - var value = msg.getPropertiesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 7: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 9: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setLastSeenAt(value); - break; - case 10: - var value = /** @type {!proto.api.GatewayState} */ (reader.readEnum()); - msg.setState(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GatewayListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GatewayListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GatewayListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GatewayListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getLocation(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_common_pb.Location.serializeBinaryToWriter - ); - } - f = message.getPropertiesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getLastSeenAt(); - if (f != null) { - writer.writeMessage( - 9, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 10, - f - ); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.api.GatewayListItem.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string gateway_id = 2; - * @return {string} - */ -proto.api.GatewayListItem.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string name = 3; - * @return {string} - */ -proto.api.GatewayListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string description = 4; - * @return {string} - */ -proto.api.GatewayListItem.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional common.Location location = 5; - * @return {?proto.common.Location} - */ -proto.api.GatewayListItem.prototype.getLocation = function() { - return /** @type{?proto.common.Location} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Location, 5)); -}; - - -/** - * @param {?proto.common.Location|undefined} value - * @return {!proto.api.GatewayListItem} returns this -*/ -proto.api.GatewayListItem.prototype.setLocation = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.clearLocation = function() { - return this.setLocation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GatewayListItem.prototype.hasLocation = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * map properties = 6; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.GatewayListItem.prototype.getPropertiesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 6, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.clearPropertiesMap = function() { - this.getPropertiesMap().clear(); - return this;}; - - -/** - * optional google.protobuf.Timestamp created_at = 7; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GatewayListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GatewayListItem} returns this -*/ -proto.api.GatewayListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GatewayListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 8; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GatewayListItem.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GatewayListItem} returns this -*/ -proto.api.GatewayListItem.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GatewayListItem.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional google.protobuf.Timestamp last_seen_at = 9; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GatewayListItem.prototype.getLastSeenAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GatewayListItem} returns this -*/ -proto.api.GatewayListItem.prototype.setLastSeenAt = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.clearLastSeenAt = function() { - return this.setLastSeenAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GatewayListItem.prototype.hasLastSeenAt = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional GatewayState state = 10; - * @return {!proto.api.GatewayState} - */ -proto.api.GatewayListItem.prototype.getState = function() { - return /** @type {!proto.api.GatewayState} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {!proto.api.GatewayState} value - * @return {!proto.api.GatewayListItem} returns this - */ -proto.api.GatewayListItem.prototype.setState = function(value) { - return jspb.Message.setProto3EnumField(this, 10, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateGatewayRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateGatewayRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateGatewayRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateGatewayRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gateway: (f = msg.getGateway()) && proto.api.Gateway.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateGatewayRequest} - */ -proto.api.CreateGatewayRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateGatewayRequest; - return proto.api.CreateGatewayRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateGatewayRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateGatewayRequest} - */ -proto.api.CreateGatewayRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Gateway; - reader.readMessage(value,proto.api.Gateway.deserializeBinaryFromReader); - msg.setGateway(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateGatewayRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateGatewayRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateGatewayRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateGatewayRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGateway(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Gateway.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Gateway gateway = 1; - * @return {?proto.api.Gateway} - */ -proto.api.CreateGatewayRequest.prototype.getGateway = function() { - return /** @type{?proto.api.Gateway} */ ( - jspb.Message.getWrapperField(this, proto.api.Gateway, 1)); -}; - - -/** - * @param {?proto.api.Gateway|undefined} value - * @return {!proto.api.CreateGatewayRequest} returns this -*/ -proto.api.CreateGatewayRequest.prototype.setGateway = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateGatewayRequest} returns this - */ -proto.api.CreateGatewayRequest.prototype.clearGateway = function() { - return this.setGateway(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateGatewayRequest.prototype.hasGateway = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetGatewayRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetGatewayRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetGatewayRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewayRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetGatewayRequest} - */ -proto.api.GetGatewayRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetGatewayRequest; - return proto.api.GetGatewayRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetGatewayRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetGatewayRequest} - */ -proto.api.GetGatewayRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetGatewayRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetGatewayRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetGatewayRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewayRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string gateway_id = 1; - * @return {string} - */ -proto.api.GetGatewayRequest.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetGatewayRequest} returns this - */ -proto.api.GetGatewayRequest.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetGatewayResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetGatewayResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetGatewayResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewayResponse.toObject = function(includeInstance, msg) { - var f, obj = { - gateway: (f = msg.getGateway()) && proto.api.Gateway.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - lastSeenAt: (f = msg.getLastSeenAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetGatewayResponse} - */ -proto.api.GetGatewayResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetGatewayResponse; - return proto.api.GetGatewayResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetGatewayResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetGatewayResponse} - */ -proto.api.GetGatewayResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Gateway; - reader.readMessage(value,proto.api.Gateway.deserializeBinaryFromReader); - msg.setGateway(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setLastSeenAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetGatewayResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetGatewayResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetGatewayResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewayResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGateway(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Gateway.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getLastSeenAt(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Gateway gateway = 1; - * @return {?proto.api.Gateway} - */ -proto.api.GetGatewayResponse.prototype.getGateway = function() { - return /** @type{?proto.api.Gateway} */ ( - jspb.Message.getWrapperField(this, proto.api.Gateway, 1)); -}; - - -/** - * @param {?proto.api.Gateway|undefined} value - * @return {!proto.api.GetGatewayResponse} returns this -*/ -proto.api.GetGatewayResponse.prototype.setGateway = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayResponse} returns this - */ -proto.api.GetGatewayResponse.prototype.clearGateway = function() { - return this.setGateway(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayResponse.prototype.hasGateway = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetGatewayResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetGatewayResponse} returns this -*/ -proto.api.GetGatewayResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayResponse} returns this - */ -proto.api.GetGatewayResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetGatewayResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetGatewayResponse} returns this -*/ -proto.api.GetGatewayResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayResponse} returns this - */ -proto.api.GetGatewayResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp last_seen_at = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetGatewayResponse.prototype.getLastSeenAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetGatewayResponse} returns this -*/ -proto.api.GetGatewayResponse.prototype.setLastSeenAt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayResponse} returns this - */ -proto.api.GetGatewayResponse.prototype.clearLastSeenAt = function() { - return this.setLastSeenAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayResponse.prototype.hasLastSeenAt = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateGatewayRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateGatewayRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateGatewayRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateGatewayRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gateway: (f = msg.getGateway()) && proto.api.Gateway.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateGatewayRequest} - */ -proto.api.UpdateGatewayRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateGatewayRequest; - return proto.api.UpdateGatewayRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateGatewayRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateGatewayRequest} - */ -proto.api.UpdateGatewayRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Gateway; - reader.readMessage(value,proto.api.Gateway.deserializeBinaryFromReader); - msg.setGateway(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateGatewayRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateGatewayRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateGatewayRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateGatewayRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGateway(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Gateway.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Gateway gateway = 1; - * @return {?proto.api.Gateway} - */ -proto.api.UpdateGatewayRequest.prototype.getGateway = function() { - return /** @type{?proto.api.Gateway} */ ( - jspb.Message.getWrapperField(this, proto.api.Gateway, 1)); -}; - - -/** - * @param {?proto.api.Gateway|undefined} value - * @return {!proto.api.UpdateGatewayRequest} returns this -*/ -proto.api.UpdateGatewayRequest.prototype.setGateway = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateGatewayRequest} returns this - */ -proto.api.UpdateGatewayRequest.prototype.clearGateway = function() { - return this.setGateway(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateGatewayRequest.prototype.hasGateway = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteGatewayRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteGatewayRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteGatewayRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteGatewayRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteGatewayRequest} - */ -proto.api.DeleteGatewayRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteGatewayRequest; - return proto.api.DeleteGatewayRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteGatewayRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteGatewayRequest} - */ -proto.api.DeleteGatewayRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteGatewayRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteGatewayRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteGatewayRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteGatewayRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string gateway_id = 1; - * @return {string} - */ -proto.api.DeleteGatewayRequest.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteGatewayRequest} returns this - */ -proto.api.DeleteGatewayRequest.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListGatewaysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListGatewaysRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListGatewaysRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListGatewaysRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - search: jspb.Message.getFieldWithDefault(msg, 3, ""), - tenantId: jspb.Message.getFieldWithDefault(msg, 4, ""), - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListGatewaysRequest} - */ -proto.api.ListGatewaysRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListGatewaysRequest; - return proto.api.ListGatewaysRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListGatewaysRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListGatewaysRequest} - */ -proto.api.ListGatewaysRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSearch(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListGatewaysRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListGatewaysRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListGatewaysRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListGatewaysRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getSearch(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListGatewaysRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListGatewaysRequest} returns this - */ -proto.api.ListGatewaysRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListGatewaysRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListGatewaysRequest} returns this - */ -proto.api.ListGatewaysRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string search = 3; - * @return {string} - */ -proto.api.ListGatewaysRequest.prototype.getSearch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListGatewaysRequest} returns this - */ -proto.api.ListGatewaysRequest.prototype.setSearch = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string tenant_id = 4; - * @return {string} - */ -proto.api.ListGatewaysRequest.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListGatewaysRequest} returns this - */ -proto.api.ListGatewaysRequest.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string multicast_group_id = 5; - * @return {string} - */ -proto.api.ListGatewaysRequest.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListGatewaysRequest} returns this - */ -proto.api.ListGatewaysRequest.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListGatewaysResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListGatewaysResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListGatewaysResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListGatewaysResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListGatewaysResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.GatewayListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListGatewaysResponse} - */ -proto.api.ListGatewaysResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListGatewaysResponse; - return proto.api.ListGatewaysResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListGatewaysResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListGatewaysResponse} - */ -proto.api.ListGatewaysResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.GatewayListItem; - reader.readMessage(value,proto.api.GatewayListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListGatewaysResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListGatewaysResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListGatewaysResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListGatewaysResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.GatewayListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListGatewaysResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListGatewaysResponse} returns this - */ -proto.api.ListGatewaysResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated GatewayListItem result = 2; - * @return {!Array} - */ -proto.api.ListGatewaysResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.GatewayListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListGatewaysResponse} returns this -*/ -proto.api.ListGatewaysResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.GatewayListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.GatewayListItem} - */ -proto.api.ListGatewaysResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.GatewayListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListGatewaysResponse} returns this - */ -proto.api.ListGatewaysResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GenerateGatewayClientCertificateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GenerateGatewayClientCertificateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GenerateGatewayClientCertificateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GenerateGatewayClientCertificateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GenerateGatewayClientCertificateRequest} - */ -proto.api.GenerateGatewayClientCertificateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GenerateGatewayClientCertificateRequest; - return proto.api.GenerateGatewayClientCertificateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GenerateGatewayClientCertificateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GenerateGatewayClientCertificateRequest} - */ -proto.api.GenerateGatewayClientCertificateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GenerateGatewayClientCertificateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GenerateGatewayClientCertificateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GenerateGatewayClientCertificateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GenerateGatewayClientCertificateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string gateway_id = 1; - * @return {string} - */ -proto.api.GenerateGatewayClientCertificateRequest.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GenerateGatewayClientCertificateRequest} returns this - */ -proto.api.GenerateGatewayClientCertificateRequest.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GenerateGatewayClientCertificateResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GenerateGatewayClientCertificateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GenerateGatewayClientCertificateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - tlsCert: jspb.Message.getFieldWithDefault(msg, 1, ""), - tlsKey: jspb.Message.getFieldWithDefault(msg, 2, ""), - caCert: jspb.Message.getFieldWithDefault(msg, 3, ""), - expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GenerateGatewayClientCertificateResponse} - */ -proto.api.GenerateGatewayClientCertificateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GenerateGatewayClientCertificateResponse; - return proto.api.GenerateGatewayClientCertificateResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GenerateGatewayClientCertificateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GenerateGatewayClientCertificateResponse} - */ -proto.api.GenerateGatewayClientCertificateResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTlsCert(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTlsKey(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setCaCert(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setExpiresAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GenerateGatewayClientCertificateResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GenerateGatewayClientCertificateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GenerateGatewayClientCertificateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTlsCert(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTlsKey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getCaCert(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getExpiresAt(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string tls_cert = 1; - * @return {string} - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.getTlsCert = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GenerateGatewayClientCertificateResponse} returns this - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.setTlsCert = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string tls_key = 2; - * @return {string} - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.getTlsKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GenerateGatewayClientCertificateResponse} returns this - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.setTlsKey = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string ca_cert = 3; - * @return {string} - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.getCaCert = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GenerateGatewayClientCertificateResponse} returns this - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.setCaCert = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional google.protobuf.Timestamp expires_at = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.getExpiresAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GenerateGatewayClientCertificateResponse} returns this -*/ -proto.api.GenerateGatewayClientCertificateResponse.prototype.setExpiresAt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GenerateGatewayClientCertificateResponse} returns this - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.clearExpiresAt = function() { - return this.setExpiresAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GenerateGatewayClientCertificateResponse.prototype.hasExpiresAt = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetGatewayMetricsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetGatewayMetricsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetGatewayMetricsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewayMetricsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: jspb.Message.getFieldWithDefault(msg, 1, ""), - start: (f = msg.getStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - end: (f = msg.getEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - aggregation: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetGatewayMetricsRequest} - */ -proto.api.GetGatewayMetricsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetGatewayMetricsRequest; - return proto.api.GetGatewayMetricsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetGatewayMetricsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetGatewayMetricsRequest} - */ -proto.api.GetGatewayMetricsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setStart(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setEnd(value); - break; - case 4: - var value = /** @type {!proto.common.Aggregation} */ (reader.readEnum()); - msg.setAggregation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetGatewayMetricsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetGatewayMetricsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetGatewayMetricsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewayMetricsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getStart(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getEnd(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getAggregation(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } -}; - - -/** - * optional string gateway_id = 1; - * @return {string} - */ -proto.api.GetGatewayMetricsRequest.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetGatewayMetricsRequest} returns this - */ -proto.api.GetGatewayMetricsRequest.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp start = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetGatewayMetricsRequest.prototype.getStart = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetGatewayMetricsRequest} returns this -*/ -proto.api.GetGatewayMetricsRequest.prototype.setStart = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayMetricsRequest} returns this - */ -proto.api.GetGatewayMetricsRequest.prototype.clearStart = function() { - return this.setStart(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayMetricsRequest.prototype.hasStart = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp end = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetGatewayMetricsRequest.prototype.getEnd = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetGatewayMetricsRequest} returns this -*/ -proto.api.GetGatewayMetricsRequest.prototype.setEnd = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayMetricsRequest} returns this - */ -proto.api.GetGatewayMetricsRequest.prototype.clearEnd = function() { - return this.setEnd(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayMetricsRequest.prototype.hasEnd = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional common.Aggregation aggregation = 4; - * @return {!proto.common.Aggregation} - */ -proto.api.GetGatewayMetricsRequest.prototype.getAggregation = function() { - return /** @type {!proto.common.Aggregation} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.common.Aggregation} value - * @return {!proto.api.GetGatewayMetricsRequest} returns this - */ -proto.api.GetGatewayMetricsRequest.prototype.setAggregation = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetGatewayMetricsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetGatewayMetricsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetGatewayMetricsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewayMetricsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - rxPackets: (f = msg.getRxPackets()) && common_common_pb.Metric.toObject(includeInstance, f), - txPackets: (f = msg.getTxPackets()) && common_common_pb.Metric.toObject(includeInstance, f), - txPacketsPerFreq: (f = msg.getTxPacketsPerFreq()) && common_common_pb.Metric.toObject(includeInstance, f), - rxPacketsPerFreq: (f = msg.getRxPacketsPerFreq()) && common_common_pb.Metric.toObject(includeInstance, f), - txPacketsPerDr: (f = msg.getTxPacketsPerDr()) && common_common_pb.Metric.toObject(includeInstance, f), - rxPacketsPerDr: (f = msg.getRxPacketsPerDr()) && common_common_pb.Metric.toObject(includeInstance, f), - txPacketsPerStatus: (f = msg.getTxPacketsPerStatus()) && common_common_pb.Metric.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetGatewayMetricsResponse} - */ -proto.api.GetGatewayMetricsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetGatewayMetricsResponse; - return proto.api.GetGatewayMetricsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetGatewayMetricsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetGatewayMetricsResponse} - */ -proto.api.GetGatewayMetricsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setRxPackets(value); - break; - case 2: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setTxPackets(value); - break; - case 3: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setTxPacketsPerFreq(value); - break; - case 4: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setRxPacketsPerFreq(value); - break; - case 5: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setTxPacketsPerDr(value); - break; - case 6: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setRxPacketsPerDr(value); - break; - case 7: - var value = new common_common_pb.Metric; - reader.readMessage(value,common_common_pb.Metric.deserializeBinaryFromReader); - msg.setTxPacketsPerStatus(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetGatewayMetricsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetGatewayMetricsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetGatewayMetricsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewayMetricsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRxPackets(); - if (f != null) { - writer.writeMessage( - 1, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getTxPackets(); - if (f != null) { - writer.writeMessage( - 2, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getTxPacketsPerFreq(); - if (f != null) { - writer.writeMessage( - 3, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getRxPacketsPerFreq(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getTxPacketsPerDr(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getRxPacketsPerDr(); - if (f != null) { - writer.writeMessage( - 6, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } - f = message.getTxPacketsPerStatus(); - if (f != null) { - writer.writeMessage( - 7, - f, - common_common_pb.Metric.serializeBinaryToWriter - ); - } -}; - - -/** - * optional common.Metric rx_packets = 1; - * @return {?proto.common.Metric} - */ -proto.api.GetGatewayMetricsResponse.prototype.getRxPackets = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 1)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetGatewayMetricsResponse} returns this -*/ -proto.api.GetGatewayMetricsResponse.prototype.setRxPackets = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayMetricsResponse} returns this - */ -proto.api.GetGatewayMetricsResponse.prototype.clearRxPackets = function() { - return this.setRxPackets(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayMetricsResponse.prototype.hasRxPackets = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional common.Metric tx_packets = 2; - * @return {?proto.common.Metric} - */ -proto.api.GetGatewayMetricsResponse.prototype.getTxPackets = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 2)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetGatewayMetricsResponse} returns this -*/ -proto.api.GetGatewayMetricsResponse.prototype.setTxPackets = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayMetricsResponse} returns this - */ -proto.api.GetGatewayMetricsResponse.prototype.clearTxPackets = function() { - return this.setTxPackets(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayMetricsResponse.prototype.hasTxPackets = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional common.Metric tx_packets_per_freq = 3; - * @return {?proto.common.Metric} - */ -proto.api.GetGatewayMetricsResponse.prototype.getTxPacketsPerFreq = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 3)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetGatewayMetricsResponse} returns this -*/ -proto.api.GetGatewayMetricsResponse.prototype.setTxPacketsPerFreq = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayMetricsResponse} returns this - */ -proto.api.GetGatewayMetricsResponse.prototype.clearTxPacketsPerFreq = function() { - return this.setTxPacketsPerFreq(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayMetricsResponse.prototype.hasTxPacketsPerFreq = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional common.Metric rx_packets_per_freq = 4; - * @return {?proto.common.Metric} - */ -proto.api.GetGatewayMetricsResponse.prototype.getRxPacketsPerFreq = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 4)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetGatewayMetricsResponse} returns this -*/ -proto.api.GetGatewayMetricsResponse.prototype.setRxPacketsPerFreq = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayMetricsResponse} returns this - */ -proto.api.GetGatewayMetricsResponse.prototype.clearRxPacketsPerFreq = function() { - return this.setRxPacketsPerFreq(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayMetricsResponse.prototype.hasRxPacketsPerFreq = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional common.Metric tx_packets_per_dr = 5; - * @return {?proto.common.Metric} - */ -proto.api.GetGatewayMetricsResponse.prototype.getTxPacketsPerDr = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 5)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetGatewayMetricsResponse} returns this -*/ -proto.api.GetGatewayMetricsResponse.prototype.setTxPacketsPerDr = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayMetricsResponse} returns this - */ -proto.api.GetGatewayMetricsResponse.prototype.clearTxPacketsPerDr = function() { - return this.setTxPacketsPerDr(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayMetricsResponse.prototype.hasTxPacketsPerDr = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional common.Metric rx_packets_per_dr = 6; - * @return {?proto.common.Metric} - */ -proto.api.GetGatewayMetricsResponse.prototype.getRxPacketsPerDr = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 6)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetGatewayMetricsResponse} returns this -*/ -proto.api.GetGatewayMetricsResponse.prototype.setRxPacketsPerDr = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayMetricsResponse} returns this - */ -proto.api.GetGatewayMetricsResponse.prototype.clearRxPacketsPerDr = function() { - return this.setRxPacketsPerDr(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayMetricsResponse.prototype.hasRxPacketsPerDr = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional common.Metric tx_packets_per_status = 7; - * @return {?proto.common.Metric} - */ -proto.api.GetGatewayMetricsResponse.prototype.getTxPacketsPerStatus = function() { - return /** @type{?proto.common.Metric} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Metric, 7)); -}; - - -/** - * @param {?proto.common.Metric|undefined} value - * @return {!proto.api.GetGatewayMetricsResponse} returns this -*/ -proto.api.GetGatewayMetricsResponse.prototype.setTxPacketsPerStatus = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetGatewayMetricsResponse} returns this - */ -proto.api.GetGatewayMetricsResponse.prototype.clearTxPacketsPerStatus = function() { - return this.setTxPacketsPerStatus(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetGatewayMetricsResponse.prototype.hasTxPacketsPerStatus = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * @enum {number} - */ -proto.api.GatewayState = { - NEVER_SEEN: 0, - ONLINE: 1, - OFFLINE: 2 -}; - -goog.object.extend(exports, proto.api); diff --git a/api/js/api/internal_grpc_pb.d.ts b/api/js/api/internal_grpc_pb.d.ts deleted file mode 100644 index 74db7c22..00000000 --- a/api/js/api/internal_grpc_pb.d.ts +++ /dev/null @@ -1,102 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -// package: api -// file: api/internal.proto - -import * as api_internal_pb from "../api/internal_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; -import * as grpc from "@grpc/grpc-js"; - -interface IInternalServiceService extends grpc.ServiceDefinition { - login: grpc.MethodDefinition; - profile: grpc.MethodDefinition; - globalSearch: grpc.MethodDefinition; - createApiKey: grpc.MethodDefinition; - deleteApiKey: grpc.MethodDefinition; - listApiKeys: grpc.MethodDefinition; - settings: grpc.MethodDefinition; - openIdConnectLogin: grpc.MethodDefinition; - oAuth2Login: grpc.MethodDefinition; - getDevicesSummary: grpc.MethodDefinition; - getGatewaysSummary: grpc.MethodDefinition; - streamGatewayFrames: grpc.MethodDefinition; - streamDeviceFrames: grpc.MethodDefinition; - streamDeviceEvents: grpc.MethodDefinition; - listRegions: grpc.MethodDefinition; - getRegion: grpc.MethodDefinition; - getVersion: grpc.MethodDefinition; -} - -export const InternalServiceService: IInternalServiceService; - -export interface IInternalServiceServer extends grpc.UntypedServiceImplementation { - login: grpc.handleUnaryCall; - profile: grpc.handleUnaryCall; - globalSearch: grpc.handleUnaryCall; - createApiKey: grpc.handleUnaryCall; - deleteApiKey: grpc.handleUnaryCall; - listApiKeys: grpc.handleUnaryCall; - settings: grpc.handleUnaryCall; - openIdConnectLogin: grpc.handleUnaryCall; - oAuth2Login: grpc.handleUnaryCall; - getDevicesSummary: grpc.handleUnaryCall; - getGatewaysSummary: grpc.handleUnaryCall; - streamGatewayFrames: grpc.handleServerStreamingCall; - streamDeviceFrames: grpc.handleServerStreamingCall; - streamDeviceEvents: grpc.handleServerStreamingCall; - listRegions: grpc.handleUnaryCall; - getRegion: grpc.handleUnaryCall; - getVersion: grpc.handleUnaryCall; -} - -export class InternalServiceClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - login(argument: api_internal_pb.LoginRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - login(argument: api_internal_pb.LoginRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - login(argument: api_internal_pb.LoginRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - profile(argument: google_protobuf_empty_pb.Empty, callback: grpc.requestCallback): grpc.ClientUnaryCall; - profile(argument: google_protobuf_empty_pb.Empty, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - profile(argument: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - globalSearch(argument: api_internal_pb.GlobalSearchRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - globalSearch(argument: api_internal_pb.GlobalSearchRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - globalSearch(argument: api_internal_pb.GlobalSearchRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createApiKey(argument: api_internal_pb.CreateApiKeyRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createApiKey(argument: api_internal_pb.CreateApiKeyRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - createApiKey(argument: api_internal_pb.CreateApiKeyRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteApiKey(argument: api_internal_pb.DeleteApiKeyRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteApiKey(argument: api_internal_pb.DeleteApiKeyRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteApiKey(argument: api_internal_pb.DeleteApiKeyRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listApiKeys(argument: api_internal_pb.ListApiKeysRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listApiKeys(argument: api_internal_pb.ListApiKeysRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listApiKeys(argument: api_internal_pb.ListApiKeysRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - settings(argument: google_protobuf_empty_pb.Empty, callback: grpc.requestCallback): grpc.ClientUnaryCall; - settings(argument: google_protobuf_empty_pb.Empty, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - settings(argument: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - openIdConnectLogin(argument: api_internal_pb.OpenIdConnectLoginRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - openIdConnectLogin(argument: api_internal_pb.OpenIdConnectLoginRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - openIdConnectLogin(argument: api_internal_pb.OpenIdConnectLoginRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - oAuth2Login(argument: api_internal_pb.OAuth2LoginRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - oAuth2Login(argument: api_internal_pb.OAuth2LoginRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - oAuth2Login(argument: api_internal_pb.OAuth2LoginRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getDevicesSummary(argument: api_internal_pb.GetDevicesSummaryRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getDevicesSummary(argument: api_internal_pb.GetDevicesSummaryRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getDevicesSummary(argument: api_internal_pb.GetDevicesSummaryRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getGatewaysSummary(argument: api_internal_pb.GetGatewaysSummaryRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getGatewaysSummary(argument: api_internal_pb.GetGatewaysSummaryRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getGatewaysSummary(argument: api_internal_pb.GetGatewaysSummaryRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - streamGatewayFrames(argument: api_internal_pb.StreamGatewayFramesRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - streamGatewayFrames(argument: api_internal_pb.StreamGatewayFramesRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - streamDeviceFrames(argument: api_internal_pb.StreamDeviceFramesRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - streamDeviceFrames(argument: api_internal_pb.StreamDeviceFramesRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - streamDeviceEvents(argument: api_internal_pb.StreamDeviceEventsRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; - streamDeviceEvents(argument: api_internal_pb.StreamDeviceEventsRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - listRegions(argument: google_protobuf_empty_pb.Empty, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listRegions(argument: google_protobuf_empty_pb.Empty, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listRegions(argument: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getRegion(argument: api_internal_pb.GetRegionRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getRegion(argument: api_internal_pb.GetRegionRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getRegion(argument: api_internal_pb.GetRegionRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getVersion(argument: google_protobuf_empty_pb.Empty, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getVersion(argument: google_protobuf_empty_pb.Empty, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getVersion(argument: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; -} diff --git a/api/js/api/internal_grpc_pb.js b/api/js/api/internal_grpc_pb.js deleted file mode 100644 index 0b4c8a86..00000000 --- a/api/js/api/internal_grpc_pb.js +++ /dev/null @@ -1,528 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var api_internal_pb = require('../api/internal_pb.js'); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -var common_common_pb = require('../common/common_pb.js'); -var api_user_pb = require('../api/user_pb.js'); - -function serialize_api_CreateApiKeyRequest(arg) { - if (!(arg instanceof api_internal_pb.CreateApiKeyRequest)) { - throw new Error('Expected argument of type api.CreateApiKeyRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateApiKeyRequest(buffer_arg) { - return api_internal_pb.CreateApiKeyRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateApiKeyResponse(arg) { - if (!(arg instanceof api_internal_pb.CreateApiKeyResponse)) { - throw new Error('Expected argument of type api.CreateApiKeyResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateApiKeyResponse(buffer_arg) { - return api_internal_pb.CreateApiKeyResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteApiKeyRequest(arg) { - if (!(arg instanceof api_internal_pb.DeleteApiKeyRequest)) { - throw new Error('Expected argument of type api.DeleteApiKeyRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteApiKeyRequest(buffer_arg) { - return api_internal_pb.DeleteApiKeyRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDevicesSummaryRequest(arg) { - if (!(arg instanceof api_internal_pb.GetDevicesSummaryRequest)) { - throw new Error('Expected argument of type api.GetDevicesSummaryRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDevicesSummaryRequest(buffer_arg) { - return api_internal_pb.GetDevicesSummaryRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetDevicesSummaryResponse(arg) { - if (!(arg instanceof api_internal_pb.GetDevicesSummaryResponse)) { - throw new Error('Expected argument of type api.GetDevicesSummaryResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetDevicesSummaryResponse(buffer_arg) { - return api_internal_pb.GetDevicesSummaryResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetGatewaysSummaryRequest(arg) { - if (!(arg instanceof api_internal_pb.GetGatewaysSummaryRequest)) { - throw new Error('Expected argument of type api.GetGatewaysSummaryRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetGatewaysSummaryRequest(buffer_arg) { - return api_internal_pb.GetGatewaysSummaryRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetGatewaysSummaryResponse(arg) { - if (!(arg instanceof api_internal_pb.GetGatewaysSummaryResponse)) { - throw new Error('Expected argument of type api.GetGatewaysSummaryResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetGatewaysSummaryResponse(buffer_arg) { - return api_internal_pb.GetGatewaysSummaryResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetRegionRequest(arg) { - if (!(arg instanceof api_internal_pb.GetRegionRequest)) { - throw new Error('Expected argument of type api.GetRegionRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetRegionRequest(buffer_arg) { - return api_internal_pb.GetRegionRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetRegionResponse(arg) { - if (!(arg instanceof api_internal_pb.GetRegionResponse)) { - throw new Error('Expected argument of type api.GetRegionResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetRegionResponse(buffer_arg) { - return api_internal_pb.GetRegionResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetVersionResponse(arg) { - if (!(arg instanceof api_internal_pb.GetVersionResponse)) { - throw new Error('Expected argument of type api.GetVersionResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetVersionResponse(buffer_arg) { - return api_internal_pb.GetVersionResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GlobalSearchRequest(arg) { - if (!(arg instanceof api_internal_pb.GlobalSearchRequest)) { - throw new Error('Expected argument of type api.GlobalSearchRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GlobalSearchRequest(buffer_arg) { - return api_internal_pb.GlobalSearchRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GlobalSearchResponse(arg) { - if (!(arg instanceof api_internal_pb.GlobalSearchResponse)) { - throw new Error('Expected argument of type api.GlobalSearchResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GlobalSearchResponse(buffer_arg) { - return api_internal_pb.GlobalSearchResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListApiKeysRequest(arg) { - if (!(arg instanceof api_internal_pb.ListApiKeysRequest)) { - throw new Error('Expected argument of type api.ListApiKeysRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListApiKeysRequest(buffer_arg) { - return api_internal_pb.ListApiKeysRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListApiKeysResponse(arg) { - if (!(arg instanceof api_internal_pb.ListApiKeysResponse)) { - throw new Error('Expected argument of type api.ListApiKeysResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListApiKeysResponse(buffer_arg) { - return api_internal_pb.ListApiKeysResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListRegionsResponse(arg) { - if (!(arg instanceof api_internal_pb.ListRegionsResponse)) { - throw new Error('Expected argument of type api.ListRegionsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListRegionsResponse(buffer_arg) { - return api_internal_pb.ListRegionsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_LogItem(arg) { - if (!(arg instanceof api_internal_pb.LogItem)) { - throw new Error('Expected argument of type api.LogItem'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_LogItem(buffer_arg) { - return api_internal_pb.LogItem.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_LoginRequest(arg) { - if (!(arg instanceof api_internal_pb.LoginRequest)) { - throw new Error('Expected argument of type api.LoginRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_LoginRequest(buffer_arg) { - return api_internal_pb.LoginRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_LoginResponse(arg) { - if (!(arg instanceof api_internal_pb.LoginResponse)) { - throw new Error('Expected argument of type api.LoginResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_LoginResponse(buffer_arg) { - return api_internal_pb.LoginResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_OAuth2LoginRequest(arg) { - if (!(arg instanceof api_internal_pb.OAuth2LoginRequest)) { - throw new Error('Expected argument of type api.OAuth2LoginRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_OAuth2LoginRequest(buffer_arg) { - return api_internal_pb.OAuth2LoginRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_OAuth2LoginResponse(arg) { - if (!(arg instanceof api_internal_pb.OAuth2LoginResponse)) { - throw new Error('Expected argument of type api.OAuth2LoginResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_OAuth2LoginResponse(buffer_arg) { - return api_internal_pb.OAuth2LoginResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_OpenIdConnectLoginRequest(arg) { - if (!(arg instanceof api_internal_pb.OpenIdConnectLoginRequest)) { - throw new Error('Expected argument of type api.OpenIdConnectLoginRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_OpenIdConnectLoginRequest(buffer_arg) { - return api_internal_pb.OpenIdConnectLoginRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_OpenIdConnectLoginResponse(arg) { - if (!(arg instanceof api_internal_pb.OpenIdConnectLoginResponse)) { - throw new Error('Expected argument of type api.OpenIdConnectLoginResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_OpenIdConnectLoginResponse(buffer_arg) { - return api_internal_pb.OpenIdConnectLoginResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ProfileResponse(arg) { - if (!(arg instanceof api_internal_pb.ProfileResponse)) { - throw new Error('Expected argument of type api.ProfileResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ProfileResponse(buffer_arg) { - return api_internal_pb.ProfileResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_SettingsResponse(arg) { - if (!(arg instanceof api_internal_pb.SettingsResponse)) { - throw new Error('Expected argument of type api.SettingsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_SettingsResponse(buffer_arg) { - return api_internal_pb.SettingsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_StreamDeviceEventsRequest(arg) { - if (!(arg instanceof api_internal_pb.StreamDeviceEventsRequest)) { - throw new Error('Expected argument of type api.StreamDeviceEventsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_StreamDeviceEventsRequest(buffer_arg) { - return api_internal_pb.StreamDeviceEventsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_StreamDeviceFramesRequest(arg) { - if (!(arg instanceof api_internal_pb.StreamDeviceFramesRequest)) { - throw new Error('Expected argument of type api.StreamDeviceFramesRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_StreamDeviceFramesRequest(buffer_arg) { - return api_internal_pb.StreamDeviceFramesRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_StreamGatewayFramesRequest(arg) { - if (!(arg instanceof api_internal_pb.StreamGatewayFramesRequest)) { - throw new Error('Expected argument of type api.StreamGatewayFramesRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_StreamGatewayFramesRequest(buffer_arg) { - return api_internal_pb.StreamGatewayFramesRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_google_protobuf_Empty(arg) { - if (!(arg instanceof google_protobuf_empty_pb.Empty)) { - throw new Error('Expected argument of type google.protobuf.Empty'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_google_protobuf_Empty(buffer_arg) { - return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -// InternalService is the service providing API endpoints for internal usage. -var InternalServiceService = exports.InternalServiceService = { - // Log in a user -login: { - path: '/api.InternalService/Login', - requestStream: false, - responseStream: false, - requestType: api_internal_pb.LoginRequest, - responseType: api_internal_pb.LoginResponse, - requestSerialize: serialize_api_LoginRequest, - requestDeserialize: deserialize_api_LoginRequest, - responseSerialize: serialize_api_LoginResponse, - responseDeserialize: deserialize_api_LoginResponse, - }, - // Get the current user's profile -profile: { - path: '/api.InternalService/Profile', - requestStream: false, - responseStream: false, - requestType: google_protobuf_empty_pb.Empty, - responseType: api_internal_pb.ProfileResponse, - requestSerialize: serialize_google_protobuf_Empty, - requestDeserialize: deserialize_google_protobuf_Empty, - responseSerialize: serialize_api_ProfileResponse, - responseDeserialize: deserialize_api_ProfileResponse, - }, - // Perform a global search. -globalSearch: { - path: '/api.InternalService/GlobalSearch', - requestStream: false, - responseStream: false, - requestType: api_internal_pb.GlobalSearchRequest, - responseType: api_internal_pb.GlobalSearchResponse, - requestSerialize: serialize_api_GlobalSearchRequest, - requestDeserialize: deserialize_api_GlobalSearchRequest, - responseSerialize: serialize_api_GlobalSearchResponse, - responseDeserialize: deserialize_api_GlobalSearchResponse, - }, - // CreateApiKey creates the given API key. -createApiKey: { - path: '/api.InternalService/CreateApiKey', - requestStream: false, - responseStream: false, - requestType: api_internal_pb.CreateApiKeyRequest, - responseType: api_internal_pb.CreateApiKeyResponse, - requestSerialize: serialize_api_CreateApiKeyRequest, - requestDeserialize: deserialize_api_CreateApiKeyRequest, - responseSerialize: serialize_api_CreateApiKeyResponse, - responseDeserialize: deserialize_api_CreateApiKeyResponse, - }, - // DeleteApiKey deletes the API key. -deleteApiKey: { - path: '/api.InternalService/DeleteApiKey', - requestStream: false, - responseStream: false, - requestType: api_internal_pb.DeleteApiKeyRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteApiKeyRequest, - requestDeserialize: deserialize_api_DeleteApiKeyRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // ListApiKeys lists the available API keys. -listApiKeys: { - path: '/api.InternalService/ListApiKeys', - requestStream: false, - responseStream: false, - requestType: api_internal_pb.ListApiKeysRequest, - responseType: api_internal_pb.ListApiKeysResponse, - requestSerialize: serialize_api_ListApiKeysRequest, - requestDeserialize: deserialize_api_ListApiKeysRequest, - responseSerialize: serialize_api_ListApiKeysResponse, - responseDeserialize: deserialize_api_ListApiKeysResponse, - }, - // Get the global settings. -settings: { - path: '/api.InternalService/Settings', - requestStream: false, - responseStream: false, - requestType: google_protobuf_empty_pb.Empty, - responseType: api_internal_pb.SettingsResponse, - requestSerialize: serialize_google_protobuf_Empty, - requestDeserialize: deserialize_google_protobuf_Empty, - responseSerialize: serialize_api_SettingsResponse, - responseDeserialize: deserialize_api_SettingsResponse, - }, - // OpenId Connect login. -openIdConnectLogin: { - path: '/api.InternalService/OpenIdConnectLogin', - requestStream: false, - responseStream: false, - requestType: api_internal_pb.OpenIdConnectLoginRequest, - responseType: api_internal_pb.OpenIdConnectLoginResponse, - requestSerialize: serialize_api_OpenIdConnectLoginRequest, - requestDeserialize: deserialize_api_OpenIdConnectLoginRequest, - responseSerialize: serialize_api_OpenIdConnectLoginResponse, - responseDeserialize: deserialize_api_OpenIdConnectLoginResponse, - }, - // OAuth2 login. -oAuth2Login: { - path: '/api.InternalService/OAuth2Login', - requestStream: false, - responseStream: false, - requestType: api_internal_pb.OAuth2LoginRequest, - responseType: api_internal_pb.OAuth2LoginResponse, - requestSerialize: serialize_api_OAuth2LoginRequest, - requestDeserialize: deserialize_api_OAuth2LoginRequest, - responseSerialize: serialize_api_OAuth2LoginResponse, - responseDeserialize: deserialize_api_OAuth2LoginResponse, - }, - // GetDevicesSummary returns an aggregated summary of the devices. -getDevicesSummary: { - path: '/api.InternalService/GetDevicesSummary', - requestStream: false, - responseStream: false, - requestType: api_internal_pb.GetDevicesSummaryRequest, - responseType: api_internal_pb.GetDevicesSummaryResponse, - requestSerialize: serialize_api_GetDevicesSummaryRequest, - requestDeserialize: deserialize_api_GetDevicesSummaryRequest, - responseSerialize: serialize_api_GetDevicesSummaryResponse, - responseDeserialize: deserialize_api_GetDevicesSummaryResponse, - }, - // GetGatewaysSummary returns an aggregated summary of the gateways. -getGatewaysSummary: { - path: '/api.InternalService/GetGatewaysSummary', - requestStream: false, - responseStream: false, - requestType: api_internal_pb.GetGatewaysSummaryRequest, - responseType: api_internal_pb.GetGatewaysSummaryResponse, - requestSerialize: serialize_api_GetGatewaysSummaryRequest, - requestDeserialize: deserialize_api_GetGatewaysSummaryRequest, - responseSerialize: serialize_api_GetGatewaysSummaryResponse, - responseDeserialize: deserialize_api_GetGatewaysSummaryResponse, - }, - // Stream frame for the given Gateway ID. -streamGatewayFrames: { - path: '/api.InternalService/StreamGatewayFrames', - requestStream: false, - responseStream: true, - requestType: api_internal_pb.StreamGatewayFramesRequest, - responseType: api_internal_pb.LogItem, - requestSerialize: serialize_api_StreamGatewayFramesRequest, - requestDeserialize: deserialize_api_StreamGatewayFramesRequest, - responseSerialize: serialize_api_LogItem, - responseDeserialize: deserialize_api_LogItem, - }, - // Stream frames for the given Device EUI. -streamDeviceFrames: { - path: '/api.InternalService/StreamDeviceFrames', - requestStream: false, - responseStream: true, - requestType: api_internal_pb.StreamDeviceFramesRequest, - responseType: api_internal_pb.LogItem, - requestSerialize: serialize_api_StreamDeviceFramesRequest, - requestDeserialize: deserialize_api_StreamDeviceFramesRequest, - responseSerialize: serialize_api_LogItem, - responseDeserialize: deserialize_api_LogItem, - }, - // Stream events for the given Device EUI. -streamDeviceEvents: { - path: '/api.InternalService/StreamDeviceEvents', - requestStream: false, - responseStream: true, - requestType: api_internal_pb.StreamDeviceEventsRequest, - responseType: api_internal_pb.LogItem, - requestSerialize: serialize_api_StreamDeviceEventsRequest, - requestDeserialize: deserialize_api_StreamDeviceEventsRequest, - responseSerialize: serialize_api_LogItem, - responseDeserialize: deserialize_api_LogItem, - }, - // ListRegions lists the available (configured) regions. -listRegions: { - path: '/api.InternalService/ListRegions', - requestStream: false, - responseStream: false, - requestType: google_protobuf_empty_pb.Empty, - responseType: api_internal_pb.ListRegionsResponse, - requestSerialize: serialize_google_protobuf_Empty, - requestDeserialize: deserialize_google_protobuf_Empty, - responseSerialize: serialize_api_ListRegionsResponse, - responseDeserialize: deserialize_api_ListRegionsResponse, - }, - // GetRegion returns the region details for the given region. -getRegion: { - path: '/api.InternalService/GetRegion', - requestStream: false, - responseStream: false, - requestType: api_internal_pb.GetRegionRequest, - responseType: api_internal_pb.GetRegionResponse, - requestSerialize: serialize_api_GetRegionRequest, - requestDeserialize: deserialize_api_GetRegionRequest, - responseSerialize: serialize_api_GetRegionResponse, - responseDeserialize: deserialize_api_GetRegionResponse, - }, - // GetVersion returns the ChirpStack version. -getVersion: { - path: '/api.InternalService/GetVersion', - requestStream: false, - responseStream: false, - requestType: google_protobuf_empty_pb.Empty, - responseType: api_internal_pb.GetVersionResponse, - requestSerialize: serialize_google_protobuf_Empty, - requestDeserialize: deserialize_google_protobuf_Empty, - responseSerialize: serialize_api_GetVersionResponse, - responseDeserialize: deserialize_api_GetVersionResponse, - }, -}; - -exports.InternalServiceClient = grpc.makeGenericClientConstructor(InternalServiceService); diff --git a/api/js/api/internal_pb.d.ts b/api/js/api/internal_pb.d.ts deleted file mode 100644 index 217ba316..00000000 --- a/api/js/api/internal_pb.d.ts +++ /dev/null @@ -1,951 +0,0 @@ -// package: api -// file: api/internal.proto - -import * as jspb from "google-protobuf"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; -import * as common_common_pb from "../common/common_pb"; -import * as api_user_pb from "../api/user_pb"; - -export class ApiKey extends jspb.Message { - getId(): string; - setId(value: string): void; - - getName(): string; - setName(value: string): void; - - getIsAdmin(): boolean; - setIsAdmin(value: boolean): void; - - getTenantId(): string; - setTenantId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ApiKey.AsObject; - static toObject(includeInstance: boolean, msg: ApiKey): ApiKey.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ApiKey, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ApiKey; - static deserializeBinaryFromReader(message: ApiKey, reader: jspb.BinaryReader): ApiKey; -} - -export namespace ApiKey { - export type AsObject = { - id: string, - name: string, - isAdmin: boolean, - tenantId: string, - } -} - -export class CreateApiKeyRequest extends jspb.Message { - hasApiKey(): boolean; - clearApiKey(): void; - getApiKey(): ApiKey | undefined; - setApiKey(value?: ApiKey): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateApiKeyRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateApiKeyRequest): CreateApiKeyRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateApiKeyRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateApiKeyRequest; - static deserializeBinaryFromReader(message: CreateApiKeyRequest, reader: jspb.BinaryReader): CreateApiKeyRequest; -} - -export namespace CreateApiKeyRequest { - export type AsObject = { - apiKey?: ApiKey.AsObject, - } -} - -export class CreateApiKeyResponse extends jspb.Message { - getId(): string; - setId(value: string): void; - - getToken(): string; - setToken(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateApiKeyResponse.AsObject; - static toObject(includeInstance: boolean, msg: CreateApiKeyResponse): CreateApiKeyResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateApiKeyResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateApiKeyResponse; - static deserializeBinaryFromReader(message: CreateApiKeyResponse, reader: jspb.BinaryReader): CreateApiKeyResponse; -} - -export namespace CreateApiKeyResponse { - export type AsObject = { - id: string, - token: string, - } -} - -export class DeleteApiKeyRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteApiKeyRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteApiKeyRequest): DeleteApiKeyRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteApiKeyRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteApiKeyRequest; - static deserializeBinaryFromReader(message: DeleteApiKeyRequest, reader: jspb.BinaryReader): DeleteApiKeyRequest; -} - -export namespace DeleteApiKeyRequest { - export type AsObject = { - id: string, - } -} - -export class ListApiKeysRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): void; - - getOffset(): number; - setOffset(value: number): void; - - getIsAdmin(): boolean; - setIsAdmin(value: boolean): void; - - getTenantId(): string; - setTenantId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListApiKeysRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListApiKeysRequest): ListApiKeysRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListApiKeysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListApiKeysRequest; - static deserializeBinaryFromReader(message: ListApiKeysRequest, reader: jspb.BinaryReader): ListApiKeysRequest; -} - -export namespace ListApiKeysRequest { - export type AsObject = { - limit: number, - offset: number, - isAdmin: boolean, - tenantId: string, - } -} - -export class ListApiKeysResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): void; - - clearResultList(): void; - getResultList(): Array; - setResultList(value: Array): void; - addResult(value?: ApiKey, index?: number): ApiKey; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListApiKeysResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListApiKeysResponse): ListApiKeysResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListApiKeysResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListApiKeysResponse; - static deserializeBinaryFromReader(message: ListApiKeysResponse, reader: jspb.BinaryReader): ListApiKeysResponse; -} - -export namespace ListApiKeysResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class UserTenantLink extends jspb.Message { - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - getTenantId(): string; - setTenantId(value: string): void; - - getIsAdmin(): boolean; - setIsAdmin(value: boolean): void; - - getIsDeviceAdmin(): boolean; - setIsDeviceAdmin(value: boolean): void; - - getIsGatewayAdmin(): boolean; - setIsGatewayAdmin(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserTenantLink.AsObject; - static toObject(includeInstance: boolean, msg: UserTenantLink): UserTenantLink.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UserTenantLink, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserTenantLink; - static deserializeBinaryFromReader(message: UserTenantLink, reader: jspb.BinaryReader): UserTenantLink; -} - -export namespace UserTenantLink { - export type AsObject = { - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - tenantId: string, - isAdmin: boolean, - isDeviceAdmin: boolean, - isGatewayAdmin: boolean, - } -} - -export class LoginRequest extends jspb.Message { - getEmail(): string; - setEmail(value: string): void; - - getPassword(): string; - setPassword(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoginRequest.AsObject; - static toObject(includeInstance: boolean, msg: LoginRequest): LoginRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LoginRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoginRequest; - static deserializeBinaryFromReader(message: LoginRequest, reader: jspb.BinaryReader): LoginRequest; -} - -export namespace LoginRequest { - export type AsObject = { - email: string, - password: string, - } -} - -export class LoginResponse extends jspb.Message { - getJwt(): string; - setJwt(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoginResponse.AsObject; - static toObject(includeInstance: boolean, msg: LoginResponse): LoginResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LoginResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoginResponse; - static deserializeBinaryFromReader(message: LoginResponse, reader: jspb.BinaryReader): LoginResponse; -} - -export namespace LoginResponse { - export type AsObject = { - jwt: string, - } -} - -export class ProfileResponse extends jspb.Message { - hasUser(): boolean; - clearUser(): void; - getUser(): api_user_pb.User | undefined; - setUser(value?: api_user_pb.User): void; - - clearTenantsList(): void; - getTenantsList(): Array; - setTenantsList(value: Array): void; - addTenants(value?: UserTenantLink, index?: number): UserTenantLink; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProfileResponse.AsObject; - static toObject(includeInstance: boolean, msg: ProfileResponse): ProfileResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ProfileResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProfileResponse; - static deserializeBinaryFromReader(message: ProfileResponse, reader: jspb.BinaryReader): ProfileResponse; -} - -export namespace ProfileResponse { - export type AsObject = { - user?: api_user_pb.User.AsObject, - tenantsList: Array, - } -} - -export class GlobalSearchRequest extends jspb.Message { - getSearch(): string; - setSearch(value: string): void; - - getLimit(): number; - setLimit(value: number): void; - - getOffset(): number; - setOffset(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GlobalSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: GlobalSearchRequest): GlobalSearchRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GlobalSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GlobalSearchRequest; - static deserializeBinaryFromReader(message: GlobalSearchRequest, reader: jspb.BinaryReader): GlobalSearchRequest; -} - -export namespace GlobalSearchRequest { - export type AsObject = { - search: string, - limit: number, - offset: number, - } -} - -export class GlobalSearchResponse extends jspb.Message { - clearResultList(): void; - getResultList(): Array; - setResultList(value: Array): void; - addResult(value?: GlobalSearchResult, index?: number): GlobalSearchResult; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GlobalSearchResponse.AsObject; - static toObject(includeInstance: boolean, msg: GlobalSearchResponse): GlobalSearchResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GlobalSearchResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GlobalSearchResponse; - static deserializeBinaryFromReader(message: GlobalSearchResponse, reader: jspb.BinaryReader): GlobalSearchResponse; -} - -export namespace GlobalSearchResponse { - export type AsObject = { - resultList: Array, - } -} - -export class GlobalSearchResult extends jspb.Message { - getKind(): string; - setKind(value: string): void; - - getScore(): number; - setScore(value: number): void; - - getTenantId(): string; - setTenantId(value: string): void; - - getTenantName(): string; - setTenantName(value: string): void; - - getApplicationId(): string; - setApplicationId(value: string): void; - - getApplicationName(): string; - setApplicationName(value: string): void; - - getDeviceDevEui(): string; - setDeviceDevEui(value: string): void; - - getDeviceName(): string; - setDeviceName(value: string): void; - - getGatewayId(): string; - setGatewayId(value: string): void; - - getGatewayName(): string; - setGatewayName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GlobalSearchResult.AsObject; - static toObject(includeInstance: boolean, msg: GlobalSearchResult): GlobalSearchResult.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GlobalSearchResult, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GlobalSearchResult; - static deserializeBinaryFromReader(message: GlobalSearchResult, reader: jspb.BinaryReader): GlobalSearchResult; -} - -export namespace GlobalSearchResult { - export type AsObject = { - kind: string, - score: number, - tenantId: string, - tenantName: string, - applicationId: string, - applicationName: string, - deviceDevEui: string, - deviceName: string, - gatewayId: string, - gatewayName: string, - } -} - -export class SettingsResponse extends jspb.Message { - hasOpenidConnect(): boolean; - clearOpenidConnect(): void; - getOpenidConnect(): OpenIdConnect | undefined; - setOpenidConnect(value?: OpenIdConnect): void; - - hasOauth2(): boolean; - clearOauth2(): void; - getOauth2(): OAuth2 | undefined; - setOauth2(value?: OAuth2): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SettingsResponse.AsObject; - static toObject(includeInstance: boolean, msg: SettingsResponse): SettingsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SettingsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SettingsResponse; - static deserializeBinaryFromReader(message: SettingsResponse, reader: jspb.BinaryReader): SettingsResponse; -} - -export namespace SettingsResponse { - export type AsObject = { - openidConnect?: OpenIdConnect.AsObject, - oauth2?: OAuth2.AsObject, - } -} - -export class OpenIdConnect extends jspb.Message { - getEnabled(): boolean; - setEnabled(value: boolean): void; - - getLoginUrl(): string; - setLoginUrl(value: string): void; - - getLoginLabel(): string; - setLoginLabel(value: string): void; - - getLogoutUrl(): string; - setLogoutUrl(value: string): void; - - getLoginRedirect(): boolean; - setLoginRedirect(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OpenIdConnect.AsObject; - static toObject(includeInstance: boolean, msg: OpenIdConnect): OpenIdConnect.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OpenIdConnect, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OpenIdConnect; - static deserializeBinaryFromReader(message: OpenIdConnect, reader: jspb.BinaryReader): OpenIdConnect; -} - -export namespace OpenIdConnect { - export type AsObject = { - enabled: boolean, - loginUrl: string, - loginLabel: string, - logoutUrl: string, - loginRedirect: boolean, - } -} - -export class OAuth2 extends jspb.Message { - getEnabled(): boolean; - setEnabled(value: boolean): void; - - getLoginUrl(): string; - setLoginUrl(value: string): void; - - getLoginLabel(): string; - setLoginLabel(value: string): void; - - getLogoutUrl(): string; - setLogoutUrl(value: string): void; - - getLoginRedirect(): boolean; - setLoginRedirect(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OAuth2.AsObject; - static toObject(includeInstance: boolean, msg: OAuth2): OAuth2.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OAuth2, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OAuth2; - static deserializeBinaryFromReader(message: OAuth2, reader: jspb.BinaryReader): OAuth2; -} - -export namespace OAuth2 { - export type AsObject = { - enabled: boolean, - loginUrl: string, - loginLabel: string, - logoutUrl: string, - loginRedirect: boolean, - } -} - -export class OpenIdConnectLoginRequest extends jspb.Message { - getCode(): string; - setCode(value: string): void; - - getState(): string; - setState(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OpenIdConnectLoginRequest.AsObject; - static toObject(includeInstance: boolean, msg: OpenIdConnectLoginRequest): OpenIdConnectLoginRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OpenIdConnectLoginRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OpenIdConnectLoginRequest; - static deserializeBinaryFromReader(message: OpenIdConnectLoginRequest, reader: jspb.BinaryReader): OpenIdConnectLoginRequest; -} - -export namespace OpenIdConnectLoginRequest { - export type AsObject = { - code: string, - state: string, - } -} - -export class OpenIdConnectLoginResponse extends jspb.Message { - getToken(): string; - setToken(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OpenIdConnectLoginResponse.AsObject; - static toObject(includeInstance: boolean, msg: OpenIdConnectLoginResponse): OpenIdConnectLoginResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OpenIdConnectLoginResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OpenIdConnectLoginResponse; - static deserializeBinaryFromReader(message: OpenIdConnectLoginResponse, reader: jspb.BinaryReader): OpenIdConnectLoginResponse; -} - -export namespace OpenIdConnectLoginResponse { - export type AsObject = { - token: string, - } -} - -export class OAuth2LoginRequest extends jspb.Message { - getCode(): string; - setCode(value: string): void; - - getState(): string; - setState(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OAuth2LoginRequest.AsObject; - static toObject(includeInstance: boolean, msg: OAuth2LoginRequest): OAuth2LoginRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OAuth2LoginRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OAuth2LoginRequest; - static deserializeBinaryFromReader(message: OAuth2LoginRequest, reader: jspb.BinaryReader): OAuth2LoginRequest; -} - -export namespace OAuth2LoginRequest { - export type AsObject = { - code: string, - state: string, - } -} - -export class OAuth2LoginResponse extends jspb.Message { - getToken(): string; - setToken(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OAuth2LoginResponse.AsObject; - static toObject(includeInstance: boolean, msg: OAuth2LoginResponse): OAuth2LoginResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OAuth2LoginResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OAuth2LoginResponse; - static deserializeBinaryFromReader(message: OAuth2LoginResponse, reader: jspb.BinaryReader): OAuth2LoginResponse; -} - -export namespace OAuth2LoginResponse { - export type AsObject = { - token: string, - } -} - -export class GetDevicesSummaryRequest extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDevicesSummaryRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDevicesSummaryRequest): GetDevicesSummaryRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDevicesSummaryRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDevicesSummaryRequest; - static deserializeBinaryFromReader(message: GetDevicesSummaryRequest, reader: jspb.BinaryReader): GetDevicesSummaryRequest; -} - -export namespace GetDevicesSummaryRequest { - export type AsObject = { - tenantId: string, - } -} - -export class GetDevicesSummaryResponse extends jspb.Message { - getActiveCount(): number; - setActiveCount(value: number): void; - - getInactiveCount(): number; - setInactiveCount(value: number): void; - - getDrCountMap(): jspb.Map; - clearDrCountMap(): void; - getNeverSeenCount(): number; - setNeverSeenCount(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDevicesSummaryResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetDevicesSummaryResponse): GetDevicesSummaryResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDevicesSummaryResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDevicesSummaryResponse; - static deserializeBinaryFromReader(message: GetDevicesSummaryResponse, reader: jspb.BinaryReader): GetDevicesSummaryResponse; -} - -export namespace GetDevicesSummaryResponse { - export type AsObject = { - activeCount: number, - inactiveCount: number, - drCountMap: Array<[number, number]>, - neverSeenCount: number, - } -} - -export class GetGatewaysSummaryRequest extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetGatewaysSummaryRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetGatewaysSummaryRequest): GetGatewaysSummaryRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetGatewaysSummaryRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetGatewaysSummaryRequest; - static deserializeBinaryFromReader(message: GetGatewaysSummaryRequest, reader: jspb.BinaryReader): GetGatewaysSummaryRequest; -} - -export namespace GetGatewaysSummaryRequest { - export type AsObject = { - tenantId: string, - } -} - -export class GetGatewaysSummaryResponse extends jspb.Message { - getOnlineCount(): number; - setOnlineCount(value: number): void; - - getOfflineCount(): number; - setOfflineCount(value: number): void; - - getNeverSeenCount(): number; - setNeverSeenCount(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetGatewaysSummaryResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetGatewaysSummaryResponse): GetGatewaysSummaryResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetGatewaysSummaryResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetGatewaysSummaryResponse; - static deserializeBinaryFromReader(message: GetGatewaysSummaryResponse, reader: jspb.BinaryReader): GetGatewaysSummaryResponse; -} - -export namespace GetGatewaysSummaryResponse { - export type AsObject = { - onlineCount: number, - offlineCount: number, - neverSeenCount: number, - } -} - -export class LogItem extends jspb.Message { - getId(): string; - setId(value: string): void; - - hasTime(): boolean; - clearTime(): void; - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; - - getDescription(): string; - setDescription(value: string): void; - - getBody(): string; - setBody(value: string): void; - - getPropertiesMap(): jspb.Map; - clearPropertiesMap(): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LogItem.AsObject; - static toObject(includeInstance: boolean, msg: LogItem): LogItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LogItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LogItem; - static deserializeBinaryFromReader(message: LogItem, reader: jspb.BinaryReader): LogItem; -} - -export namespace LogItem { - export type AsObject = { - id: string, - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - description: string, - body: string, - propertiesMap: Array<[string, string]>, - } -} - -export class StreamGatewayFramesRequest extends jspb.Message { - getGatewayId(): string; - setGatewayId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StreamGatewayFramesRequest.AsObject; - static toObject(includeInstance: boolean, msg: StreamGatewayFramesRequest): StreamGatewayFramesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StreamGatewayFramesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StreamGatewayFramesRequest; - static deserializeBinaryFromReader(message: StreamGatewayFramesRequest, reader: jspb.BinaryReader): StreamGatewayFramesRequest; -} - -export namespace StreamGatewayFramesRequest { - export type AsObject = { - gatewayId: string, - } -} - -export class StreamDeviceFramesRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StreamDeviceFramesRequest.AsObject; - static toObject(includeInstance: boolean, msg: StreamDeviceFramesRequest): StreamDeviceFramesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StreamDeviceFramesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StreamDeviceFramesRequest; - static deserializeBinaryFromReader(message: StreamDeviceFramesRequest, reader: jspb.BinaryReader): StreamDeviceFramesRequest; -} - -export namespace StreamDeviceFramesRequest { - export type AsObject = { - devEui: string, - } -} - -export class StreamDeviceEventsRequest extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StreamDeviceEventsRequest.AsObject; - static toObject(includeInstance: boolean, msg: StreamDeviceEventsRequest): StreamDeviceEventsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StreamDeviceEventsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StreamDeviceEventsRequest; - static deserializeBinaryFromReader(message: StreamDeviceEventsRequest, reader: jspb.BinaryReader): StreamDeviceEventsRequest; -} - -export namespace StreamDeviceEventsRequest { - export type AsObject = { - devEui: string, - } -} - -export class ListRegionsResponse extends jspb.Message { - clearRegionsList(): void; - getRegionsList(): Array; - setRegionsList(value: Array): void; - addRegions(value?: RegionListItem, index?: number): RegionListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListRegionsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListRegionsResponse): ListRegionsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListRegionsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListRegionsResponse; - static deserializeBinaryFromReader(message: ListRegionsResponse, reader: jspb.BinaryReader): ListRegionsResponse; -} - -export namespace ListRegionsResponse { - export type AsObject = { - regionsList: Array, - } -} - -export class RegionListItem extends jspb.Message { - getId(): string; - setId(value: string): void; - - getRegion(): common_common_pb.RegionMap[keyof common_common_pb.RegionMap]; - setRegion(value: common_common_pb.RegionMap[keyof common_common_pb.RegionMap]): void; - - getDescription(): string; - setDescription(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RegionListItem.AsObject; - static toObject(includeInstance: boolean, msg: RegionListItem): RegionListItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RegionListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RegionListItem; - static deserializeBinaryFromReader(message: RegionListItem, reader: jspb.BinaryReader): RegionListItem; -} - -export namespace RegionListItem { - export type AsObject = { - id: string, - region: common_common_pb.RegionMap[keyof common_common_pb.RegionMap], - description: string, - } -} - -export class GetRegionRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRegionRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetRegionRequest): GetRegionRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetRegionRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetRegionRequest; - static deserializeBinaryFromReader(message: GetRegionRequest, reader: jspb.BinaryReader): GetRegionRequest; -} - -export namespace GetRegionRequest { - export type AsObject = { - id: string, - } -} - -export class GetRegionResponse extends jspb.Message { - getId(): string; - setId(value: string): void; - - getRegion(): common_common_pb.RegionMap[keyof common_common_pb.RegionMap]; - setRegion(value: common_common_pb.RegionMap[keyof common_common_pb.RegionMap]): void; - - getUserInfo(): string; - setUserInfo(value: string): void; - - clearUplinkChannelsList(): void; - getUplinkChannelsList(): Array; - setUplinkChannelsList(value: Array): void; - addUplinkChannels(value?: RegionChannel, index?: number): RegionChannel; - - getRx1Delay(): number; - setRx1Delay(value: number): void; - - getRx1DrOffset(): number; - setRx1DrOffset(value: number): void; - - getRx2Dr(): number; - setRx2Dr(value: number): void; - - getRx2Frequency(): number; - setRx2Frequency(value: number): void; - - getClassBPingSlotDr(): number; - setClassBPingSlotDr(value: number): void; - - getClassBPingSlotFrequency(): number; - setClassBPingSlotFrequency(value: number): void; - - getDescription(): string; - setDescription(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRegionResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetRegionResponse): GetRegionResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetRegionResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetRegionResponse; - static deserializeBinaryFromReader(message: GetRegionResponse, reader: jspb.BinaryReader): GetRegionResponse; -} - -export namespace GetRegionResponse { - export type AsObject = { - id: string, - region: common_common_pb.RegionMap[keyof common_common_pb.RegionMap], - userInfo: string, - uplinkChannelsList: Array, - rx1Delay: number, - rx1DrOffset: number, - rx2Dr: number, - rx2Frequency: number, - classBPingSlotDr: number, - classBPingSlotFrequency: number, - description: string, - } -} - -export class RegionChannel extends jspb.Message { - getFrequency(): number; - setFrequency(value: number): void; - - getDrMin(): number; - setDrMin(value: number): void; - - getDrMax(): number; - setDrMax(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RegionChannel.AsObject; - static toObject(includeInstance: boolean, msg: RegionChannel): RegionChannel.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RegionChannel, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RegionChannel; - static deserializeBinaryFromReader(message: RegionChannel, reader: jspb.BinaryReader): RegionChannel; -} - -export namespace RegionChannel { - export type AsObject = { - frequency: number, - drMin: number, - drMax: number, - } -} - -export class GetVersionResponse extends jspb.Message { - getVersion(): string; - setVersion(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetVersionResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetVersionResponse): GetVersionResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetVersionResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetVersionResponse; - static deserializeBinaryFromReader(message: GetVersionResponse, reader: jspb.BinaryReader): GetVersionResponse; -} - -export namespace GetVersionResponse { - export type AsObject = { - version: string, - } -} - diff --git a/api/js/api/internal_pb.js b/api/js/api/internal_pb.js deleted file mode 100644 index db981e12..00000000 --- a/api/js/api/internal_pb.js +++ /dev/null @@ -1,7294 +0,0 @@ -// source: api/internal.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -var api_user_pb = require('../api/user_pb.js'); -goog.object.extend(proto, api_user_pb); -goog.exportSymbol('proto.api.ApiKey', null, global); -goog.exportSymbol('proto.api.CreateApiKeyRequest', null, global); -goog.exportSymbol('proto.api.CreateApiKeyResponse', null, global); -goog.exportSymbol('proto.api.DeleteApiKeyRequest', null, global); -goog.exportSymbol('proto.api.GetDevicesSummaryRequest', null, global); -goog.exportSymbol('proto.api.GetDevicesSummaryResponse', null, global); -goog.exportSymbol('proto.api.GetGatewaysSummaryRequest', null, global); -goog.exportSymbol('proto.api.GetGatewaysSummaryResponse', null, global); -goog.exportSymbol('proto.api.GetRegionRequest', null, global); -goog.exportSymbol('proto.api.GetRegionResponse', null, global); -goog.exportSymbol('proto.api.GetVersionResponse', null, global); -goog.exportSymbol('proto.api.GlobalSearchRequest', null, global); -goog.exportSymbol('proto.api.GlobalSearchResponse', null, global); -goog.exportSymbol('proto.api.GlobalSearchResult', null, global); -goog.exportSymbol('proto.api.ListApiKeysRequest', null, global); -goog.exportSymbol('proto.api.ListApiKeysResponse', null, global); -goog.exportSymbol('proto.api.ListRegionsResponse', null, global); -goog.exportSymbol('proto.api.LogItem', null, global); -goog.exportSymbol('proto.api.LoginRequest', null, global); -goog.exportSymbol('proto.api.LoginResponse', null, global); -goog.exportSymbol('proto.api.OAuth2', null, global); -goog.exportSymbol('proto.api.OAuth2LoginRequest', null, global); -goog.exportSymbol('proto.api.OAuth2LoginResponse', null, global); -goog.exportSymbol('proto.api.OpenIdConnect', null, global); -goog.exportSymbol('proto.api.OpenIdConnectLoginRequest', null, global); -goog.exportSymbol('proto.api.OpenIdConnectLoginResponse', null, global); -goog.exportSymbol('proto.api.ProfileResponse', null, global); -goog.exportSymbol('proto.api.RegionChannel', null, global); -goog.exportSymbol('proto.api.RegionListItem', null, global); -goog.exportSymbol('proto.api.SettingsResponse', null, global); -goog.exportSymbol('proto.api.StreamDeviceEventsRequest', null, global); -goog.exportSymbol('proto.api.StreamDeviceFramesRequest', null, global); -goog.exportSymbol('proto.api.StreamGatewayFramesRequest', null, global); -goog.exportSymbol('proto.api.UserTenantLink', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ApiKey = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ApiKey, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ApiKey.displayName = 'proto.api.ApiKey'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateApiKeyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateApiKeyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateApiKeyRequest.displayName = 'proto.api.CreateApiKeyRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateApiKeyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateApiKeyResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateApiKeyResponse.displayName = 'proto.api.CreateApiKeyResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteApiKeyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteApiKeyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteApiKeyRequest.displayName = 'proto.api.DeleteApiKeyRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListApiKeysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListApiKeysRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListApiKeysRequest.displayName = 'proto.api.ListApiKeysRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListApiKeysResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListApiKeysResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListApiKeysResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListApiKeysResponse.displayName = 'proto.api.ListApiKeysResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UserTenantLink = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UserTenantLink, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UserTenantLink.displayName = 'proto.api.UserTenantLink'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.LoginRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.LoginRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.LoginRequest.displayName = 'proto.api.LoginRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.LoginResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.LoginResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.LoginResponse.displayName = 'proto.api.LoginResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ProfileResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ProfileResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ProfileResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ProfileResponse.displayName = 'proto.api.ProfileResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GlobalSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GlobalSearchRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GlobalSearchRequest.displayName = 'proto.api.GlobalSearchRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GlobalSearchResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.GlobalSearchResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.GlobalSearchResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GlobalSearchResponse.displayName = 'proto.api.GlobalSearchResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GlobalSearchResult = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GlobalSearchResult, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GlobalSearchResult.displayName = 'proto.api.GlobalSearchResult'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.SettingsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.SettingsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.SettingsResponse.displayName = 'proto.api.SettingsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.OpenIdConnect = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.OpenIdConnect, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.OpenIdConnect.displayName = 'proto.api.OpenIdConnect'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.OAuth2 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.OAuth2, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.OAuth2.displayName = 'proto.api.OAuth2'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.OpenIdConnectLoginRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.OpenIdConnectLoginRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.OpenIdConnectLoginRequest.displayName = 'proto.api.OpenIdConnectLoginRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.OpenIdConnectLoginResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.OpenIdConnectLoginResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.OpenIdConnectLoginResponse.displayName = 'proto.api.OpenIdConnectLoginResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.OAuth2LoginRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.OAuth2LoginRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.OAuth2LoginRequest.displayName = 'proto.api.OAuth2LoginRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.OAuth2LoginResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.OAuth2LoginResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.OAuth2LoginResponse.displayName = 'proto.api.OAuth2LoginResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDevicesSummaryRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDevicesSummaryRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDevicesSummaryRequest.displayName = 'proto.api.GetDevicesSummaryRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetDevicesSummaryResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetDevicesSummaryResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetDevicesSummaryResponse.displayName = 'proto.api.GetDevicesSummaryResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetGatewaysSummaryRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetGatewaysSummaryRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetGatewaysSummaryRequest.displayName = 'proto.api.GetGatewaysSummaryRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetGatewaysSummaryResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetGatewaysSummaryResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetGatewaysSummaryResponse.displayName = 'proto.api.GetGatewaysSummaryResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.LogItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.LogItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.LogItem.displayName = 'proto.api.LogItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.StreamGatewayFramesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.StreamGatewayFramesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.StreamGatewayFramesRequest.displayName = 'proto.api.StreamGatewayFramesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.StreamDeviceFramesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.StreamDeviceFramesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.StreamDeviceFramesRequest.displayName = 'proto.api.StreamDeviceFramesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.StreamDeviceEventsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.StreamDeviceEventsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.StreamDeviceEventsRequest.displayName = 'proto.api.StreamDeviceEventsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListRegionsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListRegionsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListRegionsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListRegionsResponse.displayName = 'proto.api.ListRegionsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.RegionListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.RegionListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.RegionListItem.displayName = 'proto.api.RegionListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetRegionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetRegionRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetRegionRequest.displayName = 'proto.api.GetRegionRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetRegionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.GetRegionResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.GetRegionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetRegionResponse.displayName = 'proto.api.GetRegionResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.RegionChannel = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.RegionChannel, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.RegionChannel.displayName = 'proto.api.RegionChannel'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetVersionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetVersionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetVersionResponse.displayName = 'proto.api.GetVersionResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ApiKey.prototype.toObject = function(opt_includeInstance) { - return proto.api.ApiKey.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ApiKey} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ApiKey.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - isAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - tenantId: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ApiKey} - */ -proto.api.ApiKey.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ApiKey; - return proto.api.ApiKey.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ApiKey} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ApiKey} - */ -proto.api.ApiKey.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAdmin(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ApiKey.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ApiKey.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ApiKey} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ApiKey.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getIsAdmin(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.ApiKey.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ApiKey} returns this - */ -proto.api.ApiKey.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.ApiKey.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ApiKey} returns this - */ -proto.api.ApiKey.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool is_admin = 3; - * @return {boolean} - */ -proto.api.ApiKey.prototype.getIsAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.ApiKey} returns this - */ -proto.api.ApiKey.prototype.setIsAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional string tenant_id = 4; - * @return {string} - */ -proto.api.ApiKey.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ApiKey} returns this - */ -proto.api.ApiKey.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateApiKeyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateApiKeyRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateApiKeyRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateApiKeyRequest.toObject = function(includeInstance, msg) { - var f, obj = { - apiKey: (f = msg.getApiKey()) && proto.api.ApiKey.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateApiKeyRequest} - */ -proto.api.CreateApiKeyRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateApiKeyRequest; - return proto.api.CreateApiKeyRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateApiKeyRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateApiKeyRequest} - */ -proto.api.CreateApiKeyRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.ApiKey; - reader.readMessage(value,proto.api.ApiKey.deserializeBinaryFromReader); - msg.setApiKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateApiKeyRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateApiKeyRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateApiKeyRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateApiKeyRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApiKey(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.ApiKey.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ApiKey api_key = 1; - * @return {?proto.api.ApiKey} - */ -proto.api.CreateApiKeyRequest.prototype.getApiKey = function() { - return /** @type{?proto.api.ApiKey} */ ( - jspb.Message.getWrapperField(this, proto.api.ApiKey, 1)); -}; - - -/** - * @param {?proto.api.ApiKey|undefined} value - * @return {!proto.api.CreateApiKeyRequest} returns this -*/ -proto.api.CreateApiKeyRequest.prototype.setApiKey = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateApiKeyRequest} returns this - */ -proto.api.CreateApiKeyRequest.prototype.clearApiKey = function() { - return this.setApiKey(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateApiKeyRequest.prototype.hasApiKey = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateApiKeyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateApiKeyResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateApiKeyResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateApiKeyResponse.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - token: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateApiKeyResponse} - */ -proto.api.CreateApiKeyResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateApiKeyResponse; - return proto.api.CreateApiKeyResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateApiKeyResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateApiKeyResponse} - */ -proto.api.CreateApiKeyResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setToken(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateApiKeyResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateApiKeyResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateApiKeyResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateApiKeyResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getToken(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.CreateApiKeyResponse.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.CreateApiKeyResponse} returns this - */ -proto.api.CreateApiKeyResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string token = 2; - * @return {string} - */ -proto.api.CreateApiKeyResponse.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.CreateApiKeyResponse} returns this - */ -proto.api.CreateApiKeyResponse.prototype.setToken = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteApiKeyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteApiKeyRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteApiKeyRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteApiKeyRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteApiKeyRequest} - */ -proto.api.DeleteApiKeyRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteApiKeyRequest; - return proto.api.DeleteApiKeyRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteApiKeyRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteApiKeyRequest} - */ -proto.api.DeleteApiKeyRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteApiKeyRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteApiKeyRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteApiKeyRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteApiKeyRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeleteApiKeyRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteApiKeyRequest} returns this - */ -proto.api.DeleteApiKeyRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListApiKeysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListApiKeysRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListApiKeysRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListApiKeysRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - isAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - tenantId: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListApiKeysRequest} - */ -proto.api.ListApiKeysRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListApiKeysRequest; - return proto.api.ListApiKeysRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListApiKeysRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListApiKeysRequest} - */ -proto.api.ListApiKeysRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAdmin(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListApiKeysRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListApiKeysRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListApiKeysRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListApiKeysRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getIsAdmin(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListApiKeysRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListApiKeysRequest} returns this - */ -proto.api.ListApiKeysRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListApiKeysRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListApiKeysRequest} returns this - */ -proto.api.ListApiKeysRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional bool is_admin = 3; - * @return {boolean} - */ -proto.api.ListApiKeysRequest.prototype.getIsAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.ListApiKeysRequest} returns this - */ -proto.api.ListApiKeysRequest.prototype.setIsAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional string tenant_id = 4; - * @return {string} - */ -proto.api.ListApiKeysRequest.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListApiKeysRequest} returns this - */ -proto.api.ListApiKeysRequest.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListApiKeysResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListApiKeysResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListApiKeysResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListApiKeysResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListApiKeysResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.ApiKey.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListApiKeysResponse} - */ -proto.api.ListApiKeysResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListApiKeysResponse; - return proto.api.ListApiKeysResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListApiKeysResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListApiKeysResponse} - */ -proto.api.ListApiKeysResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.ApiKey; - reader.readMessage(value,proto.api.ApiKey.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListApiKeysResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListApiKeysResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListApiKeysResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListApiKeysResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.ApiKey.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListApiKeysResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListApiKeysResponse} returns this - */ -proto.api.ListApiKeysResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated ApiKey result = 2; - * @return {!Array} - */ -proto.api.ListApiKeysResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.ApiKey, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListApiKeysResponse} returns this -*/ -proto.api.ListApiKeysResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.ApiKey=} opt_value - * @param {number=} opt_index - * @return {!proto.api.ApiKey} - */ -proto.api.ListApiKeysResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.ApiKey, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListApiKeysResponse} returns this - */ -proto.api.ListApiKeysResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UserTenantLink.prototype.toObject = function(opt_includeInstance) { - return proto.api.UserTenantLink.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UserTenantLink} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UserTenantLink.toObject = function(includeInstance, msg) { - var f, obj = { - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - tenantId: jspb.Message.getFieldWithDefault(msg, 3, ""), - isAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - isDeviceAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - isGatewayAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UserTenantLink} - */ -proto.api.UserTenantLink.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UserTenantLink; - return proto.api.UserTenantLink.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UserTenantLink} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UserTenantLink} - */ -proto.api.UserTenantLink.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAdmin(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsDeviceAdmin(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsGatewayAdmin(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UserTenantLink.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UserTenantLink.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UserTenantLink} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UserTenantLink.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getIsAdmin(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getIsDeviceAdmin(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getIsGatewayAdmin(); - if (f) { - writer.writeBool( - 6, - f - ); - } -}; - - -/** - * optional google.protobuf.Timestamp created_at = 1; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.UserTenantLink.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.UserTenantLink} returns this -*/ -proto.api.UserTenantLink.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UserTenantLink} returns this - */ -proto.api.UserTenantLink.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UserTenantLink.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.UserTenantLink.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.UserTenantLink} returns this -*/ -proto.api.UserTenantLink.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UserTenantLink} returns this - */ -proto.api.UserTenantLink.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UserTenantLink.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string tenant_id = 3; - * @return {string} - */ -proto.api.UserTenantLink.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.UserTenantLink} returns this - */ -proto.api.UserTenantLink.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional bool is_admin = 4; - * @return {boolean} - */ -proto.api.UserTenantLink.prototype.getIsAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.UserTenantLink} returns this - */ -proto.api.UserTenantLink.prototype.setIsAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional bool is_device_admin = 5; - * @return {boolean} - */ -proto.api.UserTenantLink.prototype.getIsDeviceAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.UserTenantLink} returns this - */ -proto.api.UserTenantLink.prototype.setIsDeviceAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool is_gateway_admin = 6; - * @return {boolean} - */ -proto.api.UserTenantLink.prototype.getIsGatewayAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.UserTenantLink} returns this - */ -proto.api.UserTenantLink.prototype.setIsGatewayAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.LoginRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.LoginRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.LoginRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LoginRequest.toObject = function(includeInstance, msg) { - var f, obj = { - email: jspb.Message.getFieldWithDefault(msg, 1, ""), - password: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.LoginRequest} - */ -proto.api.LoginRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.LoginRequest; - return proto.api.LoginRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.LoginRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.LoginRequest} - */ -proto.api.LoginRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.LoginRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.LoginRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.LoginRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LoginRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string email = 1; - * @return {string} - */ -proto.api.LoginRequest.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LoginRequest} returns this - */ -proto.api.LoginRequest.prototype.setEmail = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string password = 2; - * @return {string} - */ -proto.api.LoginRequest.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LoginRequest} returns this - */ -proto.api.LoginRequest.prototype.setPassword = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.LoginResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.LoginResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.LoginResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LoginResponse.toObject = function(includeInstance, msg) { - var f, obj = { - jwt: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.LoginResponse} - */ -proto.api.LoginResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.LoginResponse; - return proto.api.LoginResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.LoginResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.LoginResponse} - */ -proto.api.LoginResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setJwt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.LoginResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.LoginResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.LoginResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LoginResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getJwt(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string jwt = 1; - * @return {string} - */ -proto.api.LoginResponse.prototype.getJwt = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LoginResponse} returns this - */ -proto.api.LoginResponse.prototype.setJwt = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ProfileResponse.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ProfileResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ProfileResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ProfileResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ProfileResponse.toObject = function(includeInstance, msg) { - var f, obj = { - user: (f = msg.getUser()) && api_user_pb.User.toObject(includeInstance, f), - tenantsList: jspb.Message.toObjectList(msg.getTenantsList(), - proto.api.UserTenantLink.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ProfileResponse} - */ -proto.api.ProfileResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ProfileResponse; - return proto.api.ProfileResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ProfileResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ProfileResponse} - */ -proto.api.ProfileResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new api_user_pb.User; - reader.readMessage(value,api_user_pb.User.deserializeBinaryFromReader); - msg.setUser(value); - break; - case 3: - var value = new proto.api.UserTenantLink; - reader.readMessage(value,proto.api.UserTenantLink.deserializeBinaryFromReader); - msg.addTenants(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ProfileResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ProfileResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ProfileResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ProfileResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUser(); - if (f != null) { - writer.writeMessage( - 1, - f, - api_user_pb.User.serializeBinaryToWriter - ); - } - f = message.getTenantsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.api.UserTenantLink.serializeBinaryToWriter - ); - } -}; - - -/** - * optional User user = 1; - * @return {?proto.api.User} - */ -proto.api.ProfileResponse.prototype.getUser = function() { - return /** @type{?proto.api.User} */ ( - jspb.Message.getWrapperField(this, api_user_pb.User, 1)); -}; - - -/** - * @param {?proto.api.User|undefined} value - * @return {!proto.api.ProfileResponse} returns this -*/ -proto.api.ProfileResponse.prototype.setUser = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.ProfileResponse} returns this - */ -proto.api.ProfileResponse.prototype.clearUser = function() { - return this.setUser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.ProfileResponse.prototype.hasUser = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated UserTenantLink tenants = 3; - * @return {!Array} - */ -proto.api.ProfileResponse.prototype.getTenantsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.UserTenantLink, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ProfileResponse} returns this -*/ -proto.api.ProfileResponse.prototype.setTenantsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.api.UserTenantLink=} opt_value - * @param {number=} opt_index - * @return {!proto.api.UserTenantLink} - */ -proto.api.ProfileResponse.prototype.addTenants = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.api.UserTenantLink, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ProfileResponse} returns this - */ -proto.api.ProfileResponse.prototype.clearTenantsList = function() { - return this.setTenantsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GlobalSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GlobalSearchRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GlobalSearchRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GlobalSearchRequest.toObject = function(includeInstance, msg) { - var f, obj = { - search: jspb.Message.getFieldWithDefault(msg, 1, ""), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - offset: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GlobalSearchRequest} - */ -proto.api.GlobalSearchRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GlobalSearchRequest; - return proto.api.GlobalSearchRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GlobalSearchRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GlobalSearchRequest} - */ -proto.api.GlobalSearchRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSearch(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt64()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setOffset(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GlobalSearchRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GlobalSearchRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GlobalSearchRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GlobalSearchRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSearch(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } -}; - - -/** - * optional string search = 1; - * @return {string} - */ -proto.api.GlobalSearchRequest.prototype.getSearch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchRequest} returns this - */ -proto.api.GlobalSearchRequest.prototype.setSearch = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int64 limit = 2; - * @return {number} - */ -proto.api.GlobalSearchRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GlobalSearchRequest} returns this - */ -proto.api.GlobalSearchRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional int64 offset = 3; - * @return {number} - */ -proto.api.GlobalSearchRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GlobalSearchRequest} returns this - */ -proto.api.GlobalSearchRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.GlobalSearchResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GlobalSearchResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GlobalSearchResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GlobalSearchResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GlobalSearchResponse.toObject = function(includeInstance, msg) { - var f, obj = { - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.GlobalSearchResult.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GlobalSearchResponse} - */ -proto.api.GlobalSearchResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GlobalSearchResponse; - return proto.api.GlobalSearchResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GlobalSearchResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GlobalSearchResponse} - */ -proto.api.GlobalSearchResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.GlobalSearchResult; - reader.readMessage(value,proto.api.GlobalSearchResult.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GlobalSearchResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GlobalSearchResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GlobalSearchResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GlobalSearchResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.api.GlobalSearchResult.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated GlobalSearchResult result = 1; - * @return {!Array} - */ -proto.api.GlobalSearchResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.GlobalSearchResult, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.GlobalSearchResponse} returns this -*/ -proto.api.GlobalSearchResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.api.GlobalSearchResult=} opt_value - * @param {number=} opt_index - * @return {!proto.api.GlobalSearchResult} - */ -proto.api.GlobalSearchResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.api.GlobalSearchResult, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.GlobalSearchResponse} returns this - */ -proto.api.GlobalSearchResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GlobalSearchResult.prototype.toObject = function(opt_includeInstance) { - return proto.api.GlobalSearchResult.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GlobalSearchResult} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GlobalSearchResult.toObject = function(includeInstance, msg) { - var f, obj = { - kind: jspb.Message.getFieldWithDefault(msg, 1, ""), - score: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - tenantId: jspb.Message.getFieldWithDefault(msg, 3, ""), - tenantName: jspb.Message.getFieldWithDefault(msg, 4, ""), - applicationId: jspb.Message.getFieldWithDefault(msg, 5, ""), - applicationName: jspb.Message.getFieldWithDefault(msg, 6, ""), - deviceDevEui: jspb.Message.getFieldWithDefault(msg, 7, ""), - deviceName: jspb.Message.getFieldWithDefault(msg, 8, ""), - gatewayId: jspb.Message.getFieldWithDefault(msg, 9, ""), - gatewayName: jspb.Message.getFieldWithDefault(msg, 10, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GlobalSearchResult} - */ -proto.api.GlobalSearchResult.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GlobalSearchResult; - return proto.api.GlobalSearchResult.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GlobalSearchResult} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GlobalSearchResult} - */ -proto.api.GlobalSearchResult.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setKind(value); - break; - case 2: - var value = /** @type {number} */ (reader.readFloat()); - msg.setScore(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationName(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceDevEui(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceName(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GlobalSearchResult.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GlobalSearchResult.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GlobalSearchResult} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GlobalSearchResult.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKind(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getScore(); - if (f !== 0.0) { - writer.writeFloat( - 2, - f - ); - } - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getTenantName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getApplicationName(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getDeviceDevEui(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getDeviceName(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getGatewayName(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } -}; - - -/** - * optional string kind = 1; - * @return {string} - */ -proto.api.GlobalSearchResult.prototype.getKind = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setKind = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional float score = 2; - * @return {number} - */ -proto.api.GlobalSearchResult.prototype.getScore = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setScore = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - -/** - * optional string tenant_id = 3; - * @return {string} - */ -proto.api.GlobalSearchResult.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string tenant_name = 4; - * @return {string} - */ -proto.api.GlobalSearchResult.prototype.getTenantName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setTenantName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string application_id = 5; - * @return {string} - */ -proto.api.GlobalSearchResult.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string application_name = 6; - * @return {string} - */ -proto.api.GlobalSearchResult.prototype.getApplicationName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setApplicationName = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string device_dev_eui = 7; - * @return {string} - */ -proto.api.GlobalSearchResult.prototype.getDeviceDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setDeviceDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string device_name = 8; - * @return {string} - */ -proto.api.GlobalSearchResult.prototype.getDeviceName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setDeviceName = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string gateway_id = 9; - * @return {string} - */ -proto.api.GlobalSearchResult.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional string gateway_name = 10; - * @return {string} - */ -proto.api.GlobalSearchResult.prototype.getGatewayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GlobalSearchResult} returns this - */ -proto.api.GlobalSearchResult.prototype.setGatewayName = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.SettingsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.SettingsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.SettingsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.SettingsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - openidConnect: (f = msg.getOpenidConnect()) && proto.api.OpenIdConnect.toObject(includeInstance, f), - oauth2: (f = msg.getOauth2()) && proto.api.OAuth2.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.SettingsResponse} - */ -proto.api.SettingsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.SettingsResponse; - return proto.api.SettingsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.SettingsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.SettingsResponse} - */ -proto.api.SettingsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.OpenIdConnect; - reader.readMessage(value,proto.api.OpenIdConnect.deserializeBinaryFromReader); - msg.setOpenidConnect(value); - break; - case 2: - var value = new proto.api.OAuth2; - reader.readMessage(value,proto.api.OAuth2.deserializeBinaryFromReader); - msg.setOauth2(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.SettingsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.SettingsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.SettingsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.SettingsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOpenidConnect(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.OpenIdConnect.serializeBinaryToWriter - ); - } - f = message.getOauth2(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.api.OAuth2.serializeBinaryToWriter - ); - } -}; - - -/** - * optional OpenIdConnect openid_connect = 1; - * @return {?proto.api.OpenIdConnect} - */ -proto.api.SettingsResponse.prototype.getOpenidConnect = function() { - return /** @type{?proto.api.OpenIdConnect} */ ( - jspb.Message.getWrapperField(this, proto.api.OpenIdConnect, 1)); -}; - - -/** - * @param {?proto.api.OpenIdConnect|undefined} value - * @return {!proto.api.SettingsResponse} returns this -*/ -proto.api.SettingsResponse.prototype.setOpenidConnect = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.SettingsResponse} returns this - */ -proto.api.SettingsResponse.prototype.clearOpenidConnect = function() { - return this.setOpenidConnect(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.SettingsResponse.prototype.hasOpenidConnect = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional OAuth2 oauth2 = 2; - * @return {?proto.api.OAuth2} - */ -proto.api.SettingsResponse.prototype.getOauth2 = function() { - return /** @type{?proto.api.OAuth2} */ ( - jspb.Message.getWrapperField(this, proto.api.OAuth2, 2)); -}; - - -/** - * @param {?proto.api.OAuth2|undefined} value - * @return {!proto.api.SettingsResponse} returns this -*/ -proto.api.SettingsResponse.prototype.setOauth2 = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.SettingsResponse} returns this - */ -proto.api.SettingsResponse.prototype.clearOauth2 = function() { - return this.setOauth2(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.SettingsResponse.prototype.hasOauth2 = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.OpenIdConnect.prototype.toObject = function(opt_includeInstance) { - return proto.api.OpenIdConnect.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.OpenIdConnect} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OpenIdConnect.toObject = function(includeInstance, msg) { - var f, obj = { - enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - loginUrl: jspb.Message.getFieldWithDefault(msg, 2, ""), - loginLabel: jspb.Message.getFieldWithDefault(msg, 3, ""), - logoutUrl: jspb.Message.getFieldWithDefault(msg, 4, ""), - loginRedirect: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.OpenIdConnect} - */ -proto.api.OpenIdConnect.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.OpenIdConnect; - return proto.api.OpenIdConnect.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.OpenIdConnect} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.OpenIdConnect} - */ -proto.api.OpenIdConnect.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnabled(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setLoginUrl(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLoginLabel(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setLogoutUrl(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setLoginRedirect(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.OpenIdConnect.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.OpenIdConnect.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.OpenIdConnect} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OpenIdConnect.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEnabled(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getLoginUrl(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLoginLabel(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getLogoutUrl(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getLoginRedirect(); - if (f) { - writer.writeBool( - 5, - f - ); - } -}; - - -/** - * optional bool enabled = 1; - * @return {boolean} - */ -proto.api.OpenIdConnect.prototype.getEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.OpenIdConnect} returns this - */ -proto.api.OpenIdConnect.prototype.setEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional string login_url = 2; - * @return {string} - */ -proto.api.OpenIdConnect.prototype.getLoginUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OpenIdConnect} returns this - */ -proto.api.OpenIdConnect.prototype.setLoginUrl = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string login_label = 3; - * @return {string} - */ -proto.api.OpenIdConnect.prototype.getLoginLabel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OpenIdConnect} returns this - */ -proto.api.OpenIdConnect.prototype.setLoginLabel = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string logout_url = 4; - * @return {string} - */ -proto.api.OpenIdConnect.prototype.getLogoutUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OpenIdConnect} returns this - */ -proto.api.OpenIdConnect.prototype.setLogoutUrl = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool login_redirect = 5; - * @return {boolean} - */ -proto.api.OpenIdConnect.prototype.getLoginRedirect = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.OpenIdConnect} returns this - */ -proto.api.OpenIdConnect.prototype.setLoginRedirect = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.OAuth2.prototype.toObject = function(opt_includeInstance) { - return proto.api.OAuth2.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.OAuth2} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OAuth2.toObject = function(includeInstance, msg) { - var f, obj = { - enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - loginUrl: jspb.Message.getFieldWithDefault(msg, 2, ""), - loginLabel: jspb.Message.getFieldWithDefault(msg, 3, ""), - logoutUrl: jspb.Message.getFieldWithDefault(msg, 4, ""), - loginRedirect: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.OAuth2} - */ -proto.api.OAuth2.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.OAuth2; - return proto.api.OAuth2.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.OAuth2} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.OAuth2} - */ -proto.api.OAuth2.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnabled(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setLoginUrl(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLoginLabel(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setLogoutUrl(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setLoginRedirect(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.OAuth2.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.OAuth2.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.OAuth2} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OAuth2.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEnabled(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getLoginUrl(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLoginLabel(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getLogoutUrl(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getLoginRedirect(); - if (f) { - writer.writeBool( - 5, - f - ); - } -}; - - -/** - * optional bool enabled = 1; - * @return {boolean} - */ -proto.api.OAuth2.prototype.getEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.OAuth2} returns this - */ -proto.api.OAuth2.prototype.setEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional string login_url = 2; - * @return {string} - */ -proto.api.OAuth2.prototype.getLoginUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OAuth2} returns this - */ -proto.api.OAuth2.prototype.setLoginUrl = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string login_label = 3; - * @return {string} - */ -proto.api.OAuth2.prototype.getLoginLabel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OAuth2} returns this - */ -proto.api.OAuth2.prototype.setLoginLabel = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string logout_url = 4; - * @return {string} - */ -proto.api.OAuth2.prototype.getLogoutUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OAuth2} returns this - */ -proto.api.OAuth2.prototype.setLogoutUrl = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool login_redirect = 5; - * @return {boolean} - */ -proto.api.OAuth2.prototype.getLoginRedirect = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.OAuth2} returns this - */ -proto.api.OAuth2.prototype.setLoginRedirect = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.OpenIdConnectLoginRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.OpenIdConnectLoginRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.OpenIdConnectLoginRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OpenIdConnectLoginRequest.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, ""), - state: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.OpenIdConnectLoginRequest} - */ -proto.api.OpenIdConnectLoginRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.OpenIdConnectLoginRequest; - return proto.api.OpenIdConnectLoginRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.OpenIdConnectLoginRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.OpenIdConnectLoginRequest} - */ -proto.api.OpenIdConnectLoginRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setCode(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setState(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.OpenIdConnectLoginRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.OpenIdConnectLoginRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.OpenIdConnectLoginRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OpenIdConnectLoginRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getState(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string code = 1; - * @return {string} - */ -proto.api.OpenIdConnectLoginRequest.prototype.getCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OpenIdConnectLoginRequest} returns this - */ -proto.api.OpenIdConnectLoginRequest.prototype.setCode = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string state = 2; - * @return {string} - */ -proto.api.OpenIdConnectLoginRequest.prototype.getState = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OpenIdConnectLoginRequest} returns this - */ -proto.api.OpenIdConnectLoginRequest.prototype.setState = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.OpenIdConnectLoginResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.OpenIdConnectLoginResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.OpenIdConnectLoginResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OpenIdConnectLoginResponse.toObject = function(includeInstance, msg) { - var f, obj = { - token: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.OpenIdConnectLoginResponse} - */ -proto.api.OpenIdConnectLoginResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.OpenIdConnectLoginResponse; - return proto.api.OpenIdConnectLoginResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.OpenIdConnectLoginResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.OpenIdConnectLoginResponse} - */ -proto.api.OpenIdConnectLoginResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setToken(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.OpenIdConnectLoginResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.OpenIdConnectLoginResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.OpenIdConnectLoginResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OpenIdConnectLoginResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getToken(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string token = 1; - * @return {string} - */ -proto.api.OpenIdConnectLoginResponse.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OpenIdConnectLoginResponse} returns this - */ -proto.api.OpenIdConnectLoginResponse.prototype.setToken = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.OAuth2LoginRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.OAuth2LoginRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.OAuth2LoginRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OAuth2LoginRequest.toObject = function(includeInstance, msg) { - var f, obj = { - code: jspb.Message.getFieldWithDefault(msg, 1, ""), - state: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.OAuth2LoginRequest} - */ -proto.api.OAuth2LoginRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.OAuth2LoginRequest; - return proto.api.OAuth2LoginRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.OAuth2LoginRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.OAuth2LoginRequest} - */ -proto.api.OAuth2LoginRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setCode(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setState(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.OAuth2LoginRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.OAuth2LoginRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.OAuth2LoginRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OAuth2LoginRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCode(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getState(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string code = 1; - * @return {string} - */ -proto.api.OAuth2LoginRequest.prototype.getCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OAuth2LoginRequest} returns this - */ -proto.api.OAuth2LoginRequest.prototype.setCode = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string state = 2; - * @return {string} - */ -proto.api.OAuth2LoginRequest.prototype.getState = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OAuth2LoginRequest} returns this - */ -proto.api.OAuth2LoginRequest.prototype.setState = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.OAuth2LoginResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.OAuth2LoginResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.OAuth2LoginResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OAuth2LoginResponse.toObject = function(includeInstance, msg) { - var f, obj = { - token: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.OAuth2LoginResponse} - */ -proto.api.OAuth2LoginResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.OAuth2LoginResponse; - return proto.api.OAuth2LoginResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.OAuth2LoginResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.OAuth2LoginResponse} - */ -proto.api.OAuth2LoginResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setToken(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.OAuth2LoginResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.OAuth2LoginResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.OAuth2LoginResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.OAuth2LoginResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getToken(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string token = 1; - * @return {string} - */ -proto.api.OAuth2LoginResponse.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.OAuth2LoginResponse} returns this - */ -proto.api.OAuth2LoginResponse.prototype.setToken = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDevicesSummaryRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDevicesSummaryRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDevicesSummaryRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDevicesSummaryRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDevicesSummaryRequest} - */ -proto.api.GetDevicesSummaryRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDevicesSummaryRequest; - return proto.api.GetDevicesSummaryRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDevicesSummaryRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDevicesSummaryRequest} - */ -proto.api.GetDevicesSummaryRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDevicesSummaryRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDevicesSummaryRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDevicesSummaryRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDevicesSummaryRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.api.GetDevicesSummaryRequest.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetDevicesSummaryRequest} returns this - */ -proto.api.GetDevicesSummaryRequest.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetDevicesSummaryResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetDevicesSummaryResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetDevicesSummaryResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDevicesSummaryResponse.toObject = function(includeInstance, msg) { - var f, obj = { - activeCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - inactiveCount: jspb.Message.getFieldWithDefault(msg, 2, 0), - drCountMap: (f = msg.getDrCountMap()) ? f.toObject(includeInstance, undefined) : [], - neverSeenCount: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetDevicesSummaryResponse} - */ -proto.api.GetDevicesSummaryResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetDevicesSummaryResponse; - return proto.api.GetDevicesSummaryResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetDevicesSummaryResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetDevicesSummaryResponse} - */ -proto.api.GetDevicesSummaryResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setActiveCount(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setInactiveCount(value); - break; - case 3: - var value = msg.getDrCountMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readUint32, null, 0, 0); - }); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setNeverSeenCount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetDevicesSummaryResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetDevicesSummaryResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetDevicesSummaryResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetDevicesSummaryResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getActiveCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getInactiveCount(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getDrCountMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeUint32, jspb.BinaryWriter.prototype.writeUint32); - } - f = message.getNeverSeenCount(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } -}; - - -/** - * optional uint32 active_count = 1; - * @return {number} - */ -proto.api.GetDevicesSummaryResponse.prototype.getActiveCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetDevicesSummaryResponse} returns this - */ -proto.api.GetDevicesSummaryResponse.prototype.setActiveCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 inactive_count = 2; - * @return {number} - */ -proto.api.GetDevicesSummaryResponse.prototype.getInactiveCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetDevicesSummaryResponse} returns this - */ -proto.api.GetDevicesSummaryResponse.prototype.setInactiveCount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * map dr_count = 3; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.GetDevicesSummaryResponse.prototype.getDrCountMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 3, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.GetDevicesSummaryResponse} returns this - */ -proto.api.GetDevicesSummaryResponse.prototype.clearDrCountMap = function() { - this.getDrCountMap().clear(); - return this;}; - - -/** - * optional uint32 never_seen_count = 4; - * @return {number} - */ -proto.api.GetDevicesSummaryResponse.prototype.getNeverSeenCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetDevicesSummaryResponse} returns this - */ -proto.api.GetDevicesSummaryResponse.prototype.setNeverSeenCount = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetGatewaysSummaryRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetGatewaysSummaryRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetGatewaysSummaryRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewaysSummaryRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetGatewaysSummaryRequest} - */ -proto.api.GetGatewaysSummaryRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetGatewaysSummaryRequest; - return proto.api.GetGatewaysSummaryRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetGatewaysSummaryRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetGatewaysSummaryRequest} - */ -proto.api.GetGatewaysSummaryRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetGatewaysSummaryRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetGatewaysSummaryRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetGatewaysSummaryRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewaysSummaryRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.api.GetGatewaysSummaryRequest.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetGatewaysSummaryRequest} returns this - */ -proto.api.GetGatewaysSummaryRequest.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetGatewaysSummaryResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetGatewaysSummaryResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetGatewaysSummaryResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewaysSummaryResponse.toObject = function(includeInstance, msg) { - var f, obj = { - onlineCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - offlineCount: jspb.Message.getFieldWithDefault(msg, 2, 0), - neverSeenCount: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetGatewaysSummaryResponse} - */ -proto.api.GetGatewaysSummaryResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetGatewaysSummaryResponse; - return proto.api.GetGatewaysSummaryResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetGatewaysSummaryResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetGatewaysSummaryResponse} - */ -proto.api.GetGatewaysSummaryResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOnlineCount(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOfflineCount(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setNeverSeenCount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetGatewaysSummaryResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetGatewaysSummaryResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetGatewaysSummaryResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetGatewaysSummaryResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOnlineCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOfflineCount(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getNeverSeenCount(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } -}; - - -/** - * optional uint32 online_count = 1; - * @return {number} - */ -proto.api.GetGatewaysSummaryResponse.prototype.getOnlineCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetGatewaysSummaryResponse} returns this - */ -proto.api.GetGatewaysSummaryResponse.prototype.setOnlineCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offline_count = 2; - * @return {number} - */ -proto.api.GetGatewaysSummaryResponse.prototype.getOfflineCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetGatewaysSummaryResponse} returns this - */ -proto.api.GetGatewaysSummaryResponse.prototype.setOfflineCount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint32 never_seen_count = 3; - * @return {number} - */ -proto.api.GetGatewaysSummaryResponse.prototype.getNeverSeenCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetGatewaysSummaryResponse} returns this - */ -proto.api.GetGatewaysSummaryResponse.prototype.setNeverSeenCount = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.LogItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.LogItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.LogItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LogItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - body: jspb.Message.getFieldWithDefault(msg, 4, ""), - propertiesMap: (f = msg.getPropertiesMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.LogItem} - */ -proto.api.LogItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.LogItem; - return proto.api.LogItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.LogItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.LogItem} - */ -proto.api.LogItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setBody(value); - break; - case 5: - var value = msg.getPropertiesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.LogItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.LogItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.LogItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.LogItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getBody(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getPropertiesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.LogItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LogItem} returns this - */ -proto.api.LogItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp time = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.LogItem.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.LogItem} returns this -*/ -proto.api.LogItem.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.LogItem} returns this - */ -proto.api.LogItem.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.LogItem.prototype.hasTime = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.api.LogItem.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LogItem} returns this - */ -proto.api.LogItem.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string body = 4; - * @return {string} - */ -proto.api.LogItem.prototype.getBody = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.LogItem} returns this - */ -proto.api.LogItem.prototype.setBody = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * map properties = 5; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.LogItem.prototype.getPropertiesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 5, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.LogItem} returns this - */ -proto.api.LogItem.prototype.clearPropertiesMap = function() { - this.getPropertiesMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.StreamGatewayFramesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.StreamGatewayFramesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.StreamGatewayFramesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.StreamGatewayFramesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.StreamGatewayFramesRequest} - */ -proto.api.StreamGatewayFramesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.StreamGatewayFramesRequest; - return proto.api.StreamGatewayFramesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.StreamGatewayFramesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.StreamGatewayFramesRequest} - */ -proto.api.StreamGatewayFramesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.StreamGatewayFramesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.StreamGatewayFramesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.StreamGatewayFramesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.StreamGatewayFramesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string gateway_id = 1; - * @return {string} - */ -proto.api.StreamGatewayFramesRequest.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.StreamGatewayFramesRequest} returns this - */ -proto.api.StreamGatewayFramesRequest.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.StreamDeviceFramesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.StreamDeviceFramesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.StreamDeviceFramesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.StreamDeviceFramesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.StreamDeviceFramesRequest} - */ -proto.api.StreamDeviceFramesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.StreamDeviceFramesRequest; - return proto.api.StreamDeviceFramesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.StreamDeviceFramesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.StreamDeviceFramesRequest} - */ -proto.api.StreamDeviceFramesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.StreamDeviceFramesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.StreamDeviceFramesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.StreamDeviceFramesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.StreamDeviceFramesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.StreamDeviceFramesRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.StreamDeviceFramesRequest} returns this - */ -proto.api.StreamDeviceFramesRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.StreamDeviceEventsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.StreamDeviceEventsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.StreamDeviceEventsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.StreamDeviceEventsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.StreamDeviceEventsRequest} - */ -proto.api.StreamDeviceEventsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.StreamDeviceEventsRequest; - return proto.api.StreamDeviceEventsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.StreamDeviceEventsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.StreamDeviceEventsRequest} - */ -proto.api.StreamDeviceEventsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.StreamDeviceEventsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.StreamDeviceEventsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.StreamDeviceEventsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.StreamDeviceEventsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.StreamDeviceEventsRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.StreamDeviceEventsRequest} returns this - */ -proto.api.StreamDeviceEventsRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListRegionsResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListRegionsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListRegionsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListRegionsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRegionsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - regionsList: jspb.Message.toObjectList(msg.getRegionsList(), - proto.api.RegionListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListRegionsResponse} - */ -proto.api.ListRegionsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListRegionsResponse; - return proto.api.ListRegionsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListRegionsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListRegionsResponse} - */ -proto.api.ListRegionsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.RegionListItem; - reader.readMessage(value,proto.api.RegionListItem.deserializeBinaryFromReader); - msg.addRegions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListRegionsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListRegionsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListRegionsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRegionsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRegionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.api.RegionListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated RegionListItem regions = 1; - * @return {!Array} - */ -proto.api.ListRegionsResponse.prototype.getRegionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.RegionListItem, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListRegionsResponse} returns this -*/ -proto.api.ListRegionsResponse.prototype.setRegionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.api.RegionListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.RegionListItem} - */ -proto.api.ListRegionsResponse.prototype.addRegions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.api.RegionListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListRegionsResponse} returns this - */ -proto.api.ListRegionsResponse.prototype.clearRegionsList = function() { - return this.setRegionsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.RegionListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.RegionListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.RegionListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RegionListItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - region: jspb.Message.getFieldWithDefault(msg, 2, 0), - description: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.RegionListItem} - */ -proto.api.RegionListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.RegionListItem; - return proto.api.RegionListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.RegionListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.RegionListItem} - */ -proto.api.RegionListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {!proto.common.Region} */ (reader.readEnum()); - msg.setRegion(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.RegionListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.RegionListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.RegionListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RegionListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRegion(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.RegionListItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RegionListItem} returns this - */ -proto.api.RegionListItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional common.Region region = 2; - * @return {!proto.common.Region} - */ -proto.api.RegionListItem.prototype.getRegion = function() { - return /** @type {!proto.common.Region} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.common.Region} value - * @return {!proto.api.RegionListItem} returns this - */ -proto.api.RegionListItem.prototype.setRegion = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.api.RegionListItem.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RegionListItem} returns this - */ -proto.api.RegionListItem.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetRegionRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetRegionRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetRegionRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetRegionRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetRegionRequest} - */ -proto.api.GetRegionRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetRegionRequest; - return proto.api.GetRegionRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetRegionRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetRegionRequest} - */ -proto.api.GetRegionRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetRegionRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetRegionRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetRegionRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetRegionRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.GetRegionRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetRegionRequest} returns this - */ -proto.api.GetRegionRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.GetRegionResponse.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetRegionResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetRegionResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetRegionResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetRegionResponse.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - region: jspb.Message.getFieldWithDefault(msg, 2, 0), - userInfo: jspb.Message.getFieldWithDefault(msg, 3, ""), - uplinkChannelsList: jspb.Message.toObjectList(msg.getUplinkChannelsList(), - proto.api.RegionChannel.toObject, includeInstance), - rx1Delay: jspb.Message.getFieldWithDefault(msg, 5, 0), - rx1DrOffset: jspb.Message.getFieldWithDefault(msg, 6, 0), - rx2Dr: jspb.Message.getFieldWithDefault(msg, 7, 0), - rx2Frequency: jspb.Message.getFieldWithDefault(msg, 8, 0), - classBPingSlotDr: jspb.Message.getFieldWithDefault(msg, 9, 0), - classBPingSlotFrequency: jspb.Message.getFieldWithDefault(msg, 10, 0), - description: jspb.Message.getFieldWithDefault(msg, 11, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetRegionResponse} - */ -proto.api.GetRegionResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetRegionResponse; - return proto.api.GetRegionResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetRegionResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetRegionResponse} - */ -proto.api.GetRegionResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {!proto.common.Region} */ (reader.readEnum()); - msg.setRegion(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setUserInfo(value); - break; - case 4: - var value = new proto.api.RegionChannel; - reader.readMessage(value,proto.api.RegionChannel.deserializeBinaryFromReader); - msg.addUplinkChannels(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRx1Delay(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRx1DrOffset(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRx2Dr(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRx2Frequency(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotDr(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotFrequency(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetRegionResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetRegionResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetRegionResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetRegionResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRegion(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getUserInfo(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getUplinkChannelsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.api.RegionChannel.serializeBinaryToWriter - ); - } - f = message.getRx1Delay(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getRx1DrOffset(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } - f = message.getRx2Dr(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getRx2Frequency(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getClassBPingSlotDr(); - if (f !== 0) { - writer.writeUint32( - 9, - f - ); - } - f = message.getClassBPingSlotFrequency(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.GetRegionResponse.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional common.Region region = 2; - * @return {!proto.common.Region} - */ -proto.api.GetRegionResponse.prototype.getRegion = function() { - return /** @type {!proto.common.Region} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.common.Region} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setRegion = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string user_info = 3; - * @return {string} - */ -proto.api.GetRegionResponse.prototype.getUserInfo = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setUserInfo = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated RegionChannel uplink_channels = 4; - * @return {!Array} - */ -proto.api.GetRegionResponse.prototype.getUplinkChannelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.RegionChannel, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.GetRegionResponse} returns this -*/ -proto.api.GetRegionResponse.prototype.setUplinkChannelsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.api.RegionChannel=} opt_value - * @param {number=} opt_index - * @return {!proto.api.RegionChannel} - */ -proto.api.GetRegionResponse.prototype.addUplinkChannels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.api.RegionChannel, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.clearUplinkChannelsList = function() { - return this.setUplinkChannelsList([]); -}; - - -/** - * optional uint32 rx1_delay = 5; - * @return {number} - */ -proto.api.GetRegionResponse.prototype.getRx1Delay = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setRx1Delay = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional uint32 rx1_dr_offset = 6; - * @return {number} - */ -proto.api.GetRegionResponse.prototype.getRx1DrOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setRx1DrOffset = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional uint32 rx2_dr = 7; - * @return {number} - */ -proto.api.GetRegionResponse.prototype.getRx2Dr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setRx2Dr = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional uint32 rx2_frequency = 8; - * @return {number} - */ -proto.api.GetRegionResponse.prototype.getRx2Frequency = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setRx2Frequency = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional uint32 class_b_ping_slot_dr = 9; - * @return {number} - */ -proto.api.GetRegionResponse.prototype.getClassBPingSlotDr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setClassBPingSlotDr = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - - -/** - * optional uint32 class_b_ping_slot_frequency = 10; - * @return {number} - */ -proto.api.GetRegionResponse.prototype.getClassBPingSlotFrequency = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setClassBPingSlotFrequency = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional string description = 11; - * @return {string} - */ -proto.api.GetRegionResponse.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetRegionResponse} returns this - */ -proto.api.GetRegionResponse.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.RegionChannel.prototype.toObject = function(opt_includeInstance) { - return proto.api.RegionChannel.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.RegionChannel} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RegionChannel.toObject = function(includeInstance, msg) { - var f, obj = { - frequency: jspb.Message.getFieldWithDefault(msg, 1, 0), - drMin: jspb.Message.getFieldWithDefault(msg, 2, 0), - drMax: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.RegionChannel} - */ -proto.api.RegionChannel.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.RegionChannel; - return proto.api.RegionChannel.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.RegionChannel} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.RegionChannel} - */ -proto.api.RegionChannel.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFrequency(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDrMin(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDrMax(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.RegionChannel.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.RegionChannel.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.RegionChannel} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RegionChannel.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFrequency(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getDrMin(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getDrMax(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } -}; - - -/** - * optional uint32 frequency = 1; - * @return {number} - */ -proto.api.RegionChannel.prototype.getFrequency = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.RegionChannel} returns this - */ -proto.api.RegionChannel.prototype.setFrequency = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 dr_min = 2; - * @return {number} - */ -proto.api.RegionChannel.prototype.getDrMin = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.RegionChannel} returns this - */ -proto.api.RegionChannel.prototype.setDrMin = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint32 dr_max = 3; - * @return {number} - */ -proto.api.RegionChannel.prototype.getDrMax = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.RegionChannel} returns this - */ -proto.api.RegionChannel.prototype.setDrMax = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetVersionResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetVersionResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetVersionResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetVersionResponse.toObject = function(includeInstance, msg) { - var f, obj = { - version: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetVersionResponse} - */ -proto.api.GetVersionResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetVersionResponse; - return proto.api.GetVersionResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetVersionResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetVersionResponse} - */ -proto.api.GetVersionResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetVersionResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetVersionResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetVersionResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetVersionResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string version = 1; - * @return {string} - */ -proto.api.GetVersionResponse.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetVersionResponse} returns this - */ -proto.api.GetVersionResponse.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -goog.object.extend(exports, proto.api); diff --git a/api/js/api/multicast_group_grpc_pb.d.ts b/api/js/api/multicast_group_grpc_pb.d.ts deleted file mode 100644 index 94401685..00000000 --- a/api/js/api/multicast_group_grpc_pb.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -// package: api -// file: api/multicast_group.proto - -import * as api_multicast_group_pb from "../api/multicast_group_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; -import * as grpc from "@grpc/grpc-js"; - -interface IMulticastGroupServiceService extends grpc.ServiceDefinition { - create: grpc.MethodDefinition; - get: grpc.MethodDefinition; - update: grpc.MethodDefinition; - delete: grpc.MethodDefinition; - list: grpc.MethodDefinition; - addDevice: grpc.MethodDefinition; - removeDevice: grpc.MethodDefinition; - addGateway: grpc.MethodDefinition; - removeGateway: grpc.MethodDefinition; - enqueue: grpc.MethodDefinition; - flushQueue: grpc.MethodDefinition; - listQueue: grpc.MethodDefinition; -} - -export const MulticastGroupServiceService: IMulticastGroupServiceService; - -export interface IMulticastGroupServiceServer extends grpc.UntypedServiceImplementation { - create: grpc.handleUnaryCall; - get: grpc.handleUnaryCall; - update: grpc.handleUnaryCall; - delete: grpc.handleUnaryCall; - list: grpc.handleUnaryCall; - addDevice: grpc.handleUnaryCall; - removeDevice: grpc.handleUnaryCall; - addGateway: grpc.handleUnaryCall; - removeGateway: grpc.handleUnaryCall; - enqueue: grpc.handleUnaryCall; - flushQueue: grpc.handleUnaryCall; - listQueue: grpc.handleUnaryCall; -} - -export class MulticastGroupServiceClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - create(argument: api_multicast_group_pb.CreateMulticastGroupRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - create(argument: api_multicast_group_pb.CreateMulticastGroupRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - create(argument: api_multicast_group_pb.CreateMulticastGroupRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_multicast_group_pb.GetMulticastGroupRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_multicast_group_pb.GetMulticastGroupRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_multicast_group_pb.GetMulticastGroupRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_multicast_group_pb.UpdateMulticastGroupRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_multicast_group_pb.UpdateMulticastGroupRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_multicast_group_pb.UpdateMulticastGroupRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_multicast_group_pb.DeleteMulticastGroupRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_multicast_group_pb.DeleteMulticastGroupRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_multicast_group_pb.DeleteMulticastGroupRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_multicast_group_pb.ListMulticastGroupsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_multicast_group_pb.ListMulticastGroupsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_multicast_group_pb.ListMulticastGroupsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - addDevice(argument: api_multicast_group_pb.AddDeviceToMulticastGroupRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - addDevice(argument: api_multicast_group_pb.AddDeviceToMulticastGroupRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - addDevice(argument: api_multicast_group_pb.AddDeviceToMulticastGroupRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - removeDevice(argument: api_multicast_group_pb.RemoveDeviceFromMulticastGroupRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - removeDevice(argument: api_multicast_group_pb.RemoveDeviceFromMulticastGroupRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - removeDevice(argument: api_multicast_group_pb.RemoveDeviceFromMulticastGroupRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - addGateway(argument: api_multicast_group_pb.AddGatewayToMulticastGroupRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - addGateway(argument: api_multicast_group_pb.AddGatewayToMulticastGroupRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - addGateway(argument: api_multicast_group_pb.AddGatewayToMulticastGroupRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - removeGateway(argument: api_multicast_group_pb.RemoveGatewayFromMulticastGroupRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - removeGateway(argument: api_multicast_group_pb.RemoveGatewayFromMulticastGroupRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - removeGateway(argument: api_multicast_group_pb.RemoveGatewayFromMulticastGroupRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - enqueue(argument: api_multicast_group_pb.EnqueueMulticastGroupQueueItemRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - enqueue(argument: api_multicast_group_pb.EnqueueMulticastGroupQueueItemRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - enqueue(argument: api_multicast_group_pb.EnqueueMulticastGroupQueueItemRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - flushQueue(argument: api_multicast_group_pb.FlushMulticastGroupQueueRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - flushQueue(argument: api_multicast_group_pb.FlushMulticastGroupQueueRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - flushQueue(argument: api_multicast_group_pb.FlushMulticastGroupQueueRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listQueue(argument: api_multicast_group_pb.ListMulticastGroupQueueRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listQueue(argument: api_multicast_group_pb.ListMulticastGroupQueueRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listQueue(argument: api_multicast_group_pb.ListMulticastGroupQueueRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; -} diff --git a/api/js/api/multicast_group_grpc_pb.js b/api/js/api/multicast_group_grpc_pb.js deleted file mode 100644 index 4eacf477..00000000 --- a/api/js/api/multicast_group_grpc_pb.js +++ /dev/null @@ -1,358 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var api_multicast_group_pb = require('../api/multicast_group_pb.js'); -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -var common_common_pb = require('../common/common_pb.js'); - -function serialize_api_AddDeviceToMulticastGroupRequest(arg) { - if (!(arg instanceof api_multicast_group_pb.AddDeviceToMulticastGroupRequest)) { - throw new Error('Expected argument of type api.AddDeviceToMulticastGroupRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_AddDeviceToMulticastGroupRequest(buffer_arg) { - return api_multicast_group_pb.AddDeviceToMulticastGroupRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_AddGatewayToMulticastGroupRequest(arg) { - if (!(arg instanceof api_multicast_group_pb.AddGatewayToMulticastGroupRequest)) { - throw new Error('Expected argument of type api.AddGatewayToMulticastGroupRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_AddGatewayToMulticastGroupRequest(buffer_arg) { - return api_multicast_group_pb.AddGatewayToMulticastGroupRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateMulticastGroupRequest(arg) { - if (!(arg instanceof api_multicast_group_pb.CreateMulticastGroupRequest)) { - throw new Error('Expected argument of type api.CreateMulticastGroupRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateMulticastGroupRequest(buffer_arg) { - return api_multicast_group_pb.CreateMulticastGroupRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateMulticastGroupResponse(arg) { - if (!(arg instanceof api_multicast_group_pb.CreateMulticastGroupResponse)) { - throw new Error('Expected argument of type api.CreateMulticastGroupResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateMulticastGroupResponse(buffer_arg) { - return api_multicast_group_pb.CreateMulticastGroupResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteMulticastGroupRequest(arg) { - if (!(arg instanceof api_multicast_group_pb.DeleteMulticastGroupRequest)) { - throw new Error('Expected argument of type api.DeleteMulticastGroupRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteMulticastGroupRequest(buffer_arg) { - return api_multicast_group_pb.DeleteMulticastGroupRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_EnqueueMulticastGroupQueueItemRequest(arg) { - if (!(arg instanceof api_multicast_group_pb.EnqueueMulticastGroupQueueItemRequest)) { - throw new Error('Expected argument of type api.EnqueueMulticastGroupQueueItemRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_EnqueueMulticastGroupQueueItemRequest(buffer_arg) { - return api_multicast_group_pb.EnqueueMulticastGroupQueueItemRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_EnqueueMulticastGroupQueueItemResponse(arg) { - if (!(arg instanceof api_multicast_group_pb.EnqueueMulticastGroupQueueItemResponse)) { - throw new Error('Expected argument of type api.EnqueueMulticastGroupQueueItemResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_EnqueueMulticastGroupQueueItemResponse(buffer_arg) { - return api_multicast_group_pb.EnqueueMulticastGroupQueueItemResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_FlushMulticastGroupQueueRequest(arg) { - if (!(arg instanceof api_multicast_group_pb.FlushMulticastGroupQueueRequest)) { - throw new Error('Expected argument of type api.FlushMulticastGroupQueueRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_FlushMulticastGroupQueueRequest(buffer_arg) { - return api_multicast_group_pb.FlushMulticastGroupQueueRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetMulticastGroupRequest(arg) { - if (!(arg instanceof api_multicast_group_pb.GetMulticastGroupRequest)) { - throw new Error('Expected argument of type api.GetMulticastGroupRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetMulticastGroupRequest(buffer_arg) { - return api_multicast_group_pb.GetMulticastGroupRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetMulticastGroupResponse(arg) { - if (!(arg instanceof api_multicast_group_pb.GetMulticastGroupResponse)) { - throw new Error('Expected argument of type api.GetMulticastGroupResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetMulticastGroupResponse(buffer_arg) { - return api_multicast_group_pb.GetMulticastGroupResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListMulticastGroupQueueRequest(arg) { - if (!(arg instanceof api_multicast_group_pb.ListMulticastGroupQueueRequest)) { - throw new Error('Expected argument of type api.ListMulticastGroupQueueRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListMulticastGroupQueueRequest(buffer_arg) { - return api_multicast_group_pb.ListMulticastGroupQueueRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListMulticastGroupQueueResponse(arg) { - if (!(arg instanceof api_multicast_group_pb.ListMulticastGroupQueueResponse)) { - throw new Error('Expected argument of type api.ListMulticastGroupQueueResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListMulticastGroupQueueResponse(buffer_arg) { - return api_multicast_group_pb.ListMulticastGroupQueueResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListMulticastGroupsRequest(arg) { - if (!(arg instanceof api_multicast_group_pb.ListMulticastGroupsRequest)) { - throw new Error('Expected argument of type api.ListMulticastGroupsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListMulticastGroupsRequest(buffer_arg) { - return api_multicast_group_pb.ListMulticastGroupsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListMulticastGroupsResponse(arg) { - if (!(arg instanceof api_multicast_group_pb.ListMulticastGroupsResponse)) { - throw new Error('Expected argument of type api.ListMulticastGroupsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListMulticastGroupsResponse(buffer_arg) { - return api_multicast_group_pb.ListMulticastGroupsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_RemoveDeviceFromMulticastGroupRequest(arg) { - if (!(arg instanceof api_multicast_group_pb.RemoveDeviceFromMulticastGroupRequest)) { - throw new Error('Expected argument of type api.RemoveDeviceFromMulticastGroupRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_RemoveDeviceFromMulticastGroupRequest(buffer_arg) { - return api_multicast_group_pb.RemoveDeviceFromMulticastGroupRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_RemoveGatewayFromMulticastGroupRequest(arg) { - if (!(arg instanceof api_multicast_group_pb.RemoveGatewayFromMulticastGroupRequest)) { - throw new Error('Expected argument of type api.RemoveGatewayFromMulticastGroupRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_RemoveGatewayFromMulticastGroupRequest(buffer_arg) { - return api_multicast_group_pb.RemoveGatewayFromMulticastGroupRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateMulticastGroupRequest(arg) { - if (!(arg instanceof api_multicast_group_pb.UpdateMulticastGroupRequest)) { - throw new Error('Expected argument of type api.UpdateMulticastGroupRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateMulticastGroupRequest(buffer_arg) { - return api_multicast_group_pb.UpdateMulticastGroupRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_google_protobuf_Empty(arg) { - if (!(arg instanceof google_protobuf_empty_pb.Empty)) { - throw new Error('Expected argument of type google.protobuf.Empty'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_google_protobuf_Empty(buffer_arg) { - return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -// MulticastGroupService is the service managing multicast-groups. -var MulticastGroupServiceService = exports.MulticastGroupServiceService = { - // Create the given multicast group. -create: { - path: '/api.MulticastGroupService/Create', - requestStream: false, - responseStream: false, - requestType: api_multicast_group_pb.CreateMulticastGroupRequest, - responseType: api_multicast_group_pb.CreateMulticastGroupResponse, - requestSerialize: serialize_api_CreateMulticastGroupRequest, - requestDeserialize: deserialize_api_CreateMulticastGroupRequest, - responseSerialize: serialize_api_CreateMulticastGroupResponse, - responseDeserialize: deserialize_api_CreateMulticastGroupResponse, - }, - // Get returns the multicast group for the given ID. -get: { - path: '/api.MulticastGroupService/Get', - requestStream: false, - responseStream: false, - requestType: api_multicast_group_pb.GetMulticastGroupRequest, - responseType: api_multicast_group_pb.GetMulticastGroupResponse, - requestSerialize: serialize_api_GetMulticastGroupRequest, - requestDeserialize: deserialize_api_GetMulticastGroupRequest, - responseSerialize: serialize_api_GetMulticastGroupResponse, - responseDeserialize: deserialize_api_GetMulticastGroupResponse, - }, - // Update the given multicast group. -update: { - path: '/api.MulticastGroupService/Update', - requestStream: false, - responseStream: false, - requestType: api_multicast_group_pb.UpdateMulticastGroupRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateMulticastGroupRequest, - requestDeserialize: deserialize_api_UpdateMulticastGroupRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete the multicast-group with the given ID. -delete: { - path: '/api.MulticastGroupService/Delete', - requestStream: false, - responseStream: false, - requestType: api_multicast_group_pb.DeleteMulticastGroupRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteMulticastGroupRequest, - requestDeserialize: deserialize_api_DeleteMulticastGroupRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // List the available multicast groups. -list: { - path: '/api.MulticastGroupService/List', - requestStream: false, - responseStream: false, - requestType: api_multicast_group_pb.ListMulticastGroupsRequest, - responseType: api_multicast_group_pb.ListMulticastGroupsResponse, - requestSerialize: serialize_api_ListMulticastGroupsRequest, - requestDeserialize: deserialize_api_ListMulticastGroupsRequest, - responseSerialize: serialize_api_ListMulticastGroupsResponse, - responseDeserialize: deserialize_api_ListMulticastGroupsResponse, - }, - // Add a device to the multicast group. -addDevice: { - path: '/api.MulticastGroupService/AddDevice', - requestStream: false, - responseStream: false, - requestType: api_multicast_group_pb.AddDeviceToMulticastGroupRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_AddDeviceToMulticastGroupRequest, - requestDeserialize: deserialize_api_AddDeviceToMulticastGroupRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Remove a device from the multicast group. -removeDevice: { - path: '/api.MulticastGroupService/RemoveDevice', - requestStream: false, - responseStream: false, - requestType: api_multicast_group_pb.RemoveDeviceFromMulticastGroupRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_RemoveDeviceFromMulticastGroupRequest, - requestDeserialize: deserialize_api_RemoveDeviceFromMulticastGroupRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Add a gateway to the multicast group. -addGateway: { - path: '/api.MulticastGroupService/AddGateway', - requestStream: false, - responseStream: false, - requestType: api_multicast_group_pb.AddGatewayToMulticastGroupRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_AddGatewayToMulticastGroupRequest, - requestDeserialize: deserialize_api_AddGatewayToMulticastGroupRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Remove a gateway from the multicast group. -removeGateway: { - path: '/api.MulticastGroupService/RemoveGateway', - requestStream: false, - responseStream: false, - requestType: api_multicast_group_pb.RemoveGatewayFromMulticastGroupRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_RemoveGatewayFromMulticastGroupRequest, - requestDeserialize: deserialize_api_RemoveGatewayFromMulticastGroupRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Add the given item to the multicast group queue. -enqueue: { - path: '/api.MulticastGroupService/Enqueue', - requestStream: false, - responseStream: false, - requestType: api_multicast_group_pb.EnqueueMulticastGroupQueueItemRequest, - responseType: api_multicast_group_pb.EnqueueMulticastGroupQueueItemResponse, - requestSerialize: serialize_api_EnqueueMulticastGroupQueueItemRequest, - requestDeserialize: deserialize_api_EnqueueMulticastGroupQueueItemRequest, - responseSerialize: serialize_api_EnqueueMulticastGroupQueueItemResponse, - responseDeserialize: deserialize_api_EnqueueMulticastGroupQueueItemResponse, - }, - // Flush the queue for the given multicast group. -flushQueue: { - path: '/api.MulticastGroupService/FlushQueue', - requestStream: false, - responseStream: false, - requestType: api_multicast_group_pb.FlushMulticastGroupQueueRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_FlushMulticastGroupQueueRequest, - requestDeserialize: deserialize_api_FlushMulticastGroupQueueRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // List the items in the multicast group queue. -listQueue: { - path: '/api.MulticastGroupService/ListQueue', - requestStream: false, - responseStream: false, - requestType: api_multicast_group_pb.ListMulticastGroupQueueRequest, - responseType: api_multicast_group_pb.ListMulticastGroupQueueResponse, - requestSerialize: serialize_api_ListMulticastGroupQueueRequest, - requestDeserialize: deserialize_api_ListMulticastGroupQueueRequest, - responseSerialize: serialize_api_ListMulticastGroupQueueResponse, - responseDeserialize: deserialize_api_ListMulticastGroupQueueResponse, - }, -}; - -exports.MulticastGroupServiceClient = grpc.makeGenericClientConstructor(MulticastGroupServiceService); diff --git a/api/js/api/multicast_group_pb.d.ts b/api/js/api/multicast_group_pb.d.ts deleted file mode 100644 index f63a2d55..00000000 --- a/api/js/api/multicast_group_pb.d.ts +++ /dev/null @@ -1,569 +0,0 @@ -// package: api -// file: api/multicast_group.proto - -import * as jspb from "google-protobuf"; -import * as google_api_annotations_pb from "../google/api/annotations_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; -import * as common_common_pb from "../common/common_pb"; - -export class MulticastGroup extends jspb.Message { - getId(): string; - setId(value: string): void; - - getName(): string; - setName(value: string): void; - - getApplicationId(): string; - setApplicationId(value: string): void; - - getRegion(): common_common_pb.RegionMap[keyof common_common_pb.RegionMap]; - setRegion(value: common_common_pb.RegionMap[keyof common_common_pb.RegionMap]): void; - - getMcAddr(): string; - setMcAddr(value: string): void; - - getMcNwkSKey(): string; - setMcNwkSKey(value: string): void; - - getMcAppSKey(): string; - setMcAppSKey(value: string): void; - - getFCnt(): number; - setFCnt(value: number): void; - - getGroupType(): MulticastGroupTypeMap[keyof MulticastGroupTypeMap]; - setGroupType(value: MulticastGroupTypeMap[keyof MulticastGroupTypeMap]): void; - - getDr(): number; - setDr(value: number): void; - - getFrequency(): number; - setFrequency(value: number): void; - - getClassBPingSlotPeriod(): number; - setClassBPingSlotPeriod(value: number): void; - - getClassBPingSlotNbK(): number; - setClassBPingSlotNbK(value: number): void; - - getClassCSchedulingType(): MulticastGroupSchedulingTypeMap[keyof MulticastGroupSchedulingTypeMap]; - setClassCSchedulingType(value: MulticastGroupSchedulingTypeMap[keyof MulticastGroupSchedulingTypeMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MulticastGroup.AsObject; - static toObject(includeInstance: boolean, msg: MulticastGroup): MulticastGroup.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MulticastGroup, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MulticastGroup; - static deserializeBinaryFromReader(message: MulticastGroup, reader: jspb.BinaryReader): MulticastGroup; -} - -export namespace MulticastGroup { - export type AsObject = { - id: string, - name: string, - applicationId: string, - region: common_common_pb.RegionMap[keyof common_common_pb.RegionMap], - mcAddr: string, - mcNwkSKey: string, - mcAppSKey: string, - fCnt: number, - groupType: MulticastGroupTypeMap[keyof MulticastGroupTypeMap], - dr: number, - frequency: number, - classBPingSlotPeriod: number, - classBPingSlotNbK: number, - classCSchedulingType: MulticastGroupSchedulingTypeMap[keyof MulticastGroupSchedulingTypeMap], - } -} - -export class MulticastGroupListItem extends jspb.Message { - getId(): string; - setId(value: string): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - getName(): string; - setName(value: string): void; - - getRegion(): common_common_pb.RegionMap[keyof common_common_pb.RegionMap]; - setRegion(value: common_common_pb.RegionMap[keyof common_common_pb.RegionMap]): void; - - getGroupType(): MulticastGroupTypeMap[keyof MulticastGroupTypeMap]; - setGroupType(value: MulticastGroupTypeMap[keyof MulticastGroupTypeMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MulticastGroupListItem.AsObject; - static toObject(includeInstance: boolean, msg: MulticastGroupListItem): MulticastGroupListItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MulticastGroupListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MulticastGroupListItem; - static deserializeBinaryFromReader(message: MulticastGroupListItem, reader: jspb.BinaryReader): MulticastGroupListItem; -} - -export namespace MulticastGroupListItem { - export type AsObject = { - id: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - name: string, - region: common_common_pb.RegionMap[keyof common_common_pb.RegionMap], - groupType: MulticastGroupTypeMap[keyof MulticastGroupTypeMap], - } -} - -export class CreateMulticastGroupRequest extends jspb.Message { - hasMulticastGroup(): boolean; - clearMulticastGroup(): void; - getMulticastGroup(): MulticastGroup | undefined; - setMulticastGroup(value?: MulticastGroup): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateMulticastGroupRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateMulticastGroupRequest): CreateMulticastGroupRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateMulticastGroupRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateMulticastGroupRequest; - static deserializeBinaryFromReader(message: CreateMulticastGroupRequest, reader: jspb.BinaryReader): CreateMulticastGroupRequest; -} - -export namespace CreateMulticastGroupRequest { - export type AsObject = { - multicastGroup?: MulticastGroup.AsObject, - } -} - -export class CreateMulticastGroupResponse extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateMulticastGroupResponse.AsObject; - static toObject(includeInstance: boolean, msg: CreateMulticastGroupResponse): CreateMulticastGroupResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateMulticastGroupResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateMulticastGroupResponse; - static deserializeBinaryFromReader(message: CreateMulticastGroupResponse, reader: jspb.BinaryReader): CreateMulticastGroupResponse; -} - -export namespace CreateMulticastGroupResponse { - export type AsObject = { - id: string, - } -} - -export class GetMulticastGroupRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetMulticastGroupRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetMulticastGroupRequest): GetMulticastGroupRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetMulticastGroupRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetMulticastGroupRequest; - static deserializeBinaryFromReader(message: GetMulticastGroupRequest, reader: jspb.BinaryReader): GetMulticastGroupRequest; -} - -export namespace GetMulticastGroupRequest { - export type AsObject = { - id: string, - } -} - -export class GetMulticastGroupResponse extends jspb.Message { - hasMulticastGroup(): boolean; - clearMulticastGroup(): void; - getMulticastGroup(): MulticastGroup | undefined; - setMulticastGroup(value?: MulticastGroup): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetMulticastGroupResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetMulticastGroupResponse): GetMulticastGroupResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetMulticastGroupResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetMulticastGroupResponse; - static deserializeBinaryFromReader(message: GetMulticastGroupResponse, reader: jspb.BinaryReader): GetMulticastGroupResponse; -} - -export namespace GetMulticastGroupResponse { - export type AsObject = { - multicastGroup?: MulticastGroup.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateMulticastGroupRequest extends jspb.Message { - hasMulticastGroup(): boolean; - clearMulticastGroup(): void; - getMulticastGroup(): MulticastGroup | undefined; - setMulticastGroup(value?: MulticastGroup): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateMulticastGroupRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateMulticastGroupRequest): UpdateMulticastGroupRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateMulticastGroupRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateMulticastGroupRequest; - static deserializeBinaryFromReader(message: UpdateMulticastGroupRequest, reader: jspb.BinaryReader): UpdateMulticastGroupRequest; -} - -export namespace UpdateMulticastGroupRequest { - export type AsObject = { - multicastGroup?: MulticastGroup.AsObject, - } -} - -export class DeleteMulticastGroupRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteMulticastGroupRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteMulticastGroupRequest): DeleteMulticastGroupRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteMulticastGroupRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteMulticastGroupRequest; - static deserializeBinaryFromReader(message: DeleteMulticastGroupRequest, reader: jspb.BinaryReader): DeleteMulticastGroupRequest; -} - -export namespace DeleteMulticastGroupRequest { - export type AsObject = { - id: string, - } -} - -export class ListMulticastGroupsRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): void; - - getOffset(): number; - setOffset(value: number): void; - - getSearch(): string; - setSearch(value: string): void; - - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListMulticastGroupsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListMulticastGroupsRequest): ListMulticastGroupsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListMulticastGroupsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListMulticastGroupsRequest; - static deserializeBinaryFromReader(message: ListMulticastGroupsRequest, reader: jspb.BinaryReader): ListMulticastGroupsRequest; -} - -export namespace ListMulticastGroupsRequest { - export type AsObject = { - limit: number, - offset: number, - search: string, - applicationId: string, - } -} - -export class ListMulticastGroupsResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): void; - - clearResultList(): void; - getResultList(): Array; - setResultList(value: Array): void; - addResult(value?: MulticastGroupListItem, index?: number): MulticastGroupListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListMulticastGroupsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListMulticastGroupsResponse): ListMulticastGroupsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListMulticastGroupsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListMulticastGroupsResponse; - static deserializeBinaryFromReader(message: ListMulticastGroupsResponse, reader: jspb.BinaryReader): ListMulticastGroupsResponse; -} - -export namespace ListMulticastGroupsResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class AddDeviceToMulticastGroupRequest extends jspb.Message { - getMulticastGroupId(): string; - setMulticastGroupId(value: string): void; - - getDevEui(): string; - setDevEui(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AddDeviceToMulticastGroupRequest.AsObject; - static toObject(includeInstance: boolean, msg: AddDeviceToMulticastGroupRequest): AddDeviceToMulticastGroupRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AddDeviceToMulticastGroupRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AddDeviceToMulticastGroupRequest; - static deserializeBinaryFromReader(message: AddDeviceToMulticastGroupRequest, reader: jspb.BinaryReader): AddDeviceToMulticastGroupRequest; -} - -export namespace AddDeviceToMulticastGroupRequest { - export type AsObject = { - multicastGroupId: string, - devEui: string, - } -} - -export class RemoveDeviceFromMulticastGroupRequest extends jspb.Message { - getMulticastGroupId(): string; - setMulticastGroupId(value: string): void; - - getDevEui(): string; - setDevEui(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveDeviceFromMulticastGroupRequest.AsObject; - static toObject(includeInstance: boolean, msg: RemoveDeviceFromMulticastGroupRequest): RemoveDeviceFromMulticastGroupRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RemoveDeviceFromMulticastGroupRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveDeviceFromMulticastGroupRequest; - static deserializeBinaryFromReader(message: RemoveDeviceFromMulticastGroupRequest, reader: jspb.BinaryReader): RemoveDeviceFromMulticastGroupRequest; -} - -export namespace RemoveDeviceFromMulticastGroupRequest { - export type AsObject = { - multicastGroupId: string, - devEui: string, - } -} - -export class AddGatewayToMulticastGroupRequest extends jspb.Message { - getMulticastGroupId(): string; - setMulticastGroupId(value: string): void; - - getGatewayId(): string; - setGatewayId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AddGatewayToMulticastGroupRequest.AsObject; - static toObject(includeInstance: boolean, msg: AddGatewayToMulticastGroupRequest): AddGatewayToMulticastGroupRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AddGatewayToMulticastGroupRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AddGatewayToMulticastGroupRequest; - static deserializeBinaryFromReader(message: AddGatewayToMulticastGroupRequest, reader: jspb.BinaryReader): AddGatewayToMulticastGroupRequest; -} - -export namespace AddGatewayToMulticastGroupRequest { - export type AsObject = { - multicastGroupId: string, - gatewayId: string, - } -} - -export class RemoveGatewayFromMulticastGroupRequest extends jspb.Message { - getMulticastGroupId(): string; - setMulticastGroupId(value: string): void; - - getGatewayId(): string; - setGatewayId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveGatewayFromMulticastGroupRequest.AsObject; - static toObject(includeInstance: boolean, msg: RemoveGatewayFromMulticastGroupRequest): RemoveGatewayFromMulticastGroupRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RemoveGatewayFromMulticastGroupRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveGatewayFromMulticastGroupRequest; - static deserializeBinaryFromReader(message: RemoveGatewayFromMulticastGroupRequest, reader: jspb.BinaryReader): RemoveGatewayFromMulticastGroupRequest; -} - -export namespace RemoveGatewayFromMulticastGroupRequest { - export type AsObject = { - multicastGroupId: string, - gatewayId: string, - } -} - -export class MulticastGroupQueueItem extends jspb.Message { - getMulticastGroupId(): string; - setMulticastGroupId(value: string): void; - - getFCnt(): number; - setFCnt(value: number): void; - - getFPort(): number; - setFPort(value: number): void; - - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MulticastGroupQueueItem.AsObject; - static toObject(includeInstance: boolean, msg: MulticastGroupQueueItem): MulticastGroupQueueItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MulticastGroupQueueItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MulticastGroupQueueItem; - static deserializeBinaryFromReader(message: MulticastGroupQueueItem, reader: jspb.BinaryReader): MulticastGroupQueueItem; -} - -export namespace MulticastGroupQueueItem { - export type AsObject = { - multicastGroupId: string, - fCnt: number, - fPort: number, - data: Uint8Array | string, - } -} - -export class EnqueueMulticastGroupQueueItemRequest extends jspb.Message { - hasQueueItem(): boolean; - clearQueueItem(): void; - getQueueItem(): MulticastGroupQueueItem | undefined; - setQueueItem(value?: MulticastGroupQueueItem): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EnqueueMulticastGroupQueueItemRequest.AsObject; - static toObject(includeInstance: boolean, msg: EnqueueMulticastGroupQueueItemRequest): EnqueueMulticastGroupQueueItemRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EnqueueMulticastGroupQueueItemRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EnqueueMulticastGroupQueueItemRequest; - static deserializeBinaryFromReader(message: EnqueueMulticastGroupQueueItemRequest, reader: jspb.BinaryReader): EnqueueMulticastGroupQueueItemRequest; -} - -export namespace EnqueueMulticastGroupQueueItemRequest { - export type AsObject = { - queueItem?: MulticastGroupQueueItem.AsObject, - } -} - -export class EnqueueMulticastGroupQueueItemResponse extends jspb.Message { - getFCnt(): number; - setFCnt(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EnqueueMulticastGroupQueueItemResponse.AsObject; - static toObject(includeInstance: boolean, msg: EnqueueMulticastGroupQueueItemResponse): EnqueueMulticastGroupQueueItemResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EnqueueMulticastGroupQueueItemResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EnqueueMulticastGroupQueueItemResponse; - static deserializeBinaryFromReader(message: EnqueueMulticastGroupQueueItemResponse, reader: jspb.BinaryReader): EnqueueMulticastGroupQueueItemResponse; -} - -export namespace EnqueueMulticastGroupQueueItemResponse { - export type AsObject = { - fCnt: number, - } -} - -export class FlushMulticastGroupQueueRequest extends jspb.Message { - getMulticastGroupId(): string; - setMulticastGroupId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FlushMulticastGroupQueueRequest.AsObject; - static toObject(includeInstance: boolean, msg: FlushMulticastGroupQueueRequest): FlushMulticastGroupQueueRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FlushMulticastGroupQueueRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FlushMulticastGroupQueueRequest; - static deserializeBinaryFromReader(message: FlushMulticastGroupQueueRequest, reader: jspb.BinaryReader): FlushMulticastGroupQueueRequest; -} - -export namespace FlushMulticastGroupQueueRequest { - export type AsObject = { - multicastGroupId: string, - } -} - -export class ListMulticastGroupQueueRequest extends jspb.Message { - getMulticastGroupId(): string; - setMulticastGroupId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListMulticastGroupQueueRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListMulticastGroupQueueRequest): ListMulticastGroupQueueRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListMulticastGroupQueueRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListMulticastGroupQueueRequest; - static deserializeBinaryFromReader(message: ListMulticastGroupQueueRequest, reader: jspb.BinaryReader): ListMulticastGroupQueueRequest; -} - -export namespace ListMulticastGroupQueueRequest { - export type AsObject = { - multicastGroupId: string, - } -} - -export class ListMulticastGroupQueueResponse extends jspb.Message { - clearItemsList(): void; - getItemsList(): Array; - setItemsList(value: Array): void; - addItems(value?: MulticastGroupQueueItem, index?: number): MulticastGroupQueueItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListMulticastGroupQueueResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListMulticastGroupQueueResponse): ListMulticastGroupQueueResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListMulticastGroupQueueResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListMulticastGroupQueueResponse; - static deserializeBinaryFromReader(message: ListMulticastGroupQueueResponse, reader: jspb.BinaryReader): ListMulticastGroupQueueResponse; -} - -export namespace ListMulticastGroupQueueResponse { - export type AsObject = { - itemsList: Array, - } -} - -export interface MulticastGroupTypeMap { - CLASS_C: 0; - CLASS_B: 1; -} - -export const MulticastGroupType: MulticastGroupTypeMap; - -export interface MulticastGroupSchedulingTypeMap { - DELAY: 0; - GPS_TIME: 1; -} - -export const MulticastGroupSchedulingType: MulticastGroupSchedulingTypeMap; - diff --git a/api/js/api/multicast_group_pb.js b/api/js/api/multicast_group_pb.js deleted file mode 100644 index aa67af28..00000000 --- a/api/js/api/multicast_group_pb.js +++ /dev/null @@ -1,4263 +0,0 @@ -// source: api/multicast_group.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -goog.exportSymbol('proto.api.AddDeviceToMulticastGroupRequest', null, global); -goog.exportSymbol('proto.api.AddGatewayToMulticastGroupRequest', null, global); -goog.exportSymbol('proto.api.CreateMulticastGroupRequest', null, global); -goog.exportSymbol('proto.api.CreateMulticastGroupResponse', null, global); -goog.exportSymbol('proto.api.DeleteMulticastGroupRequest', null, global); -goog.exportSymbol('proto.api.EnqueueMulticastGroupQueueItemRequest', null, global); -goog.exportSymbol('proto.api.EnqueueMulticastGroupQueueItemResponse', null, global); -goog.exportSymbol('proto.api.FlushMulticastGroupQueueRequest', null, global); -goog.exportSymbol('proto.api.GetMulticastGroupRequest', null, global); -goog.exportSymbol('proto.api.GetMulticastGroupResponse', null, global); -goog.exportSymbol('proto.api.ListMulticastGroupQueueRequest', null, global); -goog.exportSymbol('proto.api.ListMulticastGroupQueueResponse', null, global); -goog.exportSymbol('proto.api.ListMulticastGroupsRequest', null, global); -goog.exportSymbol('proto.api.ListMulticastGroupsResponse', null, global); -goog.exportSymbol('proto.api.MulticastGroup', null, global); -goog.exportSymbol('proto.api.MulticastGroupListItem', null, global); -goog.exportSymbol('proto.api.MulticastGroupQueueItem', null, global); -goog.exportSymbol('proto.api.MulticastGroupSchedulingType', null, global); -goog.exportSymbol('proto.api.MulticastGroupType', null, global); -goog.exportSymbol('proto.api.RemoveDeviceFromMulticastGroupRequest', null, global); -goog.exportSymbol('proto.api.RemoveGatewayFromMulticastGroupRequest', null, global); -goog.exportSymbol('proto.api.UpdateMulticastGroupRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.MulticastGroup = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.MulticastGroup, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.MulticastGroup.displayName = 'proto.api.MulticastGroup'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.MulticastGroupListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.MulticastGroupListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.MulticastGroupListItem.displayName = 'proto.api.MulticastGroupListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateMulticastGroupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateMulticastGroupRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateMulticastGroupRequest.displayName = 'proto.api.CreateMulticastGroupRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateMulticastGroupResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateMulticastGroupResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateMulticastGroupResponse.displayName = 'proto.api.CreateMulticastGroupResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetMulticastGroupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetMulticastGroupRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetMulticastGroupRequest.displayName = 'proto.api.GetMulticastGroupRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetMulticastGroupResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetMulticastGroupResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetMulticastGroupResponse.displayName = 'proto.api.GetMulticastGroupResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateMulticastGroupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateMulticastGroupRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateMulticastGroupRequest.displayName = 'proto.api.UpdateMulticastGroupRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteMulticastGroupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteMulticastGroupRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteMulticastGroupRequest.displayName = 'proto.api.DeleteMulticastGroupRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListMulticastGroupsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListMulticastGroupsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListMulticastGroupsRequest.displayName = 'proto.api.ListMulticastGroupsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListMulticastGroupsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListMulticastGroupsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListMulticastGroupsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListMulticastGroupsResponse.displayName = 'proto.api.ListMulticastGroupsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.AddDeviceToMulticastGroupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.AddDeviceToMulticastGroupRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.AddDeviceToMulticastGroupRequest.displayName = 'proto.api.AddDeviceToMulticastGroupRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.RemoveDeviceFromMulticastGroupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.RemoveDeviceFromMulticastGroupRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.RemoveDeviceFromMulticastGroupRequest.displayName = 'proto.api.RemoveDeviceFromMulticastGroupRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.AddGatewayToMulticastGroupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.AddGatewayToMulticastGroupRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.AddGatewayToMulticastGroupRequest.displayName = 'proto.api.AddGatewayToMulticastGroupRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.RemoveGatewayFromMulticastGroupRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.RemoveGatewayFromMulticastGroupRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.RemoveGatewayFromMulticastGroupRequest.displayName = 'proto.api.RemoveGatewayFromMulticastGroupRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.MulticastGroupQueueItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.MulticastGroupQueueItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.MulticastGroupQueueItem.displayName = 'proto.api.MulticastGroupQueueItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.EnqueueMulticastGroupQueueItemRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.EnqueueMulticastGroupQueueItemRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.EnqueueMulticastGroupQueueItemRequest.displayName = 'proto.api.EnqueueMulticastGroupQueueItemRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.EnqueueMulticastGroupQueueItemResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.EnqueueMulticastGroupQueueItemResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.EnqueueMulticastGroupQueueItemResponse.displayName = 'proto.api.EnqueueMulticastGroupQueueItemResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.FlushMulticastGroupQueueRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.FlushMulticastGroupQueueRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.FlushMulticastGroupQueueRequest.displayName = 'proto.api.FlushMulticastGroupQueueRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListMulticastGroupQueueRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListMulticastGroupQueueRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListMulticastGroupQueueRequest.displayName = 'proto.api.ListMulticastGroupQueueRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListMulticastGroupQueueResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListMulticastGroupQueueResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListMulticastGroupQueueResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListMulticastGroupQueueResponse.displayName = 'proto.api.ListMulticastGroupQueueResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.MulticastGroup.prototype.toObject = function(opt_includeInstance) { - return proto.api.MulticastGroup.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.MulticastGroup} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.MulticastGroup.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - applicationId: jspb.Message.getFieldWithDefault(msg, 3, ""), - region: jspb.Message.getFieldWithDefault(msg, 4, 0), - mcAddr: jspb.Message.getFieldWithDefault(msg, 5, ""), - mcNwkSKey: jspb.Message.getFieldWithDefault(msg, 6, ""), - mcAppSKey: jspb.Message.getFieldWithDefault(msg, 7, ""), - fCnt: jspb.Message.getFieldWithDefault(msg, 8, 0), - groupType: jspb.Message.getFieldWithDefault(msg, 9, 0), - dr: jspb.Message.getFieldWithDefault(msg, 10, 0), - frequency: jspb.Message.getFieldWithDefault(msg, 11, 0), - classBPingSlotPeriod: jspb.Message.getFieldWithDefault(msg, 12, 0), - classBPingSlotNbK: jspb.Message.getFieldWithDefault(msg, 14, 0), - classCSchedulingType: jspb.Message.getFieldWithDefault(msg, 13, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.MulticastGroup} - */ -proto.api.MulticastGroup.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.MulticastGroup; - return proto.api.MulticastGroup.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.MulticastGroup} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.MulticastGroup} - */ -proto.api.MulticastGroup.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 4: - var value = /** @type {!proto.common.Region} */ (reader.readEnum()); - msg.setRegion(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setMcAddr(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setMcNwkSKey(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setMcAppSKey(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCnt(value); - break; - case 9: - var value = /** @type {!proto.api.MulticastGroupType} */ (reader.readEnum()); - msg.setGroupType(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDr(value); - break; - case 11: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFrequency(value); - break; - case 12: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotPeriod(value); - break; - case 14: - var value = /** @type {number} */ (reader.readUint32()); - msg.setClassBPingSlotNbK(value); - break; - case 13: - var value = /** @type {!proto.api.MulticastGroupSchedulingType} */ (reader.readEnum()); - msg.setClassCSchedulingType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.MulticastGroup.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.MulticastGroup.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.MulticastGroup} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.MulticastGroup.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getRegion(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getMcAddr(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getMcNwkSKey(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getMcAppSKey(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getFCnt(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getGroupType(); - if (f !== 0.0) { - writer.writeEnum( - 9, - f - ); - } - f = message.getDr(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getFrequency(); - if (f !== 0) { - writer.writeUint32( - 11, - f - ); - } - f = message.getClassBPingSlotPeriod(); - if (f !== 0) { - writer.writeUint32( - 12, - f - ); - } - f = message.getClassBPingSlotNbK(); - if (f !== 0) { - writer.writeUint32( - 14, - f - ); - } - f = message.getClassCSchedulingType(); - if (f !== 0.0) { - writer.writeEnum( - 13, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.MulticastGroup.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.MulticastGroup.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string application_id = 3; - * @return {string} - */ -proto.api.MulticastGroup.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional common.Region region = 4; - * @return {!proto.common.Region} - */ -proto.api.MulticastGroup.prototype.getRegion = function() { - return /** @type {!proto.common.Region} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.common.Region} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setRegion = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional string mc_addr = 5; - * @return {string} - */ -proto.api.MulticastGroup.prototype.getMcAddr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setMcAddr = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string mc_nwk_s_key = 6; - * @return {string} - */ -proto.api.MulticastGroup.prototype.getMcNwkSKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setMcNwkSKey = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string mc_app_s_key = 7; - * @return {string} - */ -proto.api.MulticastGroup.prototype.getMcAppSKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setMcAppSKey = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional uint32 f_cnt = 8; - * @return {number} - */ -proto.api.MulticastGroup.prototype.getFCnt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setFCnt = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional MulticastGroupType group_type = 9; - * @return {!proto.api.MulticastGroupType} - */ -proto.api.MulticastGroup.prototype.getGroupType = function() { - return /** @type {!proto.api.MulticastGroupType} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {!proto.api.MulticastGroupType} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setGroupType = function(value) { - return jspb.Message.setProto3EnumField(this, 9, value); -}; - - -/** - * optional uint32 dr = 10; - * @return {number} - */ -proto.api.MulticastGroup.prototype.getDr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setDr = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional uint32 frequency = 11; - * @return {number} - */ -proto.api.MulticastGroup.prototype.getFrequency = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setFrequency = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional uint32 class_b_ping_slot_period = 12; - * @return {number} - */ -proto.api.MulticastGroup.prototype.getClassBPingSlotPeriod = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setClassBPingSlotPeriod = function(value) { - return jspb.Message.setProto3IntField(this, 12, value); -}; - - -/** - * optional uint32 class_b_ping_slot_nb_k = 14; - * @return {number} - */ -proto.api.MulticastGroup.prototype.getClassBPingSlotNbK = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setClassBPingSlotNbK = function(value) { - return jspb.Message.setProto3IntField(this, 14, value); -}; - - -/** - * optional MulticastGroupSchedulingType class_c_scheduling_type = 13; - * @return {!proto.api.MulticastGroupSchedulingType} - */ -proto.api.MulticastGroup.prototype.getClassCSchedulingType = function() { - return /** @type {!proto.api.MulticastGroupSchedulingType} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); -}; - - -/** - * @param {!proto.api.MulticastGroupSchedulingType} value - * @return {!proto.api.MulticastGroup} returns this - */ -proto.api.MulticastGroup.prototype.setClassCSchedulingType = function(value) { - return jspb.Message.setProto3EnumField(this, 13, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.MulticastGroupListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.MulticastGroupListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.MulticastGroupListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.MulticastGroupListItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 4, ""), - region: jspb.Message.getFieldWithDefault(msg, 5, 0), - groupType: jspb.Message.getFieldWithDefault(msg, 6, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.MulticastGroupListItem} - */ -proto.api.MulticastGroupListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.MulticastGroupListItem; - return proto.api.MulticastGroupListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.MulticastGroupListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.MulticastGroupListItem} - */ -proto.api.MulticastGroupListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 5: - var value = /** @type {!proto.common.Region} */ (reader.readEnum()); - msg.setRegion(value); - break; - case 6: - var value = /** @type {!proto.api.MulticastGroupType} */ (reader.readEnum()); - msg.setGroupType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.MulticastGroupListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.MulticastGroupListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.MulticastGroupListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.MulticastGroupListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRegion(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } - f = message.getGroupType(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.MulticastGroupListItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MulticastGroupListItem} returns this - */ -proto.api.MulticastGroupListItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.MulticastGroupListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.MulticastGroupListItem} returns this -*/ -proto.api.MulticastGroupListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.MulticastGroupListItem} returns this - */ -proto.api.MulticastGroupListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.MulticastGroupListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.MulticastGroupListItem.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.MulticastGroupListItem} returns this -*/ -proto.api.MulticastGroupListItem.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.MulticastGroupListItem} returns this - */ -proto.api.MulticastGroupListItem.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.MulticastGroupListItem.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string name = 4; - * @return {string} - */ -proto.api.MulticastGroupListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MulticastGroupListItem} returns this - */ -proto.api.MulticastGroupListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional common.Region region = 5; - * @return {!proto.common.Region} - */ -proto.api.MulticastGroupListItem.prototype.getRegion = function() { - return /** @type {!proto.common.Region} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {!proto.common.Region} value - * @return {!proto.api.MulticastGroupListItem} returns this - */ -proto.api.MulticastGroupListItem.prototype.setRegion = function(value) { - return jspb.Message.setProto3EnumField(this, 5, value); -}; - - -/** - * optional MulticastGroupType group_type = 6; - * @return {!proto.api.MulticastGroupType} - */ -proto.api.MulticastGroupListItem.prototype.getGroupType = function() { - return /** @type {!proto.api.MulticastGroupType} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.api.MulticastGroupType} value - * @return {!proto.api.MulticastGroupListItem} returns this - */ -proto.api.MulticastGroupListItem.prototype.setGroupType = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateMulticastGroupRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateMulticastGroupRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateMulticastGroupRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateMulticastGroupRequest.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroup: (f = msg.getMulticastGroup()) && proto.api.MulticastGroup.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateMulticastGroupRequest} - */ -proto.api.CreateMulticastGroupRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateMulticastGroupRequest; - return proto.api.CreateMulticastGroupRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateMulticastGroupRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateMulticastGroupRequest} - */ -proto.api.CreateMulticastGroupRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.MulticastGroup; - reader.readMessage(value,proto.api.MulticastGroup.deserializeBinaryFromReader); - msg.setMulticastGroup(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateMulticastGroupRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateMulticastGroupRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateMulticastGroupRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateMulticastGroupRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroup(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.MulticastGroup.serializeBinaryToWriter - ); - } -}; - - -/** - * optional MulticastGroup multicast_group = 1; - * @return {?proto.api.MulticastGroup} - */ -proto.api.CreateMulticastGroupRequest.prototype.getMulticastGroup = function() { - return /** @type{?proto.api.MulticastGroup} */ ( - jspb.Message.getWrapperField(this, proto.api.MulticastGroup, 1)); -}; - - -/** - * @param {?proto.api.MulticastGroup|undefined} value - * @return {!proto.api.CreateMulticastGroupRequest} returns this -*/ -proto.api.CreateMulticastGroupRequest.prototype.setMulticastGroup = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateMulticastGroupRequest} returns this - */ -proto.api.CreateMulticastGroupRequest.prototype.clearMulticastGroup = function() { - return this.setMulticastGroup(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateMulticastGroupRequest.prototype.hasMulticastGroup = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateMulticastGroupResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateMulticastGroupResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateMulticastGroupResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateMulticastGroupResponse.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateMulticastGroupResponse} - */ -proto.api.CreateMulticastGroupResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateMulticastGroupResponse; - return proto.api.CreateMulticastGroupResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateMulticastGroupResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateMulticastGroupResponse} - */ -proto.api.CreateMulticastGroupResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateMulticastGroupResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateMulticastGroupResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateMulticastGroupResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateMulticastGroupResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.CreateMulticastGroupResponse.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.CreateMulticastGroupResponse} returns this - */ -proto.api.CreateMulticastGroupResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetMulticastGroupRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetMulticastGroupRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetMulticastGroupRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetMulticastGroupRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetMulticastGroupRequest} - */ -proto.api.GetMulticastGroupRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetMulticastGroupRequest; - return proto.api.GetMulticastGroupRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetMulticastGroupRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetMulticastGroupRequest} - */ -proto.api.GetMulticastGroupRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetMulticastGroupRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetMulticastGroupRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetMulticastGroupRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetMulticastGroupRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.GetMulticastGroupRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetMulticastGroupRequest} returns this - */ -proto.api.GetMulticastGroupRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetMulticastGroupResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetMulticastGroupResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetMulticastGroupResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetMulticastGroupResponse.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroup: (f = msg.getMulticastGroup()) && proto.api.MulticastGroup.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetMulticastGroupResponse} - */ -proto.api.GetMulticastGroupResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetMulticastGroupResponse; - return proto.api.GetMulticastGroupResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetMulticastGroupResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetMulticastGroupResponse} - */ -proto.api.GetMulticastGroupResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.MulticastGroup; - reader.readMessage(value,proto.api.MulticastGroup.deserializeBinaryFromReader); - msg.setMulticastGroup(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetMulticastGroupResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetMulticastGroupResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetMulticastGroupResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetMulticastGroupResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroup(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.MulticastGroup.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional MulticastGroup multicast_group = 1; - * @return {?proto.api.MulticastGroup} - */ -proto.api.GetMulticastGroupResponse.prototype.getMulticastGroup = function() { - return /** @type{?proto.api.MulticastGroup} */ ( - jspb.Message.getWrapperField(this, proto.api.MulticastGroup, 1)); -}; - - -/** - * @param {?proto.api.MulticastGroup|undefined} value - * @return {!proto.api.GetMulticastGroupResponse} returns this -*/ -proto.api.GetMulticastGroupResponse.prototype.setMulticastGroup = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetMulticastGroupResponse} returns this - */ -proto.api.GetMulticastGroupResponse.prototype.clearMulticastGroup = function() { - return this.setMulticastGroup(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetMulticastGroupResponse.prototype.hasMulticastGroup = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetMulticastGroupResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetMulticastGroupResponse} returns this -*/ -proto.api.GetMulticastGroupResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetMulticastGroupResponse} returns this - */ -proto.api.GetMulticastGroupResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetMulticastGroupResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetMulticastGroupResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetMulticastGroupResponse} returns this -*/ -proto.api.GetMulticastGroupResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetMulticastGroupResponse} returns this - */ -proto.api.GetMulticastGroupResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetMulticastGroupResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateMulticastGroupRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateMulticastGroupRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateMulticastGroupRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateMulticastGroupRequest.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroup: (f = msg.getMulticastGroup()) && proto.api.MulticastGroup.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateMulticastGroupRequest} - */ -proto.api.UpdateMulticastGroupRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateMulticastGroupRequest; - return proto.api.UpdateMulticastGroupRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateMulticastGroupRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateMulticastGroupRequest} - */ -proto.api.UpdateMulticastGroupRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.MulticastGroup; - reader.readMessage(value,proto.api.MulticastGroup.deserializeBinaryFromReader); - msg.setMulticastGroup(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateMulticastGroupRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateMulticastGroupRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateMulticastGroupRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateMulticastGroupRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroup(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.MulticastGroup.serializeBinaryToWriter - ); - } -}; - - -/** - * optional MulticastGroup multicast_group = 1; - * @return {?proto.api.MulticastGroup} - */ -proto.api.UpdateMulticastGroupRequest.prototype.getMulticastGroup = function() { - return /** @type{?proto.api.MulticastGroup} */ ( - jspb.Message.getWrapperField(this, proto.api.MulticastGroup, 1)); -}; - - -/** - * @param {?proto.api.MulticastGroup|undefined} value - * @return {!proto.api.UpdateMulticastGroupRequest} returns this -*/ -proto.api.UpdateMulticastGroupRequest.prototype.setMulticastGroup = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateMulticastGroupRequest} returns this - */ -proto.api.UpdateMulticastGroupRequest.prototype.clearMulticastGroup = function() { - return this.setMulticastGroup(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateMulticastGroupRequest.prototype.hasMulticastGroup = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteMulticastGroupRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteMulticastGroupRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteMulticastGroupRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteMulticastGroupRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteMulticastGroupRequest} - */ -proto.api.DeleteMulticastGroupRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteMulticastGroupRequest; - return proto.api.DeleteMulticastGroupRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteMulticastGroupRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteMulticastGroupRequest} - */ -proto.api.DeleteMulticastGroupRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteMulticastGroupRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteMulticastGroupRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteMulticastGroupRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteMulticastGroupRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeleteMulticastGroupRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteMulticastGroupRequest} returns this - */ -proto.api.DeleteMulticastGroupRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListMulticastGroupsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListMulticastGroupsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListMulticastGroupsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListMulticastGroupsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - search: jspb.Message.getFieldWithDefault(msg, 3, ""), - applicationId: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListMulticastGroupsRequest} - */ -proto.api.ListMulticastGroupsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListMulticastGroupsRequest; - return proto.api.ListMulticastGroupsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListMulticastGroupsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListMulticastGroupsRequest} - */ -proto.api.ListMulticastGroupsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSearch(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListMulticastGroupsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListMulticastGroupsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListMulticastGroupsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListMulticastGroupsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getSearch(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListMulticastGroupsRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListMulticastGroupsRequest} returns this - */ -proto.api.ListMulticastGroupsRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListMulticastGroupsRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListMulticastGroupsRequest} returns this - */ -proto.api.ListMulticastGroupsRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string search = 3; - * @return {string} - */ -proto.api.ListMulticastGroupsRequest.prototype.getSearch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListMulticastGroupsRequest} returns this - */ -proto.api.ListMulticastGroupsRequest.prototype.setSearch = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string application_id = 4; - * @return {string} - */ -proto.api.ListMulticastGroupsRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListMulticastGroupsRequest} returns this - */ -proto.api.ListMulticastGroupsRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListMulticastGroupsResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListMulticastGroupsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListMulticastGroupsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListMulticastGroupsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListMulticastGroupsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.MulticastGroupListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListMulticastGroupsResponse} - */ -proto.api.ListMulticastGroupsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListMulticastGroupsResponse; - return proto.api.ListMulticastGroupsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListMulticastGroupsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListMulticastGroupsResponse} - */ -proto.api.ListMulticastGroupsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.MulticastGroupListItem; - reader.readMessage(value,proto.api.MulticastGroupListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListMulticastGroupsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListMulticastGroupsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListMulticastGroupsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListMulticastGroupsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.MulticastGroupListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListMulticastGroupsResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListMulticastGroupsResponse} returns this - */ -proto.api.ListMulticastGroupsResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated MulticastGroupListItem result = 2; - * @return {!Array} - */ -proto.api.ListMulticastGroupsResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.MulticastGroupListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListMulticastGroupsResponse} returns this -*/ -proto.api.ListMulticastGroupsResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.MulticastGroupListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.MulticastGroupListItem} - */ -proto.api.ListMulticastGroupsResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.MulticastGroupListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListMulticastGroupsResponse} returns this - */ -proto.api.ListMulticastGroupsResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.AddDeviceToMulticastGroupRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.AddDeviceToMulticastGroupRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.AddDeviceToMulticastGroupRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AddDeviceToMulticastGroupRequest.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 1, ""), - devEui: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.AddDeviceToMulticastGroupRequest} - */ -proto.api.AddDeviceToMulticastGroupRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.AddDeviceToMulticastGroupRequest; - return proto.api.AddDeviceToMulticastGroupRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.AddDeviceToMulticastGroupRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.AddDeviceToMulticastGroupRequest} - */ -proto.api.AddDeviceToMulticastGroupRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.AddDeviceToMulticastGroupRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.AddDeviceToMulticastGroupRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.AddDeviceToMulticastGroupRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AddDeviceToMulticastGroupRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string multicast_group_id = 1; - * @return {string} - */ -proto.api.AddDeviceToMulticastGroupRequest.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AddDeviceToMulticastGroupRequest} returns this - */ -proto.api.AddDeviceToMulticastGroupRequest.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string dev_eui = 2; - * @return {string} - */ -proto.api.AddDeviceToMulticastGroupRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AddDeviceToMulticastGroupRequest} returns this - */ -proto.api.AddDeviceToMulticastGroupRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.RemoveDeviceFromMulticastGroupRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.RemoveDeviceFromMulticastGroupRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 1, ""), - devEui: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.RemoveDeviceFromMulticastGroupRequest} - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.RemoveDeviceFromMulticastGroupRequest; - return proto.api.RemoveDeviceFromMulticastGroupRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.RemoveDeviceFromMulticastGroupRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.RemoveDeviceFromMulticastGroupRequest} - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.RemoveDeviceFromMulticastGroupRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.RemoveDeviceFromMulticastGroupRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string multicast_group_id = 1; - * @return {string} - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RemoveDeviceFromMulticastGroupRequest} returns this - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string dev_eui = 2; - * @return {string} - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RemoveDeviceFromMulticastGroupRequest} returns this - */ -proto.api.RemoveDeviceFromMulticastGroupRequest.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.AddGatewayToMulticastGroupRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.AddGatewayToMulticastGroupRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.AddGatewayToMulticastGroupRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AddGatewayToMulticastGroupRequest.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 1, ""), - gatewayId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.AddGatewayToMulticastGroupRequest} - */ -proto.api.AddGatewayToMulticastGroupRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.AddGatewayToMulticastGroupRequest; - return proto.api.AddGatewayToMulticastGroupRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.AddGatewayToMulticastGroupRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.AddGatewayToMulticastGroupRequest} - */ -proto.api.AddGatewayToMulticastGroupRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.AddGatewayToMulticastGroupRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.AddGatewayToMulticastGroupRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.AddGatewayToMulticastGroupRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AddGatewayToMulticastGroupRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string multicast_group_id = 1; - * @return {string} - */ -proto.api.AddGatewayToMulticastGroupRequest.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AddGatewayToMulticastGroupRequest} returns this - */ -proto.api.AddGatewayToMulticastGroupRequest.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string gateway_id = 2; - * @return {string} - */ -proto.api.AddGatewayToMulticastGroupRequest.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AddGatewayToMulticastGroupRequest} returns this - */ -proto.api.AddGatewayToMulticastGroupRequest.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.RemoveGatewayFromMulticastGroupRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.RemoveGatewayFromMulticastGroupRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 1, ""), - gatewayId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.RemoveGatewayFromMulticastGroupRequest} - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.RemoveGatewayFromMulticastGroupRequest; - return proto.api.RemoveGatewayFromMulticastGroupRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.RemoveGatewayFromMulticastGroupRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.RemoveGatewayFromMulticastGroupRequest} - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.RemoveGatewayFromMulticastGroupRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.RemoveGatewayFromMulticastGroupRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string multicast_group_id = 1; - * @return {string} - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RemoveGatewayFromMulticastGroupRequest} returns this - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string gateway_id = 2; - * @return {string} - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RemoveGatewayFromMulticastGroupRequest} returns this - */ -proto.api.RemoveGatewayFromMulticastGroupRequest.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.MulticastGroupQueueItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.MulticastGroupQueueItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.MulticastGroupQueueItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.MulticastGroupQueueItem.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 1, ""), - fCnt: jspb.Message.getFieldWithDefault(msg, 2, 0), - fPort: jspb.Message.getFieldWithDefault(msg, 3, 0), - data: msg.getData_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.MulticastGroupQueueItem} - */ -proto.api.MulticastGroupQueueItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.MulticastGroupQueueItem; - return proto.api.MulticastGroupQueueItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.MulticastGroupQueueItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.MulticastGroupQueueItem} - */ -proto.api.MulticastGroupQueueItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCnt(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFPort(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.MulticastGroupQueueItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.MulticastGroupQueueItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.MulticastGroupQueueItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.MulticastGroupQueueItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getFCnt(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getFPort(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } -}; - - -/** - * optional string multicast_group_id = 1; - * @return {string} - */ -proto.api.MulticastGroupQueueItem.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.MulticastGroupQueueItem} returns this - */ -proto.api.MulticastGroupQueueItem.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint32 f_cnt = 2; - * @return {number} - */ -proto.api.MulticastGroupQueueItem.prototype.getFCnt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.MulticastGroupQueueItem} returns this - */ -proto.api.MulticastGroupQueueItem.prototype.setFCnt = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint32 f_port = 3; - * @return {number} - */ -proto.api.MulticastGroupQueueItem.prototype.getFPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.MulticastGroupQueueItem} returns this - */ -proto.api.MulticastGroupQueueItem.prototype.setFPort = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bytes data = 4; - * @return {!(string|Uint8Array)} - */ -proto.api.MulticastGroupQueueItem.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes data = 4; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.api.MulticastGroupQueueItem.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.api.MulticastGroupQueueItem.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.api.MulticastGroupQueueItem} returns this - */ -proto.api.MulticastGroupQueueItem.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.EnqueueMulticastGroupQueueItemRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.EnqueueMulticastGroupQueueItemRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.EnqueueMulticastGroupQueueItemRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.EnqueueMulticastGroupQueueItemRequest.toObject = function(includeInstance, msg) { - var f, obj = { - queueItem: (f = msg.getQueueItem()) && proto.api.MulticastGroupQueueItem.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.EnqueueMulticastGroupQueueItemRequest} - */ -proto.api.EnqueueMulticastGroupQueueItemRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.EnqueueMulticastGroupQueueItemRequest; - return proto.api.EnqueueMulticastGroupQueueItemRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.EnqueueMulticastGroupQueueItemRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.EnqueueMulticastGroupQueueItemRequest} - */ -proto.api.EnqueueMulticastGroupQueueItemRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.MulticastGroupQueueItem; - reader.readMessage(value,proto.api.MulticastGroupQueueItem.deserializeBinaryFromReader); - msg.setQueueItem(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.EnqueueMulticastGroupQueueItemRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.EnqueueMulticastGroupQueueItemRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.EnqueueMulticastGroupQueueItemRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.EnqueueMulticastGroupQueueItemRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getQueueItem(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.MulticastGroupQueueItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional MulticastGroupQueueItem queue_item = 1; - * @return {?proto.api.MulticastGroupQueueItem} - */ -proto.api.EnqueueMulticastGroupQueueItemRequest.prototype.getQueueItem = function() { - return /** @type{?proto.api.MulticastGroupQueueItem} */ ( - jspb.Message.getWrapperField(this, proto.api.MulticastGroupQueueItem, 1)); -}; - - -/** - * @param {?proto.api.MulticastGroupQueueItem|undefined} value - * @return {!proto.api.EnqueueMulticastGroupQueueItemRequest} returns this -*/ -proto.api.EnqueueMulticastGroupQueueItemRequest.prototype.setQueueItem = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.EnqueueMulticastGroupQueueItemRequest} returns this - */ -proto.api.EnqueueMulticastGroupQueueItemRequest.prototype.clearQueueItem = function() { - return this.setQueueItem(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.EnqueueMulticastGroupQueueItemRequest.prototype.hasQueueItem = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.EnqueueMulticastGroupQueueItemResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.EnqueueMulticastGroupQueueItemResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.EnqueueMulticastGroupQueueItemResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.EnqueueMulticastGroupQueueItemResponse.toObject = function(includeInstance, msg) { - var f, obj = { - fCnt: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.EnqueueMulticastGroupQueueItemResponse} - */ -proto.api.EnqueueMulticastGroupQueueItemResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.EnqueueMulticastGroupQueueItemResponse; - return proto.api.EnqueueMulticastGroupQueueItemResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.EnqueueMulticastGroupQueueItemResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.EnqueueMulticastGroupQueueItemResponse} - */ -proto.api.EnqueueMulticastGroupQueueItemResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCnt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.EnqueueMulticastGroupQueueItemResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.EnqueueMulticastGroupQueueItemResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.EnqueueMulticastGroupQueueItemResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.EnqueueMulticastGroupQueueItemResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFCnt(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } -}; - - -/** - * optional uint32 f_cnt = 1; - * @return {number} - */ -proto.api.EnqueueMulticastGroupQueueItemResponse.prototype.getFCnt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.EnqueueMulticastGroupQueueItemResponse} returns this - */ -proto.api.EnqueueMulticastGroupQueueItemResponse.prototype.setFCnt = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.FlushMulticastGroupQueueRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.FlushMulticastGroupQueueRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.FlushMulticastGroupQueueRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.FlushMulticastGroupQueueRequest.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.FlushMulticastGroupQueueRequest} - */ -proto.api.FlushMulticastGroupQueueRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.FlushMulticastGroupQueueRequest; - return proto.api.FlushMulticastGroupQueueRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.FlushMulticastGroupQueueRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.FlushMulticastGroupQueueRequest} - */ -proto.api.FlushMulticastGroupQueueRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.FlushMulticastGroupQueueRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.FlushMulticastGroupQueueRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.FlushMulticastGroupQueueRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.FlushMulticastGroupQueueRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string multicast_group_id = 1; - * @return {string} - */ -proto.api.FlushMulticastGroupQueueRequest.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.FlushMulticastGroupQueueRequest} returns this - */ -proto.api.FlushMulticastGroupQueueRequest.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListMulticastGroupQueueRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListMulticastGroupQueueRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListMulticastGroupQueueRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListMulticastGroupQueueRequest.toObject = function(includeInstance, msg) { - var f, obj = { - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListMulticastGroupQueueRequest} - */ -proto.api.ListMulticastGroupQueueRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListMulticastGroupQueueRequest; - return proto.api.ListMulticastGroupQueueRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListMulticastGroupQueueRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListMulticastGroupQueueRequest} - */ -proto.api.ListMulticastGroupQueueRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListMulticastGroupQueueRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListMulticastGroupQueueRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListMulticastGroupQueueRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListMulticastGroupQueueRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string multicast_group_id = 1; - * @return {string} - */ -proto.api.ListMulticastGroupQueueRequest.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListMulticastGroupQueueRequest} returns this - */ -proto.api.ListMulticastGroupQueueRequest.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListMulticastGroupQueueResponse.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListMulticastGroupQueueResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListMulticastGroupQueueResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListMulticastGroupQueueResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListMulticastGroupQueueResponse.toObject = function(includeInstance, msg) { - var f, obj = { - itemsList: jspb.Message.toObjectList(msg.getItemsList(), - proto.api.MulticastGroupQueueItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListMulticastGroupQueueResponse} - */ -proto.api.ListMulticastGroupQueueResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListMulticastGroupQueueResponse; - return proto.api.ListMulticastGroupQueueResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListMulticastGroupQueueResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListMulticastGroupQueueResponse} - */ -proto.api.ListMulticastGroupQueueResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.MulticastGroupQueueItem; - reader.readMessage(value,proto.api.MulticastGroupQueueItem.deserializeBinaryFromReader); - msg.addItems(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListMulticastGroupQueueResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListMulticastGroupQueueResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListMulticastGroupQueueResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListMulticastGroupQueueResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getItemsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.api.MulticastGroupQueueItem.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated MulticastGroupQueueItem items = 1; - * @return {!Array} - */ -proto.api.ListMulticastGroupQueueResponse.prototype.getItemsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.MulticastGroupQueueItem, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListMulticastGroupQueueResponse} returns this -*/ -proto.api.ListMulticastGroupQueueResponse.prototype.setItemsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.api.MulticastGroupQueueItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.MulticastGroupQueueItem} - */ -proto.api.ListMulticastGroupQueueResponse.prototype.addItems = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.api.MulticastGroupQueueItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListMulticastGroupQueueResponse} returns this - */ -proto.api.ListMulticastGroupQueueResponse.prototype.clearItemsList = function() { - return this.setItemsList([]); -}; - - -/** - * @enum {number} - */ -proto.api.MulticastGroupType = { - CLASS_C: 0, - CLASS_B: 1 -}; - -/** - * @enum {number} - */ -proto.api.MulticastGroupSchedulingType = { - DELAY: 0, - GPS_TIME: 1 -}; - -goog.object.extend(exports, proto.api); diff --git a/api/js/api/relay_grpc_pb.d.ts b/api/js/api/relay_grpc_pb.d.ts deleted file mode 100644 index e979bc71..00000000 --- a/api/js/api/relay_grpc_pb.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -// package: api -// file: api/relay.proto - -import * as api_relay_pb from "../api/relay_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; -import * as grpc from "@grpc/grpc-js"; - -interface IRelayServiceService extends grpc.ServiceDefinition { - list: grpc.MethodDefinition; - addDevice: grpc.MethodDefinition; - removeDevice: grpc.MethodDefinition; - listDevices: grpc.MethodDefinition; -} - -export const RelayServiceService: IRelayServiceService; - -export interface IRelayServiceServer extends grpc.UntypedServiceImplementation { - list: grpc.handleUnaryCall; - addDevice: grpc.handleUnaryCall; - removeDevice: grpc.handleUnaryCall; - listDevices: grpc.handleUnaryCall; -} - -export class RelayServiceClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - list(argument: api_relay_pb.ListRelaysRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_relay_pb.ListRelaysRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_relay_pb.ListRelaysRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - addDevice(argument: api_relay_pb.AddRelayDeviceRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - addDevice(argument: api_relay_pb.AddRelayDeviceRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - addDevice(argument: api_relay_pb.AddRelayDeviceRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - removeDevice(argument: api_relay_pb.RemoveRelayDeviceRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - removeDevice(argument: api_relay_pb.RemoveRelayDeviceRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - removeDevice(argument: api_relay_pb.RemoveRelayDeviceRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listDevices(argument: api_relay_pb.ListRelayDevicesRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listDevices(argument: api_relay_pb.ListRelayDevicesRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listDevices(argument: api_relay_pb.ListRelayDevicesRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; -} diff --git a/api/js/api/relay_grpc_pb.js b/api/js/api/relay_grpc_pb.js deleted file mode 100644 index a97c08cf..00000000 --- a/api/js/api/relay_grpc_pb.js +++ /dev/null @@ -1,140 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var api_relay_pb = require('../api/relay_pb.js'); -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); - -function serialize_api_AddRelayDeviceRequest(arg) { - if (!(arg instanceof api_relay_pb.AddRelayDeviceRequest)) { - throw new Error('Expected argument of type api.AddRelayDeviceRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_AddRelayDeviceRequest(buffer_arg) { - return api_relay_pb.AddRelayDeviceRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListRelayDevicesRequest(arg) { - if (!(arg instanceof api_relay_pb.ListRelayDevicesRequest)) { - throw new Error('Expected argument of type api.ListRelayDevicesRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListRelayDevicesRequest(buffer_arg) { - return api_relay_pb.ListRelayDevicesRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListRelayDevicesResponse(arg) { - if (!(arg instanceof api_relay_pb.ListRelayDevicesResponse)) { - throw new Error('Expected argument of type api.ListRelayDevicesResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListRelayDevicesResponse(buffer_arg) { - return api_relay_pb.ListRelayDevicesResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListRelaysRequest(arg) { - if (!(arg instanceof api_relay_pb.ListRelaysRequest)) { - throw new Error('Expected argument of type api.ListRelaysRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListRelaysRequest(buffer_arg) { - return api_relay_pb.ListRelaysRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListRelaysResponse(arg) { - if (!(arg instanceof api_relay_pb.ListRelaysResponse)) { - throw new Error('Expected argument of type api.ListRelaysResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListRelaysResponse(buffer_arg) { - return api_relay_pb.ListRelaysResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_RemoveRelayDeviceRequest(arg) { - if (!(arg instanceof api_relay_pb.RemoveRelayDeviceRequest)) { - throw new Error('Expected argument of type api.RemoveRelayDeviceRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_RemoveRelayDeviceRequest(buffer_arg) { - return api_relay_pb.RemoveRelayDeviceRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_google_protobuf_Empty(arg) { - if (!(arg instanceof google_protobuf_empty_pb.Empty)) { - throw new Error('Expected argument of type google.protobuf.Empty'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_google_protobuf_Empty(buffer_arg) { - return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -// RelayService is the service providing API methos for managing relays. -var RelayServiceService = exports.RelayServiceService = { - // List lists the relays for the given application id. -list: { - path: '/api.RelayService/List', - requestStream: false, - responseStream: false, - requestType: api_relay_pb.ListRelaysRequest, - responseType: api_relay_pb.ListRelaysResponse, - requestSerialize: serialize_api_ListRelaysRequest, - requestDeserialize: deserialize_api_ListRelaysRequest, - responseSerialize: serialize_api_ListRelaysResponse, - responseDeserialize: deserialize_api_ListRelaysResponse, - }, - // AddDevice adds the given device to the relay. -addDevice: { - path: '/api.RelayService/AddDevice', - requestStream: false, - responseStream: false, - requestType: api_relay_pb.AddRelayDeviceRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_AddRelayDeviceRequest, - requestDeserialize: deserialize_api_AddRelayDeviceRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // RemoveDevice removes the given device from the relay. -removeDevice: { - path: '/api.RelayService/RemoveDevice', - requestStream: false, - responseStream: false, - requestType: api_relay_pb.RemoveRelayDeviceRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_RemoveRelayDeviceRequest, - requestDeserialize: deserialize_api_RemoveRelayDeviceRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // ListDevices lists the devices for the given relay. -listDevices: { - path: '/api.RelayService/ListDevices', - requestStream: false, - responseStream: false, - requestType: api_relay_pb.ListRelayDevicesRequest, - responseType: api_relay_pb.ListRelayDevicesResponse, - requestSerialize: serialize_api_ListRelayDevicesRequest, - requestDeserialize: deserialize_api_ListRelayDevicesRequest, - responseSerialize: serialize_api_ListRelayDevicesResponse, - responseDeserialize: deserialize_api_ListRelayDevicesResponse, - }, -}; - -exports.RelayServiceClient = grpc.makeGenericClientConstructor(RelayServiceService); diff --git a/api/js/api/relay_pb.d.ts b/api/js/api/relay_pb.d.ts deleted file mode 100644 index bb71c742..00000000 --- a/api/js/api/relay_pb.d.ts +++ /dev/null @@ -1,218 +0,0 @@ -// package: api -// file: api/relay.proto - -import * as jspb from "google-protobuf"; -import * as google_api_annotations_pb from "../google/api/annotations_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; - -export class RelayListItem extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - getName(): string; - setName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RelayListItem.AsObject; - static toObject(includeInstance: boolean, msg: RelayListItem): RelayListItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RelayListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RelayListItem; - static deserializeBinaryFromReader(message: RelayListItem, reader: jspb.BinaryReader): RelayListItem; -} - -export namespace RelayListItem { - export type AsObject = { - devEui: string, - name: string, - } -} - -export class ListRelaysRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): void; - - getOffset(): number; - setOffset(value: number): void; - - getApplicationId(): string; - setApplicationId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListRelaysRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListRelaysRequest): ListRelaysRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListRelaysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListRelaysRequest; - static deserializeBinaryFromReader(message: ListRelaysRequest, reader: jspb.BinaryReader): ListRelaysRequest; -} - -export namespace ListRelaysRequest { - export type AsObject = { - limit: number, - offset: number, - applicationId: string, - } -} - -export class ListRelaysResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): void; - - clearResultList(): void; - getResultList(): Array; - setResultList(value: Array): void; - addResult(value?: RelayListItem, index?: number): RelayListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListRelaysResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListRelaysResponse): ListRelaysResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListRelaysResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListRelaysResponse; - static deserializeBinaryFromReader(message: ListRelaysResponse, reader: jspb.BinaryReader): ListRelaysResponse; -} - -export namespace ListRelaysResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class AddRelayDeviceRequest extends jspb.Message { - getRelayDevEui(): string; - setRelayDevEui(value: string): void; - - getDeviceDevEui(): string; - setDeviceDevEui(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AddRelayDeviceRequest.AsObject; - static toObject(includeInstance: boolean, msg: AddRelayDeviceRequest): AddRelayDeviceRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AddRelayDeviceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AddRelayDeviceRequest; - static deserializeBinaryFromReader(message: AddRelayDeviceRequest, reader: jspb.BinaryReader): AddRelayDeviceRequest; -} - -export namespace AddRelayDeviceRequest { - export type AsObject = { - relayDevEui: string, - deviceDevEui: string, - } -} - -export class RemoveRelayDeviceRequest extends jspb.Message { - getRelayDevEui(): string; - setRelayDevEui(value: string): void; - - getDeviceDevEui(): string; - setDeviceDevEui(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveRelayDeviceRequest.AsObject; - static toObject(includeInstance: boolean, msg: RemoveRelayDeviceRequest): RemoveRelayDeviceRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RemoveRelayDeviceRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveRelayDeviceRequest; - static deserializeBinaryFromReader(message: RemoveRelayDeviceRequest, reader: jspb.BinaryReader): RemoveRelayDeviceRequest; -} - -export namespace RemoveRelayDeviceRequest { - export type AsObject = { - relayDevEui: string, - deviceDevEui: string, - } -} - -export class ListRelayDevicesRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): void; - - getOffset(): number; - setOffset(value: number): void; - - getRelayDevEui(): string; - setRelayDevEui(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListRelayDevicesRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListRelayDevicesRequest): ListRelayDevicesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListRelayDevicesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListRelayDevicesRequest; - static deserializeBinaryFromReader(message: ListRelayDevicesRequest, reader: jspb.BinaryReader): ListRelayDevicesRequest; -} - -export namespace ListRelayDevicesRequest { - export type AsObject = { - limit: number, - offset: number, - relayDevEui: string, - } -} - -export class RelayDeviceListItem extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - getName(): string; - setName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RelayDeviceListItem.AsObject; - static toObject(includeInstance: boolean, msg: RelayDeviceListItem): RelayDeviceListItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RelayDeviceListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RelayDeviceListItem; - static deserializeBinaryFromReader(message: RelayDeviceListItem, reader: jspb.BinaryReader): RelayDeviceListItem; -} - -export namespace RelayDeviceListItem { - export type AsObject = { - devEui: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - name: string, - } -} - -export class ListRelayDevicesResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): void; - - clearResultList(): void; - getResultList(): Array; - setResultList(value: Array): void; - addResult(value?: RelayDeviceListItem, index?: number): RelayDeviceListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListRelayDevicesResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListRelayDevicesResponse): ListRelayDevicesResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListRelayDevicesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListRelayDevicesResponse; - static deserializeBinaryFromReader(message: ListRelayDevicesResponse, reader: jspb.BinaryReader): ListRelayDevicesResponse; -} - -export namespace ListRelayDevicesResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - diff --git a/api/js/api/relay_pb.js b/api/js/api/relay_pb.js deleted file mode 100644 index 306bfbc3..00000000 --- a/api/js/api/relay_pb.js +++ /dev/null @@ -1,1648 +0,0 @@ -// source: api/relay.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -goog.exportSymbol('proto.api.AddRelayDeviceRequest', null, global); -goog.exportSymbol('proto.api.ListRelayDevicesRequest', null, global); -goog.exportSymbol('proto.api.ListRelayDevicesResponse', null, global); -goog.exportSymbol('proto.api.ListRelaysRequest', null, global); -goog.exportSymbol('proto.api.ListRelaysResponse', null, global); -goog.exportSymbol('proto.api.RelayDeviceListItem', null, global); -goog.exportSymbol('proto.api.RelayListItem', null, global); -goog.exportSymbol('proto.api.RemoveRelayDeviceRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.RelayListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.RelayListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.RelayListItem.displayName = 'proto.api.RelayListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListRelaysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListRelaysRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListRelaysRequest.displayName = 'proto.api.ListRelaysRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListRelaysResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListRelaysResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListRelaysResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListRelaysResponse.displayName = 'proto.api.ListRelaysResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.AddRelayDeviceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.AddRelayDeviceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.AddRelayDeviceRequest.displayName = 'proto.api.AddRelayDeviceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.RemoveRelayDeviceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.RemoveRelayDeviceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.RemoveRelayDeviceRequest.displayName = 'proto.api.RemoveRelayDeviceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListRelayDevicesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListRelayDevicesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListRelayDevicesRequest.displayName = 'proto.api.ListRelayDevicesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.RelayDeviceListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.RelayDeviceListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.RelayDeviceListItem.displayName = 'proto.api.RelayDeviceListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListRelayDevicesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListRelayDevicesResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListRelayDevicesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListRelayDevicesResponse.displayName = 'proto.api.ListRelayDevicesResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.RelayListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.RelayListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.RelayListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RelayListItem.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.RelayListItem} - */ -proto.api.RelayListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.RelayListItem; - return proto.api.RelayListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.RelayListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.RelayListItem} - */ -proto.api.RelayListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.RelayListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.RelayListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.RelayListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RelayListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.RelayListItem.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RelayListItem} returns this - */ -proto.api.RelayListItem.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.RelayListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RelayListItem} returns this - */ -proto.api.RelayListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListRelaysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListRelaysRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListRelaysRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRelaysRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - applicationId: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListRelaysRequest} - */ -proto.api.ListRelaysRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListRelaysRequest; - return proto.api.ListRelaysRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListRelaysRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListRelaysRequest} - */ -proto.api.ListRelaysRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListRelaysRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListRelaysRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListRelaysRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRelaysRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListRelaysRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListRelaysRequest} returns this - */ -proto.api.ListRelaysRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListRelaysRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListRelaysRequest} returns this - */ -proto.api.ListRelaysRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string application_id = 3; - * @return {string} - */ -proto.api.ListRelaysRequest.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListRelaysRequest} returns this - */ -proto.api.ListRelaysRequest.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListRelaysResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListRelaysResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListRelaysResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListRelaysResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRelaysResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.RelayListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListRelaysResponse} - */ -proto.api.ListRelaysResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListRelaysResponse; - return proto.api.ListRelaysResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListRelaysResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListRelaysResponse} - */ -proto.api.ListRelaysResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.RelayListItem; - reader.readMessage(value,proto.api.RelayListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListRelaysResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListRelaysResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListRelaysResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRelaysResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.RelayListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListRelaysResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListRelaysResponse} returns this - */ -proto.api.ListRelaysResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated RelayListItem result = 2; - * @return {!Array} - */ -proto.api.ListRelaysResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.RelayListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListRelaysResponse} returns this -*/ -proto.api.ListRelaysResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.RelayListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.RelayListItem} - */ -proto.api.ListRelaysResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.RelayListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListRelaysResponse} returns this - */ -proto.api.ListRelaysResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.AddRelayDeviceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.AddRelayDeviceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.AddRelayDeviceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AddRelayDeviceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - relayDevEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - deviceDevEui: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.AddRelayDeviceRequest} - */ -proto.api.AddRelayDeviceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.AddRelayDeviceRequest; - return proto.api.AddRelayDeviceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.AddRelayDeviceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.AddRelayDeviceRequest} - */ -proto.api.AddRelayDeviceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setRelayDevEui(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.AddRelayDeviceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.AddRelayDeviceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.AddRelayDeviceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AddRelayDeviceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRelayDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDeviceDevEui(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string relay_dev_eui = 1; - * @return {string} - */ -proto.api.AddRelayDeviceRequest.prototype.getRelayDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AddRelayDeviceRequest} returns this - */ -proto.api.AddRelayDeviceRequest.prototype.setRelayDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string device_dev_eui = 2; - * @return {string} - */ -proto.api.AddRelayDeviceRequest.prototype.getDeviceDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.AddRelayDeviceRequest} returns this - */ -proto.api.AddRelayDeviceRequest.prototype.setDeviceDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.RemoveRelayDeviceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.RemoveRelayDeviceRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.RemoveRelayDeviceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RemoveRelayDeviceRequest.toObject = function(includeInstance, msg) { - var f, obj = { - relayDevEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - deviceDevEui: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.RemoveRelayDeviceRequest} - */ -proto.api.RemoveRelayDeviceRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.RemoveRelayDeviceRequest; - return proto.api.RemoveRelayDeviceRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.RemoveRelayDeviceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.RemoveRelayDeviceRequest} - */ -proto.api.RemoveRelayDeviceRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setRelayDevEui(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.RemoveRelayDeviceRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.RemoveRelayDeviceRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.RemoveRelayDeviceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RemoveRelayDeviceRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRelayDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDeviceDevEui(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string relay_dev_eui = 1; - * @return {string} - */ -proto.api.RemoveRelayDeviceRequest.prototype.getRelayDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RemoveRelayDeviceRequest} returns this - */ -proto.api.RemoveRelayDeviceRequest.prototype.setRelayDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string device_dev_eui = 2; - * @return {string} - */ -proto.api.RemoveRelayDeviceRequest.prototype.getDeviceDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RemoveRelayDeviceRequest} returns this - */ -proto.api.RemoveRelayDeviceRequest.prototype.setDeviceDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListRelayDevicesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListRelayDevicesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListRelayDevicesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRelayDevicesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - relayDevEui: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListRelayDevicesRequest} - */ -proto.api.ListRelayDevicesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListRelayDevicesRequest; - return proto.api.ListRelayDevicesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListRelayDevicesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListRelayDevicesRequest} - */ -proto.api.ListRelayDevicesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setRelayDevEui(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListRelayDevicesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListRelayDevicesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListRelayDevicesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRelayDevicesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getRelayDevEui(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListRelayDevicesRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListRelayDevicesRequest} returns this - */ -proto.api.ListRelayDevicesRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListRelayDevicesRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListRelayDevicesRequest} returns this - */ -proto.api.ListRelayDevicesRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string relay_dev_eui = 3; - * @return {string} - */ -proto.api.ListRelayDevicesRequest.prototype.getRelayDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListRelayDevicesRequest} returns this - */ -proto.api.ListRelayDevicesRequest.prototype.setRelayDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.RelayDeviceListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.RelayDeviceListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.RelayDeviceListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RelayDeviceListItem.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.RelayDeviceListItem} - */ -proto.api.RelayDeviceListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.RelayDeviceListItem; - return proto.api.RelayDeviceListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.RelayDeviceListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.RelayDeviceListItem} - */ -proto.api.RelayDeviceListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.RelayDeviceListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.RelayDeviceListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.RelayDeviceListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.RelayDeviceListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.api.RelayDeviceListItem.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RelayDeviceListItem} returns this - */ -proto.api.RelayDeviceListItem.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.RelayDeviceListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.RelayDeviceListItem} returns this -*/ -proto.api.RelayDeviceListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.RelayDeviceListItem} returns this - */ -proto.api.RelayDeviceListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.RelayDeviceListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string name = 3; - * @return {string} - */ -proto.api.RelayDeviceListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.RelayDeviceListItem} returns this - */ -proto.api.RelayDeviceListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListRelayDevicesResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListRelayDevicesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListRelayDevicesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListRelayDevicesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRelayDevicesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.RelayDeviceListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListRelayDevicesResponse} - */ -proto.api.ListRelayDevicesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListRelayDevicesResponse; - return proto.api.ListRelayDevicesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListRelayDevicesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListRelayDevicesResponse} - */ -proto.api.ListRelayDevicesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.RelayDeviceListItem; - reader.readMessage(value,proto.api.RelayDeviceListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListRelayDevicesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListRelayDevicesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListRelayDevicesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListRelayDevicesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.RelayDeviceListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListRelayDevicesResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListRelayDevicesResponse} returns this - */ -proto.api.ListRelayDevicesResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated RelayDeviceListItem result = 2; - * @return {!Array} - */ -proto.api.ListRelayDevicesResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.RelayDeviceListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListRelayDevicesResponse} returns this -*/ -proto.api.ListRelayDevicesResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.RelayDeviceListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.RelayDeviceListItem} - */ -proto.api.ListRelayDevicesResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.RelayDeviceListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListRelayDevicesResponse} returns this - */ -proto.api.ListRelayDevicesResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - -goog.object.extend(exports, proto.api); diff --git a/api/js/api/tenant_grpc_pb.d.ts b/api/js/api/tenant_grpc_pb.d.ts deleted file mode 100644 index d47134fc..00000000 --- a/api/js/api/tenant_grpc_pb.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -// package: api -// file: api/tenant.proto - -import * as api_tenant_pb from "../api/tenant_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; -import * as grpc from "@grpc/grpc-js"; - -interface ITenantServiceService extends grpc.ServiceDefinition { - create: grpc.MethodDefinition; - get: grpc.MethodDefinition; - update: grpc.MethodDefinition; - delete: grpc.MethodDefinition; - list: grpc.MethodDefinition; - addUser: grpc.MethodDefinition; - getUser: grpc.MethodDefinition; - updateUser: grpc.MethodDefinition; - deleteUser: grpc.MethodDefinition; - listUsers: grpc.MethodDefinition; -} - -export const TenantServiceService: ITenantServiceService; - -export interface ITenantServiceServer extends grpc.UntypedServiceImplementation { - create: grpc.handleUnaryCall; - get: grpc.handleUnaryCall; - update: grpc.handleUnaryCall; - delete: grpc.handleUnaryCall; - list: grpc.handleUnaryCall; - addUser: grpc.handleUnaryCall; - getUser: grpc.handleUnaryCall; - updateUser: grpc.handleUnaryCall; - deleteUser: grpc.handleUnaryCall; - listUsers: grpc.handleUnaryCall; -} - -export class TenantServiceClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - create(argument: api_tenant_pb.CreateTenantRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - create(argument: api_tenant_pb.CreateTenantRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - create(argument: api_tenant_pb.CreateTenantRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_tenant_pb.GetTenantRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_tenant_pb.GetTenantRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_tenant_pb.GetTenantRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_tenant_pb.UpdateTenantRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_tenant_pb.UpdateTenantRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_tenant_pb.UpdateTenantRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_tenant_pb.DeleteTenantRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_tenant_pb.DeleteTenantRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_tenant_pb.DeleteTenantRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_tenant_pb.ListTenantsRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_tenant_pb.ListTenantsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_tenant_pb.ListTenantsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - addUser(argument: api_tenant_pb.AddTenantUserRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - addUser(argument: api_tenant_pb.AddTenantUserRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - addUser(argument: api_tenant_pb.AddTenantUserRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getUser(argument: api_tenant_pb.GetTenantUserRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getUser(argument: api_tenant_pb.GetTenantUserRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - getUser(argument: api_tenant_pb.GetTenantUserRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateUser(argument: api_tenant_pb.UpdateTenantUserRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateUser(argument: api_tenant_pb.UpdateTenantUserRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updateUser(argument: api_tenant_pb.UpdateTenantUserRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteUser(argument: api_tenant_pb.DeleteTenantUserRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteUser(argument: api_tenant_pb.DeleteTenantUserRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - deleteUser(argument: api_tenant_pb.DeleteTenantUserRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listUsers(argument: api_tenant_pb.ListTenantUsersRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listUsers(argument: api_tenant_pb.ListTenantUsersRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - listUsers(argument: api_tenant_pb.ListTenantUsersRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; -} diff --git a/api/js/api/tenant_grpc_pb.js b/api/js/api/tenant_grpc_pb.js deleted file mode 100644 index 5bc2e331..00000000 --- a/api/js/api/tenant_grpc_pb.js +++ /dev/null @@ -1,312 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var api_tenant_pb = require('../api/tenant_pb.js'); -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); - -function serialize_api_AddTenantUserRequest(arg) { - if (!(arg instanceof api_tenant_pb.AddTenantUserRequest)) { - throw new Error('Expected argument of type api.AddTenantUserRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_AddTenantUserRequest(buffer_arg) { - return api_tenant_pb.AddTenantUserRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateTenantRequest(arg) { - if (!(arg instanceof api_tenant_pb.CreateTenantRequest)) { - throw new Error('Expected argument of type api.CreateTenantRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateTenantRequest(buffer_arg) { - return api_tenant_pb.CreateTenantRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateTenantResponse(arg) { - if (!(arg instanceof api_tenant_pb.CreateTenantResponse)) { - throw new Error('Expected argument of type api.CreateTenantResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateTenantResponse(buffer_arg) { - return api_tenant_pb.CreateTenantResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteTenantRequest(arg) { - if (!(arg instanceof api_tenant_pb.DeleteTenantRequest)) { - throw new Error('Expected argument of type api.DeleteTenantRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteTenantRequest(buffer_arg) { - return api_tenant_pb.DeleteTenantRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteTenantUserRequest(arg) { - if (!(arg instanceof api_tenant_pb.DeleteTenantUserRequest)) { - throw new Error('Expected argument of type api.DeleteTenantUserRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteTenantUserRequest(buffer_arg) { - return api_tenant_pb.DeleteTenantUserRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetTenantRequest(arg) { - if (!(arg instanceof api_tenant_pb.GetTenantRequest)) { - throw new Error('Expected argument of type api.GetTenantRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetTenantRequest(buffer_arg) { - return api_tenant_pb.GetTenantRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetTenantResponse(arg) { - if (!(arg instanceof api_tenant_pb.GetTenantResponse)) { - throw new Error('Expected argument of type api.GetTenantResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetTenantResponse(buffer_arg) { - return api_tenant_pb.GetTenantResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetTenantUserRequest(arg) { - if (!(arg instanceof api_tenant_pb.GetTenantUserRequest)) { - throw new Error('Expected argument of type api.GetTenantUserRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetTenantUserRequest(buffer_arg) { - return api_tenant_pb.GetTenantUserRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetTenantUserResponse(arg) { - if (!(arg instanceof api_tenant_pb.GetTenantUserResponse)) { - throw new Error('Expected argument of type api.GetTenantUserResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetTenantUserResponse(buffer_arg) { - return api_tenant_pb.GetTenantUserResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListTenantUsersRequest(arg) { - if (!(arg instanceof api_tenant_pb.ListTenantUsersRequest)) { - throw new Error('Expected argument of type api.ListTenantUsersRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListTenantUsersRequest(buffer_arg) { - return api_tenant_pb.ListTenantUsersRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListTenantUsersResponse(arg) { - if (!(arg instanceof api_tenant_pb.ListTenantUsersResponse)) { - throw new Error('Expected argument of type api.ListTenantUsersResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListTenantUsersResponse(buffer_arg) { - return api_tenant_pb.ListTenantUsersResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListTenantsRequest(arg) { - if (!(arg instanceof api_tenant_pb.ListTenantsRequest)) { - throw new Error('Expected argument of type api.ListTenantsRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListTenantsRequest(buffer_arg) { - return api_tenant_pb.ListTenantsRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListTenantsResponse(arg) { - if (!(arg instanceof api_tenant_pb.ListTenantsResponse)) { - throw new Error('Expected argument of type api.ListTenantsResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListTenantsResponse(buffer_arg) { - return api_tenant_pb.ListTenantsResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateTenantRequest(arg) { - if (!(arg instanceof api_tenant_pb.UpdateTenantRequest)) { - throw new Error('Expected argument of type api.UpdateTenantRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateTenantRequest(buffer_arg) { - return api_tenant_pb.UpdateTenantRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateTenantUserRequest(arg) { - if (!(arg instanceof api_tenant_pb.UpdateTenantUserRequest)) { - throw new Error('Expected argument of type api.UpdateTenantUserRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateTenantUserRequest(buffer_arg) { - return api_tenant_pb.UpdateTenantUserRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_google_protobuf_Empty(arg) { - if (!(arg instanceof google_protobuf_empty_pb.Empty)) { - throw new Error('Expected argument of type google.protobuf.Empty'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_google_protobuf_Empty(buffer_arg) { - return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -// TenantService is the service providing API methods for managing tenants. -var TenantServiceService = exports.TenantServiceService = { - // Create a new tenant. -create: { - path: '/api.TenantService/Create', - requestStream: false, - responseStream: false, - requestType: api_tenant_pb.CreateTenantRequest, - responseType: api_tenant_pb.CreateTenantResponse, - requestSerialize: serialize_api_CreateTenantRequest, - requestDeserialize: deserialize_api_CreateTenantRequest, - responseSerialize: serialize_api_CreateTenantResponse, - responseDeserialize: deserialize_api_CreateTenantResponse, - }, - // Get the tenant for the given ID. -get: { - path: '/api.TenantService/Get', - requestStream: false, - responseStream: false, - requestType: api_tenant_pb.GetTenantRequest, - responseType: api_tenant_pb.GetTenantResponse, - requestSerialize: serialize_api_GetTenantRequest, - requestDeserialize: deserialize_api_GetTenantRequest, - responseSerialize: serialize_api_GetTenantResponse, - responseDeserialize: deserialize_api_GetTenantResponse, - }, - // Update the given tenant. -update: { - path: '/api.TenantService/Update', - requestStream: false, - responseStream: false, - requestType: api_tenant_pb.UpdateTenantRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateTenantRequest, - requestDeserialize: deserialize_api_UpdateTenantRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete the tenant with the given ID. -delete: { - path: '/api.TenantService/Delete', - requestStream: false, - responseStream: false, - requestType: api_tenant_pb.DeleteTenantRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteTenantRequest, - requestDeserialize: deserialize_api_DeleteTenantRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get the list of tenants. -list: { - path: '/api.TenantService/List', - requestStream: false, - responseStream: false, - requestType: api_tenant_pb.ListTenantsRequest, - responseType: api_tenant_pb.ListTenantsResponse, - requestSerialize: serialize_api_ListTenantsRequest, - requestDeserialize: deserialize_api_ListTenantsRequest, - responseSerialize: serialize_api_ListTenantsResponse, - responseDeserialize: deserialize_api_ListTenantsResponse, - }, - // Add an user to the tenant. -// Note: the user must already exist. -addUser: { - path: '/api.TenantService/AddUser', - requestStream: false, - responseStream: false, - requestType: api_tenant_pb.AddTenantUserRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_AddTenantUserRequest, - requestDeserialize: deserialize_api_AddTenantUserRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get the the tenant user for the given tenant and user IDs. -getUser: { - path: '/api.TenantService/GetUser', - requestStream: false, - responseStream: false, - requestType: api_tenant_pb.GetTenantUserRequest, - responseType: api_tenant_pb.GetTenantUserResponse, - requestSerialize: serialize_api_GetTenantUserRequest, - requestDeserialize: deserialize_api_GetTenantUserRequest, - responseSerialize: serialize_api_GetTenantUserResponse, - responseDeserialize: deserialize_api_GetTenantUserResponse, - }, - // Update the given tenant user. -updateUser: { - path: '/api.TenantService/UpdateUser', - requestStream: false, - responseStream: false, - requestType: api_tenant_pb.UpdateTenantUserRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateTenantUserRequest, - requestDeserialize: deserialize_api_UpdateTenantUserRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete the given tenant user. -deleteUser: { - path: '/api.TenantService/DeleteUser', - requestStream: false, - responseStream: false, - requestType: api_tenant_pb.DeleteTenantUserRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteTenantUserRequest, - requestDeserialize: deserialize_api_DeleteTenantUserRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get the list of tenant users. -listUsers: { - path: '/api.TenantService/ListUsers', - requestStream: false, - responseStream: false, - requestType: api_tenant_pb.ListTenantUsersRequest, - responseType: api_tenant_pb.ListTenantUsersResponse, - requestSerialize: serialize_api_ListTenantUsersRequest, - requestDeserialize: deserialize_api_ListTenantUsersRequest, - responseSerialize: serialize_api_ListTenantUsersResponse, - responseDeserialize: deserialize_api_ListTenantUsersResponse, - }, -}; - -exports.TenantServiceClient = grpc.makeGenericClientConstructor(TenantServiceService); diff --git a/api/js/api/tenant_pb.d.ts b/api/js/api/tenant_pb.d.ts deleted file mode 100644 index 91088371..00000000 --- a/api/js/api/tenant_pb.d.ts +++ /dev/null @@ -1,583 +0,0 @@ -// package: api -// file: api/tenant.proto - -import * as jspb from "google-protobuf"; -import * as google_api_annotations_pb from "../google/api/annotations_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; - -export class Tenant extends jspb.Message { - getId(): string; - setId(value: string): void; - - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getCanHaveGateways(): boolean; - setCanHaveGateways(value: boolean): void; - - getMaxGatewayCount(): number; - setMaxGatewayCount(value: number): void; - - getMaxDeviceCount(): number; - setMaxDeviceCount(value: number): void; - - getPrivateGatewaysUp(): boolean; - setPrivateGatewaysUp(value: boolean): void; - - getPrivateGatewaysDown(): boolean; - setPrivateGatewaysDown(value: boolean): void; - - getTagsMap(): jspb.Map; - clearTagsMap(): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Tenant.AsObject; - static toObject(includeInstance: boolean, msg: Tenant): Tenant.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Tenant, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Tenant; - static deserializeBinaryFromReader(message: Tenant, reader: jspb.BinaryReader): Tenant; -} - -export namespace Tenant { - export type AsObject = { - id: string, - name: string, - description: string, - canHaveGateways: boolean, - maxGatewayCount: number, - maxDeviceCount: number, - privateGatewaysUp: boolean, - privateGatewaysDown: boolean, - tagsMap: Array<[string, string]>, - } -} - -export class TenantListItem extends jspb.Message { - getId(): string; - setId(value: string): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - getName(): string; - setName(value: string): void; - - getCanHaveGateways(): boolean; - setCanHaveGateways(value: boolean): void; - - getPrivateGatewaysUp(): boolean; - setPrivateGatewaysUp(value: boolean): void; - - getPrivateGatewaysDown(): boolean; - setPrivateGatewaysDown(value: boolean): void; - - getMaxGatewayCount(): number; - setMaxGatewayCount(value: number): void; - - getMaxDeviceCount(): number; - setMaxDeviceCount(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TenantListItem.AsObject; - static toObject(includeInstance: boolean, msg: TenantListItem): TenantListItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TenantListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TenantListItem; - static deserializeBinaryFromReader(message: TenantListItem, reader: jspb.BinaryReader): TenantListItem; -} - -export namespace TenantListItem { - export type AsObject = { - id: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - name: string, - canHaveGateways: boolean, - privateGatewaysUp: boolean, - privateGatewaysDown: boolean, - maxGatewayCount: number, - maxDeviceCount: number, - } -} - -export class CreateTenantRequest extends jspb.Message { - hasTenant(): boolean; - clearTenant(): void; - getTenant(): Tenant | undefined; - setTenant(value?: Tenant): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateTenantRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateTenantRequest): CreateTenantRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateTenantRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateTenantRequest; - static deserializeBinaryFromReader(message: CreateTenantRequest, reader: jspb.BinaryReader): CreateTenantRequest; -} - -export namespace CreateTenantRequest { - export type AsObject = { - tenant?: Tenant.AsObject, - } -} - -export class CreateTenantResponse extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateTenantResponse.AsObject; - static toObject(includeInstance: boolean, msg: CreateTenantResponse): CreateTenantResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateTenantResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateTenantResponse; - static deserializeBinaryFromReader(message: CreateTenantResponse, reader: jspb.BinaryReader): CreateTenantResponse; -} - -export namespace CreateTenantResponse { - export type AsObject = { - id: string, - } -} - -export class GetTenantRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetTenantRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetTenantRequest): GetTenantRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetTenantRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetTenantRequest; - static deserializeBinaryFromReader(message: GetTenantRequest, reader: jspb.BinaryReader): GetTenantRequest; -} - -export namespace GetTenantRequest { - export type AsObject = { - id: string, - } -} - -export class GetTenantResponse extends jspb.Message { - hasTenant(): boolean; - clearTenant(): void; - getTenant(): Tenant | undefined; - setTenant(value?: Tenant): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetTenantResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetTenantResponse): GetTenantResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetTenantResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetTenantResponse; - static deserializeBinaryFromReader(message: GetTenantResponse, reader: jspb.BinaryReader): GetTenantResponse; -} - -export namespace GetTenantResponse { - export type AsObject = { - tenant?: Tenant.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateTenantRequest extends jspb.Message { - hasTenant(): boolean; - clearTenant(): void; - getTenant(): Tenant | undefined; - setTenant(value?: Tenant): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateTenantRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateTenantRequest): UpdateTenantRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateTenantRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateTenantRequest; - static deserializeBinaryFromReader(message: UpdateTenantRequest, reader: jspb.BinaryReader): UpdateTenantRequest; -} - -export namespace UpdateTenantRequest { - export type AsObject = { - tenant?: Tenant.AsObject, - } -} - -export class DeleteTenantRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteTenantRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteTenantRequest): DeleteTenantRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteTenantRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteTenantRequest; - static deserializeBinaryFromReader(message: DeleteTenantRequest, reader: jspb.BinaryReader): DeleteTenantRequest; -} - -export namespace DeleteTenantRequest { - export type AsObject = { - id: string, - } -} - -export class ListTenantsRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): void; - - getOffset(): number; - setOffset(value: number): void; - - getSearch(): string; - setSearch(value: string): void; - - getUserId(): string; - setUserId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListTenantsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListTenantsRequest): ListTenantsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListTenantsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListTenantsRequest; - static deserializeBinaryFromReader(message: ListTenantsRequest, reader: jspb.BinaryReader): ListTenantsRequest; -} - -export namespace ListTenantsRequest { - export type AsObject = { - limit: number, - offset: number, - search: string, - userId: string, - } -} - -export class ListTenantsResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): void; - - clearResultList(): void; - getResultList(): Array; - setResultList(value: Array): void; - addResult(value?: TenantListItem, index?: number): TenantListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListTenantsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListTenantsResponse): ListTenantsResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListTenantsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListTenantsResponse; - static deserializeBinaryFromReader(message: ListTenantsResponse, reader: jspb.BinaryReader): ListTenantsResponse; -} - -export namespace ListTenantsResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class TenantUser extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): void; - - getUserId(): string; - setUserId(value: string): void; - - getIsAdmin(): boolean; - setIsAdmin(value: boolean): void; - - getIsDeviceAdmin(): boolean; - setIsDeviceAdmin(value: boolean): void; - - getIsGatewayAdmin(): boolean; - setIsGatewayAdmin(value: boolean): void; - - getEmail(): string; - setEmail(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TenantUser.AsObject; - static toObject(includeInstance: boolean, msg: TenantUser): TenantUser.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TenantUser, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TenantUser; - static deserializeBinaryFromReader(message: TenantUser, reader: jspb.BinaryReader): TenantUser; -} - -export namespace TenantUser { - export type AsObject = { - tenantId: string, - userId: string, - isAdmin: boolean, - isDeviceAdmin: boolean, - isGatewayAdmin: boolean, - email: string, - } -} - -export class TenantUserListItem extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): void; - - getUserId(): string; - setUserId(value: string): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - getEmail(): string; - setEmail(value: string): void; - - getIsAdmin(): boolean; - setIsAdmin(value: boolean): void; - - getIsDeviceAdmin(): boolean; - setIsDeviceAdmin(value: boolean): void; - - getIsGatewayAdmin(): boolean; - setIsGatewayAdmin(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TenantUserListItem.AsObject; - static toObject(includeInstance: boolean, msg: TenantUserListItem): TenantUserListItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TenantUserListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TenantUserListItem; - static deserializeBinaryFromReader(message: TenantUserListItem, reader: jspb.BinaryReader): TenantUserListItem; -} - -export namespace TenantUserListItem { - export type AsObject = { - tenantId: string, - userId: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - email: string, - isAdmin: boolean, - isDeviceAdmin: boolean, - isGatewayAdmin: boolean, - } -} - -export class AddTenantUserRequest extends jspb.Message { - hasTenantUser(): boolean; - clearTenantUser(): void; - getTenantUser(): TenantUser | undefined; - setTenantUser(value?: TenantUser): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AddTenantUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: AddTenantUserRequest): AddTenantUserRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AddTenantUserRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AddTenantUserRequest; - static deserializeBinaryFromReader(message: AddTenantUserRequest, reader: jspb.BinaryReader): AddTenantUserRequest; -} - -export namespace AddTenantUserRequest { - export type AsObject = { - tenantUser?: TenantUser.AsObject, - } -} - -export class GetTenantUserRequest extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): void; - - getUserId(): string; - setUserId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetTenantUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetTenantUserRequest): GetTenantUserRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetTenantUserRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetTenantUserRequest; - static deserializeBinaryFromReader(message: GetTenantUserRequest, reader: jspb.BinaryReader): GetTenantUserRequest; -} - -export namespace GetTenantUserRequest { - export type AsObject = { - tenantId: string, - userId: string, - } -} - -export class GetTenantUserResponse extends jspb.Message { - hasTenantUser(): boolean; - clearTenantUser(): void; - getTenantUser(): TenantUser | undefined; - setTenantUser(value?: TenantUser): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetTenantUserResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetTenantUserResponse): GetTenantUserResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetTenantUserResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetTenantUserResponse; - static deserializeBinaryFromReader(message: GetTenantUserResponse, reader: jspb.BinaryReader): GetTenantUserResponse; -} - -export namespace GetTenantUserResponse { - export type AsObject = { - tenantUser?: TenantUser.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateTenantUserRequest extends jspb.Message { - hasTenantUser(): boolean; - clearTenantUser(): void; - getTenantUser(): TenantUser | undefined; - setTenantUser(value?: TenantUser): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateTenantUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateTenantUserRequest): UpdateTenantUserRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateTenantUserRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateTenantUserRequest; - static deserializeBinaryFromReader(message: UpdateTenantUserRequest, reader: jspb.BinaryReader): UpdateTenantUserRequest; -} - -export namespace UpdateTenantUserRequest { - export type AsObject = { - tenantUser?: TenantUser.AsObject, - } -} - -export class DeleteTenantUserRequest extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): void; - - getUserId(): string; - setUserId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteTenantUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteTenantUserRequest): DeleteTenantUserRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteTenantUserRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteTenantUserRequest; - static deserializeBinaryFromReader(message: DeleteTenantUserRequest, reader: jspb.BinaryReader): DeleteTenantUserRequest; -} - -export namespace DeleteTenantUserRequest { - export type AsObject = { - tenantId: string, - userId: string, - } -} - -export class ListTenantUsersRequest extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): void; - - getLimit(): number; - setLimit(value: number): void; - - getOffset(): number; - setOffset(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListTenantUsersRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListTenantUsersRequest): ListTenantUsersRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListTenantUsersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListTenantUsersRequest; - static deserializeBinaryFromReader(message: ListTenantUsersRequest, reader: jspb.BinaryReader): ListTenantUsersRequest; -} - -export namespace ListTenantUsersRequest { - export type AsObject = { - tenantId: string, - limit: number, - offset: number, - } -} - -export class ListTenantUsersResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): void; - - clearResultList(): void; - getResultList(): Array; - setResultList(value: Array): void; - addResult(value?: TenantUserListItem, index?: number): TenantUserListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListTenantUsersResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListTenantUsersResponse): ListTenantUsersResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListTenantUsersResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListTenantUsersResponse; - static deserializeBinaryFromReader(message: ListTenantUsersResponse, reader: jspb.BinaryReader): ListTenantUsersResponse; -} - -export namespace ListTenantUsersResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - diff --git a/api/js/api/tenant_pb.js b/api/js/api/tenant_pb.js deleted file mode 100644 index 91a61da0..00000000 --- a/api/js/api/tenant_pb.js +++ /dev/null @@ -1,4496 +0,0 @@ -// source: api/tenant.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -goog.exportSymbol('proto.api.AddTenantUserRequest', null, global); -goog.exportSymbol('proto.api.CreateTenantRequest', null, global); -goog.exportSymbol('proto.api.CreateTenantResponse', null, global); -goog.exportSymbol('proto.api.DeleteTenantRequest', null, global); -goog.exportSymbol('proto.api.DeleteTenantUserRequest', null, global); -goog.exportSymbol('proto.api.GetTenantRequest', null, global); -goog.exportSymbol('proto.api.GetTenantResponse', null, global); -goog.exportSymbol('proto.api.GetTenantUserRequest', null, global); -goog.exportSymbol('proto.api.GetTenantUserResponse', null, global); -goog.exportSymbol('proto.api.ListTenantUsersRequest', null, global); -goog.exportSymbol('proto.api.ListTenantUsersResponse', null, global); -goog.exportSymbol('proto.api.ListTenantsRequest', null, global); -goog.exportSymbol('proto.api.ListTenantsResponse', null, global); -goog.exportSymbol('proto.api.Tenant', null, global); -goog.exportSymbol('proto.api.TenantListItem', null, global); -goog.exportSymbol('proto.api.TenantUser', null, global); -goog.exportSymbol('proto.api.TenantUserListItem', null, global); -goog.exportSymbol('proto.api.UpdateTenantRequest', null, global); -goog.exportSymbol('proto.api.UpdateTenantUserRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.Tenant = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.Tenant, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.Tenant.displayName = 'proto.api.Tenant'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.TenantListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.TenantListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.TenantListItem.displayName = 'proto.api.TenantListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateTenantRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateTenantRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateTenantRequest.displayName = 'proto.api.CreateTenantRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateTenantResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateTenantResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateTenantResponse.displayName = 'proto.api.CreateTenantResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetTenantRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetTenantRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetTenantRequest.displayName = 'proto.api.GetTenantRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetTenantResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetTenantResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetTenantResponse.displayName = 'proto.api.GetTenantResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateTenantRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateTenantRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateTenantRequest.displayName = 'proto.api.UpdateTenantRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteTenantRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteTenantRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteTenantRequest.displayName = 'proto.api.DeleteTenantRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListTenantsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListTenantsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListTenantsRequest.displayName = 'proto.api.ListTenantsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListTenantsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListTenantsResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListTenantsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListTenantsResponse.displayName = 'proto.api.ListTenantsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.TenantUser = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.TenantUser, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.TenantUser.displayName = 'proto.api.TenantUser'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.TenantUserListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.TenantUserListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.TenantUserListItem.displayName = 'proto.api.TenantUserListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.AddTenantUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.AddTenantUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.AddTenantUserRequest.displayName = 'proto.api.AddTenantUserRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetTenantUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetTenantUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetTenantUserRequest.displayName = 'proto.api.GetTenantUserRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetTenantUserResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetTenantUserResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetTenantUserResponse.displayName = 'proto.api.GetTenantUserResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateTenantUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateTenantUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateTenantUserRequest.displayName = 'proto.api.UpdateTenantUserRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteTenantUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteTenantUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteTenantUserRequest.displayName = 'proto.api.DeleteTenantUserRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListTenantUsersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListTenantUsersRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListTenantUsersRequest.displayName = 'proto.api.ListTenantUsersRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListTenantUsersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListTenantUsersResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListTenantUsersResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListTenantUsersResponse.displayName = 'proto.api.ListTenantUsersResponse'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.Tenant.prototype.toObject = function(opt_includeInstance) { - return proto.api.Tenant.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.Tenant} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Tenant.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - canHaveGateways: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - maxGatewayCount: jspb.Message.getFieldWithDefault(msg, 5, 0), - maxDeviceCount: jspb.Message.getFieldWithDefault(msg, 6, 0), - privateGatewaysUp: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - privateGatewaysDown: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.Tenant} - */ -proto.api.Tenant.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.Tenant; - return proto.api.Tenant.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.Tenant} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.Tenant} - */ -proto.api.Tenant.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCanHaveGateways(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setMaxGatewayCount(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setMaxDeviceCount(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPrivateGatewaysUp(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPrivateGatewaysDown(value); - break; - case 9: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.Tenant.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.Tenant.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.Tenant} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.Tenant.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getCanHaveGateways(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getMaxGatewayCount(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getMaxDeviceCount(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } - f = message.getPrivateGatewaysUp(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getPrivateGatewaysDown(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.Tenant.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Tenant} returns this - */ -proto.api.Tenant.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.api.Tenant.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Tenant} returns this - */ -proto.api.Tenant.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.api.Tenant.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.Tenant} returns this - */ -proto.api.Tenant.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional bool can_have_gateways = 4; - * @return {boolean} - */ -proto.api.Tenant.prototype.getCanHaveGateways = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.Tenant} returns this - */ -proto.api.Tenant.prototype.setCanHaveGateways = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional uint32 max_gateway_count = 5; - * @return {number} - */ -proto.api.Tenant.prototype.getMaxGatewayCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.Tenant} returns this - */ -proto.api.Tenant.prototype.setMaxGatewayCount = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional uint32 max_device_count = 6; - * @return {number} - */ -proto.api.Tenant.prototype.getMaxDeviceCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.Tenant} returns this - */ -proto.api.Tenant.prototype.setMaxDeviceCount = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional bool private_gateways_up = 7; - * @return {boolean} - */ -proto.api.Tenant.prototype.getPrivateGatewaysUp = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.Tenant} returns this - */ -proto.api.Tenant.prototype.setPrivateGatewaysUp = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * optional bool private_gateways_down = 8; - * @return {boolean} - */ -proto.api.Tenant.prototype.getPrivateGatewaysDown = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.Tenant} returns this - */ -proto.api.Tenant.prototype.setPrivateGatewaysDown = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); -}; - - -/** - * map tags = 9; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.api.Tenant.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 9, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.api.Tenant} returns this - */ -proto.api.Tenant.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.TenantListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.TenantListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.TenantListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.TenantListItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 4, ""), - canHaveGateways: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - privateGatewaysUp: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - privateGatewaysDown: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - maxGatewayCount: jspb.Message.getFieldWithDefault(msg, 7, 0), - maxDeviceCount: jspb.Message.getFieldWithDefault(msg, 8, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.TenantListItem} - */ -proto.api.TenantListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.TenantListItem; - return proto.api.TenantListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.TenantListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.TenantListItem} - */ -proto.api.TenantListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCanHaveGateways(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPrivateGatewaysUp(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPrivateGatewaysDown(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setMaxGatewayCount(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setMaxDeviceCount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.TenantListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.TenantListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.TenantListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.TenantListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getCanHaveGateways(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getPrivateGatewaysUp(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getPrivateGatewaysDown(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getMaxGatewayCount(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getMaxDeviceCount(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.TenantListItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.TenantListItem} returns this - */ -proto.api.TenantListItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.TenantListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.TenantListItem} returns this -*/ -proto.api.TenantListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.TenantListItem} returns this - */ -proto.api.TenantListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.TenantListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.TenantListItem.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.TenantListItem} returns this -*/ -proto.api.TenantListItem.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.TenantListItem} returns this - */ -proto.api.TenantListItem.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.TenantListItem.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string name = 4; - * @return {string} - */ -proto.api.TenantListItem.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.TenantListItem} returns this - */ -proto.api.TenantListItem.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool can_have_gateways = 5; - * @return {boolean} - */ -proto.api.TenantListItem.prototype.getCanHaveGateways = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.TenantListItem} returns this - */ -proto.api.TenantListItem.prototype.setCanHaveGateways = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool private_gateways_up = 6; - * @return {boolean} - */ -proto.api.TenantListItem.prototype.getPrivateGatewaysUp = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.TenantListItem} returns this - */ -proto.api.TenantListItem.prototype.setPrivateGatewaysUp = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional bool private_gateways_down = 9; - * @return {boolean} - */ -proto.api.TenantListItem.prototype.getPrivateGatewaysDown = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.TenantListItem} returns this - */ -proto.api.TenantListItem.prototype.setPrivateGatewaysDown = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - -/** - * optional uint32 max_gateway_count = 7; - * @return {number} - */ -proto.api.TenantListItem.prototype.getMaxGatewayCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.TenantListItem} returns this - */ -proto.api.TenantListItem.prototype.setMaxGatewayCount = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional uint32 max_device_count = 8; - * @return {number} - */ -proto.api.TenantListItem.prototype.getMaxDeviceCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.TenantListItem} returns this - */ -proto.api.TenantListItem.prototype.setMaxDeviceCount = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateTenantRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateTenantRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateTenantRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateTenantRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tenant: (f = msg.getTenant()) && proto.api.Tenant.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateTenantRequest} - */ -proto.api.CreateTenantRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateTenantRequest; - return proto.api.CreateTenantRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateTenantRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateTenantRequest} - */ -proto.api.CreateTenantRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Tenant; - reader.readMessage(value,proto.api.Tenant.deserializeBinaryFromReader); - msg.setTenant(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateTenantRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateTenantRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateTenantRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateTenantRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenant(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Tenant.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Tenant tenant = 1; - * @return {?proto.api.Tenant} - */ -proto.api.CreateTenantRequest.prototype.getTenant = function() { - return /** @type{?proto.api.Tenant} */ ( - jspb.Message.getWrapperField(this, proto.api.Tenant, 1)); -}; - - -/** - * @param {?proto.api.Tenant|undefined} value - * @return {!proto.api.CreateTenantRequest} returns this -*/ -proto.api.CreateTenantRequest.prototype.setTenant = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateTenantRequest} returns this - */ -proto.api.CreateTenantRequest.prototype.clearTenant = function() { - return this.setTenant(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateTenantRequest.prototype.hasTenant = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateTenantResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateTenantResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateTenantResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateTenantResponse.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateTenantResponse} - */ -proto.api.CreateTenantResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateTenantResponse; - return proto.api.CreateTenantResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateTenantResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateTenantResponse} - */ -proto.api.CreateTenantResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateTenantResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateTenantResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateTenantResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateTenantResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.CreateTenantResponse.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.CreateTenantResponse} returns this - */ -proto.api.CreateTenantResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetTenantRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetTenantRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetTenantRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetTenantRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetTenantRequest} - */ -proto.api.GetTenantRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetTenantRequest; - return proto.api.GetTenantRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetTenantRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetTenantRequest} - */ -proto.api.GetTenantRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetTenantRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetTenantRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetTenantRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetTenantRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.GetTenantRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetTenantRequest} returns this - */ -proto.api.GetTenantRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetTenantResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetTenantResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetTenantResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetTenantResponse.toObject = function(includeInstance, msg) { - var f, obj = { - tenant: (f = msg.getTenant()) && proto.api.Tenant.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetTenantResponse} - */ -proto.api.GetTenantResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetTenantResponse; - return proto.api.GetTenantResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetTenantResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetTenantResponse} - */ -proto.api.GetTenantResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Tenant; - reader.readMessage(value,proto.api.Tenant.deserializeBinaryFromReader); - msg.setTenant(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetTenantResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetTenantResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetTenantResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetTenantResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenant(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Tenant.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Tenant tenant = 1; - * @return {?proto.api.Tenant} - */ -proto.api.GetTenantResponse.prototype.getTenant = function() { - return /** @type{?proto.api.Tenant} */ ( - jspb.Message.getWrapperField(this, proto.api.Tenant, 1)); -}; - - -/** - * @param {?proto.api.Tenant|undefined} value - * @return {!proto.api.GetTenantResponse} returns this -*/ -proto.api.GetTenantResponse.prototype.setTenant = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetTenantResponse} returns this - */ -proto.api.GetTenantResponse.prototype.clearTenant = function() { - return this.setTenant(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetTenantResponse.prototype.hasTenant = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetTenantResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetTenantResponse} returns this -*/ -proto.api.GetTenantResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetTenantResponse} returns this - */ -proto.api.GetTenantResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetTenantResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetTenantResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetTenantResponse} returns this -*/ -proto.api.GetTenantResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetTenantResponse} returns this - */ -proto.api.GetTenantResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetTenantResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateTenantRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateTenantRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateTenantRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateTenantRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tenant: (f = msg.getTenant()) && proto.api.Tenant.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateTenantRequest} - */ -proto.api.UpdateTenantRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateTenantRequest; - return proto.api.UpdateTenantRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateTenantRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateTenantRequest} - */ -proto.api.UpdateTenantRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.Tenant; - reader.readMessage(value,proto.api.Tenant.deserializeBinaryFromReader); - msg.setTenant(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateTenantRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateTenantRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateTenantRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateTenantRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenant(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.Tenant.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Tenant tenant = 1; - * @return {?proto.api.Tenant} - */ -proto.api.UpdateTenantRequest.prototype.getTenant = function() { - return /** @type{?proto.api.Tenant} */ ( - jspb.Message.getWrapperField(this, proto.api.Tenant, 1)); -}; - - -/** - * @param {?proto.api.Tenant|undefined} value - * @return {!proto.api.UpdateTenantRequest} returns this -*/ -proto.api.UpdateTenantRequest.prototype.setTenant = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateTenantRequest} returns this - */ -proto.api.UpdateTenantRequest.prototype.clearTenant = function() { - return this.setTenant(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateTenantRequest.prototype.hasTenant = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteTenantRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteTenantRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteTenantRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteTenantRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteTenantRequest} - */ -proto.api.DeleteTenantRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteTenantRequest; - return proto.api.DeleteTenantRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteTenantRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteTenantRequest} - */ -proto.api.DeleteTenantRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteTenantRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteTenantRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteTenantRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteTenantRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeleteTenantRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteTenantRequest} returns this - */ -proto.api.DeleteTenantRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListTenantsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListTenantsRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListTenantsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListTenantsRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0), - search: jspb.Message.getFieldWithDefault(msg, 3, ""), - userId: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListTenantsRequest} - */ -proto.api.ListTenantsRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListTenantsRequest; - return proto.api.ListTenantsRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListTenantsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListTenantsRequest} - */ -proto.api.ListTenantsRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSearch(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListTenantsRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListTenantsRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListTenantsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListTenantsRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getSearch(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListTenantsRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListTenantsRequest} returns this - */ -proto.api.ListTenantsRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListTenantsRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListTenantsRequest} returns this - */ -proto.api.ListTenantsRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string search = 3; - * @return {string} - */ -proto.api.ListTenantsRequest.prototype.getSearch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListTenantsRequest} returns this - */ -proto.api.ListTenantsRequest.prototype.setSearch = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string user_id = 4; - * @return {string} - */ -proto.api.ListTenantsRequest.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListTenantsRequest} returns this - */ -proto.api.ListTenantsRequest.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListTenantsResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListTenantsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListTenantsResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListTenantsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListTenantsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.TenantListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListTenantsResponse} - */ -proto.api.ListTenantsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListTenantsResponse; - return proto.api.ListTenantsResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListTenantsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListTenantsResponse} - */ -proto.api.ListTenantsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.TenantListItem; - reader.readMessage(value,proto.api.TenantListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListTenantsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListTenantsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListTenantsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListTenantsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.TenantListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListTenantsResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListTenantsResponse} returns this - */ -proto.api.ListTenantsResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated TenantListItem result = 2; - * @return {!Array} - */ -proto.api.ListTenantsResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.TenantListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListTenantsResponse} returns this -*/ -proto.api.ListTenantsResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.TenantListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.TenantListItem} - */ -proto.api.ListTenantsResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.TenantListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListTenantsResponse} returns this - */ -proto.api.ListTenantsResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.TenantUser.prototype.toObject = function(opt_includeInstance) { - return proto.api.TenantUser.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.TenantUser} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.TenantUser.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, ""), - userId: jspb.Message.getFieldWithDefault(msg, 2, ""), - isAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - isDeviceAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - isGatewayAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - email: jspb.Message.getFieldWithDefault(msg, 6, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.TenantUser} - */ -proto.api.TenantUser.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.TenantUser; - return proto.api.TenantUser.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.TenantUser} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.TenantUser} - */ -proto.api.TenantUser.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAdmin(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsDeviceAdmin(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsGatewayAdmin(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.TenantUser.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.TenantUser.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.TenantUser} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.TenantUser.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getIsAdmin(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getIsDeviceAdmin(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getIsGatewayAdmin(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.api.TenantUser.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.TenantUser} returns this - */ -proto.api.TenantUser.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_id = 2; - * @return {string} - */ -proto.api.TenantUser.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.TenantUser} returns this - */ -proto.api.TenantUser.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool is_admin = 3; - * @return {boolean} - */ -proto.api.TenantUser.prototype.getIsAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.TenantUser} returns this - */ -proto.api.TenantUser.prototype.setIsAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional bool is_device_admin = 4; - * @return {boolean} - */ -proto.api.TenantUser.prototype.getIsDeviceAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.TenantUser} returns this - */ -proto.api.TenantUser.prototype.setIsDeviceAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional bool is_gateway_admin = 5; - * @return {boolean} - */ -proto.api.TenantUser.prototype.getIsGatewayAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.TenantUser} returns this - */ -proto.api.TenantUser.prototype.setIsGatewayAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional string email = 6; - * @return {string} - */ -proto.api.TenantUser.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.TenantUser} returns this - */ -proto.api.TenantUser.prototype.setEmail = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.TenantUserListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.TenantUserListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.TenantUserListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.TenantUserListItem.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, ""), - userId: jspb.Message.getFieldWithDefault(msg, 2, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - email: jspb.Message.getFieldWithDefault(msg, 5, ""), - isAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - isDeviceAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - isGatewayAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 8, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.TenantUserListItem} - */ -proto.api.TenantUserListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.TenantUserListItem; - return proto.api.TenantUserListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.TenantUserListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.TenantUserListItem} - */ -proto.api.TenantUserListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAdmin(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsDeviceAdmin(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsGatewayAdmin(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.TenantUserListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.TenantUserListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.TenantUserListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.TenantUserListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getIsAdmin(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getIsDeviceAdmin(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getIsGatewayAdmin(); - if (f) { - writer.writeBool( - 8, - f - ); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.api.TenantUserListItem.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.TenantUserListItem} returns this - */ -proto.api.TenantUserListItem.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_id = 2; - * @return {string} - */ -proto.api.TenantUserListItem.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.TenantUserListItem} returns this - */ -proto.api.TenantUserListItem.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.TenantUserListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.TenantUserListItem} returns this -*/ -proto.api.TenantUserListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.TenantUserListItem} returns this - */ -proto.api.TenantUserListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.TenantUserListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 4; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.TenantUserListItem.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.TenantUserListItem} returns this -*/ -proto.api.TenantUserListItem.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.TenantUserListItem} returns this - */ -proto.api.TenantUserListItem.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.TenantUserListItem.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string email = 5; - * @return {string} - */ -proto.api.TenantUserListItem.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.TenantUserListItem} returns this - */ -proto.api.TenantUserListItem.prototype.setEmail = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional bool is_admin = 6; - * @return {boolean} - */ -proto.api.TenantUserListItem.prototype.getIsAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.TenantUserListItem} returns this - */ -proto.api.TenantUserListItem.prototype.setIsAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional bool is_device_admin = 7; - * @return {boolean} - */ -proto.api.TenantUserListItem.prototype.getIsDeviceAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.TenantUserListItem} returns this - */ -proto.api.TenantUserListItem.prototype.setIsDeviceAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * optional bool is_gateway_admin = 8; - * @return {boolean} - */ -proto.api.TenantUserListItem.prototype.getIsGatewayAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.TenantUserListItem} returns this - */ -proto.api.TenantUserListItem.prototype.setIsGatewayAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.AddTenantUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.AddTenantUserRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.AddTenantUserRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AddTenantUserRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tenantUser: (f = msg.getTenantUser()) && proto.api.TenantUser.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.AddTenantUserRequest} - */ -proto.api.AddTenantUserRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.AddTenantUserRequest; - return proto.api.AddTenantUserRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.AddTenantUserRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.AddTenantUserRequest} - */ -proto.api.AddTenantUserRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.TenantUser; - reader.readMessage(value,proto.api.TenantUser.deserializeBinaryFromReader); - msg.setTenantUser(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.AddTenantUserRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.AddTenantUserRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.AddTenantUserRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.AddTenantUserRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantUser(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.TenantUser.serializeBinaryToWriter - ); - } -}; - - -/** - * optional TenantUser tenant_user = 1; - * @return {?proto.api.TenantUser} - */ -proto.api.AddTenantUserRequest.prototype.getTenantUser = function() { - return /** @type{?proto.api.TenantUser} */ ( - jspb.Message.getWrapperField(this, proto.api.TenantUser, 1)); -}; - - -/** - * @param {?proto.api.TenantUser|undefined} value - * @return {!proto.api.AddTenantUserRequest} returns this -*/ -proto.api.AddTenantUserRequest.prototype.setTenantUser = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.AddTenantUserRequest} returns this - */ -proto.api.AddTenantUserRequest.prototype.clearTenantUser = function() { - return this.setTenantUser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.AddTenantUserRequest.prototype.hasTenantUser = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetTenantUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetTenantUserRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetTenantUserRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetTenantUserRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, ""), - userId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetTenantUserRequest} - */ -proto.api.GetTenantUserRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetTenantUserRequest; - return proto.api.GetTenantUserRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetTenantUserRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetTenantUserRequest} - */ -proto.api.GetTenantUserRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetTenantUserRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetTenantUserRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetTenantUserRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetTenantUserRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.api.GetTenantUserRequest.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetTenantUserRequest} returns this - */ -proto.api.GetTenantUserRequest.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_id = 2; - * @return {string} - */ -proto.api.GetTenantUserRequest.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetTenantUserRequest} returns this - */ -proto.api.GetTenantUserRequest.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetTenantUserResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetTenantUserResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetTenantUserResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetTenantUserResponse.toObject = function(includeInstance, msg) { - var f, obj = { - tenantUser: (f = msg.getTenantUser()) && proto.api.TenantUser.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetTenantUserResponse} - */ -proto.api.GetTenantUserResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetTenantUserResponse; - return proto.api.GetTenantUserResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetTenantUserResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetTenantUserResponse} - */ -proto.api.GetTenantUserResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.TenantUser; - reader.readMessage(value,proto.api.TenantUser.deserializeBinaryFromReader); - msg.setTenantUser(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetTenantUserResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetTenantUserResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetTenantUserResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetTenantUserResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantUser(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.TenantUser.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional TenantUser tenant_user = 1; - * @return {?proto.api.TenantUser} - */ -proto.api.GetTenantUserResponse.prototype.getTenantUser = function() { - return /** @type{?proto.api.TenantUser} */ ( - jspb.Message.getWrapperField(this, proto.api.TenantUser, 1)); -}; - - -/** - * @param {?proto.api.TenantUser|undefined} value - * @return {!proto.api.GetTenantUserResponse} returns this -*/ -proto.api.GetTenantUserResponse.prototype.setTenantUser = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetTenantUserResponse} returns this - */ -proto.api.GetTenantUserResponse.prototype.clearTenantUser = function() { - return this.setTenantUser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetTenantUserResponse.prototype.hasTenantUser = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetTenantUserResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetTenantUserResponse} returns this -*/ -proto.api.GetTenantUserResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetTenantUserResponse} returns this - */ -proto.api.GetTenantUserResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetTenantUserResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetTenantUserResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetTenantUserResponse} returns this -*/ -proto.api.GetTenantUserResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetTenantUserResponse} returns this - */ -proto.api.GetTenantUserResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetTenantUserResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateTenantUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateTenantUserRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateTenantUserRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateTenantUserRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tenantUser: (f = msg.getTenantUser()) && proto.api.TenantUser.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateTenantUserRequest} - */ -proto.api.UpdateTenantUserRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateTenantUserRequest; - return proto.api.UpdateTenantUserRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateTenantUserRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateTenantUserRequest} - */ -proto.api.UpdateTenantUserRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.TenantUser; - reader.readMessage(value,proto.api.TenantUser.deserializeBinaryFromReader); - msg.setTenantUser(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateTenantUserRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateTenantUserRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateTenantUserRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateTenantUserRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantUser(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.TenantUser.serializeBinaryToWriter - ); - } -}; - - -/** - * optional TenantUser tenant_user = 1; - * @return {?proto.api.TenantUser} - */ -proto.api.UpdateTenantUserRequest.prototype.getTenantUser = function() { - return /** @type{?proto.api.TenantUser} */ ( - jspb.Message.getWrapperField(this, proto.api.TenantUser, 1)); -}; - - -/** - * @param {?proto.api.TenantUser|undefined} value - * @return {!proto.api.UpdateTenantUserRequest} returns this -*/ -proto.api.UpdateTenantUserRequest.prototype.setTenantUser = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateTenantUserRequest} returns this - */ -proto.api.UpdateTenantUserRequest.prototype.clearTenantUser = function() { - return this.setTenantUser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateTenantUserRequest.prototype.hasTenantUser = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteTenantUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteTenantUserRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteTenantUserRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteTenantUserRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, ""), - userId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteTenantUserRequest} - */ -proto.api.DeleteTenantUserRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteTenantUserRequest; - return proto.api.DeleteTenantUserRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteTenantUserRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteTenantUserRequest} - */ -proto.api.DeleteTenantUserRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteTenantUserRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteTenantUserRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteTenantUserRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteTenantUserRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.api.DeleteTenantUserRequest.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteTenantUserRequest} returns this - */ -proto.api.DeleteTenantUserRequest.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string user_id = 2; - * @return {string} - */ -proto.api.DeleteTenantUserRequest.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteTenantUserRequest} returns this - */ -proto.api.DeleteTenantUserRequest.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListTenantUsersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListTenantUsersRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListTenantUsersRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListTenantUsersRequest.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, ""), - limit: jspb.Message.getFieldWithDefault(msg, 2, 0), - offset: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListTenantUsersRequest} - */ -proto.api.ListTenantUsersRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListTenantUsersRequest; - return proto.api.ListTenantUsersRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListTenantUsersRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListTenantUsersRequest} - */ -proto.api.ListTenantUsersRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListTenantUsersRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListTenantUsersRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListTenantUsersRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListTenantUsersRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.api.ListTenantUsersRequest.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.ListTenantUsersRequest} returns this - */ -proto.api.ListTenantUsersRequest.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint32 limit = 2; - * @return {number} - */ -proto.api.ListTenantUsersRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListTenantUsersRequest} returns this - */ -proto.api.ListTenantUsersRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint32 offset = 3; - * @return {number} - */ -proto.api.ListTenantUsersRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListTenantUsersRequest} returns this - */ -proto.api.ListTenantUsersRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListTenantUsersResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListTenantUsersResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListTenantUsersResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListTenantUsersResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListTenantUsersResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.TenantUserListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListTenantUsersResponse} - */ -proto.api.ListTenantUsersResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListTenantUsersResponse; - return proto.api.ListTenantUsersResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListTenantUsersResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListTenantUsersResponse} - */ -proto.api.ListTenantUsersResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.TenantUserListItem; - reader.readMessage(value,proto.api.TenantUserListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListTenantUsersResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListTenantUsersResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListTenantUsersResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListTenantUsersResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.TenantUserListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListTenantUsersResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListTenantUsersResponse} returns this - */ -proto.api.ListTenantUsersResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated TenantUserListItem result = 2; - * @return {!Array} - */ -proto.api.ListTenantUsersResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.TenantUserListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListTenantUsersResponse} returns this -*/ -proto.api.ListTenantUsersResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.TenantUserListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.TenantUserListItem} - */ -proto.api.ListTenantUsersResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.TenantUserListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListTenantUsersResponse} returns this - */ -proto.api.ListTenantUsersResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - -goog.object.extend(exports, proto.api); diff --git a/api/js/api/user_grpc_pb.d.ts b/api/js/api/user_grpc_pb.d.ts deleted file mode 100644 index 37b865c9..00000000 --- a/api/js/api/user_grpc_pb.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -// package: api -// file: api/user.proto - -import * as api_user_pb from "../api/user_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; -import * as grpc from "@grpc/grpc-js"; - -interface IUserServiceService extends grpc.ServiceDefinition { - create: grpc.MethodDefinition; - get: grpc.MethodDefinition; - update: grpc.MethodDefinition; - delete: grpc.MethodDefinition; - list: grpc.MethodDefinition; - updatePassword: grpc.MethodDefinition; -} - -export const UserServiceService: IUserServiceService; - -export interface IUserServiceServer extends grpc.UntypedServiceImplementation { - create: grpc.handleUnaryCall; - get: grpc.handleUnaryCall; - update: grpc.handleUnaryCall; - delete: grpc.handleUnaryCall; - list: grpc.handleUnaryCall; - updatePassword: grpc.handleUnaryCall; -} - -export class UserServiceClient extends grpc.Client { - constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); - create(argument: api_user_pb.CreateUserRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - create(argument: api_user_pb.CreateUserRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - create(argument: api_user_pb.CreateUserRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_user_pb.GetUserRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_user_pb.GetUserRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: api_user_pb.GetUserRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_user_pb.UpdateUserRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_user_pb.UpdateUserRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - update(argument: api_user_pb.UpdateUserRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_user_pb.DeleteUserRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_user_pb.DeleteUserRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: api_user_pb.DeleteUserRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_user_pb.ListUsersRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_user_pb.ListUsersRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - list(argument: api_user_pb.ListUsersRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updatePassword(argument: api_user_pb.UpdateUserPasswordRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updatePassword(argument: api_user_pb.UpdateUserPasswordRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - updatePassword(argument: api_user_pb.UpdateUserPasswordRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; -} diff --git a/api/js/api/user_grpc_pb.js b/api/js/api/user_grpc_pb.js deleted file mode 100644 index 4bb476d1..00000000 --- a/api/js/api/user_grpc_pb.js +++ /dev/null @@ -1,197 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var api_user_pb = require('../api/user_pb.js'); -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); - -function serialize_api_CreateUserRequest(arg) { - if (!(arg instanceof api_user_pb.CreateUserRequest)) { - throw new Error('Expected argument of type api.CreateUserRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateUserRequest(buffer_arg) { - return api_user_pb.CreateUserRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_CreateUserResponse(arg) { - if (!(arg instanceof api_user_pb.CreateUserResponse)) { - throw new Error('Expected argument of type api.CreateUserResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_CreateUserResponse(buffer_arg) { - return api_user_pb.CreateUserResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_DeleteUserRequest(arg) { - if (!(arg instanceof api_user_pb.DeleteUserRequest)) { - throw new Error('Expected argument of type api.DeleteUserRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_DeleteUserRequest(buffer_arg) { - return api_user_pb.DeleteUserRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetUserRequest(arg) { - if (!(arg instanceof api_user_pb.GetUserRequest)) { - throw new Error('Expected argument of type api.GetUserRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetUserRequest(buffer_arg) { - return api_user_pb.GetUserRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_GetUserResponse(arg) { - if (!(arg instanceof api_user_pb.GetUserResponse)) { - throw new Error('Expected argument of type api.GetUserResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_GetUserResponse(buffer_arg) { - return api_user_pb.GetUserResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListUsersRequest(arg) { - if (!(arg instanceof api_user_pb.ListUsersRequest)) { - throw new Error('Expected argument of type api.ListUsersRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListUsersRequest(buffer_arg) { - return api_user_pb.ListUsersRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_ListUsersResponse(arg) { - if (!(arg instanceof api_user_pb.ListUsersResponse)) { - throw new Error('Expected argument of type api.ListUsersResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_ListUsersResponse(buffer_arg) { - return api_user_pb.ListUsersResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateUserPasswordRequest(arg) { - if (!(arg instanceof api_user_pb.UpdateUserPasswordRequest)) { - throw new Error('Expected argument of type api.UpdateUserPasswordRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateUserPasswordRequest(buffer_arg) { - return api_user_pb.UpdateUserPasswordRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_api_UpdateUserRequest(arg) { - if (!(arg instanceof api_user_pb.UpdateUserRequest)) { - throw new Error('Expected argument of type api.UpdateUserRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_api_UpdateUserRequest(buffer_arg) { - return api_user_pb.UpdateUserRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_google_protobuf_Empty(arg) { - if (!(arg instanceof google_protobuf_empty_pb.Empty)) { - throw new Error('Expected argument of type google.protobuf.Empty'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_google_protobuf_Empty(buffer_arg) { - return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -// UserService is the service providing API methods for managing users. -var UserServiceService = exports.UserServiceService = { - // Create a new user. -create: { - path: '/api.UserService/Create', - requestStream: false, - responseStream: false, - requestType: api_user_pb.CreateUserRequest, - responseType: api_user_pb.CreateUserResponse, - requestSerialize: serialize_api_CreateUserRequest, - requestDeserialize: deserialize_api_CreateUserRequest, - responseSerialize: serialize_api_CreateUserResponse, - responseDeserialize: deserialize_api_CreateUserResponse, - }, - // Get the user for the given ID. -get: { - path: '/api.UserService/Get', - requestStream: false, - responseStream: false, - requestType: api_user_pb.GetUserRequest, - responseType: api_user_pb.GetUserResponse, - requestSerialize: serialize_api_GetUserRequest, - requestDeserialize: deserialize_api_GetUserRequest, - responseSerialize: serialize_api_GetUserResponse, - responseDeserialize: deserialize_api_GetUserResponse, - }, - // Update the given user. -update: { - path: '/api.UserService/Update', - requestStream: false, - responseStream: false, - requestType: api_user_pb.UpdateUserRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateUserRequest, - requestDeserialize: deserialize_api_UpdateUserRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Delete the user with the given ID. -delete: { - path: '/api.UserService/Delete', - requestStream: false, - responseStream: false, - requestType: api_user_pb.DeleteUserRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_DeleteUserRequest, - requestDeserialize: deserialize_api_DeleteUserRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, - // Get the list of users. -list: { - path: '/api.UserService/List', - requestStream: false, - responseStream: false, - requestType: api_user_pb.ListUsersRequest, - responseType: api_user_pb.ListUsersResponse, - requestSerialize: serialize_api_ListUsersRequest, - requestDeserialize: deserialize_api_ListUsersRequest, - responseSerialize: serialize_api_ListUsersResponse, - responseDeserialize: deserialize_api_ListUsersResponse, - }, - // Update the password for the given user. -updatePassword: { - path: '/api.UserService/UpdatePassword', - requestStream: false, - responseStream: false, - requestType: api_user_pb.UpdateUserPasswordRequest, - responseType: google_protobuf_empty_pb.Empty, - requestSerialize: serialize_api_UpdateUserPasswordRequest, - requestDeserialize: deserialize_api_UpdateUserPasswordRequest, - responseSerialize: serialize_google_protobuf_Empty, - responseDeserialize: deserialize_google_protobuf_Empty, - }, -}; - -exports.UserServiceClient = grpc.makeGenericClientConstructor(UserServiceService); diff --git a/api/js/api/user_pb.d.ts b/api/js/api/user_pb.d.ts deleted file mode 100644 index 2fd971f8..00000000 --- a/api/js/api/user_pb.d.ts +++ /dev/null @@ -1,342 +0,0 @@ -// package: api -// file: api/user.proto - -import * as jspb from "google-protobuf"; -import * as google_api_annotations_pb from "../google/api/annotations_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; - -export class User extends jspb.Message { - getId(): string; - setId(value: string): void; - - getIsAdmin(): boolean; - setIsAdmin(value: boolean): void; - - getIsActive(): boolean; - setIsActive(value: boolean): void; - - getEmail(): string; - setEmail(value: string): void; - - getNote(): string; - setNote(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): User.AsObject; - static toObject(includeInstance: boolean, msg: User): User.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: User, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): User; - static deserializeBinaryFromReader(message: User, reader: jspb.BinaryReader): User; -} - -export namespace User { - export type AsObject = { - id: string, - isAdmin: boolean, - isActive: boolean, - email: string, - note: string, - } -} - -export class UserListItem extends jspb.Message { - getId(): string; - setId(value: string): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - getEmail(): string; - setEmail(value: string): void; - - getIsAdmin(): boolean; - setIsAdmin(value: boolean): void; - - getIsActive(): boolean; - setIsActive(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserListItem.AsObject; - static toObject(includeInstance: boolean, msg: UserListItem): UserListItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UserListItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserListItem; - static deserializeBinaryFromReader(message: UserListItem, reader: jspb.BinaryReader): UserListItem; -} - -export namespace UserListItem { - export type AsObject = { - id: string, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - email: string, - isAdmin: boolean, - isActive: boolean, - } -} - -export class UserTenant extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): void; - - getIsAdmin(): boolean; - setIsAdmin(value: boolean): void; - - getIsDeviceAdmin(): boolean; - setIsDeviceAdmin(value: boolean): void; - - getIsGatewayAdmin(): boolean; - setIsGatewayAdmin(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UserTenant.AsObject; - static toObject(includeInstance: boolean, msg: UserTenant): UserTenant.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UserTenant, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UserTenant; - static deserializeBinaryFromReader(message: UserTenant, reader: jspb.BinaryReader): UserTenant; -} - -export namespace UserTenant { - export type AsObject = { - tenantId: string, - isAdmin: boolean, - isDeviceAdmin: boolean, - isGatewayAdmin: boolean, - } -} - -export class CreateUserRequest extends jspb.Message { - hasUser(): boolean; - clearUser(): void; - getUser(): User | undefined; - setUser(value?: User): void; - - getPassword(): string; - setPassword(value: string): void; - - clearTenantsList(): void; - getTenantsList(): Array; - setTenantsList(value: Array): void; - addTenants(value?: UserTenant, index?: number): UserTenant; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: CreateUserRequest): CreateUserRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateUserRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateUserRequest; - static deserializeBinaryFromReader(message: CreateUserRequest, reader: jspb.BinaryReader): CreateUserRequest; -} - -export namespace CreateUserRequest { - export type AsObject = { - user?: User.AsObject, - password: string, - tenantsList: Array, - } -} - -export class CreateUserResponse extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateUserResponse.AsObject; - static toObject(includeInstance: boolean, msg: CreateUserResponse): CreateUserResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CreateUserResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CreateUserResponse; - static deserializeBinaryFromReader(message: CreateUserResponse, reader: jspb.BinaryReader): CreateUserResponse; -} - -export namespace CreateUserResponse { - export type AsObject = { - id: string, - } -} - -export class GetUserRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetUserRequest): GetUserRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetUserRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetUserRequest; - static deserializeBinaryFromReader(message: GetUserRequest, reader: jspb.BinaryReader): GetUserRequest; -} - -export namespace GetUserRequest { - export type AsObject = { - id: string, - } -} - -export class GetUserResponse extends jspb.Message { - hasUser(): boolean; - clearUser(): void; - getUser(): User | undefined; - setUser(value?: User): void; - - hasCreatedAt(): boolean; - clearCreatedAt(): void; - getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasUpdatedAt(): boolean; - clearUpdatedAt(): void; - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetUserResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetUserResponse): GetUserResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetUserResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetUserResponse; - static deserializeBinaryFromReader(message: GetUserResponse, reader: jspb.BinaryReader): GetUserResponse; -} - -export namespace GetUserResponse { - export type AsObject = { - user?: User.AsObject, - createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class UpdateUserRequest extends jspb.Message { - hasUser(): boolean; - clearUser(): void; - getUser(): User | undefined; - setUser(value?: User): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateUserRequest): UpdateUserRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateUserRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateUserRequest; - static deserializeBinaryFromReader(message: UpdateUserRequest, reader: jspb.BinaryReader): UpdateUserRequest; -} - -export namespace UpdateUserRequest { - export type AsObject = { - user?: User.AsObject, - } -} - -export class DeleteUserRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteUserRequest): DeleteUserRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteUserRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteUserRequest; - static deserializeBinaryFromReader(message: DeleteUserRequest, reader: jspb.BinaryReader): DeleteUserRequest; -} - -export namespace DeleteUserRequest { - export type AsObject = { - id: string, - } -} - -export class ListUsersRequest extends jspb.Message { - getLimit(): number; - setLimit(value: number): void; - - getOffset(): number; - setOffset(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListUsersRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListUsersRequest): ListUsersRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListUsersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListUsersRequest; - static deserializeBinaryFromReader(message: ListUsersRequest, reader: jspb.BinaryReader): ListUsersRequest; -} - -export namespace ListUsersRequest { - export type AsObject = { - limit: number, - offset: number, - } -} - -export class ListUsersResponse extends jspb.Message { - getTotalCount(): number; - setTotalCount(value: number): void; - - clearResultList(): void; - getResultList(): Array; - setResultList(value: Array): void; - addResult(value?: UserListItem, index?: number): UserListItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListUsersResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListUsersResponse): ListUsersResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListUsersResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListUsersResponse; - static deserializeBinaryFromReader(message: ListUsersResponse, reader: jspb.BinaryReader): ListUsersResponse; -} - -export namespace ListUsersResponse { - export type AsObject = { - totalCount: number, - resultList: Array, - } -} - -export class UpdateUserPasswordRequest extends jspb.Message { - getUserId(): string; - setUserId(value: string): void; - - getPassword(): string; - setPassword(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateUserPasswordRequest.AsObject; - static toObject(includeInstance: boolean, msg: UpdateUserPasswordRequest): UpdateUserPasswordRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UpdateUserPasswordRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UpdateUserPasswordRequest; - static deserializeBinaryFromReader(message: UpdateUserPasswordRequest, reader: jspb.BinaryReader): UpdateUserPasswordRequest; -} - -export namespace UpdateUserPasswordRequest { - export type AsObject = { - userId: string, - password: string, - } -} - diff --git a/api/js/api/user_pb.js b/api/js/api/user_pb.js deleted file mode 100644 index 17925758..00000000 --- a/api/js/api/user_pb.js +++ /dev/null @@ -1,2622 +0,0 @@ -// source: api/user.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_annotations_pb = require('../google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); -goog.object.extend(proto, google_protobuf_empty_pb); -goog.exportSymbol('proto.api.CreateUserRequest', null, global); -goog.exportSymbol('proto.api.CreateUserResponse', null, global); -goog.exportSymbol('proto.api.DeleteUserRequest', null, global); -goog.exportSymbol('proto.api.GetUserRequest', null, global); -goog.exportSymbol('proto.api.GetUserResponse', null, global); -goog.exportSymbol('proto.api.ListUsersRequest', null, global); -goog.exportSymbol('proto.api.ListUsersResponse', null, global); -goog.exportSymbol('proto.api.UpdateUserPasswordRequest', null, global); -goog.exportSymbol('proto.api.UpdateUserRequest', null, global); -goog.exportSymbol('proto.api.User', null, global); -goog.exportSymbol('proto.api.UserListItem', null, global); -goog.exportSymbol('proto.api.UserTenant', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.User = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.User, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.User.displayName = 'proto.api.User'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UserListItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UserListItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UserListItem.displayName = 'proto.api.UserListItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UserTenant = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UserTenant, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UserTenant.displayName = 'proto.api.UserTenant'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.CreateUserRequest.repeatedFields_, null); -}; -goog.inherits(proto.api.CreateUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateUserRequest.displayName = 'proto.api.CreateUserRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.CreateUserResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.CreateUserResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.CreateUserResponse.displayName = 'proto.api.CreateUserResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetUserRequest.displayName = 'proto.api.GetUserRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.GetUserResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.GetUserResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.GetUserResponse.displayName = 'proto.api.GetUserResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateUserRequest.displayName = 'proto.api.UpdateUserRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.DeleteUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.DeleteUserRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.DeleteUserRequest.displayName = 'proto.api.DeleteUserRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListUsersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.ListUsersRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListUsersRequest.displayName = 'proto.api.ListUsersRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.ListUsersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.api.ListUsersResponse.repeatedFields_, null); -}; -goog.inherits(proto.api.ListUsersResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.ListUsersResponse.displayName = 'proto.api.ListUsersResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.api.UpdateUserPasswordRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.api.UpdateUserPasswordRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.api.UpdateUserPasswordRequest.displayName = 'proto.api.UpdateUserPasswordRequest'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.User.prototype.toObject = function(opt_includeInstance) { - return proto.api.User.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.User} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.User.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - isAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - isActive: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - email: jspb.Message.getFieldWithDefault(msg, 6, ""), - note: jspb.Message.getFieldWithDefault(msg, 7, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.User} - */ -proto.api.User.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.User; - return proto.api.User.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.User} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.User} - */ -proto.api.User.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAdmin(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsActive(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setNote(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.User.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.User.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.User} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.User.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getIsAdmin(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getIsActive(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getNote(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.User.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.User} returns this - */ -proto.api.User.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool is_admin = 4; - * @return {boolean} - */ -proto.api.User.prototype.getIsAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.User} returns this - */ -proto.api.User.prototype.setIsAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional bool is_active = 5; - * @return {boolean} - */ -proto.api.User.prototype.getIsActive = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.User} returns this - */ -proto.api.User.prototype.setIsActive = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional string email = 6; - * @return {string} - */ -proto.api.User.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.User} returns this - */ -proto.api.User.prototype.setEmail = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string note = 7; - * @return {string} - */ -proto.api.User.prototype.getNote = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.User} returns this - */ -proto.api.User.prototype.setNote = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UserListItem.prototype.toObject = function(opt_includeInstance) { - return proto.api.UserListItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UserListItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UserListItem.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - email: jspb.Message.getFieldWithDefault(msg, 4, ""), - isAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - isActive: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UserListItem} - */ -proto.api.UserListItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UserListItem; - return proto.api.UserListItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UserListItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UserListItem} - */ -proto.api.UserListItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAdmin(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsActive(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UserListItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UserListItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UserListItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UserListItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getIsAdmin(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getIsActive(); - if (f) { - writer.writeBool( - 6, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.UserListItem.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.UserListItem} returns this - */ -proto.api.UserListItem.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.UserListItem.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.UserListItem} returns this -*/ -proto.api.UserListItem.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UserListItem} returns this - */ -proto.api.UserListItem.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UserListItem.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.UserListItem.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.UserListItem} returns this -*/ -proto.api.UserListItem.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UserListItem} returns this - */ -proto.api.UserListItem.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UserListItem.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string email = 4; - * @return {string} - */ -proto.api.UserListItem.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.UserListItem} returns this - */ -proto.api.UserListItem.prototype.setEmail = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool is_admin = 5; - * @return {boolean} - */ -proto.api.UserListItem.prototype.getIsAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.UserListItem} returns this - */ -proto.api.UserListItem.prototype.setIsAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool is_active = 6; - * @return {boolean} - */ -proto.api.UserListItem.prototype.getIsActive = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.UserListItem} returns this - */ -proto.api.UserListItem.prototype.setIsActive = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UserTenant.prototype.toObject = function(opt_includeInstance) { - return proto.api.UserTenant.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UserTenant} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UserTenant.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, ""), - isAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - isDeviceAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - isGatewayAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UserTenant} - */ -proto.api.UserTenant.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UserTenant; - return proto.api.UserTenant.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UserTenant} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UserTenant} - */ -proto.api.UserTenant.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsAdmin(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsDeviceAdmin(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsGatewayAdmin(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UserTenant.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UserTenant.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UserTenant} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UserTenant.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getIsAdmin(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getIsDeviceAdmin(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getIsGatewayAdmin(); - if (f) { - writer.writeBool( - 4, - f - ); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.api.UserTenant.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.UserTenant} returns this - */ -proto.api.UserTenant.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool is_admin = 2; - * @return {boolean} - */ -proto.api.UserTenant.prototype.getIsAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.UserTenant} returns this - */ -proto.api.UserTenant.prototype.setIsAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional bool is_device_admin = 3; - * @return {boolean} - */ -proto.api.UserTenant.prototype.getIsDeviceAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.UserTenant} returns this - */ -proto.api.UserTenant.prototype.setIsDeviceAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional bool is_gateway_admin = 4; - * @return {boolean} - */ -proto.api.UserTenant.prototype.getIsGatewayAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.api.UserTenant} returns this - */ -proto.api.UserTenant.prototype.setIsGatewayAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.CreateUserRequest.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateUserRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateUserRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateUserRequest.toObject = function(includeInstance, msg) { - var f, obj = { - user: (f = msg.getUser()) && proto.api.User.toObject(includeInstance, f), - password: jspb.Message.getFieldWithDefault(msg, 2, ""), - tenantsList: jspb.Message.toObjectList(msg.getTenantsList(), - proto.api.UserTenant.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateUserRequest} - */ -proto.api.CreateUserRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateUserRequest; - return proto.api.CreateUserRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateUserRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateUserRequest} - */ -proto.api.CreateUserRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.User; - reader.readMessage(value,proto.api.User.deserializeBinaryFromReader); - msg.setUser(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - case 3: - var value = new proto.api.UserTenant; - reader.readMessage(value,proto.api.UserTenant.deserializeBinaryFromReader); - msg.addTenants(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateUserRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateUserRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateUserRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateUserRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUser(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.User.serializeBinaryToWriter - ); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getTenantsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.api.UserTenant.serializeBinaryToWriter - ); - } -}; - - -/** - * optional User user = 1; - * @return {?proto.api.User} - */ -proto.api.CreateUserRequest.prototype.getUser = function() { - return /** @type{?proto.api.User} */ ( - jspb.Message.getWrapperField(this, proto.api.User, 1)); -}; - - -/** - * @param {?proto.api.User|undefined} value - * @return {!proto.api.CreateUserRequest} returns this -*/ -proto.api.CreateUserRequest.prototype.setUser = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.CreateUserRequest} returns this - */ -proto.api.CreateUserRequest.prototype.clearUser = function() { - return this.setUser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.CreateUserRequest.prototype.hasUser = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string password = 2; - * @return {string} - */ -proto.api.CreateUserRequest.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.CreateUserRequest} returns this - */ -proto.api.CreateUserRequest.prototype.setPassword = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated UserTenant tenants = 3; - * @return {!Array} - */ -proto.api.CreateUserRequest.prototype.getTenantsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.UserTenant, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.CreateUserRequest} returns this -*/ -proto.api.CreateUserRequest.prototype.setTenantsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.api.UserTenant=} opt_value - * @param {number=} opt_index - * @return {!proto.api.UserTenant} - */ -proto.api.CreateUserRequest.prototype.addTenants = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.api.UserTenant, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.CreateUserRequest} returns this - */ -proto.api.CreateUserRequest.prototype.clearTenantsList = function() { - return this.setTenantsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.CreateUserResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.CreateUserResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.CreateUserResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateUserResponse.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.CreateUserResponse} - */ -proto.api.CreateUserResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.CreateUserResponse; - return proto.api.CreateUserResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.CreateUserResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.CreateUserResponse} - */ -proto.api.CreateUserResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.CreateUserResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.CreateUserResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.CreateUserResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.CreateUserResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.CreateUserResponse.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.CreateUserResponse} returns this - */ -proto.api.CreateUserResponse.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetUserRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetUserRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetUserRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetUserRequest} - */ -proto.api.GetUserRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetUserRequest; - return proto.api.GetUserRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetUserRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetUserRequest} - */ -proto.api.GetUserRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetUserRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetUserRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetUserRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetUserRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.GetUserRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.GetUserRequest} returns this - */ -proto.api.GetUserRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.GetUserResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.GetUserResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.GetUserResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetUserResponse.toObject = function(includeInstance, msg) { - var f, obj = { - user: (f = msg.getUser()) && proto.api.User.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.GetUserResponse} - */ -proto.api.GetUserResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.GetUserResponse; - return proto.api.GetUserResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.GetUserResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.GetUserResponse} - */ -proto.api.GetUserResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.User; - reader.readMessage(value,proto.api.User.deserializeBinaryFromReader); - msg.setUser(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setUpdatedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.GetUserResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.GetUserResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.GetUserResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.GetUserResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUser(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.User.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional User user = 1; - * @return {?proto.api.User} - */ -proto.api.GetUserResponse.prototype.getUser = function() { - return /** @type{?proto.api.User} */ ( - jspb.Message.getWrapperField(this, proto.api.User, 1)); -}; - - -/** - * @param {?proto.api.User|undefined} value - * @return {!proto.api.GetUserResponse} returns this -*/ -proto.api.GetUserResponse.prototype.setUser = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetUserResponse} returns this - */ -proto.api.GetUserResponse.prototype.clearUser = function() { - return this.setUser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetUserResponse.prototype.hasUser = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetUserResponse.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetUserResponse} returns this -*/ -proto.api.GetUserResponse.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetUserResponse} returns this - */ -proto.api.GetUserResponse.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetUserResponse.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.api.GetUserResponse.prototype.getUpdatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.api.GetUserResponse} returns this -*/ -proto.api.GetUserResponse.prototype.setUpdatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.GetUserResponse} returns this - */ -proto.api.GetUserResponse.prototype.clearUpdatedAt = function() { - return this.setUpdatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.GetUserResponse.prototype.hasUpdatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateUserRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateUserRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateUserRequest.toObject = function(includeInstance, msg) { - var f, obj = { - user: (f = msg.getUser()) && proto.api.User.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateUserRequest} - */ -proto.api.UpdateUserRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateUserRequest; - return proto.api.UpdateUserRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateUserRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateUserRequest} - */ -proto.api.UpdateUserRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.api.User; - reader.readMessage(value,proto.api.User.deserializeBinaryFromReader); - msg.setUser(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateUserRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateUserRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateUserRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateUserRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUser(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.api.User.serializeBinaryToWriter - ); - } -}; - - -/** - * optional User user = 1; - * @return {?proto.api.User} - */ -proto.api.UpdateUserRequest.prototype.getUser = function() { - return /** @type{?proto.api.User} */ ( - jspb.Message.getWrapperField(this, proto.api.User, 1)); -}; - - -/** - * @param {?proto.api.User|undefined} value - * @return {!proto.api.UpdateUserRequest} returns this -*/ -proto.api.UpdateUserRequest.prototype.setUser = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.api.UpdateUserRequest} returns this - */ -proto.api.UpdateUserRequest.prototype.clearUser = function() { - return this.setUser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.api.UpdateUserRequest.prototype.hasUser = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.DeleteUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.DeleteUserRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.DeleteUserRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteUserRequest.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.DeleteUserRequest} - */ -proto.api.DeleteUserRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.DeleteUserRequest; - return proto.api.DeleteUserRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.DeleteUserRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.DeleteUserRequest} - */ -proto.api.DeleteUserRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.DeleteUserRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.DeleteUserRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.DeleteUserRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.DeleteUserRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.api.DeleteUserRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.DeleteUserRequest} returns this - */ -proto.api.DeleteUserRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListUsersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListUsersRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListUsersRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListUsersRequest.toObject = function(includeInstance, msg) { - var f, obj = { - limit: jspb.Message.getFieldWithDefault(msg, 1, 0), - offset: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListUsersRequest} - */ -proto.api.ListUsersRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListUsersRequest; - return proto.api.ListUsersRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListUsersRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListUsersRequest} - */ -proto.api.ListUsersRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLimit(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListUsersRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListUsersRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListUsersRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListUsersRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimit(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } -}; - - -/** - * optional uint32 limit = 1; - * @return {number} - */ -proto.api.ListUsersRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListUsersRequest} returns this - */ -proto.api.ListUsersRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 offset = 2; - * @return {number} - */ -proto.api.ListUsersRequest.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListUsersRequest} returns this - */ -proto.api.ListUsersRequest.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.api.ListUsersResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.ListUsersResponse.prototype.toObject = function(opt_includeInstance) { - return proto.api.ListUsersResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.ListUsersResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListUsersResponse.toObject = function(includeInstance, msg) { - var f, obj = { - totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultList: jspb.Message.toObjectList(msg.getResultList(), - proto.api.UserListItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.ListUsersResponse} - */ -proto.api.ListUsersResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.ListUsersResponse; - return proto.api.ListUsersResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.ListUsersResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.ListUsersResponse} - */ -proto.api.ListUsersResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalCount(value); - break; - case 2: - var value = new proto.api.UserListItem; - reader.readMessage(value,proto.api.UserListItem.deserializeBinaryFromReader); - msg.addResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.ListUsersResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.ListUsersResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.ListUsersResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.ListUsersResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTotalCount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getResultList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.api.UserListItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 total_count = 1; - * @return {number} - */ -proto.api.ListUsersResponse.prototype.getTotalCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.api.ListUsersResponse} returns this - */ -proto.api.ListUsersResponse.prototype.setTotalCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated UserListItem result = 2; - * @return {!Array} - */ -proto.api.ListUsersResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.api.UserListItem, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.api.ListUsersResponse} returns this -*/ -proto.api.ListUsersResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.api.UserListItem=} opt_value - * @param {number=} opt_index - * @return {!proto.api.UserListItem} - */ -proto.api.ListUsersResponse.prototype.addResult = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.api.UserListItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.api.ListUsersResponse} returns this - */ -proto.api.ListUsersResponse.prototype.clearResultList = function() { - return this.setResultList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.api.UpdateUserPasswordRequest.prototype.toObject = function(opt_includeInstance) { - return proto.api.UpdateUserPasswordRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.api.UpdateUserPasswordRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateUserPasswordRequest.toObject = function(includeInstance, msg) { - var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, ""), - password: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.api.UpdateUserPasswordRequest} - */ -proto.api.UpdateUserPasswordRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.api.UpdateUserPasswordRequest; - return proto.api.UpdateUserPasswordRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.api.UpdateUserPasswordRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.api.UpdateUserPasswordRequest} - */ -proto.api.UpdateUserPasswordRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.api.UpdateUserPasswordRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.api.UpdateUserPasswordRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.api.UpdateUserPasswordRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.api.UpdateUserPasswordRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string user_id = 1; - * @return {string} - */ -proto.api.UpdateUserPasswordRequest.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.UpdateUserPasswordRequest} returns this - */ -proto.api.UpdateUserPasswordRequest.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string password = 2; - * @return {string} - */ -proto.api.UpdateUserPasswordRequest.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.api.UpdateUserPasswordRequest} returns this - */ -proto.api.UpdateUserPasswordRequest.prototype.setPassword = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -goog.object.extend(exports, proto.api); diff --git a/api/js/common/common_grpc_pb.d.ts b/api/js/common/common_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/common/common_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/common/common_pb.d.ts b/api/js/common/common_pb.d.ts deleted file mode 100644 index cac359e5..00000000 --- a/api/js/common/common_pb.d.ts +++ /dev/null @@ -1,254 +0,0 @@ -// package: common -// file: common/common.proto - -import * as jspb from "google-protobuf"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; - -export class Location extends jspb.Message { - getLatitude(): number; - setLatitude(value: number): void; - - getLongitude(): number; - setLongitude(value: number): void; - - getAltitude(): number; - setAltitude(value: number): void; - - getSource(): LocationSourceMap[keyof LocationSourceMap]; - setSource(value: LocationSourceMap[keyof LocationSourceMap]): void; - - getAccuracy(): number; - setAccuracy(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Location.AsObject; - static toObject(includeInstance: boolean, msg: Location): Location.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Location, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Location; - static deserializeBinaryFromReader(message: Location, reader: jspb.BinaryReader): Location; -} - -export namespace Location { - export type AsObject = { - latitude: number, - longitude: number, - altitude: number, - source: LocationSourceMap[keyof LocationSourceMap], - accuracy: number, - } -} - -export class KeyEnvelope extends jspb.Message { - getKekLabel(): string; - setKekLabel(value: string): void; - - getAesKey(): Uint8Array | string; - getAesKey_asU8(): Uint8Array; - getAesKey_asB64(): string; - setAesKey(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): KeyEnvelope.AsObject; - static toObject(includeInstance: boolean, msg: KeyEnvelope): KeyEnvelope.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: KeyEnvelope, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): KeyEnvelope; - static deserializeBinaryFromReader(message: KeyEnvelope, reader: jspb.BinaryReader): KeyEnvelope; -} - -export namespace KeyEnvelope { - export type AsObject = { - kekLabel: string, - aesKey: Uint8Array | string, - } -} - -export class Metric extends jspb.Message { - getName(): string; - setName(value: string): void; - - clearTimestampsList(): void; - getTimestampsList(): Array; - setTimestampsList(value: Array): void; - addTimestamps(value?: google_protobuf_timestamp_pb.Timestamp, index?: number): google_protobuf_timestamp_pb.Timestamp; - - clearDatasetsList(): void; - getDatasetsList(): Array; - setDatasetsList(value: Array): void; - addDatasets(value?: MetricDataset, index?: number): MetricDataset; - - getKind(): MetricKindMap[keyof MetricKindMap]; - setKind(value: MetricKindMap[keyof MetricKindMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Metric.AsObject; - static toObject(includeInstance: boolean, msg: Metric): Metric.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Metric, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Metric; - static deserializeBinaryFromReader(message: Metric, reader: jspb.BinaryReader): Metric; -} - -export namespace Metric { - export type AsObject = { - name: string, - timestampsList: Array, - datasetsList: Array, - kind: MetricKindMap[keyof MetricKindMap], - } -} - -export class MetricDataset extends jspb.Message { - getLabel(): string; - setLabel(value: string): void; - - clearDataList(): void; - getDataList(): Array; - setDataList(value: Array): void; - addData(value: number, index?: number): number; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MetricDataset.AsObject; - static toObject(includeInstance: boolean, msg: MetricDataset): MetricDataset.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MetricDataset, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MetricDataset; - static deserializeBinaryFromReader(message: MetricDataset, reader: jspb.BinaryReader): MetricDataset; -} - -export namespace MetricDataset { - export type AsObject = { - label: string, - dataList: Array, - } -} - -export class JoinServerContext extends jspb.Message { - getSessionKeyId(): string; - setSessionKeyId(value: string): void; - - hasAppSKey(): boolean; - clearAppSKey(): void; - getAppSKey(): KeyEnvelope | undefined; - setAppSKey(value?: KeyEnvelope): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): JoinServerContext.AsObject; - static toObject(includeInstance: boolean, msg: JoinServerContext): JoinServerContext.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: JoinServerContext, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): JoinServerContext; - static deserializeBinaryFromReader(message: JoinServerContext, reader: jspb.BinaryReader): JoinServerContext; -} - -export namespace JoinServerContext { - export type AsObject = { - sessionKeyId: string, - appSKey?: KeyEnvelope.AsObject, - } -} - -export interface ModulationMap { - LORA: 0; - FSK: 1; - LR_FHSS: 2; -} - -export const Modulation: ModulationMap; - -export interface RegionMap { - EU868: 0; - US915: 2; - CN779: 3; - EU433: 4; - AU915: 5; - CN470: 6; - AS923: 7; - AS923_2: 12; - AS923_3: 13; - AS923_4: 14; - KR920: 8; - IN865: 9; - RU864: 10; - ISM2400: 11; -} - -export const Region: RegionMap; - -export interface MTypeMap { - JOIN_REQUEST: 0; - JOIN_ACCEPT: 1; - UNCONFIRMED_DATA_UP: 2; - UNCONFIRMED_DATA_DOWN: 3; - CONFIRMED_DATA_UP: 4; - CONFIRMED_DATA_DOWN: 5; - REJOIN_REQUEST: 6; - PROPRIETARY: 7; -} - -export const MType: MTypeMap; - -export interface MacVersionMap { - LORAWAN_1_0_0: 0; - LORAWAN_1_0_1: 1; - LORAWAN_1_0_2: 2; - LORAWAN_1_0_3: 3; - LORAWAN_1_0_4: 4; - LORAWAN_1_1_0: 5; -} - -export const MacVersion: MacVersionMap; - -export interface RegParamsRevisionMap { - A: 0; - B: 1; - RP002_1_0_0: 2; - RP002_1_0_1: 3; - RP002_1_0_2: 4; - RP002_1_0_3: 5; -} - -export const RegParamsRevision: RegParamsRevisionMap; - -export interface LocationSourceMap { - UNKNOWN: 0; - GPS: 1; - CONFIG: 2; - GEO_RESOLVER_TDOA: 3; - GEO_RESOLVER_RSSI: 4; - GEO_RESOLVER_GNSS: 5; - GEO_RESOLVER_WIFI: 6; -} - -export const LocationSource: LocationSourceMap; - -export interface AggregationMap { - HOUR: 0; - DAY: 1; - MONTH: 2; -} - -export const Aggregation: AggregationMap; - -export interface MetricKindMap { - COUNTER: 0; - ABSOLUTE: 1; - GAUGE: 2; -} - -export const MetricKind: MetricKindMap; - -export interface DeviceClassMap { - CLASS_A: 0; - CLASS_B: 1; - CLASS_C: 2; -} - -export const DeviceClass: DeviceClassMap; - diff --git a/api/js/common/common_pb.js b/api/js/common/common_pb.js deleted file mode 100644 index 43f5205e..00000000 --- a/api/js/common/common_pb.js +++ /dev/null @@ -1,1317 +0,0 @@ -// source: common/common.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -goog.exportSymbol('proto.common.Aggregation', null, global); -goog.exportSymbol('proto.common.DeviceClass', null, global); -goog.exportSymbol('proto.common.JoinServerContext', null, global); -goog.exportSymbol('proto.common.KeyEnvelope', null, global); -goog.exportSymbol('proto.common.Location', null, global); -goog.exportSymbol('proto.common.LocationSource', null, global); -goog.exportSymbol('proto.common.MType', null, global); -goog.exportSymbol('proto.common.MacVersion', null, global); -goog.exportSymbol('proto.common.Metric', null, global); -goog.exportSymbol('proto.common.MetricDataset', null, global); -goog.exportSymbol('proto.common.MetricKind', null, global); -goog.exportSymbol('proto.common.Modulation', null, global); -goog.exportSymbol('proto.common.RegParamsRevision', null, global); -goog.exportSymbol('proto.common.Region', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.common.Location = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.common.Location, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.common.Location.displayName = 'proto.common.Location'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.common.KeyEnvelope = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.common.KeyEnvelope, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.common.KeyEnvelope.displayName = 'proto.common.KeyEnvelope'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.common.Metric = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.common.Metric.repeatedFields_, null); -}; -goog.inherits(proto.common.Metric, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.common.Metric.displayName = 'proto.common.Metric'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.common.MetricDataset = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.common.MetricDataset.repeatedFields_, null); -}; -goog.inherits(proto.common.MetricDataset, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.common.MetricDataset.displayName = 'proto.common.MetricDataset'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.common.JoinServerContext = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.common.JoinServerContext, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.common.JoinServerContext.displayName = 'proto.common.JoinServerContext'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.common.Location.prototype.toObject = function(opt_includeInstance) { - return proto.common.Location.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.common.Location} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.Location.toObject = function(includeInstance, msg) { - var f, obj = { - latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), - longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - altitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), - source: jspb.Message.getFieldWithDefault(msg, 4, 0), - accuracy: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.common.Location} - */ -proto.common.Location.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.common.Location; - return proto.common.Location.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.common.Location} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.common.Location} - */ -proto.common.Location.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readDouble()); - msg.setLatitude(value); - break; - case 2: - var value = /** @type {number} */ (reader.readDouble()); - msg.setLongitude(value); - break; - case 3: - var value = /** @type {number} */ (reader.readDouble()); - msg.setAltitude(value); - break; - case 4: - var value = /** @type {!proto.common.LocationSource} */ (reader.readEnum()); - msg.setSource(value); - break; - case 5: - var value = /** @type {number} */ (reader.readFloat()); - msg.setAccuracy(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.common.Location.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.common.Location.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.common.Location} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.Location.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLatitude(); - if (f !== 0.0) { - writer.writeDouble( - 1, - f - ); - } - f = message.getLongitude(); - if (f !== 0.0) { - writer.writeDouble( - 2, - f - ); - } - f = message.getAltitude(); - if (f !== 0.0) { - writer.writeDouble( - 3, - f - ); - } - f = message.getSource(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getAccuracy(); - if (f !== 0.0) { - writer.writeFloat( - 5, - f - ); - } -}; - - -/** - * optional double latitude = 1; - * @return {number} - */ -proto.common.Location.prototype.getLatitude = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.common.Location} returns this - */ -proto.common.Location.prototype.setLatitude = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); -}; - - -/** - * optional double longitude = 2; - * @return {number} - */ -proto.common.Location.prototype.getLongitude = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.common.Location} returns this - */ -proto.common.Location.prototype.setLongitude = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - -/** - * optional double altitude = 3; - * @return {number} - */ -proto.common.Location.prototype.getAltitude = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.common.Location} returns this - */ -proto.common.Location.prototype.setAltitude = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; - - -/** - * optional LocationSource source = 4; - * @return {!proto.common.LocationSource} - */ -proto.common.Location.prototype.getSource = function() { - return /** @type {!proto.common.LocationSource} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.common.LocationSource} value - * @return {!proto.common.Location} returns this - */ -proto.common.Location.prototype.setSource = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional float accuracy = 5; - * @return {number} - */ -proto.common.Location.prototype.getAccuracy = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.common.Location} returns this - */ -proto.common.Location.prototype.setAccuracy = function(value) { - return jspb.Message.setProto3FloatField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.common.KeyEnvelope.prototype.toObject = function(opt_includeInstance) { - return proto.common.KeyEnvelope.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.common.KeyEnvelope} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.KeyEnvelope.toObject = function(includeInstance, msg) { - var f, obj = { - kekLabel: jspb.Message.getFieldWithDefault(msg, 1, ""), - aesKey: msg.getAesKey_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.common.KeyEnvelope} - */ -proto.common.KeyEnvelope.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.common.KeyEnvelope; - return proto.common.KeyEnvelope.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.common.KeyEnvelope} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.common.KeyEnvelope} - */ -proto.common.KeyEnvelope.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setKekLabel(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setAesKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.common.KeyEnvelope.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.common.KeyEnvelope.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.common.KeyEnvelope} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.KeyEnvelope.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKekLabel(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAesKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } -}; - - -/** - * optional string kek_label = 1; - * @return {string} - */ -proto.common.KeyEnvelope.prototype.getKekLabel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.common.KeyEnvelope} returns this - */ -proto.common.KeyEnvelope.prototype.setKekLabel = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes aes_key = 2; - * @return {!(string|Uint8Array)} - */ -proto.common.KeyEnvelope.prototype.getAesKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes aes_key = 2; - * This is a type-conversion wrapper around `getAesKey()` - * @return {string} - */ -proto.common.KeyEnvelope.prototype.getAesKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getAesKey())); -}; - - -/** - * optional bytes aes_key = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getAesKey()` - * @return {!Uint8Array} - */ -proto.common.KeyEnvelope.prototype.getAesKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAesKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.common.KeyEnvelope} returns this - */ -proto.common.KeyEnvelope.prototype.setAesKey = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.common.Metric.repeatedFields_ = [2,3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.common.Metric.prototype.toObject = function(opt_includeInstance) { - return proto.common.Metric.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.common.Metric} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.Metric.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - timestampsList: jspb.Message.toObjectList(msg.getTimestampsList(), - google_protobuf_timestamp_pb.Timestamp.toObject, includeInstance), - datasetsList: jspb.Message.toObjectList(msg.getDatasetsList(), - proto.common.MetricDataset.toObject, includeInstance), - kind: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.common.Metric} - */ -proto.common.Metric.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.common.Metric; - return proto.common.Metric.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.common.Metric} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.common.Metric} - */ -proto.common.Metric.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.addTimestamps(value); - break; - case 3: - var value = new proto.common.MetricDataset; - reader.readMessage(value,proto.common.MetricDataset.deserializeBinaryFromReader); - msg.addDatasets(value); - break; - case 4: - var value = /** @type {!proto.common.MetricKind} */ (reader.readEnum()); - msg.setKind(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.common.Metric.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.common.Metric.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.common.Metric} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.Metric.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTimestampsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDatasetsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.common.MetricDataset.serializeBinaryToWriter - ); - } - f = message.getKind(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.common.Metric.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.common.Metric} returns this - */ -proto.common.Metric.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated google.protobuf.Timestamp timestamps = 2; - * @return {!Array} - */ -proto.common.Metric.prototype.getTimestampsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.common.Metric} returns this -*/ -proto.common.Metric.prototype.setTimestampsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.protobuf.Timestamp=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.Timestamp} - */ -proto.common.Metric.prototype.addTimestamps = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.Timestamp, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.common.Metric} returns this - */ -proto.common.Metric.prototype.clearTimestampsList = function() { - return this.setTimestampsList([]); -}; - - -/** - * repeated MetricDataset datasets = 3; - * @return {!Array} - */ -proto.common.Metric.prototype.getDatasetsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.common.MetricDataset, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.common.Metric} returns this -*/ -proto.common.Metric.prototype.setDatasetsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.common.MetricDataset=} opt_value - * @param {number=} opt_index - * @return {!proto.common.MetricDataset} - */ -proto.common.Metric.prototype.addDatasets = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.common.MetricDataset, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.common.Metric} returns this - */ -proto.common.Metric.prototype.clearDatasetsList = function() { - return this.setDatasetsList([]); -}; - - -/** - * optional MetricKind kind = 4; - * @return {!proto.common.MetricKind} - */ -proto.common.Metric.prototype.getKind = function() { - return /** @type {!proto.common.MetricKind} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.common.MetricKind} value - * @return {!proto.common.Metric} returns this - */ -proto.common.Metric.prototype.setKind = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.common.MetricDataset.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.common.MetricDataset.prototype.toObject = function(opt_includeInstance) { - return proto.common.MetricDataset.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.common.MetricDataset} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.MetricDataset.toObject = function(includeInstance, msg) { - var f, obj = { - label: jspb.Message.getFieldWithDefault(msg, 1, ""), - dataList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.common.MetricDataset} - */ -proto.common.MetricDataset.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.common.MetricDataset; - return proto.common.MetricDataset.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.common.MetricDataset} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.common.MetricDataset} - */ -proto.common.MetricDataset.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setLabel(value); - break; - case 2: - var value = /** @type {!Array} */ (reader.readPackedFloat()); - msg.setDataList(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.common.MetricDataset.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.common.MetricDataset.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.common.MetricDataset} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.MetricDataset.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLabel(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDataList(); - if (f.length > 0) { - writer.writePackedFloat( - 2, - f - ); - } -}; - - -/** - * optional string label = 1; - * @return {string} - */ -proto.common.MetricDataset.prototype.getLabel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.common.MetricDataset} returns this - */ -proto.common.MetricDataset.prototype.setLabel = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated float data = 2; - * @return {!Array} - */ -proto.common.MetricDataset.prototype.getDataList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.common.MetricDataset} returns this - */ -proto.common.MetricDataset.prototype.setDataList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.common.MetricDataset} returns this - */ -proto.common.MetricDataset.prototype.addData = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.common.MetricDataset} returns this - */ -proto.common.MetricDataset.prototype.clearDataList = function() { - return this.setDataList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.common.JoinServerContext.prototype.toObject = function(opt_includeInstance) { - return proto.common.JoinServerContext.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.common.JoinServerContext} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.JoinServerContext.toObject = function(includeInstance, msg) { - var f, obj = { - sessionKeyId: jspb.Message.getFieldWithDefault(msg, 1, ""), - appSKey: (f = msg.getAppSKey()) && proto.common.KeyEnvelope.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.common.JoinServerContext} - */ -proto.common.JoinServerContext.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.common.JoinServerContext; - return proto.common.JoinServerContext.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.common.JoinServerContext} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.common.JoinServerContext} - */ -proto.common.JoinServerContext.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSessionKeyId(value); - break; - case 2: - var value = new proto.common.KeyEnvelope; - reader.readMessage(value,proto.common.KeyEnvelope.deserializeBinaryFromReader); - msg.setAppSKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.common.JoinServerContext.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.common.JoinServerContext.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.common.JoinServerContext} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.common.JoinServerContext.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSessionKeyId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAppSKey(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.common.KeyEnvelope.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string session_key_id = 1; - * @return {string} - */ -proto.common.JoinServerContext.prototype.getSessionKeyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.common.JoinServerContext} returns this - */ -proto.common.JoinServerContext.prototype.setSessionKeyId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional KeyEnvelope app_s_key = 2; - * @return {?proto.common.KeyEnvelope} - */ -proto.common.JoinServerContext.prototype.getAppSKey = function() { - return /** @type{?proto.common.KeyEnvelope} */ ( - jspb.Message.getWrapperField(this, proto.common.KeyEnvelope, 2)); -}; - - -/** - * @param {?proto.common.KeyEnvelope|undefined} value - * @return {!proto.common.JoinServerContext} returns this -*/ -proto.common.JoinServerContext.prototype.setAppSKey = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.common.JoinServerContext} returns this - */ -proto.common.JoinServerContext.prototype.clearAppSKey = function() { - return this.setAppSKey(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.common.JoinServerContext.prototype.hasAppSKey = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * @enum {number} - */ -proto.common.Modulation = { - LORA: 0, - FSK: 1, - LR_FHSS: 2 -}; - -/** - * @enum {number} - */ -proto.common.Region = { - EU868: 0, - US915: 2, - CN779: 3, - EU433: 4, - AU915: 5, - CN470: 6, - AS923: 7, - AS923_2: 12, - AS923_3: 13, - AS923_4: 14, - KR920: 8, - IN865: 9, - RU864: 10, - ISM2400: 11 -}; - -/** - * @enum {number} - */ -proto.common.MType = { - JOIN_REQUEST: 0, - JOIN_ACCEPT: 1, - UNCONFIRMED_DATA_UP: 2, - UNCONFIRMED_DATA_DOWN: 3, - CONFIRMED_DATA_UP: 4, - CONFIRMED_DATA_DOWN: 5, - REJOIN_REQUEST: 6, - PROPRIETARY: 7 -}; - -/** - * @enum {number} - */ -proto.common.MacVersion = { - LORAWAN_1_0_0: 0, - LORAWAN_1_0_1: 1, - LORAWAN_1_0_2: 2, - LORAWAN_1_0_3: 3, - LORAWAN_1_0_4: 4, - LORAWAN_1_1_0: 5 -}; - -/** - * @enum {number} - */ -proto.common.RegParamsRevision = { - A: 0, - B: 1, - RP002_1_0_0: 2, - RP002_1_0_1: 3, - RP002_1_0_2: 4, - RP002_1_0_3: 5 -}; - -/** - * @enum {number} - */ -proto.common.LocationSource = { - UNKNOWN: 0, - GPS: 1, - CONFIG: 2, - GEO_RESOLVER_TDOA: 3, - GEO_RESOLVER_RSSI: 4, - GEO_RESOLVER_GNSS: 5, - GEO_RESOLVER_WIFI: 6 -}; - -/** - * @enum {number} - */ -proto.common.Aggregation = { - HOUR: 0, - DAY: 1, - MONTH: 2 -}; - -/** - * @enum {number} - */ -proto.common.MetricKind = { - COUNTER: 0, - ABSOLUTE: 1, - GAUGE: 2 -}; - -/** - * @enum {number} - */ -proto.common.DeviceClass = { - CLASS_A: 0, - CLASS_B: 1, - CLASS_C: 2 -}; - -goog.object.extend(exports, proto.common); diff --git a/api/js/google/api/annotations_grpc_pb.d.ts b/api/js/google/api/annotations_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/annotations_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/annotations_pb.d.ts b/api/js/google/api/annotations_pb.d.ts deleted file mode 100644 index adf3b88c..00000000 --- a/api/js/google/api/annotations_pb.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// package: google.api -// file: google/api/annotations.proto - -import * as jspb from "google-protobuf"; -import * as google_api_http_pb from "../../google/api/http_pb"; -import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; - - export const http: jspb.ExtensionFieldInfo; - diff --git a/api/js/google/api/annotations_pb.js b/api/js/google/api/annotations_pb.js deleted file mode 100644 index 2341dbed..00000000 --- a/api/js/google/api/annotations_pb.js +++ /dev/null @@ -1,45 +0,0 @@ -// source: google/api/annotations.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_http_pb = require('../../google/api/http_pb.js'); -goog.object.extend(proto, google_api_http_pb); -var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); -goog.object.extend(proto, google_protobuf_descriptor_pb); -goog.exportSymbol('proto.google.api.http', null, global); - -/** - * A tuple of {field number, class constructor} for the extension - * field named `http`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.http = new jspb.ExtensionFieldInfo( - 72295728, - {http: 0}, - google_api_http_pb.HttpRule, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - google_api_http_pb.HttpRule.toObject), - 0); - -google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295728] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.http, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - google_api_http_pb.HttpRule.serializeBinaryToWriter, - google_api_http_pb.HttpRule.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MethodOptions.extensions[72295728] = proto.google.api.http; - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/auth_grpc_pb.d.ts b/api/js/google/api/auth_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/auth_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/auth_pb.d.ts b/api/js/google/api/auth_pb.d.ts deleted file mode 100644 index 9c7d5dd4..00000000 --- a/api/js/google/api/auth_pb.d.ts +++ /dev/null @@ -1,201 +0,0 @@ -// package: google.api -// file: google/api/auth.proto - -import * as jspb from "google-protobuf"; - -export class Authentication extends jspb.Message { - clearRulesList(): void; - getRulesList(): Array; - setRulesList(value: Array): void; - addRules(value?: AuthenticationRule, index?: number): AuthenticationRule; - - clearProvidersList(): void; - getProvidersList(): Array; - setProvidersList(value: Array): void; - addProviders(value?: AuthProvider, index?: number): AuthProvider; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Authentication.AsObject; - static toObject(includeInstance: boolean, msg: Authentication): Authentication.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Authentication, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Authentication; - static deserializeBinaryFromReader(message: Authentication, reader: jspb.BinaryReader): Authentication; -} - -export namespace Authentication { - export type AsObject = { - rulesList: Array, - providersList: Array, - } -} - -export class AuthenticationRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): void; - - hasOauth(): boolean; - clearOauth(): void; - getOauth(): OAuthRequirements | undefined; - setOauth(value?: OAuthRequirements): void; - - getAllowWithoutCredential(): boolean; - setAllowWithoutCredential(value: boolean): void; - - clearRequirementsList(): void; - getRequirementsList(): Array; - setRequirementsList(value: Array): void; - addRequirements(value?: AuthRequirement, index?: number): AuthRequirement; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AuthenticationRule.AsObject; - static toObject(includeInstance: boolean, msg: AuthenticationRule): AuthenticationRule.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AuthenticationRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AuthenticationRule; - static deserializeBinaryFromReader(message: AuthenticationRule, reader: jspb.BinaryReader): AuthenticationRule; -} - -export namespace AuthenticationRule { - export type AsObject = { - selector: string, - oauth?: OAuthRequirements.AsObject, - allowWithoutCredential: boolean, - requirementsList: Array, - } -} - -export class JwtLocation extends jspb.Message { - hasHeader(): boolean; - clearHeader(): void; - getHeader(): string; - setHeader(value: string): void; - - hasQuery(): boolean; - clearQuery(): void; - getQuery(): string; - setQuery(value: string): void; - - hasCookie(): boolean; - clearCookie(): void; - getCookie(): string; - setCookie(value: string): void; - - getValuePrefix(): string; - setValuePrefix(value: string): void; - - getInCase(): JwtLocation.InCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): JwtLocation.AsObject; - static toObject(includeInstance: boolean, msg: JwtLocation): JwtLocation.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: JwtLocation, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): JwtLocation; - static deserializeBinaryFromReader(message: JwtLocation, reader: jspb.BinaryReader): JwtLocation; -} - -export namespace JwtLocation { - export type AsObject = { - header: string, - query: string, - cookie: string, - valuePrefix: string, - } - - export enum InCase { - IN_NOT_SET = 0, - HEADER = 1, - QUERY = 2, - COOKIE = 4, - } -} - -export class AuthProvider extends jspb.Message { - getId(): string; - setId(value: string): void; - - getIssuer(): string; - setIssuer(value: string): void; - - getJwksUri(): string; - setJwksUri(value: string): void; - - getAudiences(): string; - setAudiences(value: string): void; - - getAuthorizationUrl(): string; - setAuthorizationUrl(value: string): void; - - clearJwtLocationsList(): void; - getJwtLocationsList(): Array; - setJwtLocationsList(value: Array): void; - addJwtLocations(value?: JwtLocation, index?: number): JwtLocation; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AuthProvider.AsObject; - static toObject(includeInstance: boolean, msg: AuthProvider): AuthProvider.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AuthProvider, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AuthProvider; - static deserializeBinaryFromReader(message: AuthProvider, reader: jspb.BinaryReader): AuthProvider; -} - -export namespace AuthProvider { - export type AsObject = { - id: string, - issuer: string, - jwksUri: string, - audiences: string, - authorizationUrl: string, - jwtLocationsList: Array, - } -} - -export class OAuthRequirements extends jspb.Message { - getCanonicalScopes(): string; - setCanonicalScopes(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OAuthRequirements.AsObject; - static toObject(includeInstance: boolean, msg: OAuthRequirements): OAuthRequirements.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OAuthRequirements, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OAuthRequirements; - static deserializeBinaryFromReader(message: OAuthRequirements, reader: jspb.BinaryReader): OAuthRequirements; -} - -export namespace OAuthRequirements { - export type AsObject = { - canonicalScopes: string, - } -} - -export class AuthRequirement extends jspb.Message { - getProviderId(): string; - setProviderId(value: string): void; - - getAudiences(): string; - setAudiences(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AuthRequirement.AsObject; - static toObject(includeInstance: boolean, msg: AuthRequirement): AuthRequirement.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AuthRequirement, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AuthRequirement; - static deserializeBinaryFromReader(message: AuthRequirement, reader: jspb.BinaryReader): AuthRequirement; -} - -export namespace AuthRequirement { - export type AsObject = { - providerId: string, - audiences: string, - } -} - diff --git a/api/js/google/api/auth_pb.js b/api/js/google/api/auth_pb.js deleted file mode 100644 index 2982711c..00000000 --- a/api/js/google/api/auth_pb.js +++ /dev/null @@ -1,1533 +0,0 @@ -// source: google/api/auth.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.AuthProvider', null, global); -goog.exportSymbol('proto.google.api.AuthRequirement', null, global); -goog.exportSymbol('proto.google.api.Authentication', null, global); -goog.exportSymbol('proto.google.api.AuthenticationRule', null, global); -goog.exportSymbol('proto.google.api.JwtLocation', null, global); -goog.exportSymbol('proto.google.api.JwtLocation.InCase', null, global); -goog.exportSymbol('proto.google.api.OAuthRequirements', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Authentication = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Authentication.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Authentication, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Authentication.displayName = 'proto.google.api.Authentication'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.AuthenticationRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.AuthenticationRule.repeatedFields_, null); -}; -goog.inherits(proto.google.api.AuthenticationRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.AuthenticationRule.displayName = 'proto.google.api.AuthenticationRule'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.JwtLocation = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.JwtLocation.oneofGroups_); -}; -goog.inherits(proto.google.api.JwtLocation, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.JwtLocation.displayName = 'proto.google.api.JwtLocation'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.AuthProvider = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.AuthProvider.repeatedFields_, null); -}; -goog.inherits(proto.google.api.AuthProvider, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.AuthProvider.displayName = 'proto.google.api.AuthProvider'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.OAuthRequirements = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.OAuthRequirements, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.OAuthRequirements.displayName = 'proto.google.api.OAuthRequirements'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.AuthRequirement = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.AuthRequirement, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.AuthRequirement.displayName = 'proto.google.api.AuthRequirement'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Authentication.repeatedFields_ = [3,4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Authentication.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Authentication.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Authentication} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Authentication.toObject = function(includeInstance, msg) { - var f, obj = { - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.google.api.AuthenticationRule.toObject, includeInstance), - providersList: jspb.Message.toObjectList(msg.getProvidersList(), - proto.google.api.AuthProvider.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Authentication} - */ -proto.google.api.Authentication.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Authentication; - return proto.google.api.Authentication.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Authentication} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Authentication} - */ -proto.google.api.Authentication.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 3: - var value = new proto.google.api.AuthenticationRule; - reader.readMessage(value,proto.google.api.AuthenticationRule.deserializeBinaryFromReader); - msg.addRules(value); - break; - case 4: - var value = new proto.google.api.AuthProvider; - reader.readMessage(value,proto.google.api.AuthProvider.deserializeBinaryFromReader); - msg.addProviders(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Authentication.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Authentication.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Authentication} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Authentication.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.google.api.AuthenticationRule.serializeBinaryToWriter - ); - } - f = message.getProvidersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.google.api.AuthProvider.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated AuthenticationRule rules = 3; - * @return {!Array} - */ -proto.google.api.Authentication.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.AuthenticationRule, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Authentication} returns this -*/ -proto.google.api.Authentication.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.google.api.AuthenticationRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.AuthenticationRule} - */ -proto.google.api.Authentication.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.AuthenticationRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Authentication} returns this - */ -proto.google.api.Authentication.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - -/** - * repeated AuthProvider providers = 4; - * @return {!Array} - */ -proto.google.api.Authentication.prototype.getProvidersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.AuthProvider, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Authentication} returns this -*/ -proto.google.api.Authentication.prototype.setProvidersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.google.api.AuthProvider=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.AuthProvider} - */ -proto.google.api.Authentication.prototype.addProviders = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.api.AuthProvider, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Authentication} returns this - */ -proto.google.api.Authentication.prototype.clearProvidersList = function() { - return this.setProvidersList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.AuthenticationRule.repeatedFields_ = [7]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.AuthenticationRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.AuthenticationRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.AuthenticationRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.AuthenticationRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - oauth: (f = msg.getOauth()) && proto.google.api.OAuthRequirements.toObject(includeInstance, f), - allowWithoutCredential: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - requirementsList: jspb.Message.toObjectList(msg.getRequirementsList(), - proto.google.api.AuthRequirement.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.AuthenticationRule} - */ -proto.google.api.AuthenticationRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.AuthenticationRule; - return proto.google.api.AuthenticationRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.AuthenticationRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.AuthenticationRule} - */ -proto.google.api.AuthenticationRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = new proto.google.api.OAuthRequirements; - reader.readMessage(value,proto.google.api.OAuthRequirements.deserializeBinaryFromReader); - msg.setOauth(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAllowWithoutCredential(value); - break; - case 7: - var value = new proto.google.api.AuthRequirement; - reader.readMessage(value,proto.google.api.AuthRequirement.deserializeBinaryFromReader); - msg.addRequirements(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.AuthenticationRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.AuthenticationRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.AuthenticationRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.AuthenticationRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getOauth(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.google.api.OAuthRequirements.serializeBinaryToWriter - ); - } - f = message.getAllowWithoutCredential(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getRequirementsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - proto.google.api.AuthRequirement.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.AuthenticationRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.AuthenticationRule} returns this - */ -proto.google.api.AuthenticationRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional OAuthRequirements oauth = 2; - * @return {?proto.google.api.OAuthRequirements} - */ -proto.google.api.AuthenticationRule.prototype.getOauth = function() { - return /** @type{?proto.google.api.OAuthRequirements} */ ( - jspb.Message.getWrapperField(this, proto.google.api.OAuthRequirements, 2)); -}; - - -/** - * @param {?proto.google.api.OAuthRequirements|undefined} value - * @return {!proto.google.api.AuthenticationRule} returns this -*/ -proto.google.api.AuthenticationRule.prototype.setOauth = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.AuthenticationRule} returns this - */ -proto.google.api.AuthenticationRule.prototype.clearOauth = function() { - return this.setOauth(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.AuthenticationRule.prototype.hasOauth = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional bool allow_without_credential = 5; - * @return {boolean} - */ -proto.google.api.AuthenticationRule.prototype.getAllowWithoutCredential = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.api.AuthenticationRule} returns this - */ -proto.google.api.AuthenticationRule.prototype.setAllowWithoutCredential = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * repeated AuthRequirement requirements = 7; - * @return {!Array} - */ -proto.google.api.AuthenticationRule.prototype.getRequirementsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.AuthRequirement, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.AuthenticationRule} returns this -*/ -proto.google.api.AuthenticationRule.prototype.setRequirementsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); -}; - - -/** - * @param {!proto.google.api.AuthRequirement=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.AuthRequirement} - */ -proto.google.api.AuthenticationRule.prototype.addRequirements = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.google.api.AuthRequirement, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.AuthenticationRule} returns this - */ -proto.google.api.AuthenticationRule.prototype.clearRequirementsList = function() { - return this.setRequirementsList([]); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.google.api.JwtLocation.oneofGroups_ = [[1,2,4]]; - -/** - * @enum {number} - */ -proto.google.api.JwtLocation.InCase = { - IN_NOT_SET: 0, - HEADER: 1, - QUERY: 2, - COOKIE: 4 -}; - -/** - * @return {proto.google.api.JwtLocation.InCase} - */ -proto.google.api.JwtLocation.prototype.getInCase = function() { - return /** @type {proto.google.api.JwtLocation.InCase} */(jspb.Message.computeOneofCase(this, proto.google.api.JwtLocation.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.JwtLocation.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.JwtLocation.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.JwtLocation} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.JwtLocation.toObject = function(includeInstance, msg) { - var f, obj = { - header: jspb.Message.getFieldWithDefault(msg, 1, ""), - query: jspb.Message.getFieldWithDefault(msg, 2, ""), - cookie: jspb.Message.getFieldWithDefault(msg, 4, ""), - valuePrefix: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.JwtLocation} - */ -proto.google.api.JwtLocation.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.JwtLocation; - return proto.google.api.JwtLocation.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.JwtLocation} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.JwtLocation} - */ -proto.google.api.JwtLocation.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setHeader(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setQuery(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setCookie(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setValuePrefix(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.JwtLocation.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.JwtLocation.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.JwtLocation} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.JwtLocation.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeString( - 2, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeString( - 4, - f - ); - } - f = message.getValuePrefix(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string header = 1; - * @return {string} - */ -proto.google.api.JwtLocation.prototype.getHeader = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.JwtLocation} returns this - */ -proto.google.api.JwtLocation.prototype.setHeader = function(value) { - return jspb.Message.setOneofField(this, 1, proto.google.api.JwtLocation.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.JwtLocation} returns this - */ -proto.google.api.JwtLocation.prototype.clearHeader = function() { - return jspb.Message.setOneofField(this, 1, proto.google.api.JwtLocation.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.JwtLocation.prototype.hasHeader = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string query = 2; - * @return {string} - */ -proto.google.api.JwtLocation.prototype.getQuery = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.JwtLocation} returns this - */ -proto.google.api.JwtLocation.prototype.setQuery = function(value) { - return jspb.Message.setOneofField(this, 2, proto.google.api.JwtLocation.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.JwtLocation} returns this - */ -proto.google.api.JwtLocation.prototype.clearQuery = function() { - return jspb.Message.setOneofField(this, 2, proto.google.api.JwtLocation.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.JwtLocation.prototype.hasQuery = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string cookie = 4; - * @return {string} - */ -proto.google.api.JwtLocation.prototype.getCookie = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.JwtLocation} returns this - */ -proto.google.api.JwtLocation.prototype.setCookie = function(value) { - return jspb.Message.setOneofField(this, 4, proto.google.api.JwtLocation.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.JwtLocation} returns this - */ -proto.google.api.JwtLocation.prototype.clearCookie = function() { - return jspb.Message.setOneofField(this, 4, proto.google.api.JwtLocation.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.JwtLocation.prototype.hasCookie = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string value_prefix = 3; - * @return {string} - */ -proto.google.api.JwtLocation.prototype.getValuePrefix = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.JwtLocation} returns this - */ -proto.google.api.JwtLocation.prototype.setValuePrefix = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.AuthProvider.repeatedFields_ = [6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.AuthProvider.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.AuthProvider.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.AuthProvider} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.AuthProvider.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - issuer: jspb.Message.getFieldWithDefault(msg, 2, ""), - jwksUri: jspb.Message.getFieldWithDefault(msg, 3, ""), - audiences: jspb.Message.getFieldWithDefault(msg, 4, ""), - authorizationUrl: jspb.Message.getFieldWithDefault(msg, 5, ""), - jwtLocationsList: jspb.Message.toObjectList(msg.getJwtLocationsList(), - proto.google.api.JwtLocation.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.AuthProvider} - */ -proto.google.api.AuthProvider.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.AuthProvider; - return proto.google.api.AuthProvider.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.AuthProvider} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.AuthProvider} - */ -proto.google.api.AuthProvider.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setIssuer(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setJwksUri(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setAudiences(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setAuthorizationUrl(value); - break; - case 6: - var value = new proto.google.api.JwtLocation; - reader.readMessage(value,proto.google.api.JwtLocation.deserializeBinaryFromReader); - msg.addJwtLocations(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.AuthProvider.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.AuthProvider.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.AuthProvider} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.AuthProvider.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getIssuer(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getJwksUri(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getAudiences(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getAuthorizationUrl(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getJwtLocationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.google.api.JwtLocation.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.google.api.AuthProvider.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.AuthProvider} returns this - */ -proto.google.api.AuthProvider.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string issuer = 2; - * @return {string} - */ -proto.google.api.AuthProvider.prototype.getIssuer = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.AuthProvider} returns this - */ -proto.google.api.AuthProvider.prototype.setIssuer = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string jwks_uri = 3; - * @return {string} - */ -proto.google.api.AuthProvider.prototype.getJwksUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.AuthProvider} returns this - */ -proto.google.api.AuthProvider.prototype.setJwksUri = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string audiences = 4; - * @return {string} - */ -proto.google.api.AuthProvider.prototype.getAudiences = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.AuthProvider} returns this - */ -proto.google.api.AuthProvider.prototype.setAudiences = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string authorization_url = 5; - * @return {string} - */ -proto.google.api.AuthProvider.prototype.getAuthorizationUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.AuthProvider} returns this - */ -proto.google.api.AuthProvider.prototype.setAuthorizationUrl = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * repeated JwtLocation jwt_locations = 6; - * @return {!Array} - */ -proto.google.api.AuthProvider.prototype.getJwtLocationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.JwtLocation, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.AuthProvider} returns this -*/ -proto.google.api.AuthProvider.prototype.setJwtLocationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.google.api.JwtLocation=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.JwtLocation} - */ -proto.google.api.AuthProvider.prototype.addJwtLocations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.google.api.JwtLocation, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.AuthProvider} returns this - */ -proto.google.api.AuthProvider.prototype.clearJwtLocationsList = function() { - return this.setJwtLocationsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.OAuthRequirements.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.OAuthRequirements.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.OAuthRequirements} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.OAuthRequirements.toObject = function(includeInstance, msg) { - var f, obj = { - canonicalScopes: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.OAuthRequirements} - */ -proto.google.api.OAuthRequirements.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.OAuthRequirements; - return proto.google.api.OAuthRequirements.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.OAuthRequirements} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.OAuthRequirements} - */ -proto.google.api.OAuthRequirements.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setCanonicalScopes(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.OAuthRequirements.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.OAuthRequirements.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.OAuthRequirements} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.OAuthRequirements.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCanonicalScopes(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string canonical_scopes = 1; - * @return {string} - */ -proto.google.api.OAuthRequirements.prototype.getCanonicalScopes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.OAuthRequirements} returns this - */ -proto.google.api.OAuthRequirements.prototype.setCanonicalScopes = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.AuthRequirement.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.AuthRequirement.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.AuthRequirement} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.AuthRequirement.toObject = function(includeInstance, msg) { - var f, obj = { - providerId: jspb.Message.getFieldWithDefault(msg, 1, ""), - audiences: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.AuthRequirement} - */ -proto.google.api.AuthRequirement.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.AuthRequirement; - return proto.google.api.AuthRequirement.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.AuthRequirement} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.AuthRequirement} - */ -proto.google.api.AuthRequirement.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setProviderId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAudiences(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.AuthRequirement.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.AuthRequirement.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.AuthRequirement} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.AuthRequirement.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProviderId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAudiences(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string provider_id = 1; - * @return {string} - */ -proto.google.api.AuthRequirement.prototype.getProviderId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.AuthRequirement} returns this - */ -proto.google.api.AuthRequirement.prototype.setProviderId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string audiences = 2; - * @return {string} - */ -proto.google.api.AuthRequirement.prototype.getAudiences = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.AuthRequirement} returns this - */ -proto.google.api.AuthRequirement.prototype.setAudiences = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/backend_grpc_pb.d.ts b/api/js/google/api/backend_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/backend_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/backend_pb.d.ts b/api/js/google/api/backend_pb.d.ts deleted file mode 100644 index 9308e9d5..00000000 --- a/api/js/google/api/backend_pb.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -// package: google.api -// file: google/api/backend.proto - -import * as jspb from "google-protobuf"; - -export class Backend extends jspb.Message { - clearRulesList(): void; - getRulesList(): Array; - setRulesList(value: Array): void; - addRules(value?: BackendRule, index?: number): BackendRule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Backend.AsObject; - static toObject(includeInstance: boolean, msg: Backend): Backend.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Backend, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Backend; - static deserializeBinaryFromReader(message: Backend, reader: jspb.BinaryReader): Backend; -} - -export namespace Backend { - export type AsObject = { - rulesList: Array, - } -} - -export class BackendRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): void; - - getAddress(): string; - setAddress(value: string): void; - - getDeadline(): number; - setDeadline(value: number): void; - - getMinDeadline(): number; - setMinDeadline(value: number): void; - - getOperationDeadline(): number; - setOperationDeadline(value: number): void; - - getPathTranslation(): BackendRule.PathTranslationMap[keyof BackendRule.PathTranslationMap]; - setPathTranslation(value: BackendRule.PathTranslationMap[keyof BackendRule.PathTranslationMap]): void; - - hasJwtAudience(): boolean; - clearJwtAudience(): void; - getJwtAudience(): string; - setJwtAudience(value: string): void; - - hasDisableAuth(): boolean; - clearDisableAuth(): void; - getDisableAuth(): boolean; - setDisableAuth(value: boolean): void; - - getProtocol(): string; - setProtocol(value: string): void; - - getOverridesByRequestProtocolMap(): jspb.Map; - clearOverridesByRequestProtocolMap(): void; - getAuthenticationCase(): BackendRule.AuthenticationCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BackendRule.AsObject; - static toObject(includeInstance: boolean, msg: BackendRule): BackendRule.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BackendRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BackendRule; - static deserializeBinaryFromReader(message: BackendRule, reader: jspb.BinaryReader): BackendRule; -} - -export namespace BackendRule { - export type AsObject = { - selector: string, - address: string, - deadline: number, - minDeadline: number, - operationDeadline: number, - pathTranslation: BackendRule.PathTranslationMap[keyof BackendRule.PathTranslationMap], - jwtAudience: string, - disableAuth: boolean, - protocol: string, - overridesByRequestProtocolMap: Array<[string, BackendRule.AsObject]>, - } - - export interface PathTranslationMap { - PATH_TRANSLATION_UNSPECIFIED: 0; - CONSTANT_ADDRESS: 1; - APPEND_PATH_TO_ADDRESS: 2; - } - - export const PathTranslation: PathTranslationMap; - - export enum AuthenticationCase { - AUTHENTICATION_NOT_SET = 0, - JWT_AUDIENCE = 7, - DISABLE_AUTH = 8, - } -} - diff --git a/api/js/google/api/backend_pb.js b/api/js/google/api/backend_pb.js deleted file mode 100644 index 8dfb7ff7..00000000 --- a/api/js/google/api/backend_pb.js +++ /dev/null @@ -1,695 +0,0 @@ -// source: google/api/backend.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Backend', null, global); -goog.exportSymbol('proto.google.api.BackendRule', null, global); -goog.exportSymbol('proto.google.api.BackendRule.AuthenticationCase', null, global); -goog.exportSymbol('proto.google.api.BackendRule.PathTranslation', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Backend = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Backend.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Backend, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Backend.displayName = 'proto.google.api.Backend'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.BackendRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.BackendRule.oneofGroups_); -}; -goog.inherits(proto.google.api.BackendRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.BackendRule.displayName = 'proto.google.api.BackendRule'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Backend.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Backend.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Backend.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Backend} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Backend.toObject = function(includeInstance, msg) { - var f, obj = { - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.google.api.BackendRule.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Backend} - */ -proto.google.api.Backend.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Backend; - return proto.google.api.Backend.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Backend} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Backend} - */ -proto.google.api.Backend.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.BackendRule; - reader.readMessage(value,proto.google.api.BackendRule.deserializeBinaryFromReader); - msg.addRules(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Backend.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Backend.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Backend} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Backend.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.api.BackendRule.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated BackendRule rules = 1; - * @return {!Array} - */ -proto.google.api.Backend.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.BackendRule, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Backend} returns this -*/ -proto.google.api.Backend.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.api.BackendRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.BackendRule} - */ -proto.google.api.Backend.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.BackendRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Backend} returns this - */ -proto.google.api.Backend.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.google.api.BackendRule.oneofGroups_ = [[7,8]]; - -/** - * @enum {number} - */ -proto.google.api.BackendRule.AuthenticationCase = { - AUTHENTICATION_NOT_SET: 0, - JWT_AUDIENCE: 7, - DISABLE_AUTH: 8 -}; - -/** - * @return {proto.google.api.BackendRule.AuthenticationCase} - */ -proto.google.api.BackendRule.prototype.getAuthenticationCase = function() { - return /** @type {proto.google.api.BackendRule.AuthenticationCase} */(jspb.Message.computeOneofCase(this, proto.google.api.BackendRule.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.BackendRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.BackendRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.BackendRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.BackendRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - address: jspb.Message.getFieldWithDefault(msg, 2, ""), - deadline: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), - minDeadline: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), - operationDeadline: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), - pathTranslation: jspb.Message.getFieldWithDefault(msg, 6, 0), - jwtAudience: jspb.Message.getFieldWithDefault(msg, 7, ""), - disableAuth: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - protocol: jspb.Message.getFieldWithDefault(msg, 9, ""), - overridesByRequestProtocolMap: (f = msg.getOverridesByRequestProtocolMap()) ? f.toObject(includeInstance, proto.google.api.BackendRule.toObject) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.BackendRule} - */ -proto.google.api.BackendRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.BackendRule; - return proto.google.api.BackendRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.BackendRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.BackendRule} - */ -proto.google.api.BackendRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAddress(value); - break; - case 3: - var value = /** @type {number} */ (reader.readDouble()); - msg.setDeadline(value); - break; - case 4: - var value = /** @type {number} */ (reader.readDouble()); - msg.setMinDeadline(value); - break; - case 5: - var value = /** @type {number} */ (reader.readDouble()); - msg.setOperationDeadline(value); - break; - case 6: - var value = /** @type {!proto.google.api.BackendRule.PathTranslation} */ (reader.readEnum()); - msg.setPathTranslation(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setJwtAudience(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDisableAuth(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setProtocol(value); - break; - case 10: - var value = msg.getOverridesByRequestProtocolMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.api.BackendRule.deserializeBinaryFromReader, "", new proto.google.api.BackendRule()); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.BackendRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.BackendRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.BackendRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.BackendRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAddress(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDeadline(); - if (f !== 0.0) { - writer.writeDouble( - 3, - f - ); - } - f = message.getMinDeadline(); - if (f !== 0.0) { - writer.writeDouble( - 4, - f - ); - } - f = message.getOperationDeadline(); - if (f !== 0.0) { - writer.writeDouble( - 5, - f - ); - } - f = message.getPathTranslation(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeString( - 7, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 8)); - if (f != null) { - writer.writeBool( - 8, - f - ); - } - f = message.getProtocol(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getOverridesByRequestProtocolMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(10, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.api.BackendRule.serializeBinaryToWriter); - } -}; - - -/** - * @enum {number} - */ -proto.google.api.BackendRule.PathTranslation = { - PATH_TRANSLATION_UNSPECIFIED: 0, - CONSTANT_ADDRESS: 1, - APPEND_PATH_TO_ADDRESS: 2 -}; - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.BackendRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string address = 2; - * @return {string} - */ -proto.google.api.BackendRule.prototype.getAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.setAddress = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional double deadline = 3; - * @return {number} - */ -proto.google.api.BackendRule.prototype.getDeadline = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.setDeadline = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; - - -/** - * optional double min_deadline = 4; - * @return {number} - */ -proto.google.api.BackendRule.prototype.getMinDeadline = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.setMinDeadline = function(value) { - return jspb.Message.setProto3FloatField(this, 4, value); -}; - - -/** - * optional double operation_deadline = 5; - * @return {number} - */ -proto.google.api.BackendRule.prototype.getOperationDeadline = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.setOperationDeadline = function(value) { - return jspb.Message.setProto3FloatField(this, 5, value); -}; - - -/** - * optional PathTranslation path_translation = 6; - * @return {!proto.google.api.BackendRule.PathTranslation} - */ -proto.google.api.BackendRule.prototype.getPathTranslation = function() { - return /** @type {!proto.google.api.BackendRule.PathTranslation} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.google.api.BackendRule.PathTranslation} value - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.setPathTranslation = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional string jwt_audience = 7; - * @return {string} - */ -proto.google.api.BackendRule.prototype.getJwtAudience = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.setJwtAudience = function(value) { - return jspb.Message.setOneofField(this, 7, proto.google.api.BackendRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.clearJwtAudience = function() { - return jspb.Message.setOneofField(this, 7, proto.google.api.BackendRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.BackendRule.prototype.hasJwtAudience = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional bool disable_auth = 8; - * @return {boolean} - */ -proto.google.api.BackendRule.prototype.getDisableAuth = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.setDisableAuth = function(value) { - return jspb.Message.setOneofField(this, 8, proto.google.api.BackendRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.clearDisableAuth = function() { - return jspb.Message.setOneofField(this, 8, proto.google.api.BackendRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.BackendRule.prototype.hasDisableAuth = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional string protocol = 9; - * @return {string} - */ -proto.google.api.BackendRule.prototype.getProtocol = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.setProtocol = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * map overrides_by_request_protocol = 10; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.google.api.BackendRule.prototype.getOverridesByRequestProtocolMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 10, opt_noLazyCreate, - proto.google.api.BackendRule)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.google.api.BackendRule} returns this - */ -proto.google.api.BackendRule.prototype.clearOverridesByRequestProtocolMap = function() { - this.getOverridesByRequestProtocolMap().clear(); - return this;}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/billing_grpc_pb.d.ts b/api/js/google/api/billing_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/billing_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/billing_pb.d.ts b/api/js/google/api/billing_pb.d.ts deleted file mode 100644 index 2a786316..00000000 --- a/api/js/google/api/billing_pb.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -// package: google.api -// file: google/api/billing.proto - -import * as jspb from "google-protobuf"; - -export class Billing extends jspb.Message { - clearConsumerDestinationsList(): void; - getConsumerDestinationsList(): Array; - setConsumerDestinationsList(value: Array): void; - addConsumerDestinations(value?: Billing.BillingDestination, index?: number): Billing.BillingDestination; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Billing.AsObject; - static toObject(includeInstance: boolean, msg: Billing): Billing.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Billing, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Billing; - static deserializeBinaryFromReader(message: Billing, reader: jspb.BinaryReader): Billing; -} - -export namespace Billing { - export type AsObject = { - consumerDestinationsList: Array, - } - - export class BillingDestination extends jspb.Message { - getMonitoredResource(): string; - setMonitoredResource(value: string): void; - - clearMetricsList(): void; - getMetricsList(): Array; - setMetricsList(value: Array): void; - addMetrics(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BillingDestination.AsObject; - static toObject(includeInstance: boolean, msg: BillingDestination): BillingDestination.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BillingDestination, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BillingDestination; - static deserializeBinaryFromReader(message: BillingDestination, reader: jspb.BinaryReader): BillingDestination; - } - - export namespace BillingDestination { - export type AsObject = { - monitoredResource: string, - metricsList: Array, - } - } -} - diff --git a/api/js/google/api/billing_pb.js b/api/js/google/api/billing_pb.js deleted file mode 100644 index 1232e8f7..00000000 --- a/api/js/google/api/billing_pb.js +++ /dev/null @@ -1,405 +0,0 @@ -// source: google/api/billing.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Billing', null, global); -goog.exportSymbol('proto.google.api.Billing.BillingDestination', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Billing = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Billing.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Billing, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Billing.displayName = 'proto.google.api.Billing'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Billing.BillingDestination = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Billing.BillingDestination.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Billing.BillingDestination, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Billing.BillingDestination.displayName = 'proto.google.api.Billing.BillingDestination'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Billing.repeatedFields_ = [8]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Billing.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Billing.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Billing} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Billing.toObject = function(includeInstance, msg) { - var f, obj = { - consumerDestinationsList: jspb.Message.toObjectList(msg.getConsumerDestinationsList(), - proto.google.api.Billing.BillingDestination.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Billing} - */ -proto.google.api.Billing.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Billing; - return proto.google.api.Billing.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Billing} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Billing} - */ -proto.google.api.Billing.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 8: - var value = new proto.google.api.Billing.BillingDestination; - reader.readMessage(value,proto.google.api.Billing.BillingDestination.deserializeBinaryFromReader); - msg.addConsumerDestinations(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Billing.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Billing.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Billing} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Billing.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getConsumerDestinationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 8, - f, - proto.google.api.Billing.BillingDestination.serializeBinaryToWriter - ); - } -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Billing.BillingDestination.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Billing.BillingDestination.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Billing.BillingDestination.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Billing.BillingDestination} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Billing.BillingDestination.toObject = function(includeInstance, msg) { - var f, obj = { - monitoredResource: jspb.Message.getFieldWithDefault(msg, 1, ""), - metricsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Billing.BillingDestination} - */ -proto.google.api.Billing.BillingDestination.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Billing.BillingDestination; - return proto.google.api.Billing.BillingDestination.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Billing.BillingDestination} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Billing.BillingDestination} - */ -proto.google.api.Billing.BillingDestination.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMonitoredResource(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addMetrics(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Billing.BillingDestination.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Billing.BillingDestination.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Billing.BillingDestination} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Billing.BillingDestination.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMonitoredResource(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMetricsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } -}; - - -/** - * optional string monitored_resource = 1; - * @return {string} - */ -proto.google.api.Billing.BillingDestination.prototype.getMonitoredResource = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Billing.BillingDestination} returns this - */ -proto.google.api.Billing.BillingDestination.prototype.setMonitoredResource = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string metrics = 2; - * @return {!Array} - */ -proto.google.api.Billing.BillingDestination.prototype.getMetricsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Billing.BillingDestination} returns this - */ -proto.google.api.Billing.BillingDestination.prototype.setMetricsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.Billing.BillingDestination} returns this - */ -proto.google.api.Billing.BillingDestination.prototype.addMetrics = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Billing.BillingDestination} returns this - */ -proto.google.api.Billing.BillingDestination.prototype.clearMetricsList = function() { - return this.setMetricsList([]); -}; - - -/** - * repeated BillingDestination consumer_destinations = 8; - * @return {!Array} - */ -proto.google.api.Billing.prototype.getConsumerDestinationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Billing.BillingDestination, 8)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Billing} returns this -*/ -proto.google.api.Billing.prototype.setConsumerDestinationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 8, value); -}; - - -/** - * @param {!proto.google.api.Billing.BillingDestination=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Billing.BillingDestination} - */ -proto.google.api.Billing.prototype.addConsumerDestinations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.google.api.Billing.BillingDestination, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Billing} returns this - */ -proto.google.api.Billing.prototype.clearConsumerDestinationsList = function() { - return this.setConsumerDestinationsList([]); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/client_grpc_pb.d.ts b/api/js/google/api/client_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/client_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/client_pb.d.ts b/api/js/google/api/client_pb.d.ts deleted file mode 100644 index a16fa00c..00000000 --- a/api/js/google/api/client_pb.d.ts +++ /dev/null @@ -1,470 +0,0 @@ -// package: google.api -// file: google/api/client.proto - -import * as jspb from "google-protobuf"; -import * as google_api_launch_stage_pb from "../../google/api/launch_stage_pb"; -import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; -import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb"; - -export class CommonLanguageSettings extends jspb.Message { - getReferenceDocsUri(): string; - setReferenceDocsUri(value: string): void; - - clearDestinationsList(): void; - getDestinationsList(): Array; - setDestinationsList(value: Array): void; - addDestinations(value: ClientLibraryDestinationMap[keyof ClientLibraryDestinationMap], index?: number): ClientLibraryDestinationMap[keyof ClientLibraryDestinationMap]; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CommonLanguageSettings.AsObject; - static toObject(includeInstance: boolean, msg: CommonLanguageSettings): CommonLanguageSettings.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CommonLanguageSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CommonLanguageSettings; - static deserializeBinaryFromReader(message: CommonLanguageSettings, reader: jspb.BinaryReader): CommonLanguageSettings; -} - -export namespace CommonLanguageSettings { - export type AsObject = { - referenceDocsUri: string, - destinationsList: Array, - } -} - -export class ClientLibrarySettings extends jspb.Message { - getVersion(): string; - setVersion(value: string): void; - - getLaunchStage(): google_api_launch_stage_pb.LaunchStageMap[keyof google_api_launch_stage_pb.LaunchStageMap]; - setLaunchStage(value: google_api_launch_stage_pb.LaunchStageMap[keyof google_api_launch_stage_pb.LaunchStageMap]): void; - - getRestNumericEnums(): boolean; - setRestNumericEnums(value: boolean): void; - - hasJavaSettings(): boolean; - clearJavaSettings(): void; - getJavaSettings(): JavaSettings | undefined; - setJavaSettings(value?: JavaSettings): void; - - hasCppSettings(): boolean; - clearCppSettings(): void; - getCppSettings(): CppSettings | undefined; - setCppSettings(value?: CppSettings): void; - - hasPhpSettings(): boolean; - clearPhpSettings(): void; - getPhpSettings(): PhpSettings | undefined; - setPhpSettings(value?: PhpSettings): void; - - hasPythonSettings(): boolean; - clearPythonSettings(): void; - getPythonSettings(): PythonSettings | undefined; - setPythonSettings(value?: PythonSettings): void; - - hasNodeSettings(): boolean; - clearNodeSettings(): void; - getNodeSettings(): NodeSettings | undefined; - setNodeSettings(value?: NodeSettings): void; - - hasDotnetSettings(): boolean; - clearDotnetSettings(): void; - getDotnetSettings(): DotnetSettings | undefined; - setDotnetSettings(value?: DotnetSettings): void; - - hasRubySettings(): boolean; - clearRubySettings(): void; - getRubySettings(): RubySettings | undefined; - setRubySettings(value?: RubySettings): void; - - hasGoSettings(): boolean; - clearGoSettings(): void; - getGoSettings(): GoSettings | undefined; - setGoSettings(value?: GoSettings): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ClientLibrarySettings.AsObject; - static toObject(includeInstance: boolean, msg: ClientLibrarySettings): ClientLibrarySettings.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ClientLibrarySettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ClientLibrarySettings; - static deserializeBinaryFromReader(message: ClientLibrarySettings, reader: jspb.BinaryReader): ClientLibrarySettings; -} - -export namespace ClientLibrarySettings { - export type AsObject = { - version: string, - launchStage: google_api_launch_stage_pb.LaunchStageMap[keyof google_api_launch_stage_pb.LaunchStageMap], - restNumericEnums: boolean, - javaSettings?: JavaSettings.AsObject, - cppSettings?: CppSettings.AsObject, - phpSettings?: PhpSettings.AsObject, - pythonSettings?: PythonSettings.AsObject, - nodeSettings?: NodeSettings.AsObject, - dotnetSettings?: DotnetSettings.AsObject, - rubySettings?: RubySettings.AsObject, - goSettings?: GoSettings.AsObject, - } -} - -export class Publishing extends jspb.Message { - clearMethodSettingsList(): void; - getMethodSettingsList(): Array; - setMethodSettingsList(value: Array): void; - addMethodSettings(value?: MethodSettings, index?: number): MethodSettings; - - getNewIssueUri(): string; - setNewIssueUri(value: string): void; - - getDocumentationUri(): string; - setDocumentationUri(value: string): void; - - getApiShortName(): string; - setApiShortName(value: string): void; - - getGithubLabel(): string; - setGithubLabel(value: string): void; - - clearCodeownerGithubTeamsList(): void; - getCodeownerGithubTeamsList(): Array; - setCodeownerGithubTeamsList(value: Array): void; - addCodeownerGithubTeams(value: string, index?: number): string; - - getDocTagPrefix(): string; - setDocTagPrefix(value: string): void; - - getOrganization(): ClientLibraryOrganizationMap[keyof ClientLibraryOrganizationMap]; - setOrganization(value: ClientLibraryOrganizationMap[keyof ClientLibraryOrganizationMap]): void; - - clearLibrarySettingsList(): void; - getLibrarySettingsList(): Array; - setLibrarySettingsList(value: Array): void; - addLibrarySettings(value?: ClientLibrarySettings, index?: number): ClientLibrarySettings; - - getProtoReferenceDocumentationUri(): string; - setProtoReferenceDocumentationUri(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Publishing.AsObject; - static toObject(includeInstance: boolean, msg: Publishing): Publishing.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Publishing, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Publishing; - static deserializeBinaryFromReader(message: Publishing, reader: jspb.BinaryReader): Publishing; -} - -export namespace Publishing { - export type AsObject = { - methodSettingsList: Array, - newIssueUri: string, - documentationUri: string, - apiShortName: string, - githubLabel: string, - codeownerGithubTeamsList: Array, - docTagPrefix: string, - organization: ClientLibraryOrganizationMap[keyof ClientLibraryOrganizationMap], - librarySettingsList: Array, - protoReferenceDocumentationUri: string, - } -} - -export class JavaSettings extends jspb.Message { - getLibraryPackage(): string; - setLibraryPackage(value: string): void; - - getServiceClassNamesMap(): jspb.Map; - clearServiceClassNamesMap(): void; - hasCommon(): boolean; - clearCommon(): void; - getCommon(): CommonLanguageSettings | undefined; - setCommon(value?: CommonLanguageSettings): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): JavaSettings.AsObject; - static toObject(includeInstance: boolean, msg: JavaSettings): JavaSettings.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: JavaSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): JavaSettings; - static deserializeBinaryFromReader(message: JavaSettings, reader: jspb.BinaryReader): JavaSettings; -} - -export namespace JavaSettings { - export type AsObject = { - libraryPackage: string, - serviceClassNamesMap: Array<[string, string]>, - common?: CommonLanguageSettings.AsObject, - } -} - -export class CppSettings extends jspb.Message { - hasCommon(): boolean; - clearCommon(): void; - getCommon(): CommonLanguageSettings | undefined; - setCommon(value?: CommonLanguageSettings): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CppSettings.AsObject; - static toObject(includeInstance: boolean, msg: CppSettings): CppSettings.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CppSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CppSettings; - static deserializeBinaryFromReader(message: CppSettings, reader: jspb.BinaryReader): CppSettings; -} - -export namespace CppSettings { - export type AsObject = { - common?: CommonLanguageSettings.AsObject, - } -} - -export class PhpSettings extends jspb.Message { - hasCommon(): boolean; - clearCommon(): void; - getCommon(): CommonLanguageSettings | undefined; - setCommon(value?: CommonLanguageSettings): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PhpSettings.AsObject; - static toObject(includeInstance: boolean, msg: PhpSettings): PhpSettings.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PhpSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PhpSettings; - static deserializeBinaryFromReader(message: PhpSettings, reader: jspb.BinaryReader): PhpSettings; -} - -export namespace PhpSettings { - export type AsObject = { - common?: CommonLanguageSettings.AsObject, - } -} - -export class PythonSettings extends jspb.Message { - hasCommon(): boolean; - clearCommon(): void; - getCommon(): CommonLanguageSettings | undefined; - setCommon(value?: CommonLanguageSettings): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PythonSettings.AsObject; - static toObject(includeInstance: boolean, msg: PythonSettings): PythonSettings.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PythonSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PythonSettings; - static deserializeBinaryFromReader(message: PythonSettings, reader: jspb.BinaryReader): PythonSettings; -} - -export namespace PythonSettings { - export type AsObject = { - common?: CommonLanguageSettings.AsObject, - } -} - -export class NodeSettings extends jspb.Message { - hasCommon(): boolean; - clearCommon(): void; - getCommon(): CommonLanguageSettings | undefined; - setCommon(value?: CommonLanguageSettings): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NodeSettings.AsObject; - static toObject(includeInstance: boolean, msg: NodeSettings): NodeSettings.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NodeSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NodeSettings; - static deserializeBinaryFromReader(message: NodeSettings, reader: jspb.BinaryReader): NodeSettings; -} - -export namespace NodeSettings { - export type AsObject = { - common?: CommonLanguageSettings.AsObject, - } -} - -export class DotnetSettings extends jspb.Message { - hasCommon(): boolean; - clearCommon(): void; - getCommon(): CommonLanguageSettings | undefined; - setCommon(value?: CommonLanguageSettings): void; - - getRenamedServicesMap(): jspb.Map; - clearRenamedServicesMap(): void; - getRenamedResourcesMap(): jspb.Map; - clearRenamedResourcesMap(): void; - clearIgnoredResourcesList(): void; - getIgnoredResourcesList(): Array; - setIgnoredResourcesList(value: Array): void; - addIgnoredResources(value: string, index?: number): string; - - clearForcedNamespaceAliasesList(): void; - getForcedNamespaceAliasesList(): Array; - setForcedNamespaceAliasesList(value: Array): void; - addForcedNamespaceAliases(value: string, index?: number): string; - - clearHandwrittenSignaturesList(): void; - getHandwrittenSignaturesList(): Array; - setHandwrittenSignaturesList(value: Array): void; - addHandwrittenSignatures(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DotnetSettings.AsObject; - static toObject(includeInstance: boolean, msg: DotnetSettings): DotnetSettings.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DotnetSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DotnetSettings; - static deserializeBinaryFromReader(message: DotnetSettings, reader: jspb.BinaryReader): DotnetSettings; -} - -export namespace DotnetSettings { - export type AsObject = { - common?: CommonLanguageSettings.AsObject, - renamedServicesMap: Array<[string, string]>, - renamedResourcesMap: Array<[string, string]>, - ignoredResourcesList: Array, - forcedNamespaceAliasesList: Array, - handwrittenSignaturesList: Array, - } -} - -export class RubySettings extends jspb.Message { - hasCommon(): boolean; - clearCommon(): void; - getCommon(): CommonLanguageSettings | undefined; - setCommon(value?: CommonLanguageSettings): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RubySettings.AsObject; - static toObject(includeInstance: boolean, msg: RubySettings): RubySettings.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RubySettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RubySettings; - static deserializeBinaryFromReader(message: RubySettings, reader: jspb.BinaryReader): RubySettings; -} - -export namespace RubySettings { - export type AsObject = { - common?: CommonLanguageSettings.AsObject, - } -} - -export class GoSettings extends jspb.Message { - hasCommon(): boolean; - clearCommon(): void; - getCommon(): CommonLanguageSettings | undefined; - setCommon(value?: CommonLanguageSettings): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GoSettings.AsObject; - static toObject(includeInstance: boolean, msg: GoSettings): GoSettings.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GoSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GoSettings; - static deserializeBinaryFromReader(message: GoSettings, reader: jspb.BinaryReader): GoSettings; -} - -export namespace GoSettings { - export type AsObject = { - common?: CommonLanguageSettings.AsObject, - } -} - -export class MethodSettings extends jspb.Message { - getSelector(): string; - setSelector(value: string): void; - - hasLongRunning(): boolean; - clearLongRunning(): void; - getLongRunning(): MethodSettings.LongRunning | undefined; - setLongRunning(value?: MethodSettings.LongRunning): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MethodSettings.AsObject; - static toObject(includeInstance: boolean, msg: MethodSettings): MethodSettings.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MethodSettings, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MethodSettings; - static deserializeBinaryFromReader(message: MethodSettings, reader: jspb.BinaryReader): MethodSettings; -} - -export namespace MethodSettings { - export type AsObject = { - selector: string, - longRunning?: MethodSettings.LongRunning.AsObject, - } - - export class LongRunning extends jspb.Message { - hasInitialPollDelay(): boolean; - clearInitialPollDelay(): void; - getInitialPollDelay(): google_protobuf_duration_pb.Duration | undefined; - setInitialPollDelay(value?: google_protobuf_duration_pb.Duration): void; - - getPollDelayMultiplier(): number; - setPollDelayMultiplier(value: number): void; - - hasMaxPollDelay(): boolean; - clearMaxPollDelay(): void; - getMaxPollDelay(): google_protobuf_duration_pb.Duration | undefined; - setMaxPollDelay(value?: google_protobuf_duration_pb.Duration): void; - - hasTotalPollTimeout(): boolean; - clearTotalPollTimeout(): void; - getTotalPollTimeout(): google_protobuf_duration_pb.Duration | undefined; - setTotalPollTimeout(value?: google_protobuf_duration_pb.Duration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LongRunning.AsObject; - static toObject(includeInstance: boolean, msg: LongRunning): LongRunning.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LongRunning, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LongRunning; - static deserializeBinaryFromReader(message: LongRunning, reader: jspb.BinaryReader): LongRunning; - } - - export namespace LongRunning { - export type AsObject = { - initialPollDelay?: google_protobuf_duration_pb.Duration.AsObject, - pollDelayMultiplier: number, - maxPollDelay?: google_protobuf_duration_pb.Duration.AsObject, - totalPollTimeout?: google_protobuf_duration_pb.Duration.AsObject, - } - } -} - - export const methodSignature: jspb.ExtensionFieldInfo; - - export const defaultHost: jspb.ExtensionFieldInfo; - - export const oauthScopes: jspb.ExtensionFieldInfo; - -export interface ClientLibraryOrganizationMap { - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED: 0; - CLOUD: 1; - ADS: 2; - PHOTOS: 3; - STREET_VIEW: 4; - SHOPPING: 5; - GEO: 6; - GENERATIVE_AI: 7; -} - -export const ClientLibraryOrganization: ClientLibraryOrganizationMap; - -export interface ClientLibraryDestinationMap { - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED: 0; - GITHUB: 10; - PACKAGE_MANAGER: 20; -} - -export const ClientLibraryDestination: ClientLibraryDestinationMap; - diff --git a/api/js/google/api/client_pb.js b/api/js/google/api/client_pb.js deleted file mode 100644 index e51c4c74..00000000 --- a/api/js/google/api/client_pb.js +++ /dev/null @@ -1,3621 +0,0 @@ -// source: google/api/client.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_launch_stage_pb = require('../../google/api/launch_stage_pb.js'); -goog.object.extend(proto, google_api_launch_stage_pb); -var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); -goog.object.extend(proto, google_protobuf_descriptor_pb); -var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); -goog.object.extend(proto, google_protobuf_duration_pb); -goog.exportSymbol('proto.google.api.ClientLibraryDestination', null, global); -goog.exportSymbol('proto.google.api.ClientLibraryOrganization', null, global); -goog.exportSymbol('proto.google.api.ClientLibrarySettings', null, global); -goog.exportSymbol('proto.google.api.CommonLanguageSettings', null, global); -goog.exportSymbol('proto.google.api.CppSettings', null, global); -goog.exportSymbol('proto.google.api.DotnetSettings', null, global); -goog.exportSymbol('proto.google.api.GoSettings', null, global); -goog.exportSymbol('proto.google.api.JavaSettings', null, global); -goog.exportSymbol('proto.google.api.MethodSettings', null, global); -goog.exportSymbol('proto.google.api.MethodSettings.LongRunning', null, global); -goog.exportSymbol('proto.google.api.NodeSettings', null, global); -goog.exportSymbol('proto.google.api.PhpSettings', null, global); -goog.exportSymbol('proto.google.api.Publishing', null, global); -goog.exportSymbol('proto.google.api.PythonSettings', null, global); -goog.exportSymbol('proto.google.api.RubySettings', null, global); -goog.exportSymbol('proto.google.api.defaultHost', null, global); -goog.exportSymbol('proto.google.api.methodSignatureList', null, global); -goog.exportSymbol('proto.google.api.oauthScopes', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.CommonLanguageSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.CommonLanguageSettings.repeatedFields_, null); -}; -goog.inherits(proto.google.api.CommonLanguageSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.CommonLanguageSettings.displayName = 'proto.google.api.CommonLanguageSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.ClientLibrarySettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.ClientLibrarySettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.ClientLibrarySettings.displayName = 'proto.google.api.ClientLibrarySettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Publishing = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Publishing.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Publishing, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Publishing.displayName = 'proto.google.api.Publishing'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.JavaSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.JavaSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.JavaSettings.displayName = 'proto.google.api.JavaSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.CppSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.CppSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.CppSettings.displayName = 'proto.google.api.CppSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.PhpSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.PhpSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.PhpSettings.displayName = 'proto.google.api.PhpSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.PythonSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.PythonSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.PythonSettings.displayName = 'proto.google.api.PythonSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.NodeSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.NodeSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.NodeSettings.displayName = 'proto.google.api.NodeSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.DotnetSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.DotnetSettings.repeatedFields_, null); -}; -goog.inherits(proto.google.api.DotnetSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.DotnetSettings.displayName = 'proto.google.api.DotnetSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.RubySettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.RubySettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.RubySettings.displayName = 'proto.google.api.RubySettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.GoSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.GoSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.GoSettings.displayName = 'proto.google.api.GoSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.MethodSettings = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.MethodSettings, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.MethodSettings.displayName = 'proto.google.api.MethodSettings'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.MethodSettings.LongRunning = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.MethodSettings.LongRunning, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.MethodSettings.LongRunning.displayName = 'proto.google.api.MethodSettings.LongRunning'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.CommonLanguageSettings.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.CommonLanguageSettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.CommonLanguageSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.CommonLanguageSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.CommonLanguageSettings.toObject = function(includeInstance, msg) { - var f, obj = { - referenceDocsUri: jspb.Message.getFieldWithDefault(msg, 1, ""), - destinationsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.CommonLanguageSettings} - */ -proto.google.api.CommonLanguageSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.CommonLanguageSettings; - return proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.CommonLanguageSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.CommonLanguageSettings} - */ -proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setReferenceDocsUri(value); - break; - case 2: - var value = /** @type {!Array} */ (reader.readPackedEnum()); - msg.setDestinationsList(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.CommonLanguageSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.CommonLanguageSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.CommonLanguageSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.CommonLanguageSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getReferenceDocsUri(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDestinationsList(); - if (f.length > 0) { - writer.writePackedEnum( - 2, - f - ); - } -}; - - -/** - * optional string reference_docs_uri = 1; - * @return {string} - */ -proto.google.api.CommonLanguageSettings.prototype.getReferenceDocsUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.CommonLanguageSettings} returns this - */ -proto.google.api.CommonLanguageSettings.prototype.setReferenceDocsUri = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated ClientLibraryDestination destinations = 2; - * @return {!Array} - */ -proto.google.api.CommonLanguageSettings.prototype.getDestinationsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.CommonLanguageSettings} returns this - */ -proto.google.api.CommonLanguageSettings.prototype.setDestinationsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {!proto.google.api.ClientLibraryDestination} value - * @param {number=} opt_index - * @return {!proto.google.api.CommonLanguageSettings} returns this - */ -proto.google.api.CommonLanguageSettings.prototype.addDestinations = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.CommonLanguageSettings} returns this - */ -proto.google.api.CommonLanguageSettings.prototype.clearDestinationsList = function() { - return this.setDestinationsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.ClientLibrarySettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.ClientLibrarySettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.ClientLibrarySettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ClientLibrarySettings.toObject = function(includeInstance, msg) { - var f, obj = { - version: jspb.Message.getFieldWithDefault(msg, 1, ""), - launchStage: jspb.Message.getFieldWithDefault(msg, 2, 0), - restNumericEnums: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - javaSettings: (f = msg.getJavaSettings()) && proto.google.api.JavaSettings.toObject(includeInstance, f), - cppSettings: (f = msg.getCppSettings()) && proto.google.api.CppSettings.toObject(includeInstance, f), - phpSettings: (f = msg.getPhpSettings()) && proto.google.api.PhpSettings.toObject(includeInstance, f), - pythonSettings: (f = msg.getPythonSettings()) && proto.google.api.PythonSettings.toObject(includeInstance, f), - nodeSettings: (f = msg.getNodeSettings()) && proto.google.api.NodeSettings.toObject(includeInstance, f), - dotnetSettings: (f = msg.getDotnetSettings()) && proto.google.api.DotnetSettings.toObject(includeInstance, f), - rubySettings: (f = msg.getRubySettings()) && proto.google.api.RubySettings.toObject(includeInstance, f), - goSettings: (f = msg.getGoSettings()) && proto.google.api.GoSettings.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.ClientLibrarySettings} - */ -proto.google.api.ClientLibrarySettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.ClientLibrarySettings; - return proto.google.api.ClientLibrarySettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.ClientLibrarySettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.ClientLibrarySettings} - */ -proto.google.api.ClientLibrarySettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; - case 2: - var value = /** @type {!proto.google.api.LaunchStage} */ (reader.readEnum()); - msg.setLaunchStage(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setRestNumericEnums(value); - break; - case 21: - var value = new proto.google.api.JavaSettings; - reader.readMessage(value,proto.google.api.JavaSettings.deserializeBinaryFromReader); - msg.setJavaSettings(value); - break; - case 22: - var value = new proto.google.api.CppSettings; - reader.readMessage(value,proto.google.api.CppSettings.deserializeBinaryFromReader); - msg.setCppSettings(value); - break; - case 23: - var value = new proto.google.api.PhpSettings; - reader.readMessage(value,proto.google.api.PhpSettings.deserializeBinaryFromReader); - msg.setPhpSettings(value); - break; - case 24: - var value = new proto.google.api.PythonSettings; - reader.readMessage(value,proto.google.api.PythonSettings.deserializeBinaryFromReader); - msg.setPythonSettings(value); - break; - case 25: - var value = new proto.google.api.NodeSettings; - reader.readMessage(value,proto.google.api.NodeSettings.deserializeBinaryFromReader); - msg.setNodeSettings(value); - break; - case 26: - var value = new proto.google.api.DotnetSettings; - reader.readMessage(value,proto.google.api.DotnetSettings.deserializeBinaryFromReader); - msg.setDotnetSettings(value); - break; - case 27: - var value = new proto.google.api.RubySettings; - reader.readMessage(value,proto.google.api.RubySettings.deserializeBinaryFromReader); - msg.setRubySettings(value); - break; - case 28: - var value = new proto.google.api.GoSettings; - reader.readMessage(value,proto.google.api.GoSettings.deserializeBinaryFromReader); - msg.setGoSettings(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.ClientLibrarySettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.ClientLibrarySettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.ClientLibrarySettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ClientLibrarySettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLaunchStage(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getRestNumericEnums(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getJavaSettings(); - if (f != null) { - writer.writeMessage( - 21, - f, - proto.google.api.JavaSettings.serializeBinaryToWriter - ); - } - f = message.getCppSettings(); - if (f != null) { - writer.writeMessage( - 22, - f, - proto.google.api.CppSettings.serializeBinaryToWriter - ); - } - f = message.getPhpSettings(); - if (f != null) { - writer.writeMessage( - 23, - f, - proto.google.api.PhpSettings.serializeBinaryToWriter - ); - } - f = message.getPythonSettings(); - if (f != null) { - writer.writeMessage( - 24, - f, - proto.google.api.PythonSettings.serializeBinaryToWriter - ); - } - f = message.getNodeSettings(); - if (f != null) { - writer.writeMessage( - 25, - f, - proto.google.api.NodeSettings.serializeBinaryToWriter - ); - } - f = message.getDotnetSettings(); - if (f != null) { - writer.writeMessage( - 26, - f, - proto.google.api.DotnetSettings.serializeBinaryToWriter - ); - } - f = message.getRubySettings(); - if (f != null) { - writer.writeMessage( - 27, - f, - proto.google.api.RubySettings.serializeBinaryToWriter - ); - } - f = message.getGoSettings(); - if (f != null) { - writer.writeMessage( - 28, - f, - proto.google.api.GoSettings.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string version = 1; - * @return {string} - */ -proto.google.api.ClientLibrarySettings.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional LaunchStage launch_stage = 2; - * @return {!proto.google.api.LaunchStage} - */ -proto.google.api.ClientLibrarySettings.prototype.getLaunchStage = function() { - return /** @type {!proto.google.api.LaunchStage} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.google.api.LaunchStage} value - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.setLaunchStage = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional bool rest_numeric_enums = 3; - * @return {boolean} - */ -proto.google.api.ClientLibrarySettings.prototype.getRestNumericEnums = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.setRestNumericEnums = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional JavaSettings java_settings = 21; - * @return {?proto.google.api.JavaSettings} - */ -proto.google.api.ClientLibrarySettings.prototype.getJavaSettings = function() { - return /** @type{?proto.google.api.JavaSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.JavaSettings, 21)); -}; - - -/** - * @param {?proto.google.api.JavaSettings|undefined} value - * @return {!proto.google.api.ClientLibrarySettings} returns this -*/ -proto.google.api.ClientLibrarySettings.prototype.setJavaSettings = function(value) { - return jspb.Message.setWrapperField(this, 21, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.clearJavaSettings = function() { - return this.setJavaSettings(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.ClientLibrarySettings.prototype.hasJavaSettings = function() { - return jspb.Message.getField(this, 21) != null; -}; - - -/** - * optional CppSettings cpp_settings = 22; - * @return {?proto.google.api.CppSettings} - */ -proto.google.api.ClientLibrarySettings.prototype.getCppSettings = function() { - return /** @type{?proto.google.api.CppSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CppSettings, 22)); -}; - - -/** - * @param {?proto.google.api.CppSettings|undefined} value - * @return {!proto.google.api.ClientLibrarySettings} returns this -*/ -proto.google.api.ClientLibrarySettings.prototype.setCppSettings = function(value) { - return jspb.Message.setWrapperField(this, 22, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.clearCppSettings = function() { - return this.setCppSettings(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.ClientLibrarySettings.prototype.hasCppSettings = function() { - return jspb.Message.getField(this, 22) != null; -}; - - -/** - * optional PhpSettings php_settings = 23; - * @return {?proto.google.api.PhpSettings} - */ -proto.google.api.ClientLibrarySettings.prototype.getPhpSettings = function() { - return /** @type{?proto.google.api.PhpSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.PhpSettings, 23)); -}; - - -/** - * @param {?proto.google.api.PhpSettings|undefined} value - * @return {!proto.google.api.ClientLibrarySettings} returns this -*/ -proto.google.api.ClientLibrarySettings.prototype.setPhpSettings = function(value) { - return jspb.Message.setWrapperField(this, 23, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.clearPhpSettings = function() { - return this.setPhpSettings(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.ClientLibrarySettings.prototype.hasPhpSettings = function() { - return jspb.Message.getField(this, 23) != null; -}; - - -/** - * optional PythonSettings python_settings = 24; - * @return {?proto.google.api.PythonSettings} - */ -proto.google.api.ClientLibrarySettings.prototype.getPythonSettings = function() { - return /** @type{?proto.google.api.PythonSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.PythonSettings, 24)); -}; - - -/** - * @param {?proto.google.api.PythonSettings|undefined} value - * @return {!proto.google.api.ClientLibrarySettings} returns this -*/ -proto.google.api.ClientLibrarySettings.prototype.setPythonSettings = function(value) { - return jspb.Message.setWrapperField(this, 24, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.clearPythonSettings = function() { - return this.setPythonSettings(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.ClientLibrarySettings.prototype.hasPythonSettings = function() { - return jspb.Message.getField(this, 24) != null; -}; - - -/** - * optional NodeSettings node_settings = 25; - * @return {?proto.google.api.NodeSettings} - */ -proto.google.api.ClientLibrarySettings.prototype.getNodeSettings = function() { - return /** @type{?proto.google.api.NodeSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.NodeSettings, 25)); -}; - - -/** - * @param {?proto.google.api.NodeSettings|undefined} value - * @return {!proto.google.api.ClientLibrarySettings} returns this -*/ -proto.google.api.ClientLibrarySettings.prototype.setNodeSettings = function(value) { - return jspb.Message.setWrapperField(this, 25, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.clearNodeSettings = function() { - return this.setNodeSettings(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.ClientLibrarySettings.prototype.hasNodeSettings = function() { - return jspb.Message.getField(this, 25) != null; -}; - - -/** - * optional DotnetSettings dotnet_settings = 26; - * @return {?proto.google.api.DotnetSettings} - */ -proto.google.api.ClientLibrarySettings.prototype.getDotnetSettings = function() { - return /** @type{?proto.google.api.DotnetSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.DotnetSettings, 26)); -}; - - -/** - * @param {?proto.google.api.DotnetSettings|undefined} value - * @return {!proto.google.api.ClientLibrarySettings} returns this -*/ -proto.google.api.ClientLibrarySettings.prototype.setDotnetSettings = function(value) { - return jspb.Message.setWrapperField(this, 26, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.clearDotnetSettings = function() { - return this.setDotnetSettings(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.ClientLibrarySettings.prototype.hasDotnetSettings = function() { - return jspb.Message.getField(this, 26) != null; -}; - - -/** - * optional RubySettings ruby_settings = 27; - * @return {?proto.google.api.RubySettings} - */ -proto.google.api.ClientLibrarySettings.prototype.getRubySettings = function() { - return /** @type{?proto.google.api.RubySettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.RubySettings, 27)); -}; - - -/** - * @param {?proto.google.api.RubySettings|undefined} value - * @return {!proto.google.api.ClientLibrarySettings} returns this -*/ -proto.google.api.ClientLibrarySettings.prototype.setRubySettings = function(value) { - return jspb.Message.setWrapperField(this, 27, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.clearRubySettings = function() { - return this.setRubySettings(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.ClientLibrarySettings.prototype.hasRubySettings = function() { - return jspb.Message.getField(this, 27) != null; -}; - - -/** - * optional GoSettings go_settings = 28; - * @return {?proto.google.api.GoSettings} - */ -proto.google.api.ClientLibrarySettings.prototype.getGoSettings = function() { - return /** @type{?proto.google.api.GoSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.GoSettings, 28)); -}; - - -/** - * @param {?proto.google.api.GoSettings|undefined} value - * @return {!proto.google.api.ClientLibrarySettings} returns this -*/ -proto.google.api.ClientLibrarySettings.prototype.setGoSettings = function(value) { - return jspb.Message.setWrapperField(this, 28, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.ClientLibrarySettings} returns this - */ -proto.google.api.ClientLibrarySettings.prototype.clearGoSettings = function() { - return this.setGoSettings(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.ClientLibrarySettings.prototype.hasGoSettings = function() { - return jspb.Message.getField(this, 28) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Publishing.repeatedFields_ = [2,105,109]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Publishing.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Publishing.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Publishing} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Publishing.toObject = function(includeInstance, msg) { - var f, obj = { - methodSettingsList: jspb.Message.toObjectList(msg.getMethodSettingsList(), - proto.google.api.MethodSettings.toObject, includeInstance), - newIssueUri: jspb.Message.getFieldWithDefault(msg, 101, ""), - documentationUri: jspb.Message.getFieldWithDefault(msg, 102, ""), - apiShortName: jspb.Message.getFieldWithDefault(msg, 103, ""), - githubLabel: jspb.Message.getFieldWithDefault(msg, 104, ""), - codeownerGithubTeamsList: (f = jspb.Message.getRepeatedField(msg, 105)) == null ? undefined : f, - docTagPrefix: jspb.Message.getFieldWithDefault(msg, 106, ""), - organization: jspb.Message.getFieldWithDefault(msg, 107, 0), - librarySettingsList: jspb.Message.toObjectList(msg.getLibrarySettingsList(), - proto.google.api.ClientLibrarySettings.toObject, includeInstance), - protoReferenceDocumentationUri: jspb.Message.getFieldWithDefault(msg, 110, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Publishing} - */ -proto.google.api.Publishing.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Publishing; - return proto.google.api.Publishing.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Publishing} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Publishing} - */ -proto.google.api.Publishing.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = new proto.google.api.MethodSettings; - reader.readMessage(value,proto.google.api.MethodSettings.deserializeBinaryFromReader); - msg.addMethodSettings(value); - break; - case 101: - var value = /** @type {string} */ (reader.readString()); - msg.setNewIssueUri(value); - break; - case 102: - var value = /** @type {string} */ (reader.readString()); - msg.setDocumentationUri(value); - break; - case 103: - var value = /** @type {string} */ (reader.readString()); - msg.setApiShortName(value); - break; - case 104: - var value = /** @type {string} */ (reader.readString()); - msg.setGithubLabel(value); - break; - case 105: - var value = /** @type {string} */ (reader.readString()); - msg.addCodeownerGithubTeams(value); - break; - case 106: - var value = /** @type {string} */ (reader.readString()); - msg.setDocTagPrefix(value); - break; - case 107: - var value = /** @type {!proto.google.api.ClientLibraryOrganization} */ (reader.readEnum()); - msg.setOrganization(value); - break; - case 109: - var value = new proto.google.api.ClientLibrarySettings; - reader.readMessage(value,proto.google.api.ClientLibrarySettings.deserializeBinaryFromReader); - msg.addLibrarySettings(value); - break; - case 110: - var value = /** @type {string} */ (reader.readString()); - msg.setProtoReferenceDocumentationUri(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Publishing.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Publishing.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Publishing} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Publishing.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMethodSettingsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.google.api.MethodSettings.serializeBinaryToWriter - ); - } - f = message.getNewIssueUri(); - if (f.length > 0) { - writer.writeString( - 101, - f - ); - } - f = message.getDocumentationUri(); - if (f.length > 0) { - writer.writeString( - 102, - f - ); - } - f = message.getApiShortName(); - if (f.length > 0) { - writer.writeString( - 103, - f - ); - } - f = message.getGithubLabel(); - if (f.length > 0) { - writer.writeString( - 104, - f - ); - } - f = message.getCodeownerGithubTeamsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 105, - f - ); - } - f = message.getDocTagPrefix(); - if (f.length > 0) { - writer.writeString( - 106, - f - ); - } - f = message.getOrganization(); - if (f !== 0.0) { - writer.writeEnum( - 107, - f - ); - } - f = message.getLibrarySettingsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 109, - f, - proto.google.api.ClientLibrarySettings.serializeBinaryToWriter - ); - } - f = message.getProtoReferenceDocumentationUri(); - if (f.length > 0) { - writer.writeString( - 110, - f - ); - } -}; - - -/** - * repeated MethodSettings method_settings = 2; - * @return {!Array} - */ -proto.google.api.Publishing.prototype.getMethodSettingsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.MethodSettings, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Publishing} returns this -*/ -proto.google.api.Publishing.prototype.setMethodSettingsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.api.MethodSettings=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.MethodSettings} - */ -proto.google.api.Publishing.prototype.addMethodSettings = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.MethodSettings, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.clearMethodSettingsList = function() { - return this.setMethodSettingsList([]); -}; - - -/** - * optional string new_issue_uri = 101; - * @return {string} - */ -proto.google.api.Publishing.prototype.getNewIssueUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 101, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.setNewIssueUri = function(value) { - return jspb.Message.setProto3StringField(this, 101, value); -}; - - -/** - * optional string documentation_uri = 102; - * @return {string} - */ -proto.google.api.Publishing.prototype.getDocumentationUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 102, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.setDocumentationUri = function(value) { - return jspb.Message.setProto3StringField(this, 102, value); -}; - - -/** - * optional string api_short_name = 103; - * @return {string} - */ -proto.google.api.Publishing.prototype.getApiShortName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 103, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.setApiShortName = function(value) { - return jspb.Message.setProto3StringField(this, 103, value); -}; - - -/** - * optional string github_label = 104; - * @return {string} - */ -proto.google.api.Publishing.prototype.getGithubLabel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 104, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.setGithubLabel = function(value) { - return jspb.Message.setProto3StringField(this, 104, value); -}; - - -/** - * repeated string codeowner_github_teams = 105; - * @return {!Array} - */ -proto.google.api.Publishing.prototype.getCodeownerGithubTeamsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 105)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.setCodeownerGithubTeamsList = function(value) { - return jspb.Message.setField(this, 105, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.addCodeownerGithubTeams = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 105, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.clearCodeownerGithubTeamsList = function() { - return this.setCodeownerGithubTeamsList([]); -}; - - -/** - * optional string doc_tag_prefix = 106; - * @return {string} - */ -proto.google.api.Publishing.prototype.getDocTagPrefix = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 106, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.setDocTagPrefix = function(value) { - return jspb.Message.setProto3StringField(this, 106, value); -}; - - -/** - * optional ClientLibraryOrganization organization = 107; - * @return {!proto.google.api.ClientLibraryOrganization} - */ -proto.google.api.Publishing.prototype.getOrganization = function() { - return /** @type {!proto.google.api.ClientLibraryOrganization} */ (jspb.Message.getFieldWithDefault(this, 107, 0)); -}; - - -/** - * @param {!proto.google.api.ClientLibraryOrganization} value - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.setOrganization = function(value) { - return jspb.Message.setProto3EnumField(this, 107, value); -}; - - -/** - * repeated ClientLibrarySettings library_settings = 109; - * @return {!Array} - */ -proto.google.api.Publishing.prototype.getLibrarySettingsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.ClientLibrarySettings, 109)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Publishing} returns this -*/ -proto.google.api.Publishing.prototype.setLibrarySettingsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 109, value); -}; - - -/** - * @param {!proto.google.api.ClientLibrarySettings=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.ClientLibrarySettings} - */ -proto.google.api.Publishing.prototype.addLibrarySettings = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 109, opt_value, proto.google.api.ClientLibrarySettings, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.clearLibrarySettingsList = function() { - return this.setLibrarySettingsList([]); -}; - - -/** - * optional string proto_reference_documentation_uri = 110; - * @return {string} - */ -proto.google.api.Publishing.prototype.getProtoReferenceDocumentationUri = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 110, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Publishing} returns this - */ -proto.google.api.Publishing.prototype.setProtoReferenceDocumentationUri = function(value) { - return jspb.Message.setProto3StringField(this, 110, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.JavaSettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.JavaSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.JavaSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.JavaSettings.toObject = function(includeInstance, msg) { - var f, obj = { - libraryPackage: jspb.Message.getFieldWithDefault(msg, 1, ""), - serviceClassNamesMap: (f = msg.getServiceClassNamesMap()) ? f.toObject(includeInstance, undefined) : [], - common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.JavaSettings} - */ -proto.google.api.JavaSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.JavaSettings; - return proto.google.api.JavaSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.JavaSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.JavaSettings} - */ -proto.google.api.JavaSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setLibraryPackage(value); - break; - case 2: - var value = msg.getServiceClassNamesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 3: - var value = new proto.google.api.CommonLanguageSettings; - reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); - msg.setCommon(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.JavaSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.JavaSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.JavaSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.JavaSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLibraryPackage(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getServiceClassNamesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getCommon(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.google.api.CommonLanguageSettings.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string library_package = 1; - * @return {string} - */ -proto.google.api.JavaSettings.prototype.getLibraryPackage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.JavaSettings} returns this - */ -proto.google.api.JavaSettings.prototype.setLibraryPackage = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * map service_class_names = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.google.api.JavaSettings.prototype.getServiceClassNamesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.google.api.JavaSettings} returns this - */ -proto.google.api.JavaSettings.prototype.clearServiceClassNamesMap = function() { - this.getServiceClassNamesMap().clear(); - return this;}; - - -/** - * optional CommonLanguageSettings common = 3; - * @return {?proto.google.api.CommonLanguageSettings} - */ -proto.google.api.JavaSettings.prototype.getCommon = function() { - return /** @type{?proto.google.api.CommonLanguageSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 3)); -}; - - -/** - * @param {?proto.google.api.CommonLanguageSettings|undefined} value - * @return {!proto.google.api.JavaSettings} returns this -*/ -proto.google.api.JavaSettings.prototype.setCommon = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.JavaSettings} returns this - */ -proto.google.api.JavaSettings.prototype.clearCommon = function() { - return this.setCommon(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.JavaSettings.prototype.hasCommon = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.CppSettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.CppSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.CppSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.CppSettings.toObject = function(includeInstance, msg) { - var f, obj = { - common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.CppSettings} - */ -proto.google.api.CppSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.CppSettings; - return proto.google.api.CppSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.CppSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.CppSettings} - */ -proto.google.api.CppSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.CommonLanguageSettings; - reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); - msg.setCommon(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.CppSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.CppSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.CppSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.CppSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCommon(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.google.api.CommonLanguageSettings.serializeBinaryToWriter - ); - } -}; - - -/** - * optional CommonLanguageSettings common = 1; - * @return {?proto.google.api.CommonLanguageSettings} - */ -proto.google.api.CppSettings.prototype.getCommon = function() { - return /** @type{?proto.google.api.CommonLanguageSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); -}; - - -/** - * @param {?proto.google.api.CommonLanguageSettings|undefined} value - * @return {!proto.google.api.CppSettings} returns this -*/ -proto.google.api.CppSettings.prototype.setCommon = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.CppSettings} returns this - */ -proto.google.api.CppSettings.prototype.clearCommon = function() { - return this.setCommon(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.CppSettings.prototype.hasCommon = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.PhpSettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.PhpSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.PhpSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.PhpSettings.toObject = function(includeInstance, msg) { - var f, obj = { - common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.PhpSettings} - */ -proto.google.api.PhpSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.PhpSettings; - return proto.google.api.PhpSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.PhpSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.PhpSettings} - */ -proto.google.api.PhpSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.CommonLanguageSettings; - reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); - msg.setCommon(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.PhpSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.PhpSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.PhpSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.PhpSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCommon(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.google.api.CommonLanguageSettings.serializeBinaryToWriter - ); - } -}; - - -/** - * optional CommonLanguageSettings common = 1; - * @return {?proto.google.api.CommonLanguageSettings} - */ -proto.google.api.PhpSettings.prototype.getCommon = function() { - return /** @type{?proto.google.api.CommonLanguageSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); -}; - - -/** - * @param {?proto.google.api.CommonLanguageSettings|undefined} value - * @return {!proto.google.api.PhpSettings} returns this -*/ -proto.google.api.PhpSettings.prototype.setCommon = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.PhpSettings} returns this - */ -proto.google.api.PhpSettings.prototype.clearCommon = function() { - return this.setCommon(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.PhpSettings.prototype.hasCommon = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.PythonSettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.PythonSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.PythonSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.PythonSettings.toObject = function(includeInstance, msg) { - var f, obj = { - common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.PythonSettings} - */ -proto.google.api.PythonSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.PythonSettings; - return proto.google.api.PythonSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.PythonSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.PythonSettings} - */ -proto.google.api.PythonSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.CommonLanguageSettings; - reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); - msg.setCommon(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.PythonSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.PythonSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.PythonSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.PythonSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCommon(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.google.api.CommonLanguageSettings.serializeBinaryToWriter - ); - } -}; - - -/** - * optional CommonLanguageSettings common = 1; - * @return {?proto.google.api.CommonLanguageSettings} - */ -proto.google.api.PythonSettings.prototype.getCommon = function() { - return /** @type{?proto.google.api.CommonLanguageSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); -}; - - -/** - * @param {?proto.google.api.CommonLanguageSettings|undefined} value - * @return {!proto.google.api.PythonSettings} returns this -*/ -proto.google.api.PythonSettings.prototype.setCommon = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.PythonSettings} returns this - */ -proto.google.api.PythonSettings.prototype.clearCommon = function() { - return this.setCommon(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.PythonSettings.prototype.hasCommon = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.NodeSettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.NodeSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.NodeSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.NodeSettings.toObject = function(includeInstance, msg) { - var f, obj = { - common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.NodeSettings} - */ -proto.google.api.NodeSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.NodeSettings; - return proto.google.api.NodeSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.NodeSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.NodeSettings} - */ -proto.google.api.NodeSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.CommonLanguageSettings; - reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); - msg.setCommon(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.NodeSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.NodeSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.NodeSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.NodeSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCommon(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.google.api.CommonLanguageSettings.serializeBinaryToWriter - ); - } -}; - - -/** - * optional CommonLanguageSettings common = 1; - * @return {?proto.google.api.CommonLanguageSettings} - */ -proto.google.api.NodeSettings.prototype.getCommon = function() { - return /** @type{?proto.google.api.CommonLanguageSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); -}; - - -/** - * @param {?proto.google.api.CommonLanguageSettings|undefined} value - * @return {!proto.google.api.NodeSettings} returns this -*/ -proto.google.api.NodeSettings.prototype.setCommon = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.NodeSettings} returns this - */ -proto.google.api.NodeSettings.prototype.clearCommon = function() { - return this.setCommon(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.NodeSettings.prototype.hasCommon = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.DotnetSettings.repeatedFields_ = [4,5,6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.DotnetSettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.DotnetSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.DotnetSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.DotnetSettings.toObject = function(includeInstance, msg) { - var f, obj = { - common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f), - renamedServicesMap: (f = msg.getRenamedServicesMap()) ? f.toObject(includeInstance, undefined) : [], - renamedResourcesMap: (f = msg.getRenamedResourcesMap()) ? f.toObject(includeInstance, undefined) : [], - ignoredResourcesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, - forcedNamespaceAliasesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, - handwrittenSignaturesList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.DotnetSettings} - */ -proto.google.api.DotnetSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.DotnetSettings; - return proto.google.api.DotnetSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.DotnetSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.DotnetSettings} - */ -proto.google.api.DotnetSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.CommonLanguageSettings; - reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); - msg.setCommon(value); - break; - case 2: - var value = msg.getRenamedServicesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 3: - var value = msg.getRenamedResourcesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addIgnoredResources(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.addForcedNamespaceAliases(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.addHandwrittenSignatures(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.DotnetSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.DotnetSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.DotnetSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.DotnetSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCommon(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.google.api.CommonLanguageSettings.serializeBinaryToWriter - ); - } - f = message.getRenamedServicesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getRenamedResourcesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getIgnoredResourcesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } - f = message.getForcedNamespaceAliasesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 5, - f - ); - } - f = message.getHandwrittenSignaturesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 6, - f - ); - } -}; - - -/** - * optional CommonLanguageSettings common = 1; - * @return {?proto.google.api.CommonLanguageSettings} - */ -proto.google.api.DotnetSettings.prototype.getCommon = function() { - return /** @type{?proto.google.api.CommonLanguageSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); -}; - - -/** - * @param {?proto.google.api.CommonLanguageSettings|undefined} value - * @return {!proto.google.api.DotnetSettings} returns this -*/ -proto.google.api.DotnetSettings.prototype.setCommon = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.clearCommon = function() { - return this.setCommon(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.DotnetSettings.prototype.hasCommon = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * map renamed_services = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.google.api.DotnetSettings.prototype.getRenamedServicesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.clearRenamedServicesMap = function() { - this.getRenamedServicesMap().clear(); - return this;}; - - -/** - * map renamed_resources = 3; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.google.api.DotnetSettings.prototype.getRenamedResourcesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 3, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.clearRenamedResourcesMap = function() { - this.getRenamedResourcesMap().clear(); - return this;}; - - -/** - * repeated string ignored_resources = 4; - * @return {!Array} - */ -proto.google.api.DotnetSettings.prototype.getIgnoredResourcesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.setIgnoredResourcesList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.addIgnoredResources = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.clearIgnoredResourcesList = function() { - return this.setIgnoredResourcesList([]); -}; - - -/** - * repeated string forced_namespace_aliases = 5; - * @return {!Array} - */ -proto.google.api.DotnetSettings.prototype.getForcedNamespaceAliasesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.setForcedNamespaceAliasesList = function(value) { - return jspb.Message.setField(this, 5, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.addForcedNamespaceAliases = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 5, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.clearForcedNamespaceAliasesList = function() { - return this.setForcedNamespaceAliasesList([]); -}; - - -/** - * repeated string handwritten_signatures = 6; - * @return {!Array} - */ -proto.google.api.DotnetSettings.prototype.getHandwrittenSignaturesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.setHandwrittenSignaturesList = function(value) { - return jspb.Message.setField(this, 6, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.addHandwrittenSignatures = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 6, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.DotnetSettings} returns this - */ -proto.google.api.DotnetSettings.prototype.clearHandwrittenSignaturesList = function() { - return this.setHandwrittenSignaturesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.RubySettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.RubySettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.RubySettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.RubySettings.toObject = function(includeInstance, msg) { - var f, obj = { - common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.RubySettings} - */ -proto.google.api.RubySettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.RubySettings; - return proto.google.api.RubySettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.RubySettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.RubySettings} - */ -proto.google.api.RubySettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.CommonLanguageSettings; - reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); - msg.setCommon(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.RubySettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.RubySettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.RubySettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.RubySettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCommon(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.google.api.CommonLanguageSettings.serializeBinaryToWriter - ); - } -}; - - -/** - * optional CommonLanguageSettings common = 1; - * @return {?proto.google.api.CommonLanguageSettings} - */ -proto.google.api.RubySettings.prototype.getCommon = function() { - return /** @type{?proto.google.api.CommonLanguageSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); -}; - - -/** - * @param {?proto.google.api.CommonLanguageSettings|undefined} value - * @return {!proto.google.api.RubySettings} returns this -*/ -proto.google.api.RubySettings.prototype.setCommon = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.RubySettings} returns this - */ -proto.google.api.RubySettings.prototype.clearCommon = function() { - return this.setCommon(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.RubySettings.prototype.hasCommon = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.GoSettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.GoSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.GoSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.GoSettings.toObject = function(includeInstance, msg) { - var f, obj = { - common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.GoSettings} - */ -proto.google.api.GoSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.GoSettings; - return proto.google.api.GoSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.GoSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.GoSettings} - */ -proto.google.api.GoSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.CommonLanguageSettings; - reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); - msg.setCommon(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.GoSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.GoSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.GoSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.GoSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCommon(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.google.api.CommonLanguageSettings.serializeBinaryToWriter - ); - } -}; - - -/** - * optional CommonLanguageSettings common = 1; - * @return {?proto.google.api.CommonLanguageSettings} - */ -proto.google.api.GoSettings.prototype.getCommon = function() { - return /** @type{?proto.google.api.CommonLanguageSettings} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); -}; - - -/** - * @param {?proto.google.api.CommonLanguageSettings|undefined} value - * @return {!proto.google.api.GoSettings} returns this -*/ -proto.google.api.GoSettings.prototype.setCommon = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.GoSettings} returns this - */ -proto.google.api.GoSettings.prototype.clearCommon = function() { - return this.setCommon(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.GoSettings.prototype.hasCommon = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.MethodSettings.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.MethodSettings.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.MethodSettings} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MethodSettings.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - longRunning: (f = msg.getLongRunning()) && proto.google.api.MethodSettings.LongRunning.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.MethodSettings} - */ -proto.google.api.MethodSettings.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.MethodSettings; - return proto.google.api.MethodSettings.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.MethodSettings} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.MethodSettings} - */ -proto.google.api.MethodSettings.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = new proto.google.api.MethodSettings.LongRunning; - reader.readMessage(value,proto.google.api.MethodSettings.LongRunning.deserializeBinaryFromReader); - msg.setLongRunning(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.MethodSettings.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.MethodSettings.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.MethodSettings} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MethodSettings.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLongRunning(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.google.api.MethodSettings.LongRunning.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.MethodSettings.LongRunning.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.MethodSettings.LongRunning.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.MethodSettings.LongRunning} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MethodSettings.LongRunning.toObject = function(includeInstance, msg) { - var f, obj = { - initialPollDelay: (f = msg.getInitialPollDelay()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), - pollDelayMultiplier: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - maxPollDelay: (f = msg.getMaxPollDelay()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), - totalPollTimeout: (f = msg.getTotalPollTimeout()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.MethodSettings.LongRunning} - */ -proto.google.api.MethodSettings.LongRunning.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.MethodSettings.LongRunning; - return proto.google.api.MethodSettings.LongRunning.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.MethodSettings.LongRunning} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.MethodSettings.LongRunning} - */ -proto.google.api.MethodSettings.LongRunning.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setInitialPollDelay(value); - break; - case 2: - var value = /** @type {number} */ (reader.readFloat()); - msg.setPollDelayMultiplier(value); - break; - case 3: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setMaxPollDelay(value); - break; - case 4: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setTotalPollTimeout(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.MethodSettings.LongRunning.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.MethodSettings.LongRunning.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.MethodSettings.LongRunning} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MethodSettings.LongRunning.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getInitialPollDelay(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } - f = message.getPollDelayMultiplier(); - if (f !== 0.0) { - writer.writeFloat( - 2, - f - ); - } - f = message.getMaxPollDelay(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } - f = message.getTotalPollTimeout(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional google.protobuf.Duration initial_poll_delay = 1; - * @return {?proto.google.protobuf.Duration} - */ -proto.google.api.MethodSettings.LongRunning.prototype.getInitialPollDelay = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.google.api.MethodSettings.LongRunning} returns this -*/ -proto.google.api.MethodSettings.LongRunning.prototype.setInitialPollDelay = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.MethodSettings.LongRunning} returns this - */ -proto.google.api.MethodSettings.LongRunning.prototype.clearInitialPollDelay = function() { - return this.setInitialPollDelay(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.MethodSettings.LongRunning.prototype.hasInitialPollDelay = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional float poll_delay_multiplier = 2; - * @return {number} - */ -proto.google.api.MethodSettings.LongRunning.prototype.getPollDelayMultiplier = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.MethodSettings.LongRunning} returns this - */ -proto.google.api.MethodSettings.LongRunning.prototype.setPollDelayMultiplier = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - -/** - * optional google.protobuf.Duration max_poll_delay = 3; - * @return {?proto.google.protobuf.Duration} - */ -proto.google.api.MethodSettings.LongRunning.prototype.getMaxPollDelay = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.google.api.MethodSettings.LongRunning} returns this -*/ -proto.google.api.MethodSettings.LongRunning.prototype.setMaxPollDelay = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.MethodSettings.LongRunning} returns this - */ -proto.google.api.MethodSettings.LongRunning.prototype.clearMaxPollDelay = function() { - return this.setMaxPollDelay(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.MethodSettings.LongRunning.prototype.hasMaxPollDelay = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Duration total_poll_timeout = 4; - * @return {?proto.google.protobuf.Duration} - */ -proto.google.api.MethodSettings.LongRunning.prototype.getTotalPollTimeout = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.google.api.MethodSettings.LongRunning} returns this -*/ -proto.google.api.MethodSettings.LongRunning.prototype.setTotalPollTimeout = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.MethodSettings.LongRunning} returns this - */ -proto.google.api.MethodSettings.LongRunning.prototype.clearTotalPollTimeout = function() { - return this.setTotalPollTimeout(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.MethodSettings.LongRunning.prototype.hasTotalPollTimeout = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.MethodSettings.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MethodSettings} returns this - */ -proto.google.api.MethodSettings.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional LongRunning long_running = 2; - * @return {?proto.google.api.MethodSettings.LongRunning} - */ -proto.google.api.MethodSettings.prototype.getLongRunning = function() { - return /** @type{?proto.google.api.MethodSettings.LongRunning} */ ( - jspb.Message.getWrapperField(this, proto.google.api.MethodSettings.LongRunning, 2)); -}; - - -/** - * @param {?proto.google.api.MethodSettings.LongRunning|undefined} value - * @return {!proto.google.api.MethodSettings} returns this -*/ -proto.google.api.MethodSettings.prototype.setLongRunning = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.MethodSettings} returns this - */ -proto.google.api.MethodSettings.prototype.clearLongRunning = function() { - return this.setLongRunning(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.MethodSettings.prototype.hasLongRunning = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * @enum {number} - */ -proto.google.api.ClientLibraryOrganization = { - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED: 0, - CLOUD: 1, - ADS: 2, - PHOTOS: 3, - STREET_VIEW: 4, - SHOPPING: 5, - GEO: 6, - GENERATIVE_AI: 7 -}; - -/** - * @enum {number} - */ -proto.google.api.ClientLibraryDestination = { - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED: 0, - GITHUB: 10, - PACKAGE_MANAGER: 20 -}; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `methodSignatureList`. - * @type {!jspb.ExtensionFieldInfo>} - */ -proto.google.api.methodSignatureList = new jspb.ExtensionFieldInfo( - 1051, - {methodSignatureList: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 1); - -google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[1051] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.methodSignatureList, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeRepeatedString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MethodOptions.extensions[1051] = proto.google.api.methodSignatureList; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `defaultHost`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.defaultHost = new jspb.ExtensionFieldInfo( - 1049, - {defaultHost: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.ServiceOptions.extensionsBinary[1049] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.defaultHost, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.ServiceOptions.extensions[1049] = proto.google.api.defaultHost; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `oauthScopes`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.oauthScopes = new jspb.ExtensionFieldInfo( - 1050, - {oauthScopes: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 0); - -google_protobuf_descriptor_pb.ServiceOptions.extensionsBinary[1050] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.oauthScopes, - jspb.BinaryReader.prototype.readString, - jspb.BinaryWriter.prototype.writeString, - undefined, - undefined, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.ServiceOptions.extensions[1050] = proto.google.api.oauthScopes; - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/config_change_grpc_pb.d.ts b/api/js/google/api/config_change_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/config_change_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/config_change_pb.d.ts b/api/js/google/api/config_change_pb.d.ts deleted file mode 100644 index 484ec1f5..00000000 --- a/api/js/google/api/config_change_pb.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -// package: google.api -// file: google/api/config_change.proto - -import * as jspb from "google-protobuf"; - -export class ConfigChange extends jspb.Message { - getElement(): string; - setElement(value: string): void; - - getOldValue(): string; - setOldValue(value: string): void; - - getNewValue(): string; - setNewValue(value: string): void; - - getChangeType(): ChangeTypeMap[keyof ChangeTypeMap]; - setChangeType(value: ChangeTypeMap[keyof ChangeTypeMap]): void; - - clearAdvicesList(): void; - getAdvicesList(): Array; - setAdvicesList(value: Array): void; - addAdvices(value?: Advice, index?: number): Advice; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConfigChange.AsObject; - static toObject(includeInstance: boolean, msg: ConfigChange): ConfigChange.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConfigChange, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConfigChange; - static deserializeBinaryFromReader(message: ConfigChange, reader: jspb.BinaryReader): ConfigChange; -} - -export namespace ConfigChange { - export type AsObject = { - element: string, - oldValue: string, - newValue: string, - changeType: ChangeTypeMap[keyof ChangeTypeMap], - advicesList: Array, - } -} - -export class Advice extends jspb.Message { - getDescription(): string; - setDescription(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Advice.AsObject; - static toObject(includeInstance: boolean, msg: Advice): Advice.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Advice, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Advice; - static deserializeBinaryFromReader(message: Advice, reader: jspb.BinaryReader): Advice; -} - -export namespace Advice { - export type AsObject = { - description: string, - } -} - -export interface ChangeTypeMap { - CHANGE_TYPE_UNSPECIFIED: 0; - ADDED: 1; - REMOVED: 2; - MODIFIED: 3; -} - -export const ChangeType: ChangeTypeMap; - diff --git a/api/js/google/api/config_change_pb.js b/api/js/google/api/config_change_pb.js deleted file mode 100644 index 69842b2a..00000000 --- a/api/js/google/api/config_change_pb.js +++ /dev/null @@ -1,480 +0,0 @@ -// source: google/api/config_change.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Advice', null, global); -goog.exportSymbol('proto.google.api.ChangeType', null, global); -goog.exportSymbol('proto.google.api.ConfigChange', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.ConfigChange = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.ConfigChange.repeatedFields_, null); -}; -goog.inherits(proto.google.api.ConfigChange, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.ConfigChange.displayName = 'proto.google.api.ConfigChange'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Advice = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.Advice, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Advice.displayName = 'proto.google.api.Advice'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.ConfigChange.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.ConfigChange.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.ConfigChange.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.ConfigChange} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ConfigChange.toObject = function(includeInstance, msg) { - var f, obj = { - element: jspb.Message.getFieldWithDefault(msg, 1, ""), - oldValue: jspb.Message.getFieldWithDefault(msg, 2, ""), - newValue: jspb.Message.getFieldWithDefault(msg, 3, ""), - changeType: jspb.Message.getFieldWithDefault(msg, 4, 0), - advicesList: jspb.Message.toObjectList(msg.getAdvicesList(), - proto.google.api.Advice.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.ConfigChange} - */ -proto.google.api.ConfigChange.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.ConfigChange; - return proto.google.api.ConfigChange.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.ConfigChange} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.ConfigChange} - */ -proto.google.api.ConfigChange.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setElement(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setOldValue(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setNewValue(value); - break; - case 4: - var value = /** @type {!proto.google.api.ChangeType} */ (reader.readEnum()); - msg.setChangeType(value); - break; - case 5: - var value = new proto.google.api.Advice; - reader.readMessage(value,proto.google.api.Advice.deserializeBinaryFromReader); - msg.addAdvices(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.ConfigChange.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.ConfigChange.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.ConfigChange} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ConfigChange.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getElement(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getOldValue(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getNewValue(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getChangeType(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getAdvicesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.google.api.Advice.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string element = 1; - * @return {string} - */ -proto.google.api.ConfigChange.prototype.getElement = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ConfigChange} returns this - */ -proto.google.api.ConfigChange.prototype.setElement = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string old_value = 2; - * @return {string} - */ -proto.google.api.ConfigChange.prototype.getOldValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ConfigChange} returns this - */ -proto.google.api.ConfigChange.prototype.setOldValue = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string new_value = 3; - * @return {string} - */ -proto.google.api.ConfigChange.prototype.getNewValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ConfigChange} returns this - */ -proto.google.api.ConfigChange.prototype.setNewValue = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional ChangeType change_type = 4; - * @return {!proto.google.api.ChangeType} - */ -proto.google.api.ConfigChange.prototype.getChangeType = function() { - return /** @type {!proto.google.api.ChangeType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.google.api.ChangeType} value - * @return {!proto.google.api.ConfigChange} returns this - */ -proto.google.api.ConfigChange.prototype.setChangeType = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * repeated Advice advices = 5; - * @return {!Array} - */ -proto.google.api.ConfigChange.prototype.getAdvicesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Advice, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.ConfigChange} returns this -*/ -proto.google.api.ConfigChange.prototype.setAdvicesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.google.api.Advice=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Advice} - */ -proto.google.api.ConfigChange.prototype.addAdvices = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.api.Advice, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.ConfigChange} returns this - */ -proto.google.api.ConfigChange.prototype.clearAdvicesList = function() { - return this.setAdvicesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Advice.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Advice.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Advice} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Advice.toObject = function(includeInstance, msg) { - var f, obj = { - description: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Advice} - */ -proto.google.api.Advice.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Advice; - return proto.google.api.Advice.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Advice} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Advice} - */ -proto.google.api.Advice.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Advice.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Advice.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Advice} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Advice.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.google.api.Advice.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Advice} returns this - */ -proto.google.api.Advice.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * @enum {number} - */ -proto.google.api.ChangeType = { - CHANGE_TYPE_UNSPECIFIED: 0, - ADDED: 1, - REMOVED: 2, - MODIFIED: 3 -}; - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/consumer_grpc_pb.d.ts b/api/js/google/api/consumer_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/consumer_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/consumer_pb.d.ts b/api/js/google/api/consumer_pb.d.ts deleted file mode 100644 index 486ababf..00000000 --- a/api/js/google/api/consumer_pb.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -// package: google.api -// file: google/api/consumer.proto - -import * as jspb from "google-protobuf"; - -export class ProjectProperties extends jspb.Message { - clearPropertiesList(): void; - getPropertiesList(): Array; - setPropertiesList(value: Array): void; - addProperties(value?: Property, index?: number): Property; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectProperties.AsObject; - static toObject(includeInstance: boolean, msg: ProjectProperties): ProjectProperties.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ProjectProperties, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectProperties; - static deserializeBinaryFromReader(message: ProjectProperties, reader: jspb.BinaryReader): ProjectProperties; -} - -export namespace ProjectProperties { - export type AsObject = { - propertiesList: Array, - } -} - -export class Property extends jspb.Message { - getName(): string; - setName(value: string): void; - - getType(): Property.PropertyTypeMap[keyof Property.PropertyTypeMap]; - setType(value: Property.PropertyTypeMap[keyof Property.PropertyTypeMap]): void; - - getDescription(): string; - setDescription(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Property.AsObject; - static toObject(includeInstance: boolean, msg: Property): Property.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Property, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Property; - static deserializeBinaryFromReader(message: Property, reader: jspb.BinaryReader): Property; -} - -export namespace Property { - export type AsObject = { - name: string, - type: Property.PropertyTypeMap[keyof Property.PropertyTypeMap], - description: string, - } - - export interface PropertyTypeMap { - UNSPECIFIED: 0; - INT64: 1; - BOOL: 2; - STRING: 3; - DOUBLE: 4; - } - - export const PropertyType: PropertyTypeMap; -} - diff --git a/api/js/google/api/consumer_pb.js b/api/js/google/api/consumer_pb.js deleted file mode 100644 index b2fbf191..00000000 --- a/api/js/google/api/consumer_pb.js +++ /dev/null @@ -1,421 +0,0 @@ -// source: google/api/consumer.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.ProjectProperties', null, global); -goog.exportSymbol('proto.google.api.Property', null, global); -goog.exportSymbol('proto.google.api.Property.PropertyType', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.ProjectProperties = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.ProjectProperties.repeatedFields_, null); -}; -goog.inherits(proto.google.api.ProjectProperties, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.ProjectProperties.displayName = 'proto.google.api.ProjectProperties'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Property = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.Property, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Property.displayName = 'proto.google.api.Property'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.ProjectProperties.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.ProjectProperties.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.ProjectProperties.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.ProjectProperties} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ProjectProperties.toObject = function(includeInstance, msg) { - var f, obj = { - propertiesList: jspb.Message.toObjectList(msg.getPropertiesList(), - proto.google.api.Property.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.ProjectProperties} - */ -proto.google.api.ProjectProperties.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.ProjectProperties; - return proto.google.api.ProjectProperties.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.ProjectProperties} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.ProjectProperties} - */ -proto.google.api.ProjectProperties.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.Property; - reader.readMessage(value,proto.google.api.Property.deserializeBinaryFromReader); - msg.addProperties(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.ProjectProperties.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.ProjectProperties.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.ProjectProperties} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ProjectProperties.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPropertiesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.api.Property.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Property properties = 1; - * @return {!Array} - */ -proto.google.api.ProjectProperties.prototype.getPropertiesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Property, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.ProjectProperties} returns this -*/ -proto.google.api.ProjectProperties.prototype.setPropertiesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.api.Property=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Property} - */ -proto.google.api.ProjectProperties.prototype.addProperties = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.Property, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.ProjectProperties} returns this - */ -proto.google.api.ProjectProperties.prototype.clearPropertiesList = function() { - return this.setPropertiesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Property.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Property.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Property} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Property.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - type: jspb.Message.getFieldWithDefault(msg, 2, 0), - description: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Property} - */ -proto.google.api.Property.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Property; - return proto.google.api.Property.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Property} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Property} - */ -proto.google.api.Property.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {!proto.google.api.Property.PropertyType} */ (reader.readEnum()); - msg.setType(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Property.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Property.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Property} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Property.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.google.api.Property.PropertyType = { - UNSPECIFIED: 0, - INT64: 1, - BOOL: 2, - STRING: 3, - DOUBLE: 4 -}; - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.api.Property.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Property} returns this - */ -proto.google.api.Property.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional PropertyType type = 2; - * @return {!proto.google.api.Property.PropertyType} - */ -proto.google.api.Property.prototype.getType = function() { - return /** @type {!proto.google.api.Property.PropertyType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.google.api.Property.PropertyType} value - * @return {!proto.google.api.Property} returns this - */ -proto.google.api.Property.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.google.api.Property.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Property} returns this - */ -proto.google.api.Property.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/context_grpc_pb.d.ts b/api/js/google/api/context_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/context_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/context_pb.d.ts b/api/js/google/api/context_pb.d.ts deleted file mode 100644 index 43d0a58d..00000000 --- a/api/js/google/api/context_pb.d.ts +++ /dev/null @@ -1,71 +0,0 @@ -// package: google.api -// file: google/api/context.proto - -import * as jspb from "google-protobuf"; - -export class Context extends jspb.Message { - clearRulesList(): void; - getRulesList(): Array; - setRulesList(value: Array): void; - addRules(value?: ContextRule, index?: number): ContextRule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Context.AsObject; - static toObject(includeInstance: boolean, msg: Context): Context.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Context, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Context; - static deserializeBinaryFromReader(message: Context, reader: jspb.BinaryReader): Context; -} - -export namespace Context { - export type AsObject = { - rulesList: Array, - } -} - -export class ContextRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): void; - - clearRequestedList(): void; - getRequestedList(): Array; - setRequestedList(value: Array): void; - addRequested(value: string, index?: number): string; - - clearProvidedList(): void; - getProvidedList(): Array; - setProvidedList(value: Array): void; - addProvided(value: string, index?: number): string; - - clearAllowedRequestExtensionsList(): void; - getAllowedRequestExtensionsList(): Array; - setAllowedRequestExtensionsList(value: Array): void; - addAllowedRequestExtensions(value: string, index?: number): string; - - clearAllowedResponseExtensionsList(): void; - getAllowedResponseExtensionsList(): Array; - setAllowedResponseExtensionsList(value: Array): void; - addAllowedResponseExtensions(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ContextRule.AsObject; - static toObject(includeInstance: boolean, msg: ContextRule): ContextRule.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ContextRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ContextRule; - static deserializeBinaryFromReader(message: ContextRule, reader: jspb.BinaryReader): ContextRule; -} - -export namespace ContextRule { - export type AsObject = { - selector: string, - requestedList: Array, - providedList: Array, - allowedRequestExtensionsList: Array, - allowedResponseExtensionsList: Array, - } -} - diff --git a/api/js/google/api/context_pb.js b/api/js/google/api/context_pb.js deleted file mode 100644 index ce0134e9..00000000 --- a/api/js/google/api/context_pb.js +++ /dev/null @@ -1,552 +0,0 @@ -// source: google/api/context.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Context', null, global); -goog.exportSymbol('proto.google.api.ContextRule', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Context = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Context.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Context, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Context.displayName = 'proto.google.api.Context'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.ContextRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.ContextRule.repeatedFields_, null); -}; -goog.inherits(proto.google.api.ContextRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.ContextRule.displayName = 'proto.google.api.ContextRule'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Context.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Context.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Context.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Context} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Context.toObject = function(includeInstance, msg) { - var f, obj = { - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.google.api.ContextRule.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Context} - */ -proto.google.api.Context.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Context; - return proto.google.api.Context.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Context} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Context} - */ -proto.google.api.Context.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.ContextRule; - reader.readMessage(value,proto.google.api.ContextRule.deserializeBinaryFromReader); - msg.addRules(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Context.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Context.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Context} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Context.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.api.ContextRule.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated ContextRule rules = 1; - * @return {!Array} - */ -proto.google.api.Context.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.ContextRule, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Context} returns this -*/ -proto.google.api.Context.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.api.ContextRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.ContextRule} - */ -proto.google.api.Context.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.ContextRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Context} returns this - */ -proto.google.api.Context.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.ContextRule.repeatedFields_ = [2,3,4,5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.ContextRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.ContextRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.ContextRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ContextRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - requestedList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - providedList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - allowedRequestExtensionsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, - allowedResponseExtensionsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.ContextRule} - */ -proto.google.api.ContextRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.ContextRule; - return proto.google.api.ContextRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.ContextRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.ContextRule} - */ -proto.google.api.ContextRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addRequested(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addProvided(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addAllowedRequestExtensions(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.addAllowedResponseExtensions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.ContextRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.ContextRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.ContextRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ContextRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRequestedList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getProvidedList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } - f = message.getAllowedRequestExtensionsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } - f = message.getAllowedResponseExtensionsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 5, - f - ); - } -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.ContextRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string requested = 2; - * @return {!Array} - */ -proto.google.api.ContextRule.prototype.getRequestedList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.setRequestedList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.addRequested = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.clearRequestedList = function() { - return this.setRequestedList([]); -}; - - -/** - * repeated string provided = 3; - * @return {!Array} - */ -proto.google.api.ContextRule.prototype.getProvidedList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.setProvidedList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.addProvided = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.clearProvidedList = function() { - return this.setProvidedList([]); -}; - - -/** - * repeated string allowed_request_extensions = 4; - * @return {!Array} - */ -proto.google.api.ContextRule.prototype.getAllowedRequestExtensionsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.setAllowedRequestExtensionsList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.addAllowedRequestExtensions = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.clearAllowedRequestExtensionsList = function() { - return this.setAllowedRequestExtensionsList([]); -}; - - -/** - * repeated string allowed_response_extensions = 5; - * @return {!Array} - */ -proto.google.api.ContextRule.prototype.getAllowedResponseExtensionsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.setAllowedResponseExtensionsList = function(value) { - return jspb.Message.setField(this, 5, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.addAllowedResponseExtensions = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 5, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.ContextRule} returns this - */ -proto.google.api.ContextRule.prototype.clearAllowedResponseExtensionsList = function() { - return this.setAllowedResponseExtensionsList([]); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/control_grpc_pb.d.ts b/api/js/google/api/control_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/control_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/control_pb.d.ts b/api/js/google/api/control_pb.d.ts deleted file mode 100644 index a3b5474b..00000000 --- a/api/js/google/api/control_pb.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -// package: google.api -// file: google/api/control.proto - -import * as jspb from "google-protobuf"; - -export class Control extends jspb.Message { - getEnvironment(): string; - setEnvironment(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Control.AsObject; - static toObject(includeInstance: boolean, msg: Control): Control.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Control, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Control; - static deserializeBinaryFromReader(message: Control, reader: jspb.BinaryReader): Control; -} - -export namespace Control { - export type AsObject = { - environment: string, - } -} - diff --git a/api/js/google/api/control_pb.js b/api/js/google/api/control_pb.js deleted file mode 100644 index 6f1bdfcd..00000000 --- a/api/js/google/api/control_pb.js +++ /dev/null @@ -1,167 +0,0 @@ -// source: google/api/control.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Control', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Control = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.Control, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Control.displayName = 'proto.google.api.Control'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Control.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Control.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Control} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Control.toObject = function(includeInstance, msg) { - var f, obj = { - environment: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Control} - */ -proto.google.api.Control.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Control; - return proto.google.api.Control.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Control} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Control} - */ -proto.google.api.Control.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setEnvironment(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Control.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Control.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Control} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Control.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEnvironment(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string environment = 1; - * @return {string} - */ -proto.google.api.Control.prototype.getEnvironment = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Control} returns this - */ -proto.google.api.Control.prototype.setEnvironment = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/distribution_grpc_pb.d.ts b/api/js/google/api/distribution_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/distribution_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/distribution_pb.d.ts b/api/js/google/api/distribution_pb.d.ts deleted file mode 100644 index aad1aed3..00000000 --- a/api/js/google/api/distribution_pb.d.ts +++ /dev/null @@ -1,235 +0,0 @@ -// package: google.api -// file: google/api/distribution.proto - -import * as jspb from "google-protobuf"; -import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; - -export class Distribution extends jspb.Message { - getCount(): number; - setCount(value: number): void; - - getMean(): number; - setMean(value: number): void; - - getSumOfSquaredDeviation(): number; - setSumOfSquaredDeviation(value: number): void; - - hasRange(): boolean; - clearRange(): void; - getRange(): Distribution.Range | undefined; - setRange(value?: Distribution.Range): void; - - hasBucketOptions(): boolean; - clearBucketOptions(): void; - getBucketOptions(): Distribution.BucketOptions | undefined; - setBucketOptions(value?: Distribution.BucketOptions): void; - - clearBucketCountsList(): void; - getBucketCountsList(): Array; - setBucketCountsList(value: Array): void; - addBucketCounts(value: number, index?: number): number; - - clearExemplarsList(): void; - getExemplarsList(): Array; - setExemplarsList(value: Array): void; - addExemplars(value?: Distribution.Exemplar, index?: number): Distribution.Exemplar; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Distribution.AsObject; - static toObject(includeInstance: boolean, msg: Distribution): Distribution.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Distribution, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Distribution; - static deserializeBinaryFromReader(message: Distribution, reader: jspb.BinaryReader): Distribution; -} - -export namespace Distribution { - export type AsObject = { - count: number, - mean: number, - sumOfSquaredDeviation: number, - range?: Distribution.Range.AsObject, - bucketOptions?: Distribution.BucketOptions.AsObject, - bucketCountsList: Array, - exemplarsList: Array, - } - - export class Range extends jspb.Message { - getMin(): number; - setMin(value: number): void; - - getMax(): number; - setMax(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Range.AsObject; - static toObject(includeInstance: boolean, msg: Range): Range.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Range, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Range; - static deserializeBinaryFromReader(message: Range, reader: jspb.BinaryReader): Range; - } - - export namespace Range { - export type AsObject = { - min: number, - max: number, - } - } - - export class BucketOptions extends jspb.Message { - hasLinearBuckets(): boolean; - clearLinearBuckets(): void; - getLinearBuckets(): Distribution.BucketOptions.Linear | undefined; - setLinearBuckets(value?: Distribution.BucketOptions.Linear): void; - - hasExponentialBuckets(): boolean; - clearExponentialBuckets(): void; - getExponentialBuckets(): Distribution.BucketOptions.Exponential | undefined; - setExponentialBuckets(value?: Distribution.BucketOptions.Exponential): void; - - hasExplicitBuckets(): boolean; - clearExplicitBuckets(): void; - getExplicitBuckets(): Distribution.BucketOptions.Explicit | undefined; - setExplicitBuckets(value?: Distribution.BucketOptions.Explicit): void; - - getOptionsCase(): BucketOptions.OptionsCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BucketOptions.AsObject; - static toObject(includeInstance: boolean, msg: BucketOptions): BucketOptions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BucketOptions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BucketOptions; - static deserializeBinaryFromReader(message: BucketOptions, reader: jspb.BinaryReader): BucketOptions; - } - - export namespace BucketOptions { - export type AsObject = { - linearBuckets?: Distribution.BucketOptions.Linear.AsObject, - exponentialBuckets?: Distribution.BucketOptions.Exponential.AsObject, - explicitBuckets?: Distribution.BucketOptions.Explicit.AsObject, - } - - export class Linear extends jspb.Message { - getNumFiniteBuckets(): number; - setNumFiniteBuckets(value: number): void; - - getWidth(): number; - setWidth(value: number): void; - - getOffset(): number; - setOffset(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Linear.AsObject; - static toObject(includeInstance: boolean, msg: Linear): Linear.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Linear, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Linear; - static deserializeBinaryFromReader(message: Linear, reader: jspb.BinaryReader): Linear; - } - - export namespace Linear { - export type AsObject = { - numFiniteBuckets: number, - width: number, - offset: number, - } - } - - export class Exponential extends jspb.Message { - getNumFiniteBuckets(): number; - setNumFiniteBuckets(value: number): void; - - getGrowthFactor(): number; - setGrowthFactor(value: number): void; - - getScale(): number; - setScale(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Exponential.AsObject; - static toObject(includeInstance: boolean, msg: Exponential): Exponential.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Exponential, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Exponential; - static deserializeBinaryFromReader(message: Exponential, reader: jspb.BinaryReader): Exponential; - } - - export namespace Exponential { - export type AsObject = { - numFiniteBuckets: number, - growthFactor: number, - scale: number, - } - } - - export class Explicit extends jspb.Message { - clearBoundsList(): void; - getBoundsList(): Array; - setBoundsList(value: Array): void; - addBounds(value: number, index?: number): number; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Explicit.AsObject; - static toObject(includeInstance: boolean, msg: Explicit): Explicit.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Explicit, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Explicit; - static deserializeBinaryFromReader(message: Explicit, reader: jspb.BinaryReader): Explicit; - } - - export namespace Explicit { - export type AsObject = { - boundsList: Array, - } - } - - export enum OptionsCase { - OPTIONS_NOT_SET = 0, - LINEAR_BUCKETS = 1, - EXPONENTIAL_BUCKETS = 2, - EXPLICIT_BUCKETS = 3, - } - } - - export class Exemplar extends jspb.Message { - getValue(): number; - setValue(value: number): void; - - hasTimestamp(): boolean; - clearTimestamp(): void; - getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): void; - - clearAttachmentsList(): void; - getAttachmentsList(): Array; - setAttachmentsList(value: Array): void; - addAttachments(value?: google_protobuf_any_pb.Any, index?: number): google_protobuf_any_pb.Any; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Exemplar.AsObject; - static toObject(includeInstance: boolean, msg: Exemplar): Exemplar.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Exemplar, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Exemplar; - static deserializeBinaryFromReader(message: Exemplar, reader: jspb.BinaryReader): Exemplar; - } - - export namespace Exemplar { - export type AsObject = { - value: number, - timestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject, - attachmentsList: Array, - } - } -} - diff --git a/api/js/google/api/distribution_pb.js b/api/js/google/api/distribution_pb.js deleted file mode 100644 index 85a449c1..00000000 --- a/api/js/google/api/distribution_pb.js +++ /dev/null @@ -1,1792 +0,0 @@ -// source: google/api/distribution.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); -goog.object.extend(proto, google_protobuf_any_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -goog.exportSymbol('proto.google.api.Distribution', null, global); -goog.exportSymbol('proto.google.api.Distribution.BucketOptions', null, global); -goog.exportSymbol('proto.google.api.Distribution.BucketOptions.Explicit', null, global); -goog.exportSymbol('proto.google.api.Distribution.BucketOptions.Exponential', null, global); -goog.exportSymbol('proto.google.api.Distribution.BucketOptions.Linear', null, global); -goog.exportSymbol('proto.google.api.Distribution.BucketOptions.OptionsCase', null, global); -goog.exportSymbol('proto.google.api.Distribution.Exemplar', null, global); -goog.exportSymbol('proto.google.api.Distribution.Range', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Distribution = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Distribution.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Distribution, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Distribution.displayName = 'proto.google.api.Distribution'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Distribution.Range = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.Distribution.Range, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Distribution.Range.displayName = 'proto.google.api.Distribution.Range'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Distribution.BucketOptions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.Distribution.BucketOptions.oneofGroups_); -}; -goog.inherits(proto.google.api.Distribution.BucketOptions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Distribution.BucketOptions.displayName = 'proto.google.api.Distribution.BucketOptions'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Distribution.BucketOptions.Linear = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.Distribution.BucketOptions.Linear, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Distribution.BucketOptions.Linear.displayName = 'proto.google.api.Distribution.BucketOptions.Linear'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Distribution.BucketOptions.Exponential = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.Distribution.BucketOptions.Exponential, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Distribution.BucketOptions.Exponential.displayName = 'proto.google.api.Distribution.BucketOptions.Exponential'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Distribution.BucketOptions.Explicit = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Distribution.BucketOptions.Explicit.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Distribution.BucketOptions.Explicit, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Distribution.BucketOptions.Explicit.displayName = 'proto.google.api.Distribution.BucketOptions.Explicit'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Distribution.Exemplar = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Distribution.Exemplar.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Distribution.Exemplar, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Distribution.Exemplar.displayName = 'proto.google.api.Distribution.Exemplar'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Distribution.repeatedFields_ = [7,10]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Distribution.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Distribution.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Distribution} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.toObject = function(includeInstance, msg) { - var f, obj = { - count: jspb.Message.getFieldWithDefault(msg, 1, 0), - mean: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - sumOfSquaredDeviation: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), - range: (f = msg.getRange()) && proto.google.api.Distribution.Range.toObject(includeInstance, f), - bucketOptions: (f = msg.getBucketOptions()) && proto.google.api.Distribution.BucketOptions.toObject(includeInstance, f), - bucketCountsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f, - exemplarsList: jspb.Message.toObjectList(msg.getExemplarsList(), - proto.google.api.Distribution.Exemplar.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Distribution} - */ -proto.google.api.Distribution.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Distribution; - return proto.google.api.Distribution.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Distribution} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Distribution} - */ -proto.google.api.Distribution.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCount(value); - break; - case 2: - var value = /** @type {number} */ (reader.readDouble()); - msg.setMean(value); - break; - case 3: - var value = /** @type {number} */ (reader.readDouble()); - msg.setSumOfSquaredDeviation(value); - break; - case 4: - var value = new proto.google.api.Distribution.Range; - reader.readMessage(value,proto.google.api.Distribution.Range.deserializeBinaryFromReader); - msg.setRange(value); - break; - case 6: - var value = new proto.google.api.Distribution.BucketOptions; - reader.readMessage(value,proto.google.api.Distribution.BucketOptions.deserializeBinaryFromReader); - msg.setBucketOptions(value); - break; - case 7: - var value = /** @type {!Array} */ (reader.readPackedInt64()); - msg.setBucketCountsList(value); - break; - case 10: - var value = new proto.google.api.Distribution.Exemplar; - reader.readMessage(value,proto.google.api.Distribution.Exemplar.deserializeBinaryFromReader); - msg.addExemplars(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Distribution.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Distribution.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Distribution} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCount(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } - f = message.getMean(); - if (f !== 0.0) { - writer.writeDouble( - 2, - f - ); - } - f = message.getSumOfSquaredDeviation(); - if (f !== 0.0) { - writer.writeDouble( - 3, - f - ); - } - f = message.getRange(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.google.api.Distribution.Range.serializeBinaryToWriter - ); - } - f = message.getBucketOptions(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.google.api.Distribution.BucketOptions.serializeBinaryToWriter - ); - } - f = message.getBucketCountsList(); - if (f.length > 0) { - writer.writePackedInt64( - 7, - f - ); - } - f = message.getExemplarsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 10, - f, - proto.google.api.Distribution.Exemplar.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Distribution.Range.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Distribution.Range.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Distribution.Range} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.Range.toObject = function(includeInstance, msg) { - var f, obj = { - min: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), - max: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Distribution.Range} - */ -proto.google.api.Distribution.Range.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Distribution.Range; - return proto.google.api.Distribution.Range.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Distribution.Range} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Distribution.Range} - */ -proto.google.api.Distribution.Range.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readDouble()); - msg.setMin(value); - break; - case 2: - var value = /** @type {number} */ (reader.readDouble()); - msg.setMax(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Distribution.Range.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Distribution.Range.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Distribution.Range} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.Range.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMin(); - if (f !== 0.0) { - writer.writeDouble( - 1, - f - ); - } - f = message.getMax(); - if (f !== 0.0) { - writer.writeDouble( - 2, - f - ); - } -}; - - -/** - * optional double min = 1; - * @return {number} - */ -proto.google.api.Distribution.Range.prototype.getMin = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution.Range} returns this - */ -proto.google.api.Distribution.Range.prototype.setMin = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); -}; - - -/** - * optional double max = 2; - * @return {number} - */ -proto.google.api.Distribution.Range.prototype.getMax = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution.Range} returns this - */ -proto.google.api.Distribution.Range.prototype.setMax = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.google.api.Distribution.BucketOptions.oneofGroups_ = [[1,2,3]]; - -/** - * @enum {number} - */ -proto.google.api.Distribution.BucketOptions.OptionsCase = { - OPTIONS_NOT_SET: 0, - LINEAR_BUCKETS: 1, - EXPONENTIAL_BUCKETS: 2, - EXPLICIT_BUCKETS: 3 -}; - -/** - * @return {proto.google.api.Distribution.BucketOptions.OptionsCase} - */ -proto.google.api.Distribution.BucketOptions.prototype.getOptionsCase = function() { - return /** @type {proto.google.api.Distribution.BucketOptions.OptionsCase} */(jspb.Message.computeOneofCase(this, proto.google.api.Distribution.BucketOptions.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Distribution.BucketOptions.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Distribution.BucketOptions.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Distribution.BucketOptions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.BucketOptions.toObject = function(includeInstance, msg) { - var f, obj = { - linearBuckets: (f = msg.getLinearBuckets()) && proto.google.api.Distribution.BucketOptions.Linear.toObject(includeInstance, f), - exponentialBuckets: (f = msg.getExponentialBuckets()) && proto.google.api.Distribution.BucketOptions.Exponential.toObject(includeInstance, f), - explicitBuckets: (f = msg.getExplicitBuckets()) && proto.google.api.Distribution.BucketOptions.Explicit.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Distribution.BucketOptions} - */ -proto.google.api.Distribution.BucketOptions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Distribution.BucketOptions; - return proto.google.api.Distribution.BucketOptions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Distribution.BucketOptions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Distribution.BucketOptions} - */ -proto.google.api.Distribution.BucketOptions.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.Distribution.BucketOptions.Linear; - reader.readMessage(value,proto.google.api.Distribution.BucketOptions.Linear.deserializeBinaryFromReader); - msg.setLinearBuckets(value); - break; - case 2: - var value = new proto.google.api.Distribution.BucketOptions.Exponential; - reader.readMessage(value,proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinaryFromReader); - msg.setExponentialBuckets(value); - break; - case 3: - var value = new proto.google.api.Distribution.BucketOptions.Explicit; - reader.readMessage(value,proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinaryFromReader); - msg.setExplicitBuckets(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Distribution.BucketOptions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Distribution.BucketOptions.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Distribution.BucketOptions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.BucketOptions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLinearBuckets(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.google.api.Distribution.BucketOptions.Linear.serializeBinaryToWriter - ); - } - f = message.getExponentialBuckets(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.google.api.Distribution.BucketOptions.Exponential.serializeBinaryToWriter - ); - } - f = message.getExplicitBuckets(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.google.api.Distribution.BucketOptions.Explicit.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Distribution.BucketOptions.Linear.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Distribution.BucketOptions.Linear.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Distribution.BucketOptions.Linear} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.BucketOptions.Linear.toObject = function(includeInstance, msg) { - var f, obj = { - numFiniteBuckets: jspb.Message.getFieldWithDefault(msg, 1, 0), - width: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - offset: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Distribution.BucketOptions.Linear} - */ -proto.google.api.Distribution.BucketOptions.Linear.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Distribution.BucketOptions.Linear; - return proto.google.api.Distribution.BucketOptions.Linear.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Distribution.BucketOptions.Linear} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Distribution.BucketOptions.Linear} - */ -proto.google.api.Distribution.BucketOptions.Linear.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setNumFiniteBuckets(value); - break; - case 2: - var value = /** @type {number} */ (reader.readDouble()); - msg.setWidth(value); - break; - case 3: - var value = /** @type {number} */ (reader.readDouble()); - msg.setOffset(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Distribution.BucketOptions.Linear.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Distribution.BucketOptions.Linear.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Distribution.BucketOptions.Linear} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.BucketOptions.Linear.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNumFiniteBuckets(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getWidth(); - if (f !== 0.0) { - writer.writeDouble( - 2, - f - ); - } - f = message.getOffset(); - if (f !== 0.0) { - writer.writeDouble( - 3, - f - ); - } -}; - - -/** - * optional int32 num_finite_buckets = 1; - * @return {number} - */ -proto.google.api.Distribution.BucketOptions.Linear.prototype.getNumFiniteBuckets = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution.BucketOptions.Linear} returns this - */ -proto.google.api.Distribution.BucketOptions.Linear.prototype.setNumFiniteBuckets = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional double width = 2; - * @return {number} - */ -proto.google.api.Distribution.BucketOptions.Linear.prototype.getWidth = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution.BucketOptions.Linear} returns this - */ -proto.google.api.Distribution.BucketOptions.Linear.prototype.setWidth = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - -/** - * optional double offset = 3; - * @return {number} - */ -proto.google.api.Distribution.BucketOptions.Linear.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution.BucketOptions.Linear} returns this - */ -proto.google.api.Distribution.BucketOptions.Linear.prototype.setOffset = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Distribution.BucketOptions.Exponential.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Distribution.BucketOptions.Exponential.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Distribution.BucketOptions.Exponential} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.BucketOptions.Exponential.toObject = function(includeInstance, msg) { - var f, obj = { - numFiniteBuckets: jspb.Message.getFieldWithDefault(msg, 1, 0), - growthFactor: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - scale: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Distribution.BucketOptions.Exponential} - */ -proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Distribution.BucketOptions.Exponential; - return proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Distribution.BucketOptions.Exponential} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Distribution.BucketOptions.Exponential} - */ -proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setNumFiniteBuckets(value); - break; - case 2: - var value = /** @type {number} */ (reader.readDouble()); - msg.setGrowthFactor(value); - break; - case 3: - var value = /** @type {number} */ (reader.readDouble()); - msg.setScale(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Distribution.BucketOptions.Exponential.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Distribution.BucketOptions.Exponential.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Distribution.BucketOptions.Exponential} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.BucketOptions.Exponential.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNumFiniteBuckets(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getGrowthFactor(); - if (f !== 0.0) { - writer.writeDouble( - 2, - f - ); - } - f = message.getScale(); - if (f !== 0.0) { - writer.writeDouble( - 3, - f - ); - } -}; - - -/** - * optional int32 num_finite_buckets = 1; - * @return {number} - */ -proto.google.api.Distribution.BucketOptions.Exponential.prototype.getNumFiniteBuckets = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution.BucketOptions.Exponential} returns this - */ -proto.google.api.Distribution.BucketOptions.Exponential.prototype.setNumFiniteBuckets = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional double growth_factor = 2; - * @return {number} - */ -proto.google.api.Distribution.BucketOptions.Exponential.prototype.getGrowthFactor = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution.BucketOptions.Exponential} returns this - */ -proto.google.api.Distribution.BucketOptions.Exponential.prototype.setGrowthFactor = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - -/** - * optional double scale = 3; - * @return {number} - */ -proto.google.api.Distribution.BucketOptions.Exponential.prototype.getScale = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution.BucketOptions.Exponential} returns this - */ -proto.google.api.Distribution.BucketOptions.Exponential.prototype.setScale = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Distribution.BucketOptions.Explicit.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Distribution.BucketOptions.Explicit.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Distribution.BucketOptions.Explicit.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Distribution.BucketOptions.Explicit} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.BucketOptions.Explicit.toObject = function(includeInstance, msg) { - var f, obj = { - boundsList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 1)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Distribution.BucketOptions.Explicit} - */ -proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Distribution.BucketOptions.Explicit; - return proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Distribution.BucketOptions.Explicit} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Distribution.BucketOptions.Explicit} - */ -proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Array} */ (reader.readPackedDouble()); - msg.setBoundsList(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Distribution.BucketOptions.Explicit.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Distribution.BucketOptions.Explicit.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Distribution.BucketOptions.Explicit} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.BucketOptions.Explicit.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBoundsList(); - if (f.length > 0) { - writer.writePackedDouble( - 1, - f - ); - } -}; - - -/** - * repeated double bounds = 1; - * @return {!Array} - */ -proto.google.api.Distribution.BucketOptions.Explicit.prototype.getBoundsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Distribution.BucketOptions.Explicit} returns this - */ -proto.google.api.Distribution.BucketOptions.Explicit.prototype.setBoundsList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.google.api.Distribution.BucketOptions.Explicit} returns this - */ -proto.google.api.Distribution.BucketOptions.Explicit.prototype.addBounds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Distribution.BucketOptions.Explicit} returns this - */ -proto.google.api.Distribution.BucketOptions.Explicit.prototype.clearBoundsList = function() { - return this.setBoundsList([]); -}; - - -/** - * optional Linear linear_buckets = 1; - * @return {?proto.google.api.Distribution.BucketOptions.Linear} - */ -proto.google.api.Distribution.BucketOptions.prototype.getLinearBuckets = function() { - return /** @type{?proto.google.api.Distribution.BucketOptions.Linear} */ ( - jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions.Linear, 1)); -}; - - -/** - * @param {?proto.google.api.Distribution.BucketOptions.Linear|undefined} value - * @return {!proto.google.api.Distribution.BucketOptions} returns this -*/ -proto.google.api.Distribution.BucketOptions.prototype.setLinearBuckets = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.google.api.Distribution.BucketOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Distribution.BucketOptions} returns this - */ -proto.google.api.Distribution.BucketOptions.prototype.clearLinearBuckets = function() { - return this.setLinearBuckets(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Distribution.BucketOptions.prototype.hasLinearBuckets = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Exponential exponential_buckets = 2; - * @return {?proto.google.api.Distribution.BucketOptions.Exponential} - */ -proto.google.api.Distribution.BucketOptions.prototype.getExponentialBuckets = function() { - return /** @type{?proto.google.api.Distribution.BucketOptions.Exponential} */ ( - jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions.Exponential, 2)); -}; - - -/** - * @param {?proto.google.api.Distribution.BucketOptions.Exponential|undefined} value - * @return {!proto.google.api.Distribution.BucketOptions} returns this -*/ -proto.google.api.Distribution.BucketOptions.prototype.setExponentialBuckets = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.google.api.Distribution.BucketOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Distribution.BucketOptions} returns this - */ -proto.google.api.Distribution.BucketOptions.prototype.clearExponentialBuckets = function() { - return this.setExponentialBuckets(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Distribution.BucketOptions.prototype.hasExponentialBuckets = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional Explicit explicit_buckets = 3; - * @return {?proto.google.api.Distribution.BucketOptions.Explicit} - */ -proto.google.api.Distribution.BucketOptions.prototype.getExplicitBuckets = function() { - return /** @type{?proto.google.api.Distribution.BucketOptions.Explicit} */ ( - jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions.Explicit, 3)); -}; - - -/** - * @param {?proto.google.api.Distribution.BucketOptions.Explicit|undefined} value - * @return {!proto.google.api.Distribution.BucketOptions} returns this -*/ -proto.google.api.Distribution.BucketOptions.prototype.setExplicitBuckets = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.google.api.Distribution.BucketOptions.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Distribution.BucketOptions} returns this - */ -proto.google.api.Distribution.BucketOptions.prototype.clearExplicitBuckets = function() { - return this.setExplicitBuckets(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Distribution.BucketOptions.prototype.hasExplicitBuckets = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Distribution.Exemplar.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Distribution.Exemplar.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Distribution.Exemplar.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Distribution.Exemplar} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.Exemplar.toObject = function(includeInstance, msg) { - var f, obj = { - value: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), - timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - attachmentsList: jspb.Message.toObjectList(msg.getAttachmentsList(), - google_protobuf_any_pb.Any.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Distribution.Exemplar} - */ -proto.google.api.Distribution.Exemplar.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Distribution.Exemplar; - return proto.google.api.Distribution.Exemplar.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Distribution.Exemplar} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Distribution.Exemplar} - */ -proto.google.api.Distribution.Exemplar.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readDouble()); - msg.setValue(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTimestamp(value); - break; - case 3: - var value = new google_protobuf_any_pb.Any; - reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); - msg.addAttachments(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Distribution.Exemplar.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Distribution.Exemplar.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Distribution.Exemplar} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Distribution.Exemplar.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValue(); - if (f !== 0.0) { - writer.writeDouble( - 1, - f - ); - } - f = message.getTimestamp(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getAttachmentsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - google_protobuf_any_pb.Any.serializeBinaryToWriter - ); - } -}; - - -/** - * optional double value = 1; - * @return {number} - */ -proto.google.api.Distribution.Exemplar.prototype.getValue = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution.Exemplar} returns this - */ -proto.google.api.Distribution.Exemplar.prototype.setValue = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp timestamp = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.google.api.Distribution.Exemplar.prototype.getTimestamp = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.google.api.Distribution.Exemplar} returns this -*/ -proto.google.api.Distribution.Exemplar.prototype.setTimestamp = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Distribution.Exemplar} returns this - */ -proto.google.api.Distribution.Exemplar.prototype.clearTimestamp = function() { - return this.setTimestamp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Distribution.Exemplar.prototype.hasTimestamp = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * repeated google.protobuf.Any attachments = 3; - * @return {!Array} - */ -proto.google.api.Distribution.Exemplar.prototype.getAttachmentsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_protobuf_any_pb.Any, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Distribution.Exemplar} returns this -*/ -proto.google.api.Distribution.Exemplar.prototype.setAttachmentsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.google.protobuf.Any=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.Any} - */ -proto.google.api.Distribution.Exemplar.prototype.addAttachments = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.Any, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Distribution.Exemplar} returns this - */ -proto.google.api.Distribution.Exemplar.prototype.clearAttachmentsList = function() { - return this.setAttachmentsList([]); -}; - - -/** - * optional int64 count = 1; - * @return {number} - */ -proto.google.api.Distribution.prototype.getCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution} returns this - */ -proto.google.api.Distribution.prototype.setCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional double mean = 2; - * @return {number} - */ -proto.google.api.Distribution.prototype.getMean = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution} returns this - */ -proto.google.api.Distribution.prototype.setMean = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - -/** - * optional double sum_of_squared_deviation = 3; - * @return {number} - */ -proto.google.api.Distribution.prototype.getSumOfSquaredDeviation = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.Distribution} returns this - */ -proto.google.api.Distribution.prototype.setSumOfSquaredDeviation = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; - - -/** - * optional Range range = 4; - * @return {?proto.google.api.Distribution.Range} - */ -proto.google.api.Distribution.prototype.getRange = function() { - return /** @type{?proto.google.api.Distribution.Range} */ ( - jspb.Message.getWrapperField(this, proto.google.api.Distribution.Range, 4)); -}; - - -/** - * @param {?proto.google.api.Distribution.Range|undefined} value - * @return {!proto.google.api.Distribution} returns this -*/ -proto.google.api.Distribution.prototype.setRange = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Distribution} returns this - */ -proto.google.api.Distribution.prototype.clearRange = function() { - return this.setRange(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Distribution.prototype.hasRange = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional BucketOptions bucket_options = 6; - * @return {?proto.google.api.Distribution.BucketOptions} - */ -proto.google.api.Distribution.prototype.getBucketOptions = function() { - return /** @type{?proto.google.api.Distribution.BucketOptions} */ ( - jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions, 6)); -}; - - -/** - * @param {?proto.google.api.Distribution.BucketOptions|undefined} value - * @return {!proto.google.api.Distribution} returns this -*/ -proto.google.api.Distribution.prototype.setBucketOptions = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Distribution} returns this - */ -proto.google.api.Distribution.prototype.clearBucketOptions = function() { - return this.setBucketOptions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Distribution.prototype.hasBucketOptions = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * repeated int64 bucket_counts = 7; - * @return {!Array} - */ -proto.google.api.Distribution.prototype.getBucketCountsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Distribution} returns this - */ -proto.google.api.Distribution.prototype.setBucketCountsList = function(value) { - return jspb.Message.setField(this, 7, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.google.api.Distribution} returns this - */ -proto.google.api.Distribution.prototype.addBucketCounts = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 7, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Distribution} returns this - */ -proto.google.api.Distribution.prototype.clearBucketCountsList = function() { - return this.setBucketCountsList([]); -}; - - -/** - * repeated Exemplar exemplars = 10; - * @return {!Array} - */ -proto.google.api.Distribution.prototype.getExemplarsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Distribution.Exemplar, 10)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Distribution} returns this -*/ -proto.google.api.Distribution.prototype.setExemplarsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 10, value); -}; - - -/** - * @param {!proto.google.api.Distribution.Exemplar=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Distribution.Exemplar} - */ -proto.google.api.Distribution.prototype.addExemplars = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.google.api.Distribution.Exemplar, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Distribution} returns this - */ -proto.google.api.Distribution.prototype.clearExemplarsList = function() { - return this.setExemplarsList([]); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/documentation_grpc_pb.d.ts b/api/js/google/api/documentation_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/documentation_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/documentation_pb.d.ts b/api/js/google/api/documentation_pb.d.ts deleted file mode 100644 index 508c487f..00000000 --- a/api/js/google/api/documentation_pb.d.ts +++ /dev/null @@ -1,107 +0,0 @@ -// package: google.api -// file: google/api/documentation.proto - -import * as jspb from "google-protobuf"; - -export class Documentation extends jspb.Message { - getSummary(): string; - setSummary(value: string): void; - - clearPagesList(): void; - getPagesList(): Array; - setPagesList(value: Array): void; - addPages(value?: Page, index?: number): Page; - - clearRulesList(): void; - getRulesList(): Array; - setRulesList(value: Array): void; - addRules(value?: DocumentationRule, index?: number): DocumentationRule; - - getDocumentationRootUrl(): string; - setDocumentationRootUrl(value: string): void; - - getServiceRootUrl(): string; - setServiceRootUrl(value: string): void; - - getOverview(): string; - setOverview(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Documentation.AsObject; - static toObject(includeInstance: boolean, msg: Documentation): Documentation.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Documentation, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Documentation; - static deserializeBinaryFromReader(message: Documentation, reader: jspb.BinaryReader): Documentation; -} - -export namespace Documentation { - export type AsObject = { - summary: string, - pagesList: Array, - rulesList: Array, - documentationRootUrl: string, - serviceRootUrl: string, - overview: string, - } -} - -export class DocumentationRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getDeprecationDescription(): string; - setDeprecationDescription(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DocumentationRule.AsObject; - static toObject(includeInstance: boolean, msg: DocumentationRule): DocumentationRule.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DocumentationRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DocumentationRule; - static deserializeBinaryFromReader(message: DocumentationRule, reader: jspb.BinaryReader): DocumentationRule; -} - -export namespace DocumentationRule { - export type AsObject = { - selector: string, - description: string, - deprecationDescription: string, - } -} - -export class Page extends jspb.Message { - getName(): string; - setName(value: string): void; - - getContent(): string; - setContent(value: string): void; - - clearSubpagesList(): void; - getSubpagesList(): Array; - setSubpagesList(value: Array): void; - addSubpages(value?: Page, index?: number): Page; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Page.AsObject; - static toObject(includeInstance: boolean, msg: Page): Page.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Page, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Page; - static deserializeBinaryFromReader(message: Page, reader: jspb.BinaryReader): Page; -} - -export namespace Page { - export type AsObject = { - name: string, - content: string, - subpagesList: Array, - } -} - diff --git a/api/js/google/api/documentation_pb.js b/api/js/google/api/documentation_pb.js deleted file mode 100644 index e84f0a47..00000000 --- a/api/js/google/api/documentation_pb.js +++ /dev/null @@ -1,824 +0,0 @@ -// source: google/api/documentation.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Documentation', null, global); -goog.exportSymbol('proto.google.api.DocumentationRule', null, global); -goog.exportSymbol('proto.google.api.Page', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Documentation = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Documentation.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Documentation, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Documentation.displayName = 'proto.google.api.Documentation'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.DocumentationRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.DocumentationRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.DocumentationRule.displayName = 'proto.google.api.DocumentationRule'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Page = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Page.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Page, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Page.displayName = 'proto.google.api.Page'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Documentation.repeatedFields_ = [5,3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Documentation.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Documentation.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Documentation} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Documentation.toObject = function(includeInstance, msg) { - var f, obj = { - summary: jspb.Message.getFieldWithDefault(msg, 1, ""), - pagesList: jspb.Message.toObjectList(msg.getPagesList(), - proto.google.api.Page.toObject, includeInstance), - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.google.api.DocumentationRule.toObject, includeInstance), - documentationRootUrl: jspb.Message.getFieldWithDefault(msg, 4, ""), - serviceRootUrl: jspb.Message.getFieldWithDefault(msg, 6, ""), - overview: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Documentation} - */ -proto.google.api.Documentation.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Documentation; - return proto.google.api.Documentation.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Documentation} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Documentation} - */ -proto.google.api.Documentation.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSummary(value); - break; - case 5: - var value = new proto.google.api.Page; - reader.readMessage(value,proto.google.api.Page.deserializeBinaryFromReader); - msg.addPages(value); - break; - case 3: - var value = new proto.google.api.DocumentationRule; - reader.readMessage(value,proto.google.api.DocumentationRule.deserializeBinaryFromReader); - msg.addRules(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDocumentationRootUrl(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setServiceRootUrl(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setOverview(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Documentation.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Documentation.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Documentation} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Documentation.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSummary(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPagesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.google.api.Page.serializeBinaryToWriter - ); - } - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.google.api.DocumentationRule.serializeBinaryToWriter - ); - } - f = message.getDocumentationRootUrl(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getServiceRootUrl(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getOverview(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string summary = 1; - * @return {string} - */ -proto.google.api.Documentation.prototype.getSummary = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Documentation} returns this - */ -proto.google.api.Documentation.prototype.setSummary = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated Page pages = 5; - * @return {!Array} - */ -proto.google.api.Documentation.prototype.getPagesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Page, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Documentation} returns this -*/ -proto.google.api.Documentation.prototype.setPagesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.google.api.Page=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Page} - */ -proto.google.api.Documentation.prototype.addPages = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.api.Page, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Documentation} returns this - */ -proto.google.api.Documentation.prototype.clearPagesList = function() { - return this.setPagesList([]); -}; - - -/** - * repeated DocumentationRule rules = 3; - * @return {!Array} - */ -proto.google.api.Documentation.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.DocumentationRule, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Documentation} returns this -*/ -proto.google.api.Documentation.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.google.api.DocumentationRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.DocumentationRule} - */ -proto.google.api.Documentation.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.DocumentationRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Documentation} returns this - */ -proto.google.api.Documentation.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - -/** - * optional string documentation_root_url = 4; - * @return {string} - */ -proto.google.api.Documentation.prototype.getDocumentationRootUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Documentation} returns this - */ -proto.google.api.Documentation.prototype.setDocumentationRootUrl = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string service_root_url = 6; - * @return {string} - */ -proto.google.api.Documentation.prototype.getServiceRootUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Documentation} returns this - */ -proto.google.api.Documentation.prototype.setServiceRootUrl = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string overview = 2; - * @return {string} - */ -proto.google.api.Documentation.prototype.getOverview = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Documentation} returns this - */ -proto.google.api.Documentation.prototype.setOverview = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.DocumentationRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.DocumentationRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.DocumentationRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.DocumentationRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - deprecationDescription: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.DocumentationRule} - */ -proto.google.api.DocumentationRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.DocumentationRule; - return proto.google.api.DocumentationRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.DocumentationRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.DocumentationRule} - */ -proto.google.api.DocumentationRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDeprecationDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.DocumentationRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.DocumentationRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.DocumentationRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.DocumentationRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDeprecationDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.DocumentationRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.DocumentationRule} returns this - */ -proto.google.api.DocumentationRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.google.api.DocumentationRule.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.DocumentationRule} returns this - */ -proto.google.api.DocumentationRule.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string deprecation_description = 3; - * @return {string} - */ -proto.google.api.DocumentationRule.prototype.getDeprecationDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.DocumentationRule} returns this - */ -proto.google.api.DocumentationRule.prototype.setDeprecationDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Page.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Page.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Page.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Page} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Page.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - content: jspb.Message.getFieldWithDefault(msg, 2, ""), - subpagesList: jspb.Message.toObjectList(msg.getSubpagesList(), - proto.google.api.Page.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Page} - */ -proto.google.api.Page.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Page; - return proto.google.api.Page.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Page} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Page} - */ -proto.google.api.Page.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setContent(value); - break; - case 3: - var value = new proto.google.api.Page; - reader.readMessage(value,proto.google.api.Page.deserializeBinaryFromReader); - msg.addSubpages(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Page.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Page.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Page} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Page.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getContent(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSubpagesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.google.api.Page.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.api.Page.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Page} returns this - */ -proto.google.api.Page.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string content = 2; - * @return {string} - */ -proto.google.api.Page.prototype.getContent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Page} returns this - */ -proto.google.api.Page.prototype.setContent = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated Page subpages = 3; - * @return {!Array} - */ -proto.google.api.Page.prototype.getSubpagesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Page, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Page} returns this -*/ -proto.google.api.Page.prototype.setSubpagesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.google.api.Page=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Page} - */ -proto.google.api.Page.prototype.addSubpages = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.Page, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Page} returns this - */ -proto.google.api.Page.prototype.clearSubpagesList = function() { - return this.setSubpagesList([]); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/endpoint_grpc_pb.d.ts b/api/js/google/api/endpoint_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/endpoint_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/endpoint_pb.d.ts b/api/js/google/api/endpoint_pb.d.ts deleted file mode 100644 index 572ca440..00000000 --- a/api/js/google/api/endpoint_pb.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -// package: google.api -// file: google/api/endpoint.proto - -import * as jspb from "google-protobuf"; - -export class Endpoint extends jspb.Message { - getName(): string; - setName(value: string): void; - - clearAliasesList(): void; - getAliasesList(): Array; - setAliasesList(value: Array): void; - addAliases(value: string, index?: number): string; - - getTarget(): string; - setTarget(value: string): void; - - getAllowCors(): boolean; - setAllowCors(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Endpoint.AsObject; - static toObject(includeInstance: boolean, msg: Endpoint): Endpoint.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Endpoint, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Endpoint; - static deserializeBinaryFromReader(message: Endpoint, reader: jspb.BinaryReader): Endpoint; -} - -export namespace Endpoint { - export type AsObject = { - name: string, - aliasesList: Array, - target: string, - allowCors: boolean, - } -} - diff --git a/api/js/google/api/endpoint_pb.js b/api/js/google/api/endpoint_pb.js deleted file mode 100644 index 250da1f2..00000000 --- a/api/js/google/api/endpoint_pb.js +++ /dev/null @@ -1,283 +0,0 @@ -// source: google/api/endpoint.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Endpoint', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Endpoint = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Endpoint.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Endpoint, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Endpoint.displayName = 'proto.google.api.Endpoint'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Endpoint.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Endpoint.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Endpoint.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Endpoint} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Endpoint.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - aliasesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - target: jspb.Message.getFieldWithDefault(msg, 101, ""), - allowCors: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Endpoint} - */ -proto.google.api.Endpoint.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Endpoint; - return proto.google.api.Endpoint.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Endpoint} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Endpoint} - */ -proto.google.api.Endpoint.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addAliases(value); - break; - case 101: - var value = /** @type {string} */ (reader.readString()); - msg.setTarget(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAllowCors(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Endpoint.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Endpoint.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Endpoint} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Endpoint.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAliasesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getTarget(); - if (f.length > 0) { - writer.writeString( - 101, - f - ); - } - f = message.getAllowCors(); - if (f) { - writer.writeBool( - 5, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.api.Endpoint.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Endpoint} returns this - */ -proto.google.api.Endpoint.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string aliases = 2; - * @return {!Array} - */ -proto.google.api.Endpoint.prototype.getAliasesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Endpoint} returns this - */ -proto.google.api.Endpoint.prototype.setAliasesList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.Endpoint} returns this - */ -proto.google.api.Endpoint.prototype.addAliases = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Endpoint} returns this - */ -proto.google.api.Endpoint.prototype.clearAliasesList = function() { - return this.setAliasesList([]); -}; - - -/** - * optional string target = 101; - * @return {string} - */ -proto.google.api.Endpoint.prototype.getTarget = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 101, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Endpoint} returns this - */ -proto.google.api.Endpoint.prototype.setTarget = function(value) { - return jspb.Message.setProto3StringField(this, 101, value); -}; - - -/** - * optional bool allow_cors = 5; - * @return {boolean} - */ -proto.google.api.Endpoint.prototype.getAllowCors = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.api.Endpoint} returns this - */ -proto.google.api.Endpoint.prototype.setAllowCors = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/error_reason_grpc_pb.d.ts b/api/js/google/api/error_reason_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/error_reason_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/error_reason_pb.d.ts b/api/js/google/api/error_reason_pb.d.ts deleted file mode 100644 index 04835884..00000000 --- a/api/js/google/api/error_reason_pb.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -// package: google.api -// file: google/api/error_reason.proto - -import * as jspb from "google-protobuf"; - -export interface ErrorReasonMap { - ERROR_REASON_UNSPECIFIED: 0; - SERVICE_DISABLED: 1; - BILLING_DISABLED: 2; - API_KEY_INVALID: 3; - API_KEY_SERVICE_BLOCKED: 4; - API_KEY_HTTP_REFERRER_BLOCKED: 7; - API_KEY_IP_ADDRESS_BLOCKED: 8; - API_KEY_ANDROID_APP_BLOCKED: 9; - API_KEY_IOS_APP_BLOCKED: 13; - RATE_LIMIT_EXCEEDED: 5; - RESOURCE_QUOTA_EXCEEDED: 6; - LOCATION_TAX_POLICY_VIOLATED: 10; - USER_PROJECT_DENIED: 11; - CONSUMER_SUSPENDED: 12; - CONSUMER_INVALID: 14; - SECURITY_POLICY_VIOLATED: 15; - ACCESS_TOKEN_EXPIRED: 16; - ACCESS_TOKEN_SCOPE_INSUFFICIENT: 17; - ACCOUNT_STATE_INVALID: 18; - ACCESS_TOKEN_TYPE_UNSUPPORTED: 19; - CREDENTIALS_MISSING: 20; - RESOURCE_PROJECT_INVALID: 21; - SESSION_COOKIE_INVALID: 23; - USER_BLOCKED_BY_ADMIN: 24; - RESOURCE_USAGE_RESTRICTION_VIOLATED: 25; - SYSTEM_PARAMETER_UNSUPPORTED: 26; - ORG_RESTRICTION_VIOLATION: 27; - ORG_RESTRICTION_HEADER_INVALID: 28; - SERVICE_NOT_VISIBLE: 29; - GCP_SUSPENDED: 30; -} - -export const ErrorReason: ErrorReasonMap; - diff --git a/api/js/google/api/error_reason_pb.js b/api/js/google/api/error_reason_pb.js deleted file mode 100644 index 725ef6d8..00000000 --- a/api/js/google/api/error_reason_pb.js +++ /dev/null @@ -1,52 +0,0 @@ -// source: google/api/error_reason.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.ErrorReason', null, global); -/** - * @enum {number} - */ -proto.google.api.ErrorReason = { - ERROR_REASON_UNSPECIFIED: 0, - SERVICE_DISABLED: 1, - BILLING_DISABLED: 2, - API_KEY_INVALID: 3, - API_KEY_SERVICE_BLOCKED: 4, - API_KEY_HTTP_REFERRER_BLOCKED: 7, - API_KEY_IP_ADDRESS_BLOCKED: 8, - API_KEY_ANDROID_APP_BLOCKED: 9, - API_KEY_IOS_APP_BLOCKED: 13, - RATE_LIMIT_EXCEEDED: 5, - RESOURCE_QUOTA_EXCEEDED: 6, - LOCATION_TAX_POLICY_VIOLATED: 10, - USER_PROJECT_DENIED: 11, - CONSUMER_SUSPENDED: 12, - CONSUMER_INVALID: 14, - SECURITY_POLICY_VIOLATED: 15, - ACCESS_TOKEN_EXPIRED: 16, - ACCESS_TOKEN_SCOPE_INSUFFICIENT: 17, - ACCOUNT_STATE_INVALID: 18, - ACCESS_TOKEN_TYPE_UNSUPPORTED: 19, - CREDENTIALS_MISSING: 20, - RESOURCE_PROJECT_INVALID: 21, - SESSION_COOKIE_INVALID: 23, - USER_BLOCKED_BY_ADMIN: 24, - RESOURCE_USAGE_RESTRICTION_VIOLATED: 25, - SYSTEM_PARAMETER_UNSUPPORTED: 26, - ORG_RESTRICTION_VIOLATION: 27, - ORG_RESTRICTION_HEADER_INVALID: 28, - SERVICE_NOT_VISIBLE: 29, - GCP_SUSPENDED: 30 -}; - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/field_behavior_grpc_pb.d.ts b/api/js/google/api/field_behavior_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/field_behavior_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/field_behavior_pb.d.ts b/api/js/google/api/field_behavior_pb.d.ts deleted file mode 100644 index bf691081..00000000 --- a/api/js/google/api/field_behavior_pb.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -// package: google.api -// file: google/api/field_behavior.proto - -import * as jspb from "google-protobuf"; -import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; - - export const fieldBehavior: jspb.ExtensionFieldInfo; - -export interface FieldBehaviorMap { - FIELD_BEHAVIOR_UNSPECIFIED: 0; - OPTIONAL: 1; - REQUIRED: 2; - OUTPUT_ONLY: 3; - INPUT_ONLY: 4; - IMMUTABLE: 5; - UNORDERED_LIST: 6; - NON_EMPTY_DEFAULT: 7; -} - -export const FieldBehavior: FieldBehaviorMap; - diff --git a/api/js/google/api/field_behavior_pb.js b/api/js/google/api/field_behavior_pb.js deleted file mode 100644 index afb83b49..00000000 --- a/api/js/google/api/field_behavior_pb.js +++ /dev/null @@ -1,58 +0,0 @@ -// source: google/api/field_behavior.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); -goog.object.extend(proto, google_protobuf_descriptor_pb); -goog.exportSymbol('proto.google.api.FieldBehavior', null, global); -goog.exportSymbol('proto.google.api.fieldBehaviorList', null, global); -/** - * @enum {number} - */ -proto.google.api.FieldBehavior = { - FIELD_BEHAVIOR_UNSPECIFIED: 0, - OPTIONAL: 1, - REQUIRED: 2, - OUTPUT_ONLY: 3, - INPUT_ONLY: 4, - IMMUTABLE: 5, - UNORDERED_LIST: 6, - NON_EMPTY_DEFAULT: 7 -}; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `fieldBehaviorList`. - * @type {!jspb.ExtensionFieldInfo>} - */ -proto.google.api.fieldBehaviorList = new jspb.ExtensionFieldInfo( - 1052, - {fieldBehaviorList: 0}, - null, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - null), - 1); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[1052] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.fieldBehaviorList, - jspb.BinaryReader.prototype.readPackedEnum, - jspb.BinaryWriter.prototype.writePackedEnum, - undefined, - undefined, - true); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[1052] = proto.google.api.fieldBehaviorList; - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/http_grpc_pb.d.ts b/api/js/google/api/http_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/http_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/http_pb.d.ts b/api/js/google/api/http_pb.d.ts deleted file mode 100644 index 9236d7c3..00000000 --- a/api/js/google/api/http_pb.d.ts +++ /dev/null @@ -1,136 +0,0 @@ -// package: google.api -// file: google/api/http.proto - -import * as jspb from "google-protobuf"; - -export class Http extends jspb.Message { - clearRulesList(): void; - getRulesList(): Array; - setRulesList(value: Array): void; - addRules(value?: HttpRule, index?: number): HttpRule; - - getFullyDecodeReservedExpansion(): boolean; - setFullyDecodeReservedExpansion(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Http.AsObject; - static toObject(includeInstance: boolean, msg: Http): Http.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Http, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Http; - static deserializeBinaryFromReader(message: Http, reader: jspb.BinaryReader): Http; -} - -export namespace Http { - export type AsObject = { - rulesList: Array, - fullyDecodeReservedExpansion: boolean, - } -} - -export class HttpRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): void; - - hasGet(): boolean; - clearGet(): void; - getGet(): string; - setGet(value: string): void; - - hasPut(): boolean; - clearPut(): void; - getPut(): string; - setPut(value: string): void; - - hasPost(): boolean; - clearPost(): void; - getPost(): string; - setPost(value: string): void; - - hasDelete(): boolean; - clearDelete(): void; - getDelete(): string; - setDelete(value: string): void; - - hasPatch(): boolean; - clearPatch(): void; - getPatch(): string; - setPatch(value: string): void; - - hasCustom(): boolean; - clearCustom(): void; - getCustom(): CustomHttpPattern | undefined; - setCustom(value?: CustomHttpPattern): void; - - getBody(): string; - setBody(value: string): void; - - getResponseBody(): string; - setResponseBody(value: string): void; - - clearAdditionalBindingsList(): void; - getAdditionalBindingsList(): Array; - setAdditionalBindingsList(value: Array): void; - addAdditionalBindings(value?: HttpRule, index?: number): HttpRule; - - getPatternCase(): HttpRule.PatternCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HttpRule.AsObject; - static toObject(includeInstance: boolean, msg: HttpRule): HttpRule.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HttpRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HttpRule; - static deserializeBinaryFromReader(message: HttpRule, reader: jspb.BinaryReader): HttpRule; -} - -export namespace HttpRule { - export type AsObject = { - selector: string, - get: string, - put: string, - post: string, - pb_delete: string, - patch: string, - custom?: CustomHttpPattern.AsObject, - body: string, - responseBody: string, - additionalBindingsList: Array, - } - - export enum PatternCase { - PATTERN_NOT_SET = 0, - GET = 2, - PUT = 3, - POST = 4, - DELETE = 5, - PATCH = 6, - CUSTOM = 8, - } -} - -export class CustomHttpPattern extends jspb.Message { - getKind(): string; - setKind(value: string): void; - - getPath(): string; - setPath(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CustomHttpPattern.AsObject; - static toObject(includeInstance: boolean, msg: CustomHttpPattern): CustomHttpPattern.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CustomHttpPattern, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CustomHttpPattern; - static deserializeBinaryFromReader(message: CustomHttpPattern, reader: jspb.BinaryReader): CustomHttpPattern; -} - -export namespace CustomHttpPattern { - export type AsObject = { - kind: string, - path: string, - } -} - diff --git a/api/js/google/api/http_pb.js b/api/js/google/api/http_pb.js deleted file mode 100644 index b59093d9..00000000 --- a/api/js/google/api/http_pb.js +++ /dev/null @@ -1,1003 +0,0 @@ -// source: google/api/http.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.CustomHttpPattern', null, global); -goog.exportSymbol('proto.google.api.Http', null, global); -goog.exportSymbol('proto.google.api.HttpRule', null, global); -goog.exportSymbol('proto.google.api.HttpRule.PatternCase', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Http = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Http.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Http, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Http.displayName = 'proto.google.api.Http'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.HttpRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.HttpRule.repeatedFields_, proto.google.api.HttpRule.oneofGroups_); -}; -goog.inherits(proto.google.api.HttpRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.HttpRule.displayName = 'proto.google.api.HttpRule'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.CustomHttpPattern = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.CustomHttpPattern, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.CustomHttpPattern.displayName = 'proto.google.api.CustomHttpPattern'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Http.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Http.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Http.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Http} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Http.toObject = function(includeInstance, msg) { - var f, obj = { - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.google.api.HttpRule.toObject, includeInstance), - fullyDecodeReservedExpansion: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Http} - */ -proto.google.api.Http.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Http; - return proto.google.api.Http.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Http} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Http} - */ -proto.google.api.Http.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.HttpRule; - reader.readMessage(value,proto.google.api.HttpRule.deserializeBinaryFromReader); - msg.addRules(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setFullyDecodeReservedExpansion(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Http.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Http.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Http} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Http.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.api.HttpRule.serializeBinaryToWriter - ); - } - f = message.getFullyDecodeReservedExpansion(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * repeated HttpRule rules = 1; - * @return {!Array} - */ -proto.google.api.Http.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.HttpRule, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Http} returns this -*/ -proto.google.api.Http.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.api.HttpRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.HttpRule} - */ -proto.google.api.Http.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.HttpRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Http} returns this - */ -proto.google.api.Http.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - -/** - * optional bool fully_decode_reserved_expansion = 2; - * @return {boolean} - */ -proto.google.api.Http.prototype.getFullyDecodeReservedExpansion = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.api.Http} returns this - */ -proto.google.api.Http.prototype.setFullyDecodeReservedExpansion = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.HttpRule.repeatedFields_ = [11]; - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.google.api.HttpRule.oneofGroups_ = [[2,3,4,5,6,8]]; - -/** - * @enum {number} - */ -proto.google.api.HttpRule.PatternCase = { - PATTERN_NOT_SET: 0, - GET: 2, - PUT: 3, - POST: 4, - DELETE: 5, - PATCH: 6, - CUSTOM: 8 -}; - -/** - * @return {proto.google.api.HttpRule.PatternCase} - */ -proto.google.api.HttpRule.prototype.getPatternCase = function() { - return /** @type {proto.google.api.HttpRule.PatternCase} */(jspb.Message.computeOneofCase(this, proto.google.api.HttpRule.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.HttpRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.HttpRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.HttpRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.HttpRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - get: jspb.Message.getFieldWithDefault(msg, 2, ""), - put: jspb.Message.getFieldWithDefault(msg, 3, ""), - post: jspb.Message.getFieldWithDefault(msg, 4, ""), - pb_delete: jspb.Message.getFieldWithDefault(msg, 5, ""), - patch: jspb.Message.getFieldWithDefault(msg, 6, ""), - custom: (f = msg.getCustom()) && proto.google.api.CustomHttpPattern.toObject(includeInstance, f), - body: jspb.Message.getFieldWithDefault(msg, 7, ""), - responseBody: jspb.Message.getFieldWithDefault(msg, 12, ""), - additionalBindingsList: jspb.Message.toObjectList(msg.getAdditionalBindingsList(), - proto.google.api.HttpRule.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.HttpRule} - */ -proto.google.api.HttpRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.HttpRule; - return proto.google.api.HttpRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.HttpRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.HttpRule} - */ -proto.google.api.HttpRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGet(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setPut(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPost(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDelete(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setPatch(value); - break; - case 8: - var value = new proto.google.api.CustomHttpPattern; - reader.readMessage(value,proto.google.api.CustomHttpPattern.deserializeBinaryFromReader); - msg.setCustom(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setBody(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setResponseBody(value); - break; - case 11: - var value = new proto.google.api.HttpRule; - reader.readMessage(value,proto.google.api.HttpRule.deserializeBinaryFromReader); - msg.addAdditionalBindings(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.HttpRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.HttpRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.HttpRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.HttpRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeString( - 2, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeString( - 3, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeString( - 4, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 5)); - if (f != null) { - writer.writeString( - 5, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeString( - 6, - f - ); - } - f = message.getCustom(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.google.api.CustomHttpPattern.serializeBinaryToWriter - ); - } - f = message.getBody(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getResponseBody(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getAdditionalBindingsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 11, - f, - proto.google.api.HttpRule.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string get = 2; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getGet = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setGet = function(value) { - return jspb.Message.setOneofField(this, 2, proto.google.api.HttpRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearGet = function() { - return jspb.Message.setOneofField(this, 2, proto.google.api.HttpRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.HttpRule.prototype.hasGet = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string put = 3; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getPut = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setPut = function(value) { - return jspb.Message.setOneofField(this, 3, proto.google.api.HttpRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearPut = function() { - return jspb.Message.setOneofField(this, 3, proto.google.api.HttpRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.HttpRule.prototype.hasPut = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string post = 4; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getPost = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setPost = function(value) { - return jspb.Message.setOneofField(this, 4, proto.google.api.HttpRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearPost = function() { - return jspb.Message.setOneofField(this, 4, proto.google.api.HttpRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.HttpRule.prototype.hasPost = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string delete = 5; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getDelete = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setDelete = function(value) { - return jspb.Message.setOneofField(this, 5, proto.google.api.HttpRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearDelete = function() { - return jspb.Message.setOneofField(this, 5, proto.google.api.HttpRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.HttpRule.prototype.hasDelete = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional string patch = 6; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getPatch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setPatch = function(value) { - return jspb.Message.setOneofField(this, 6, proto.google.api.HttpRule.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearPatch = function() { - return jspb.Message.setOneofField(this, 6, proto.google.api.HttpRule.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.HttpRule.prototype.hasPatch = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional CustomHttpPattern custom = 8; - * @return {?proto.google.api.CustomHttpPattern} - */ -proto.google.api.HttpRule.prototype.getCustom = function() { - return /** @type{?proto.google.api.CustomHttpPattern} */ ( - jspb.Message.getWrapperField(this, proto.google.api.CustomHttpPattern, 8)); -}; - - -/** - * @param {?proto.google.api.CustomHttpPattern|undefined} value - * @return {!proto.google.api.HttpRule} returns this -*/ -proto.google.api.HttpRule.prototype.setCustom = function(value) { - return jspb.Message.setOneofWrapperField(this, 8, proto.google.api.HttpRule.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearCustom = function() { - return this.setCustom(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.HttpRule.prototype.hasCustom = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional string body = 7; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getBody = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setBody = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string response_body = 12; - * @return {string} - */ -proto.google.api.HttpRule.prototype.getResponseBody = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.setResponseBody = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * repeated HttpRule additional_bindings = 11; - * @return {!Array} - */ -proto.google.api.HttpRule.prototype.getAdditionalBindingsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.HttpRule, 11)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.HttpRule} returns this -*/ -proto.google.api.HttpRule.prototype.setAdditionalBindingsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 11, value); -}; - - -/** - * @param {!proto.google.api.HttpRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.HttpRule} - */ -proto.google.api.HttpRule.prototype.addAdditionalBindings = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.google.api.HttpRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.HttpRule} returns this - */ -proto.google.api.HttpRule.prototype.clearAdditionalBindingsList = function() { - return this.setAdditionalBindingsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.CustomHttpPattern.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.CustomHttpPattern.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.CustomHttpPattern} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.CustomHttpPattern.toObject = function(includeInstance, msg) { - var f, obj = { - kind: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.CustomHttpPattern} - */ -proto.google.api.CustomHttpPattern.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.CustomHttpPattern; - return proto.google.api.CustomHttpPattern.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.CustomHttpPattern} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.CustomHttpPattern} - */ -proto.google.api.CustomHttpPattern.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setKind(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.CustomHttpPattern.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.CustomHttpPattern.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.CustomHttpPattern} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.CustomHttpPattern.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKind(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string kind = 1; - * @return {string} - */ -proto.google.api.CustomHttpPattern.prototype.getKind = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.CustomHttpPattern} returns this - */ -proto.google.api.CustomHttpPattern.prototype.setKind = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path = 2; - * @return {string} - */ -proto.google.api.CustomHttpPattern.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.CustomHttpPattern} returns this - */ -proto.google.api.CustomHttpPattern.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/httpbody_grpc_pb.d.ts b/api/js/google/api/httpbody_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/httpbody_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/httpbody_pb.d.ts b/api/js/google/api/httpbody_pb.d.ts deleted file mode 100644 index f327f9b7..00000000 --- a/api/js/google/api/httpbody_pb.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -// package: google.api -// file: google/api/httpbody.proto - -import * as jspb from "google-protobuf"; -import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; - -export class HttpBody extends jspb.Message { - getContentType(): string; - setContentType(value: string): void; - - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): void; - - clearExtensionsList(): void; - getExtensionsList(): Array; - setExtensionsList(value: Array): void; - addExtensions(value?: google_protobuf_any_pb.Any, index?: number): google_protobuf_any_pb.Any; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HttpBody.AsObject; - static toObject(includeInstance: boolean, msg: HttpBody): HttpBody.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HttpBody, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HttpBody; - static deserializeBinaryFromReader(message: HttpBody, reader: jspb.BinaryReader): HttpBody; -} - -export namespace HttpBody { - export type AsObject = { - contentType: string, - data: Uint8Array | string, - extensionsList: Array, - } -} - diff --git a/api/js/google/api/httpbody_pb.js b/api/js/google/api/httpbody_pb.js deleted file mode 100644 index af6eaf27..00000000 --- a/api/js/google/api/httpbody_pb.js +++ /dev/null @@ -1,283 +0,0 @@ -// source: google/api/httpbody.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); -goog.object.extend(proto, google_protobuf_any_pb); -goog.exportSymbol('proto.google.api.HttpBody', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.HttpBody = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.HttpBody.repeatedFields_, null); -}; -goog.inherits(proto.google.api.HttpBody, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.HttpBody.displayName = 'proto.google.api.HttpBody'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.HttpBody.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.HttpBody.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.HttpBody.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.HttpBody} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.HttpBody.toObject = function(includeInstance, msg) { - var f, obj = { - contentType: jspb.Message.getFieldWithDefault(msg, 1, ""), - data: msg.getData_asB64(), - extensionsList: jspb.Message.toObjectList(msg.getExtensionsList(), - google_protobuf_any_pb.Any.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.HttpBody} - */ -proto.google.api.HttpBody.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.HttpBody; - return proto.google.api.HttpBody.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.HttpBody} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.HttpBody} - */ -proto.google.api.HttpBody.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setContentType(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 3: - var value = new google_protobuf_any_pb.Any; - reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); - msg.addExtensions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.HttpBody.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.HttpBody.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.HttpBody} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.HttpBody.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getContentType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getExtensionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - google_protobuf_any_pb.Any.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string content_type = 1; - * @return {string} - */ -proto.google.api.HttpBody.prototype.getContentType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.HttpBody} returns this - */ -proto.google.api.HttpBody.prototype.setContentType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes data = 2; - * @return {!(string|Uint8Array)} - */ -proto.google.api.HttpBody.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes data = 2; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.google.api.HttpBody.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.google.api.HttpBody.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.google.api.HttpBody} returns this - */ -proto.google.api.HttpBody.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * repeated google.protobuf.Any extensions = 3; - * @return {!Array} - */ -proto.google.api.HttpBody.prototype.getExtensionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_protobuf_any_pb.Any, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.HttpBody} returns this -*/ -proto.google.api.HttpBody.prototype.setExtensionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.google.protobuf.Any=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.Any} - */ -proto.google.api.HttpBody.prototype.addExtensions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.Any, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.HttpBody} returns this - */ -proto.google.api.HttpBody.prototype.clearExtensionsList = function() { - return this.setExtensionsList([]); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/label_grpc_pb.d.ts b/api/js/google/api/label_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/label_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/label_pb.d.ts b/api/js/google/api/label_pb.d.ts deleted file mode 100644 index 2ccf4de0..00000000 --- a/api/js/google/api/label_pb.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -// package: google.api -// file: google/api/label.proto - -import * as jspb from "google-protobuf"; - -export class LabelDescriptor extends jspb.Message { - getKey(): string; - setKey(value: string): void; - - getValueType(): LabelDescriptor.ValueTypeMap[keyof LabelDescriptor.ValueTypeMap]; - setValueType(value: LabelDescriptor.ValueTypeMap[keyof LabelDescriptor.ValueTypeMap]): void; - - getDescription(): string; - setDescription(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LabelDescriptor.AsObject; - static toObject(includeInstance: boolean, msg: LabelDescriptor): LabelDescriptor.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LabelDescriptor, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LabelDescriptor; - static deserializeBinaryFromReader(message: LabelDescriptor, reader: jspb.BinaryReader): LabelDescriptor; -} - -export namespace LabelDescriptor { - export type AsObject = { - key: string, - valueType: LabelDescriptor.ValueTypeMap[keyof LabelDescriptor.ValueTypeMap], - description: string, - } - - export interface ValueTypeMap { - STRING: 0; - BOOL: 1; - INT64: 2; - } - - export const ValueType: ValueTypeMap; -} - diff --git a/api/js/google/api/label_pb.js b/api/js/google/api/label_pb.js deleted file mode 100644 index 3a1749f2..00000000 --- a/api/js/google/api/label_pb.js +++ /dev/null @@ -1,237 +0,0 @@ -// source: google/api/label.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.LabelDescriptor', null, global); -goog.exportSymbol('proto.google.api.LabelDescriptor.ValueType', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.LabelDescriptor = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.LabelDescriptor, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.LabelDescriptor.displayName = 'proto.google.api.LabelDescriptor'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.LabelDescriptor.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.LabelDescriptor.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.LabelDescriptor} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.LabelDescriptor.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, ""), - valueType: jspb.Message.getFieldWithDefault(msg, 2, 0), - description: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.LabelDescriptor} - */ -proto.google.api.LabelDescriptor.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.LabelDescriptor; - return proto.google.api.LabelDescriptor.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.LabelDescriptor} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.LabelDescriptor} - */ -proto.google.api.LabelDescriptor.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 2: - var value = /** @type {!proto.google.api.LabelDescriptor.ValueType} */ (reader.readEnum()); - msg.setValueType(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.LabelDescriptor.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.LabelDescriptor.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.LabelDescriptor} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.LabelDescriptor.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getValueType(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.google.api.LabelDescriptor.ValueType = { - STRING: 0, - BOOL: 1, - INT64: 2 -}; - -/** - * optional string key = 1; - * @return {string} - */ -proto.google.api.LabelDescriptor.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.LabelDescriptor} returns this - */ -proto.google.api.LabelDescriptor.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional ValueType value_type = 2; - * @return {!proto.google.api.LabelDescriptor.ValueType} - */ -proto.google.api.LabelDescriptor.prototype.getValueType = function() { - return /** @type {!proto.google.api.LabelDescriptor.ValueType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.google.api.LabelDescriptor.ValueType} value - * @return {!proto.google.api.LabelDescriptor} returns this - */ -proto.google.api.LabelDescriptor.prototype.setValueType = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.google.api.LabelDescriptor.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.LabelDescriptor} returns this - */ -proto.google.api.LabelDescriptor.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/launch_stage_grpc_pb.d.ts b/api/js/google/api/launch_stage_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/launch_stage_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/launch_stage_pb.d.ts b/api/js/google/api/launch_stage_pb.d.ts deleted file mode 100644 index 639c5477..00000000 --- a/api/js/google/api/launch_stage_pb.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -// package: google.api -// file: google/api/launch_stage.proto - -import * as jspb from "google-protobuf"; - -export interface LaunchStageMap { - LAUNCH_STAGE_UNSPECIFIED: 0; - UNIMPLEMENTED: 6; - PRELAUNCH: 7; - EARLY_ACCESS: 1; - ALPHA: 2; - BETA: 3; - GA: 4; - DEPRECATED: 5; -} - -export const LaunchStage: LaunchStageMap; - diff --git a/api/js/google/api/launch_stage_pb.js b/api/js/google/api/launch_stage_pb.js deleted file mode 100644 index d9c6f688..00000000 --- a/api/js/google/api/launch_stage_pb.js +++ /dev/null @@ -1,30 +0,0 @@ -// source: google/api/launch_stage.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.LaunchStage', null, global); -/** - * @enum {number} - */ -proto.google.api.LaunchStage = { - LAUNCH_STAGE_UNSPECIFIED: 0, - UNIMPLEMENTED: 6, - PRELAUNCH: 7, - EARLY_ACCESS: 1, - ALPHA: 2, - BETA: 3, - GA: 4, - DEPRECATED: 5 -}; - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/log_grpc_pb.d.ts b/api/js/google/api/log_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/log_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/log_pb.d.ts b/api/js/google/api/log_pb.d.ts deleted file mode 100644 index 2d9d053a..00000000 --- a/api/js/google/api/log_pb.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -// package: google.api -// file: google/api/log.proto - -import * as jspb from "google-protobuf"; -import * as google_api_label_pb from "../../google/api/label_pb"; - -export class LogDescriptor extends jspb.Message { - getName(): string; - setName(value: string): void; - - clearLabelsList(): void; - getLabelsList(): Array; - setLabelsList(value: Array): void; - addLabels(value?: google_api_label_pb.LabelDescriptor, index?: number): google_api_label_pb.LabelDescriptor; - - getDescription(): string; - setDescription(value: string): void; - - getDisplayName(): string; - setDisplayName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LogDescriptor.AsObject; - static toObject(includeInstance: boolean, msg: LogDescriptor): LogDescriptor.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LogDescriptor, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LogDescriptor; - static deserializeBinaryFromReader(message: LogDescriptor, reader: jspb.BinaryReader): LogDescriptor; -} - -export namespace LogDescriptor { - export type AsObject = { - name: string, - labelsList: Array, - description: string, - displayName: string, - } -} - diff --git a/api/js/google/api/log_pb.js b/api/js/google/api/log_pb.js deleted file mode 100644 index c0896682..00000000 --- a/api/js/google/api/log_pb.js +++ /dev/null @@ -1,289 +0,0 @@ -// source: google/api/log.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_label_pb = require('../../google/api/label_pb.js'); -goog.object.extend(proto, google_api_label_pb); -goog.exportSymbol('proto.google.api.LogDescriptor', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.LogDescriptor = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.LogDescriptor.repeatedFields_, null); -}; -goog.inherits(proto.google.api.LogDescriptor, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.LogDescriptor.displayName = 'proto.google.api.LogDescriptor'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.LogDescriptor.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.LogDescriptor.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.LogDescriptor.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.LogDescriptor} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.LogDescriptor.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - labelsList: jspb.Message.toObjectList(msg.getLabelsList(), - google_api_label_pb.LabelDescriptor.toObject, includeInstance), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.LogDescriptor} - */ -proto.google.api.LogDescriptor.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.LogDescriptor; - return proto.google.api.LogDescriptor.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.LogDescriptor} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.LogDescriptor} - */ -proto.google.api.LogDescriptor.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = new google_api_label_pb.LabelDescriptor; - reader.readMessage(value,google_api_label_pb.LabelDescriptor.deserializeBinaryFromReader); - msg.addLabels(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.LogDescriptor.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.LogDescriptor.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.LogDescriptor} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.LogDescriptor.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLabelsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - google_api_label_pb.LabelDescriptor.serializeBinaryToWriter - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.api.LogDescriptor.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.LogDescriptor} returns this - */ -proto.google.api.LogDescriptor.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated LabelDescriptor labels = 2; - * @return {!Array} - */ -proto.google.api.LogDescriptor.prototype.getLabelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_api_label_pb.LabelDescriptor, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.LogDescriptor} returns this -*/ -proto.google.api.LogDescriptor.prototype.setLabelsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.api.LabelDescriptor=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.LabelDescriptor} - */ -proto.google.api.LogDescriptor.prototype.addLabels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.LabelDescriptor, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.LogDescriptor} returns this - */ -proto.google.api.LogDescriptor.prototype.clearLabelsList = function() { - return this.setLabelsList([]); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.google.api.LogDescriptor.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.LogDescriptor} returns this - */ -proto.google.api.LogDescriptor.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string display_name = 4; - * @return {string} - */ -proto.google.api.LogDescriptor.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.LogDescriptor} returns this - */ -proto.google.api.LogDescriptor.prototype.setDisplayName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/logging_grpc_pb.d.ts b/api/js/google/api/logging_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/logging_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/logging_pb.d.ts b/api/js/google/api/logging_pb.d.ts deleted file mode 100644 index c706491b..00000000 --- a/api/js/google/api/logging_pb.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -// package: google.api -// file: google/api/logging.proto - -import * as jspb from "google-protobuf"; - -export class Logging extends jspb.Message { - clearProducerDestinationsList(): void; - getProducerDestinationsList(): Array; - setProducerDestinationsList(value: Array): void; - addProducerDestinations(value?: Logging.LoggingDestination, index?: number): Logging.LoggingDestination; - - clearConsumerDestinationsList(): void; - getConsumerDestinationsList(): Array; - setConsumerDestinationsList(value: Array): void; - addConsumerDestinations(value?: Logging.LoggingDestination, index?: number): Logging.LoggingDestination; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Logging.AsObject; - static toObject(includeInstance: boolean, msg: Logging): Logging.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Logging, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Logging; - static deserializeBinaryFromReader(message: Logging, reader: jspb.BinaryReader): Logging; -} - -export namespace Logging { - export type AsObject = { - producerDestinationsList: Array, - consumerDestinationsList: Array, - } - - export class LoggingDestination extends jspb.Message { - getMonitoredResource(): string; - setMonitoredResource(value: string): void; - - clearLogsList(): void; - getLogsList(): Array; - setLogsList(value: Array): void; - addLogs(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoggingDestination.AsObject; - static toObject(includeInstance: boolean, msg: LoggingDestination): LoggingDestination.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LoggingDestination, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoggingDestination; - static deserializeBinaryFromReader(message: LoggingDestination, reader: jspb.BinaryReader): LoggingDestination; - } - - export namespace LoggingDestination { - export type AsObject = { - monitoredResource: string, - logsList: Array, - } - } -} - diff --git a/api/js/google/api/logging_pb.js b/api/js/google/api/logging_pb.js deleted file mode 100644 index 59a125b3..00000000 --- a/api/js/google/api/logging_pb.js +++ /dev/null @@ -1,458 +0,0 @@ -// source: google/api/logging.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Logging', null, global); -goog.exportSymbol('proto.google.api.Logging.LoggingDestination', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Logging = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Logging.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Logging, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Logging.displayName = 'proto.google.api.Logging'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Logging.LoggingDestination = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Logging.LoggingDestination.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Logging.LoggingDestination, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Logging.LoggingDestination.displayName = 'proto.google.api.Logging.LoggingDestination'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Logging.repeatedFields_ = [1,2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Logging.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Logging.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Logging} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Logging.toObject = function(includeInstance, msg) { - var f, obj = { - producerDestinationsList: jspb.Message.toObjectList(msg.getProducerDestinationsList(), - proto.google.api.Logging.LoggingDestination.toObject, includeInstance), - consumerDestinationsList: jspb.Message.toObjectList(msg.getConsumerDestinationsList(), - proto.google.api.Logging.LoggingDestination.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Logging} - */ -proto.google.api.Logging.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Logging; - return proto.google.api.Logging.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Logging} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Logging} - */ -proto.google.api.Logging.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.Logging.LoggingDestination; - reader.readMessage(value,proto.google.api.Logging.LoggingDestination.deserializeBinaryFromReader); - msg.addProducerDestinations(value); - break; - case 2: - var value = new proto.google.api.Logging.LoggingDestination; - reader.readMessage(value,proto.google.api.Logging.LoggingDestination.deserializeBinaryFromReader); - msg.addConsumerDestinations(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Logging.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Logging.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Logging} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Logging.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProducerDestinationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.api.Logging.LoggingDestination.serializeBinaryToWriter - ); - } - f = message.getConsumerDestinationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.google.api.Logging.LoggingDestination.serializeBinaryToWriter - ); - } -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Logging.LoggingDestination.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Logging.LoggingDestination.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Logging.LoggingDestination.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Logging.LoggingDestination} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Logging.LoggingDestination.toObject = function(includeInstance, msg) { - var f, obj = { - monitoredResource: jspb.Message.getFieldWithDefault(msg, 3, ""), - logsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Logging.LoggingDestination} - */ -proto.google.api.Logging.LoggingDestination.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Logging.LoggingDestination; - return proto.google.api.Logging.LoggingDestination.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Logging.LoggingDestination} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Logging.LoggingDestination} - */ -proto.google.api.Logging.LoggingDestination.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setMonitoredResource(value); - break; - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addLogs(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Logging.LoggingDestination.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Logging.LoggingDestination.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Logging.LoggingDestination} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Logging.LoggingDestination.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMonitoredResource(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getLogsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } -}; - - -/** - * optional string monitored_resource = 3; - * @return {string} - */ -proto.google.api.Logging.LoggingDestination.prototype.getMonitoredResource = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Logging.LoggingDestination} returns this - */ -proto.google.api.Logging.LoggingDestination.prototype.setMonitoredResource = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated string logs = 1; - * @return {!Array} - */ -proto.google.api.Logging.LoggingDestination.prototype.getLogsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Logging.LoggingDestination} returns this - */ -proto.google.api.Logging.LoggingDestination.prototype.setLogsList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.Logging.LoggingDestination} returns this - */ -proto.google.api.Logging.LoggingDestination.prototype.addLogs = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Logging.LoggingDestination} returns this - */ -proto.google.api.Logging.LoggingDestination.prototype.clearLogsList = function() { - return this.setLogsList([]); -}; - - -/** - * repeated LoggingDestination producer_destinations = 1; - * @return {!Array} - */ -proto.google.api.Logging.prototype.getProducerDestinationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Logging.LoggingDestination, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Logging} returns this -*/ -proto.google.api.Logging.prototype.setProducerDestinationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.api.Logging.LoggingDestination=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Logging.LoggingDestination} - */ -proto.google.api.Logging.prototype.addProducerDestinations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.Logging.LoggingDestination, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Logging} returns this - */ -proto.google.api.Logging.prototype.clearProducerDestinationsList = function() { - return this.setProducerDestinationsList([]); -}; - - -/** - * repeated LoggingDestination consumer_destinations = 2; - * @return {!Array} - */ -proto.google.api.Logging.prototype.getConsumerDestinationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Logging.LoggingDestination, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Logging} returns this -*/ -proto.google.api.Logging.prototype.setConsumerDestinationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.api.Logging.LoggingDestination=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Logging.LoggingDestination} - */ -proto.google.api.Logging.prototype.addConsumerDestinations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.Logging.LoggingDestination, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Logging} returns this - */ -proto.google.api.Logging.prototype.clearConsumerDestinationsList = function() { - return this.setConsumerDestinationsList([]); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/metric_grpc_pb.d.ts b/api/js/google/api/metric_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/metric_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/metric_pb.d.ts b/api/js/google/api/metric_pb.d.ts deleted file mode 100644 index ccadee30..00000000 --- a/api/js/google/api/metric_pb.d.ts +++ /dev/null @@ -1,150 +0,0 @@ -// package: google.api -// file: google/api/metric.proto - -import * as jspb from "google-protobuf"; -import * as google_api_label_pb from "../../google/api/label_pb"; -import * as google_api_launch_stage_pb from "../../google/api/launch_stage_pb"; -import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb"; - -export class MetricDescriptor extends jspb.Message { - getName(): string; - setName(value: string): void; - - getType(): string; - setType(value: string): void; - - clearLabelsList(): void; - getLabelsList(): Array; - setLabelsList(value: Array): void; - addLabels(value?: google_api_label_pb.LabelDescriptor, index?: number): google_api_label_pb.LabelDescriptor; - - getMetricKind(): MetricDescriptor.MetricKindMap[keyof MetricDescriptor.MetricKindMap]; - setMetricKind(value: MetricDescriptor.MetricKindMap[keyof MetricDescriptor.MetricKindMap]): void; - - getValueType(): MetricDescriptor.ValueTypeMap[keyof MetricDescriptor.ValueTypeMap]; - setValueType(value: MetricDescriptor.ValueTypeMap[keyof MetricDescriptor.ValueTypeMap]): void; - - getUnit(): string; - setUnit(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getDisplayName(): string; - setDisplayName(value: string): void; - - hasMetadata(): boolean; - clearMetadata(): void; - getMetadata(): MetricDescriptor.MetricDescriptorMetadata | undefined; - setMetadata(value?: MetricDescriptor.MetricDescriptorMetadata): void; - - getLaunchStage(): google_api_launch_stage_pb.LaunchStageMap[keyof google_api_launch_stage_pb.LaunchStageMap]; - setLaunchStage(value: google_api_launch_stage_pb.LaunchStageMap[keyof google_api_launch_stage_pb.LaunchStageMap]): void; - - clearMonitoredResourceTypesList(): void; - getMonitoredResourceTypesList(): Array; - setMonitoredResourceTypesList(value: Array): void; - addMonitoredResourceTypes(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MetricDescriptor.AsObject; - static toObject(includeInstance: boolean, msg: MetricDescriptor): MetricDescriptor.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MetricDescriptor, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MetricDescriptor; - static deserializeBinaryFromReader(message: MetricDescriptor, reader: jspb.BinaryReader): MetricDescriptor; -} - -export namespace MetricDescriptor { - export type AsObject = { - name: string, - type: string, - labelsList: Array, - metricKind: MetricDescriptor.MetricKindMap[keyof MetricDescriptor.MetricKindMap], - valueType: MetricDescriptor.ValueTypeMap[keyof MetricDescriptor.ValueTypeMap], - unit: string, - description: string, - displayName: string, - metadata?: MetricDescriptor.MetricDescriptorMetadata.AsObject, - launchStage: google_api_launch_stage_pb.LaunchStageMap[keyof google_api_launch_stage_pb.LaunchStageMap], - monitoredResourceTypesList: Array, - } - - export class MetricDescriptorMetadata extends jspb.Message { - getLaunchStage(): google_api_launch_stage_pb.LaunchStageMap[keyof google_api_launch_stage_pb.LaunchStageMap]; - setLaunchStage(value: google_api_launch_stage_pb.LaunchStageMap[keyof google_api_launch_stage_pb.LaunchStageMap]): void; - - hasSamplePeriod(): boolean; - clearSamplePeriod(): void; - getSamplePeriod(): google_protobuf_duration_pb.Duration | undefined; - setSamplePeriod(value?: google_protobuf_duration_pb.Duration): void; - - hasIngestDelay(): boolean; - clearIngestDelay(): void; - getIngestDelay(): google_protobuf_duration_pb.Duration | undefined; - setIngestDelay(value?: google_protobuf_duration_pb.Duration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MetricDescriptorMetadata.AsObject; - static toObject(includeInstance: boolean, msg: MetricDescriptorMetadata): MetricDescriptorMetadata.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MetricDescriptorMetadata, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MetricDescriptorMetadata; - static deserializeBinaryFromReader(message: MetricDescriptorMetadata, reader: jspb.BinaryReader): MetricDescriptorMetadata; - } - - export namespace MetricDescriptorMetadata { - export type AsObject = { - launchStage: google_api_launch_stage_pb.LaunchStageMap[keyof google_api_launch_stage_pb.LaunchStageMap], - samplePeriod?: google_protobuf_duration_pb.Duration.AsObject, - ingestDelay?: google_protobuf_duration_pb.Duration.AsObject, - } - } - - export interface MetricKindMap { - METRIC_KIND_UNSPECIFIED: 0; - GAUGE: 1; - DELTA: 2; - CUMULATIVE: 3; - } - - export const MetricKind: MetricKindMap; - - export interface ValueTypeMap { - VALUE_TYPE_UNSPECIFIED: 0; - BOOL: 1; - INT64: 2; - DOUBLE: 3; - STRING: 4; - DISTRIBUTION: 5; - MONEY: 6; - } - - export const ValueType: ValueTypeMap; -} - -export class Metric extends jspb.Message { - getType(): string; - setType(value: string): void; - - getLabelsMap(): jspb.Map; - clearLabelsMap(): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Metric.AsObject; - static toObject(includeInstance: boolean, msg: Metric): Metric.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Metric, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Metric; - static deserializeBinaryFromReader(message: Metric, reader: jspb.BinaryReader): Metric; -} - -export namespace Metric { - export type AsObject = { - type: string, - labelsMap: Array<[string, string]>, - } -} - diff --git a/api/js/google/api/metric_pb.js b/api/js/google/api/metric_pb.js deleted file mode 100644 index d9b9fe1b..00000000 --- a/api/js/google/api/metric_pb.js +++ /dev/null @@ -1,1007 +0,0 @@ -// source: google/api/metric.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_label_pb = require('../../google/api/label_pb.js'); -goog.object.extend(proto, google_api_label_pb); -var google_api_launch_stage_pb = require('../../google/api/launch_stage_pb.js'); -goog.object.extend(proto, google_api_launch_stage_pb); -var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); -goog.object.extend(proto, google_protobuf_duration_pb); -goog.exportSymbol('proto.google.api.Metric', null, global); -goog.exportSymbol('proto.google.api.MetricDescriptor', null, global); -goog.exportSymbol('proto.google.api.MetricDescriptor.MetricDescriptorMetadata', null, global); -goog.exportSymbol('proto.google.api.MetricDescriptor.MetricKind', null, global); -goog.exportSymbol('proto.google.api.MetricDescriptor.ValueType', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.MetricDescriptor = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.MetricDescriptor.repeatedFields_, null); -}; -goog.inherits(proto.google.api.MetricDescriptor, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.MetricDescriptor.displayName = 'proto.google.api.MetricDescriptor'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.MetricDescriptor.MetricDescriptorMetadata, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.MetricDescriptor.MetricDescriptorMetadata.displayName = 'proto.google.api.MetricDescriptor.MetricDescriptorMetadata'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Metric = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.Metric, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Metric.displayName = 'proto.google.api.Metric'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.MetricDescriptor.repeatedFields_ = [2,13]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.MetricDescriptor.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.MetricDescriptor.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.MetricDescriptor} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MetricDescriptor.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - type: jspb.Message.getFieldWithDefault(msg, 8, ""), - labelsList: jspb.Message.toObjectList(msg.getLabelsList(), - google_api_label_pb.LabelDescriptor.toObject, includeInstance), - metricKind: jspb.Message.getFieldWithDefault(msg, 3, 0), - valueType: jspb.Message.getFieldWithDefault(msg, 4, 0), - unit: jspb.Message.getFieldWithDefault(msg, 5, ""), - description: jspb.Message.getFieldWithDefault(msg, 6, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 7, ""), - metadata: (f = msg.getMetadata()) && proto.google.api.MetricDescriptor.MetricDescriptorMetadata.toObject(includeInstance, f), - launchStage: jspb.Message.getFieldWithDefault(msg, 12, 0), - monitoredResourceTypesList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.MetricDescriptor} - */ -proto.google.api.MetricDescriptor.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.MetricDescriptor; - return proto.google.api.MetricDescriptor.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.MetricDescriptor} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.MetricDescriptor} - */ -proto.google.api.MetricDescriptor.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 2: - var value = new google_api_label_pb.LabelDescriptor; - reader.readMessage(value,google_api_label_pb.LabelDescriptor.deserializeBinaryFromReader); - msg.addLabels(value); - break; - case 3: - var value = /** @type {!proto.google.api.MetricDescriptor.MetricKind} */ (reader.readEnum()); - msg.setMetricKind(value); - break; - case 4: - var value = /** @type {!proto.google.api.MetricDescriptor.ValueType} */ (reader.readEnum()); - msg.setValueType(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setUnit(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - case 10: - var value = new proto.google.api.MetricDescriptor.MetricDescriptorMetadata; - reader.readMessage(value,proto.google.api.MetricDescriptor.MetricDescriptorMetadata.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - case 12: - var value = /** @type {!proto.google.api.LaunchStage} */ (reader.readEnum()); - msg.setLaunchStage(value); - break; - case 13: - var value = /** @type {string} */ (reader.readString()); - msg.addMonitoredResourceTypes(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.MetricDescriptor.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.MetricDescriptor.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.MetricDescriptor} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MetricDescriptor.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getLabelsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - google_api_label_pb.LabelDescriptor.serializeBinaryToWriter - ); - } - f = message.getMetricKind(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getValueType(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getUnit(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 10, - f, - proto.google.api.MetricDescriptor.MetricDescriptorMetadata.serializeBinaryToWriter - ); - } - f = message.getLaunchStage(); - if (f !== 0.0) { - writer.writeEnum( - 12, - f - ); - } - f = message.getMonitoredResourceTypesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 13, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.google.api.MetricDescriptor.MetricKind = { - METRIC_KIND_UNSPECIFIED: 0, - GAUGE: 1, - DELTA: 2, - CUMULATIVE: 3 -}; - -/** - * @enum {number} - */ -proto.google.api.MetricDescriptor.ValueType = { - VALUE_TYPE_UNSPECIFIED: 0, - BOOL: 1, - INT64: 2, - DOUBLE: 3, - STRING: 4, - DISTRIBUTION: 5, - MONEY: 6 -}; - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.MetricDescriptor.MetricDescriptorMetadata.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.toObject = function(includeInstance, msg) { - var f, obj = { - launchStage: jspb.Message.getFieldWithDefault(msg, 1, 0), - samplePeriod: (f = msg.getSamplePeriod()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), - ingestDelay: (f = msg.getIngestDelay()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.MetricDescriptor.MetricDescriptorMetadata; - return proto.google.api.MetricDescriptor.MetricDescriptorMetadata.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.google.api.LaunchStage} */ (reader.readEnum()); - msg.setLaunchStage(value); - break; - case 2: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setSamplePeriod(value); - break; - case 3: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setIngestDelay(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.MetricDescriptor.MetricDescriptorMetadata.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLaunchStage(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getSamplePeriod(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } - f = message.getIngestDelay(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional LaunchStage launch_stage = 1; - * @return {!proto.google.api.LaunchStage} - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.getLaunchStage = function() { - return /** @type {!proto.google.api.LaunchStage} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.google.api.LaunchStage} value - * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} returns this - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.setLaunchStage = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional google.protobuf.Duration sample_period = 2; - * @return {?proto.google.protobuf.Duration} - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.getSamplePeriod = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} returns this -*/ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.setSamplePeriod = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} returns this - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.clearSamplePeriod = function() { - return this.setSamplePeriod(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.hasSamplePeriod = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Duration ingest_delay = 3; - * @return {?proto.google.protobuf.Duration} - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.getIngestDelay = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} returns this -*/ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.setIngestDelay = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} returns this - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.clearIngestDelay = function() { - return this.setIngestDelay(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.hasIngestDelay = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.api.MetricDescriptor.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string type = 8; - * @return {string} - */ -proto.google.api.MetricDescriptor.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * repeated LabelDescriptor labels = 2; - * @return {!Array} - */ -proto.google.api.MetricDescriptor.prototype.getLabelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_api_label_pb.LabelDescriptor, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.MetricDescriptor} returns this -*/ -proto.google.api.MetricDescriptor.prototype.setLabelsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.api.LabelDescriptor=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.LabelDescriptor} - */ -proto.google.api.MetricDescriptor.prototype.addLabels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.LabelDescriptor, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.clearLabelsList = function() { - return this.setLabelsList([]); -}; - - -/** - * optional MetricKind metric_kind = 3; - * @return {!proto.google.api.MetricDescriptor.MetricKind} - */ -proto.google.api.MetricDescriptor.prototype.getMetricKind = function() { - return /** @type {!proto.google.api.MetricDescriptor.MetricKind} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.google.api.MetricDescriptor.MetricKind} value - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.setMetricKind = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional ValueType value_type = 4; - * @return {!proto.google.api.MetricDescriptor.ValueType} - */ -proto.google.api.MetricDescriptor.prototype.getValueType = function() { - return /** @type {!proto.google.api.MetricDescriptor.ValueType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.google.api.MetricDescriptor.ValueType} value - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.setValueType = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional string unit = 5; - * @return {string} - */ -proto.google.api.MetricDescriptor.prototype.getUnit = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.setUnit = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string description = 6; - * @return {string} - */ -proto.google.api.MetricDescriptor.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string display_name = 7; - * @return {string} - */ -proto.google.api.MetricDescriptor.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.setDisplayName = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional MetricDescriptorMetadata metadata = 10; - * @return {?proto.google.api.MetricDescriptor.MetricDescriptorMetadata} - */ -proto.google.api.MetricDescriptor.prototype.getMetadata = function() { - return /** @type{?proto.google.api.MetricDescriptor.MetricDescriptorMetadata} */ ( - jspb.Message.getWrapperField(this, proto.google.api.MetricDescriptor.MetricDescriptorMetadata, 10)); -}; - - -/** - * @param {?proto.google.api.MetricDescriptor.MetricDescriptorMetadata|undefined} value - * @return {!proto.google.api.MetricDescriptor} returns this -*/ -proto.google.api.MetricDescriptor.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.clearMetadata = function() { - return this.setMetadata(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.MetricDescriptor.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional LaunchStage launch_stage = 12; - * @return {!proto.google.api.LaunchStage} - */ -proto.google.api.MetricDescriptor.prototype.getLaunchStage = function() { - return /** @type {!proto.google.api.LaunchStage} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {!proto.google.api.LaunchStage} value - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.setLaunchStage = function(value) { - return jspb.Message.setProto3EnumField(this, 12, value); -}; - - -/** - * repeated string monitored_resource_types = 13; - * @return {!Array} - */ -proto.google.api.MetricDescriptor.prototype.getMonitoredResourceTypesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 13)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.setMonitoredResourceTypesList = function(value) { - return jspb.Message.setField(this, 13, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.addMonitoredResourceTypes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 13, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.MetricDescriptor} returns this - */ -proto.google.api.MetricDescriptor.prototype.clearMonitoredResourceTypesList = function() { - return this.setMonitoredResourceTypesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Metric.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Metric.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Metric} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Metric.toObject = function(includeInstance, msg) { - var f, obj = { - type: jspb.Message.getFieldWithDefault(msg, 3, ""), - labelsMap: (f = msg.getLabelsMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Metric} - */ -proto.google.api.Metric.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Metric; - return proto.google.api.Metric.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Metric} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Metric} - */ -proto.google.api.Metric.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 2: - var value = msg.getLabelsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Metric.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Metric.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Metric} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Metric.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getLabelsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string type = 3; - * @return {string} - */ -proto.google.api.Metric.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Metric} returns this - */ -proto.google.api.Metric.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * map labels = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.google.api.Metric.prototype.getLabelsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.google.api.Metric} returns this - */ -proto.google.api.Metric.prototype.clearLabelsMap = function() { - this.getLabelsMap().clear(); - return this;}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/monitored_resource_grpc_pb.d.ts b/api/js/google/api/monitored_resource_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/monitored_resource_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/monitored_resource_pb.d.ts b/api/js/google/api/monitored_resource_pb.d.ts deleted file mode 100644 index f16c7022..00000000 --- a/api/js/google/api/monitored_resource_pb.d.ts +++ /dev/null @@ -1,98 +0,0 @@ -// package: google.api -// file: google/api/monitored_resource.proto - -import * as jspb from "google-protobuf"; -import * as google_api_label_pb from "../../google/api/label_pb"; -import * as google_api_launch_stage_pb from "../../google/api/launch_stage_pb"; -import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; - -export class MonitoredResourceDescriptor extends jspb.Message { - getName(): string; - setName(value: string): void; - - getType(): string; - setType(value: string): void; - - getDisplayName(): string; - setDisplayName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - clearLabelsList(): void; - getLabelsList(): Array; - setLabelsList(value: Array): void; - addLabels(value?: google_api_label_pb.LabelDescriptor, index?: number): google_api_label_pb.LabelDescriptor; - - getLaunchStage(): google_api_launch_stage_pb.LaunchStageMap[keyof google_api_launch_stage_pb.LaunchStageMap]; - setLaunchStage(value: google_api_launch_stage_pb.LaunchStageMap[keyof google_api_launch_stage_pb.LaunchStageMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MonitoredResourceDescriptor.AsObject; - static toObject(includeInstance: boolean, msg: MonitoredResourceDescriptor): MonitoredResourceDescriptor.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MonitoredResourceDescriptor, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MonitoredResourceDescriptor; - static deserializeBinaryFromReader(message: MonitoredResourceDescriptor, reader: jspb.BinaryReader): MonitoredResourceDescriptor; -} - -export namespace MonitoredResourceDescriptor { - export type AsObject = { - name: string, - type: string, - displayName: string, - description: string, - labelsList: Array, - launchStage: google_api_launch_stage_pb.LaunchStageMap[keyof google_api_launch_stage_pb.LaunchStageMap], - } -} - -export class MonitoredResource extends jspb.Message { - getType(): string; - setType(value: string): void; - - getLabelsMap(): jspb.Map; - clearLabelsMap(): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MonitoredResource.AsObject; - static toObject(includeInstance: boolean, msg: MonitoredResource): MonitoredResource.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MonitoredResource, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MonitoredResource; - static deserializeBinaryFromReader(message: MonitoredResource, reader: jspb.BinaryReader): MonitoredResource; -} - -export namespace MonitoredResource { - export type AsObject = { - type: string, - labelsMap: Array<[string, string]>, - } -} - -export class MonitoredResourceMetadata extends jspb.Message { - hasSystemLabels(): boolean; - clearSystemLabels(): void; - getSystemLabels(): google_protobuf_struct_pb.Struct | undefined; - setSystemLabels(value?: google_protobuf_struct_pb.Struct): void; - - getUserLabelsMap(): jspb.Map; - clearUserLabelsMap(): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MonitoredResourceMetadata.AsObject; - static toObject(includeInstance: boolean, msg: MonitoredResourceMetadata): MonitoredResourceMetadata.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MonitoredResourceMetadata, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MonitoredResourceMetadata; - static deserializeBinaryFromReader(message: MonitoredResourceMetadata, reader: jspb.BinaryReader): MonitoredResourceMetadata; -} - -export namespace MonitoredResourceMetadata { - export type AsObject = { - systemLabels?: google_protobuf_struct_pb.Struct.AsObject, - userLabelsMap: Array<[string, string]>, - } -} - diff --git a/api/js/google/api/monitored_resource_pb.js b/api/js/google/api/monitored_resource_pb.js deleted file mode 100644 index ffdfa4cb..00000000 --- a/api/js/google/api/monitored_resource_pb.js +++ /dev/null @@ -1,744 +0,0 @@ -// source: google/api/monitored_resource.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_label_pb = require('../../google/api/label_pb.js'); -goog.object.extend(proto, google_api_label_pb); -var google_api_launch_stage_pb = require('../../google/api/launch_stage_pb.js'); -goog.object.extend(proto, google_api_launch_stage_pb); -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); -goog.object.extend(proto, google_protobuf_struct_pb); -goog.exportSymbol('proto.google.api.MonitoredResource', null, global); -goog.exportSymbol('proto.google.api.MonitoredResourceDescriptor', null, global); -goog.exportSymbol('proto.google.api.MonitoredResourceMetadata', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.MonitoredResourceDescriptor = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.MonitoredResourceDescriptor.repeatedFields_, null); -}; -goog.inherits(proto.google.api.MonitoredResourceDescriptor, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.MonitoredResourceDescriptor.displayName = 'proto.google.api.MonitoredResourceDescriptor'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.MonitoredResource = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.MonitoredResource, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.MonitoredResource.displayName = 'proto.google.api.MonitoredResource'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.MonitoredResourceMetadata = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.MonitoredResourceMetadata, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.MonitoredResourceMetadata.displayName = 'proto.google.api.MonitoredResourceMetadata'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.MonitoredResourceDescriptor.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.MonitoredResourceDescriptor.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.MonitoredResourceDescriptor.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.MonitoredResourceDescriptor} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MonitoredResourceDescriptor.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 5, ""), - type: jspb.Message.getFieldWithDefault(msg, 1, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - labelsList: jspb.Message.toObjectList(msg.getLabelsList(), - google_api_label_pb.LabelDescriptor.toObject, includeInstance), - launchStage: jspb.Message.getFieldWithDefault(msg, 7, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.MonitoredResourceDescriptor} - */ -proto.google.api.MonitoredResourceDescriptor.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.MonitoredResourceDescriptor; - return proto.google.api.MonitoredResourceDescriptor.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.MonitoredResourceDescriptor} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.MonitoredResourceDescriptor} - */ -proto.google.api.MonitoredResourceDescriptor.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = new google_api_label_pb.LabelDescriptor; - reader.readMessage(value,google_api_label_pb.LabelDescriptor.deserializeBinaryFromReader); - msg.addLabels(value); - break; - case 7: - var value = /** @type {!proto.google.api.LaunchStage} */ (reader.readEnum()); - msg.setLaunchStage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.MonitoredResourceDescriptor.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.MonitoredResourceDescriptor.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.MonitoredResourceDescriptor} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MonitoredResourceDescriptor.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getLabelsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - google_api_label_pb.LabelDescriptor.serializeBinaryToWriter - ); - } - f = message.getLaunchStage(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } -}; - - -/** - * optional string name = 5; - * @return {string} - */ -proto.google.api.MonitoredResourceDescriptor.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MonitoredResourceDescriptor} returns this - */ -proto.google.api.MonitoredResourceDescriptor.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string type = 1; - * @return {string} - */ -proto.google.api.MonitoredResourceDescriptor.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MonitoredResourceDescriptor} returns this - */ -proto.google.api.MonitoredResourceDescriptor.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string display_name = 2; - * @return {string} - */ -proto.google.api.MonitoredResourceDescriptor.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MonitoredResourceDescriptor} returns this - */ -proto.google.api.MonitoredResourceDescriptor.prototype.setDisplayName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.google.api.MonitoredResourceDescriptor.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MonitoredResourceDescriptor} returns this - */ -proto.google.api.MonitoredResourceDescriptor.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated LabelDescriptor labels = 4; - * @return {!Array} - */ -proto.google.api.MonitoredResourceDescriptor.prototype.getLabelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_api_label_pb.LabelDescriptor, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.MonitoredResourceDescriptor} returns this -*/ -proto.google.api.MonitoredResourceDescriptor.prototype.setLabelsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.google.api.LabelDescriptor=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.LabelDescriptor} - */ -proto.google.api.MonitoredResourceDescriptor.prototype.addLabels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.api.LabelDescriptor, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.MonitoredResourceDescriptor} returns this - */ -proto.google.api.MonitoredResourceDescriptor.prototype.clearLabelsList = function() { - return this.setLabelsList([]); -}; - - -/** - * optional LaunchStage launch_stage = 7; - * @return {!proto.google.api.LaunchStage} - */ -proto.google.api.MonitoredResourceDescriptor.prototype.getLaunchStage = function() { - return /** @type {!proto.google.api.LaunchStage} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.google.api.LaunchStage} value - * @return {!proto.google.api.MonitoredResourceDescriptor} returns this - */ -proto.google.api.MonitoredResourceDescriptor.prototype.setLaunchStage = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.MonitoredResource.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.MonitoredResource.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.MonitoredResource} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MonitoredResource.toObject = function(includeInstance, msg) { - var f, obj = { - type: jspb.Message.getFieldWithDefault(msg, 1, ""), - labelsMap: (f = msg.getLabelsMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.MonitoredResource} - */ -proto.google.api.MonitoredResource.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.MonitoredResource; - return proto.google.api.MonitoredResource.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.MonitoredResource} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.MonitoredResource} - */ -proto.google.api.MonitoredResource.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 2: - var value = msg.getLabelsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.MonitoredResource.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.MonitoredResource.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.MonitoredResource} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MonitoredResource.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLabelsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string type = 1; - * @return {string} - */ -proto.google.api.MonitoredResource.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MonitoredResource} returns this - */ -proto.google.api.MonitoredResource.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * map labels = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.google.api.MonitoredResource.prototype.getLabelsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.google.api.MonitoredResource} returns this - */ -proto.google.api.MonitoredResource.prototype.clearLabelsMap = function() { - this.getLabelsMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.MonitoredResourceMetadata.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.MonitoredResourceMetadata.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.MonitoredResourceMetadata} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MonitoredResourceMetadata.toObject = function(includeInstance, msg) { - var f, obj = { - systemLabels: (f = msg.getSystemLabels()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - userLabelsMap: (f = msg.getUserLabelsMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.MonitoredResourceMetadata} - */ -proto.google.api.MonitoredResourceMetadata.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.MonitoredResourceMetadata; - return proto.google.api.MonitoredResourceMetadata.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.MonitoredResourceMetadata} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.MonitoredResourceMetadata} - */ -proto.google.api.MonitoredResourceMetadata.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setSystemLabels(value); - break; - case 2: - var value = msg.getUserLabelsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.MonitoredResourceMetadata.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.MonitoredResourceMetadata.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.MonitoredResourceMetadata} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MonitoredResourceMetadata.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSystemLabels(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getUserLabelsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional google.protobuf.Struct system_labels = 1; - * @return {?proto.google.protobuf.Struct} - */ -proto.google.api.MonitoredResourceMetadata.prototype.getSystemLabels = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.google.api.MonitoredResourceMetadata} returns this -*/ -proto.google.api.MonitoredResourceMetadata.prototype.setSystemLabels = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.MonitoredResourceMetadata} returns this - */ -proto.google.api.MonitoredResourceMetadata.prototype.clearSystemLabels = function() { - return this.setSystemLabels(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.MonitoredResourceMetadata.prototype.hasSystemLabels = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * map user_labels = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.google.api.MonitoredResourceMetadata.prototype.getUserLabelsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.google.api.MonitoredResourceMetadata} returns this - */ -proto.google.api.MonitoredResourceMetadata.prototype.clearUserLabelsMap = function() { - this.getUserLabelsMap().clear(); - return this;}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/monitoring_grpc_pb.d.ts b/api/js/google/api/monitoring_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/monitoring_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/monitoring_pb.d.ts b/api/js/google/api/monitoring_pb.d.ts deleted file mode 100644 index 4799adcf..00000000 --- a/api/js/google/api/monitoring_pb.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -// package: google.api -// file: google/api/monitoring.proto - -import * as jspb from "google-protobuf"; - -export class Monitoring extends jspb.Message { - clearProducerDestinationsList(): void; - getProducerDestinationsList(): Array; - setProducerDestinationsList(value: Array): void; - addProducerDestinations(value?: Monitoring.MonitoringDestination, index?: number): Monitoring.MonitoringDestination; - - clearConsumerDestinationsList(): void; - getConsumerDestinationsList(): Array; - setConsumerDestinationsList(value: Array): void; - addConsumerDestinations(value?: Monitoring.MonitoringDestination, index?: number): Monitoring.MonitoringDestination; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Monitoring.AsObject; - static toObject(includeInstance: boolean, msg: Monitoring): Monitoring.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Monitoring, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Monitoring; - static deserializeBinaryFromReader(message: Monitoring, reader: jspb.BinaryReader): Monitoring; -} - -export namespace Monitoring { - export type AsObject = { - producerDestinationsList: Array, - consumerDestinationsList: Array, - } - - export class MonitoringDestination extends jspb.Message { - getMonitoredResource(): string; - setMonitoredResource(value: string): void; - - clearMetricsList(): void; - getMetricsList(): Array; - setMetricsList(value: Array): void; - addMetrics(value: string, index?: number): string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MonitoringDestination.AsObject; - static toObject(includeInstance: boolean, msg: MonitoringDestination): MonitoringDestination.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MonitoringDestination, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MonitoringDestination; - static deserializeBinaryFromReader(message: MonitoringDestination, reader: jspb.BinaryReader): MonitoringDestination; - } - - export namespace MonitoringDestination { - export type AsObject = { - monitoredResource: string, - metricsList: Array, - } - } -} - diff --git a/api/js/google/api/monitoring_pb.js b/api/js/google/api/monitoring_pb.js deleted file mode 100644 index e1c60ad0..00000000 --- a/api/js/google/api/monitoring_pb.js +++ /dev/null @@ -1,458 +0,0 @@ -// source: google/api/monitoring.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Monitoring', null, global); -goog.exportSymbol('proto.google.api.Monitoring.MonitoringDestination', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Monitoring = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Monitoring.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Monitoring, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Monitoring.displayName = 'proto.google.api.Monitoring'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Monitoring.MonitoringDestination = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Monitoring.MonitoringDestination.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Monitoring.MonitoringDestination, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Monitoring.MonitoringDestination.displayName = 'proto.google.api.Monitoring.MonitoringDestination'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Monitoring.repeatedFields_ = [1,2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Monitoring.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Monitoring.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Monitoring} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Monitoring.toObject = function(includeInstance, msg) { - var f, obj = { - producerDestinationsList: jspb.Message.toObjectList(msg.getProducerDestinationsList(), - proto.google.api.Monitoring.MonitoringDestination.toObject, includeInstance), - consumerDestinationsList: jspb.Message.toObjectList(msg.getConsumerDestinationsList(), - proto.google.api.Monitoring.MonitoringDestination.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Monitoring} - */ -proto.google.api.Monitoring.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Monitoring; - return proto.google.api.Monitoring.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Monitoring} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Monitoring} - */ -proto.google.api.Monitoring.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.Monitoring.MonitoringDestination; - reader.readMessage(value,proto.google.api.Monitoring.MonitoringDestination.deserializeBinaryFromReader); - msg.addProducerDestinations(value); - break; - case 2: - var value = new proto.google.api.Monitoring.MonitoringDestination; - reader.readMessage(value,proto.google.api.Monitoring.MonitoringDestination.deserializeBinaryFromReader); - msg.addConsumerDestinations(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Monitoring.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Monitoring.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Monitoring} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Monitoring.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProducerDestinationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.api.Monitoring.MonitoringDestination.serializeBinaryToWriter - ); - } - f = message.getConsumerDestinationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.google.api.Monitoring.MonitoringDestination.serializeBinaryToWriter - ); - } -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Monitoring.MonitoringDestination.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Monitoring.MonitoringDestination.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Monitoring.MonitoringDestination.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Monitoring.MonitoringDestination} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Monitoring.MonitoringDestination.toObject = function(includeInstance, msg) { - var f, obj = { - monitoredResource: jspb.Message.getFieldWithDefault(msg, 1, ""), - metricsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Monitoring.MonitoringDestination} - */ -proto.google.api.Monitoring.MonitoringDestination.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Monitoring.MonitoringDestination; - return proto.google.api.Monitoring.MonitoringDestination.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Monitoring.MonitoringDestination} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Monitoring.MonitoringDestination} - */ -proto.google.api.Monitoring.MonitoringDestination.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMonitoredResource(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addMetrics(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Monitoring.MonitoringDestination.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Monitoring.MonitoringDestination.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Monitoring.MonitoringDestination} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Monitoring.MonitoringDestination.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMonitoredResource(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMetricsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } -}; - - -/** - * optional string monitored_resource = 1; - * @return {string} - */ -proto.google.api.Monitoring.MonitoringDestination.prototype.getMonitoredResource = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Monitoring.MonitoringDestination} returns this - */ -proto.google.api.Monitoring.MonitoringDestination.prototype.setMonitoredResource = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string metrics = 2; - * @return {!Array} - */ -proto.google.api.Monitoring.MonitoringDestination.prototype.getMetricsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Monitoring.MonitoringDestination} returns this - */ -proto.google.api.Monitoring.MonitoringDestination.prototype.setMetricsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.Monitoring.MonitoringDestination} returns this - */ -proto.google.api.Monitoring.MonitoringDestination.prototype.addMetrics = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Monitoring.MonitoringDestination} returns this - */ -proto.google.api.Monitoring.MonitoringDestination.prototype.clearMetricsList = function() { - return this.setMetricsList([]); -}; - - -/** - * repeated MonitoringDestination producer_destinations = 1; - * @return {!Array} - */ -proto.google.api.Monitoring.prototype.getProducerDestinationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Monitoring.MonitoringDestination, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Monitoring} returns this -*/ -proto.google.api.Monitoring.prototype.setProducerDestinationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.api.Monitoring.MonitoringDestination=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Monitoring.MonitoringDestination} - */ -proto.google.api.Monitoring.prototype.addProducerDestinations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.Monitoring.MonitoringDestination, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Monitoring} returns this - */ -proto.google.api.Monitoring.prototype.clearProducerDestinationsList = function() { - return this.setProducerDestinationsList([]); -}; - - -/** - * repeated MonitoringDestination consumer_destinations = 2; - * @return {!Array} - */ -proto.google.api.Monitoring.prototype.getConsumerDestinationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.Monitoring.MonitoringDestination, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Monitoring} returns this -*/ -proto.google.api.Monitoring.prototype.setConsumerDestinationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.api.Monitoring.MonitoringDestination=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Monitoring.MonitoringDestination} - */ -proto.google.api.Monitoring.prototype.addConsumerDestinations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.Monitoring.MonitoringDestination, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Monitoring} returns this - */ -proto.google.api.Monitoring.prototype.clearConsumerDestinationsList = function() { - return this.setConsumerDestinationsList([]); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/quota_grpc_pb.d.ts b/api/js/google/api/quota_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/quota_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/quota_pb.d.ts b/api/js/google/api/quota_pb.d.ts deleted file mode 100644 index 4f2f9353..00000000 --- a/api/js/google/api/quota_pb.d.ts +++ /dev/null @@ -1,111 +0,0 @@ -// package: google.api -// file: google/api/quota.proto - -import * as jspb from "google-protobuf"; - -export class Quota extends jspb.Message { - clearLimitsList(): void; - getLimitsList(): Array; - setLimitsList(value: Array): void; - addLimits(value?: QuotaLimit, index?: number): QuotaLimit; - - clearMetricRulesList(): void; - getMetricRulesList(): Array; - setMetricRulesList(value: Array): void; - addMetricRules(value?: MetricRule, index?: number): MetricRule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Quota.AsObject; - static toObject(includeInstance: boolean, msg: Quota): Quota.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Quota, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Quota; - static deserializeBinaryFromReader(message: Quota, reader: jspb.BinaryReader): Quota; -} - -export namespace Quota { - export type AsObject = { - limitsList: Array, - metricRulesList: Array, - } -} - -export class MetricRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): void; - - getMetricCostsMap(): jspb.Map; - clearMetricCostsMap(): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MetricRule.AsObject; - static toObject(includeInstance: boolean, msg: MetricRule): MetricRule.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MetricRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MetricRule; - static deserializeBinaryFromReader(message: MetricRule, reader: jspb.BinaryReader): MetricRule; -} - -export namespace MetricRule { - export type AsObject = { - selector: string, - metricCostsMap: Array<[string, number]>, - } -} - -export class QuotaLimit extends jspb.Message { - getName(): string; - setName(value: string): void; - - getDescription(): string; - setDescription(value: string): void; - - getDefaultLimit(): number; - setDefaultLimit(value: number): void; - - getMaxLimit(): number; - setMaxLimit(value: number): void; - - getFreeTier(): number; - setFreeTier(value: number): void; - - getDuration(): string; - setDuration(value: string): void; - - getMetric(): string; - setMetric(value: string): void; - - getUnit(): string; - setUnit(value: string): void; - - getValuesMap(): jspb.Map; - clearValuesMap(): void; - getDisplayName(): string; - setDisplayName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): QuotaLimit.AsObject; - static toObject(includeInstance: boolean, msg: QuotaLimit): QuotaLimit.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: QuotaLimit, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): QuotaLimit; - static deserializeBinaryFromReader(message: QuotaLimit, reader: jspb.BinaryReader): QuotaLimit; -} - -export namespace QuotaLimit { - export type AsObject = { - name: string, - description: string, - defaultLimit: number, - maxLimit: number, - freeTier: number, - duration: string, - metric: string, - unit: string, - valuesMap: Array<[string, number]>, - displayName: string, - } -} - diff --git a/api/js/google/api/quota_pb.js b/api/js/google/api/quota_pb.js deleted file mode 100644 index 532ac566..00000000 --- a/api/js/google/api/quota_pb.js +++ /dev/null @@ -1,860 +0,0 @@ -// source: google/api/quota.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.MetricRule', null, global); -goog.exportSymbol('proto.google.api.Quota', null, global); -goog.exportSymbol('proto.google.api.QuotaLimit', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Quota = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Quota.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Quota, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Quota.displayName = 'proto.google.api.Quota'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.MetricRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.MetricRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.MetricRule.displayName = 'proto.google.api.MetricRule'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.QuotaLimit = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.QuotaLimit, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.QuotaLimit.displayName = 'proto.google.api.QuotaLimit'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Quota.repeatedFields_ = [3,4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Quota.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Quota.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Quota} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Quota.toObject = function(includeInstance, msg) { - var f, obj = { - limitsList: jspb.Message.toObjectList(msg.getLimitsList(), - proto.google.api.QuotaLimit.toObject, includeInstance), - metricRulesList: jspb.Message.toObjectList(msg.getMetricRulesList(), - proto.google.api.MetricRule.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Quota} - */ -proto.google.api.Quota.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Quota; - return proto.google.api.Quota.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Quota} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Quota} - */ -proto.google.api.Quota.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 3: - var value = new proto.google.api.QuotaLimit; - reader.readMessage(value,proto.google.api.QuotaLimit.deserializeBinaryFromReader); - msg.addLimits(value); - break; - case 4: - var value = new proto.google.api.MetricRule; - reader.readMessage(value,proto.google.api.MetricRule.deserializeBinaryFromReader); - msg.addMetricRules(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Quota.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Quota.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Quota} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Quota.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimitsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.google.api.QuotaLimit.serializeBinaryToWriter - ); - } - f = message.getMetricRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.google.api.MetricRule.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated QuotaLimit limits = 3; - * @return {!Array} - */ -proto.google.api.Quota.prototype.getLimitsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.QuotaLimit, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Quota} returns this -*/ -proto.google.api.Quota.prototype.setLimitsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.google.api.QuotaLimit=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.QuotaLimit} - */ -proto.google.api.Quota.prototype.addLimits = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.QuotaLimit, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Quota} returns this - */ -proto.google.api.Quota.prototype.clearLimitsList = function() { - return this.setLimitsList([]); -}; - - -/** - * repeated MetricRule metric_rules = 4; - * @return {!Array} - */ -proto.google.api.Quota.prototype.getMetricRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.MetricRule, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Quota} returns this -*/ -proto.google.api.Quota.prototype.setMetricRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.google.api.MetricRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.MetricRule} - */ -proto.google.api.Quota.prototype.addMetricRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.api.MetricRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Quota} returns this - */ -proto.google.api.Quota.prototype.clearMetricRulesList = function() { - return this.setMetricRulesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.MetricRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.MetricRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.MetricRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MetricRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - metricCostsMap: (f = msg.getMetricCostsMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.MetricRule} - */ -proto.google.api.MetricRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.MetricRule; - return proto.google.api.MetricRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.MetricRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.MetricRule} - */ -proto.google.api.MetricRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = msg.getMetricCostsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readInt64, null, "", 0); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.MetricRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.MetricRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.MetricRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.MetricRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMetricCostsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeInt64); - } -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.MetricRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.MetricRule} returns this - */ -proto.google.api.MetricRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * map metric_costs = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.google.api.MetricRule.prototype.getMetricCostsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.google.api.MetricRule} returns this - */ -proto.google.api.MetricRule.prototype.clearMetricCostsMap = function() { - this.getMetricCostsMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.QuotaLimit.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.QuotaLimit.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.QuotaLimit} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.QuotaLimit.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 6, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - defaultLimit: jspb.Message.getFieldWithDefault(msg, 3, 0), - maxLimit: jspb.Message.getFieldWithDefault(msg, 4, 0), - freeTier: jspb.Message.getFieldWithDefault(msg, 7, 0), - duration: jspb.Message.getFieldWithDefault(msg, 5, ""), - metric: jspb.Message.getFieldWithDefault(msg, 8, ""), - unit: jspb.Message.getFieldWithDefault(msg, 9, ""), - valuesMap: (f = msg.getValuesMap()) ? f.toObject(includeInstance, undefined) : [], - displayName: jspb.Message.getFieldWithDefault(msg, 12, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.QuotaLimit} - */ -proto.google.api.QuotaLimit.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.QuotaLimit; - return proto.google.api.QuotaLimit.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.QuotaLimit} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.QuotaLimit} - */ -proto.google.api.QuotaLimit.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setDefaultLimit(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setMaxLimit(value); - break; - case 7: - var value = /** @type {number} */ (reader.readInt64()); - msg.setFreeTier(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDuration(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setMetric(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setUnit(value); - break; - case 10: - var value = msg.getValuesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readInt64, null, "", 0); - }); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.QuotaLimit.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.QuotaLimit.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.QuotaLimit} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.QuotaLimit.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDefaultLimit(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getMaxLimit(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } - f = message.getFreeTier(); - if (f !== 0) { - writer.writeInt64( - 7, - f - ); - } - f = message.getDuration(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getMetric(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getUnit(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getValuesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(10, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeInt64); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } -}; - - -/** - * optional string name = 6; - * @return {string} - */ -proto.google.api.QuotaLimit.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.google.api.QuotaLimit.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional int64 default_limit = 3; - * @return {number} - */ -proto.google.api.QuotaLimit.prototype.getDefaultLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.setDefaultLimit = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional int64 max_limit = 4; - * @return {number} - */ -proto.google.api.QuotaLimit.prototype.getMaxLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.setMaxLimit = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional int64 free_tier = 7; - * @return {number} - */ -proto.google.api.QuotaLimit.prototype.getFreeTier = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.setFreeTier = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional string duration = 5; - * @return {string} - */ -proto.google.api.QuotaLimit.prototype.getDuration = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.setDuration = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string metric = 8; - * @return {string} - */ -proto.google.api.QuotaLimit.prototype.getMetric = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.setMetric = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string unit = 9; - * @return {string} - */ -proto.google.api.QuotaLimit.prototype.getUnit = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.setUnit = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * map values = 10; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.google.api.QuotaLimit.prototype.getValuesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 10, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.clearValuesMap = function() { - this.getValuesMap().clear(); - return this;}; - - -/** - * optional string display_name = 12; - * @return {string} - */ -proto.google.api.QuotaLimit.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.QuotaLimit} returns this - */ -proto.google.api.QuotaLimit.prototype.setDisplayName = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/resource_grpc_pb.d.ts b/api/js/google/api/resource_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/resource_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/resource_pb.d.ts b/api/js/google/api/resource_pb.d.ts deleted file mode 100644 index 3336c737..00000000 --- a/api/js/google/api/resource_pb.d.ts +++ /dev/null @@ -1,99 +0,0 @@ -// package: google.api -// file: google/api/resource.proto - -import * as jspb from "google-protobuf"; -import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; - -export class ResourceDescriptor extends jspb.Message { - getType(): string; - setType(value: string): void; - - clearPatternList(): void; - getPatternList(): Array; - setPatternList(value: Array): void; - addPattern(value: string, index?: number): string; - - getNameField(): string; - setNameField(value: string): void; - - getHistory(): ResourceDescriptor.HistoryMap[keyof ResourceDescriptor.HistoryMap]; - setHistory(value: ResourceDescriptor.HistoryMap[keyof ResourceDescriptor.HistoryMap]): void; - - getPlural(): string; - setPlural(value: string): void; - - getSingular(): string; - setSingular(value: string): void; - - clearStyleList(): void; - getStyleList(): Array; - setStyleList(value: Array): void; - addStyle(value: ResourceDescriptor.StyleMap[keyof ResourceDescriptor.StyleMap], index?: number): ResourceDescriptor.StyleMap[keyof ResourceDescriptor.StyleMap]; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResourceDescriptor.AsObject; - static toObject(includeInstance: boolean, msg: ResourceDescriptor): ResourceDescriptor.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResourceDescriptor, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResourceDescriptor; - static deserializeBinaryFromReader(message: ResourceDescriptor, reader: jspb.BinaryReader): ResourceDescriptor; -} - -export namespace ResourceDescriptor { - export type AsObject = { - type: string, - patternList: Array, - nameField: string, - history: ResourceDescriptor.HistoryMap[keyof ResourceDescriptor.HistoryMap], - plural: string, - singular: string, - styleList: Array, - } - - export interface HistoryMap { - HISTORY_UNSPECIFIED: 0; - ORIGINALLY_SINGLE_PATTERN: 1; - FUTURE_MULTI_PATTERN: 2; - } - - export const History: HistoryMap; - - export interface StyleMap { - STYLE_UNSPECIFIED: 0; - DECLARATIVE_FRIENDLY: 1; - } - - export const Style: StyleMap; -} - -export class ResourceReference extends jspb.Message { - getType(): string; - setType(value: string): void; - - getChildType(): string; - setChildType(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResourceReference.AsObject; - static toObject(includeInstance: boolean, msg: ResourceReference): ResourceReference.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResourceReference, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResourceReference; - static deserializeBinaryFromReader(message: ResourceReference, reader: jspb.BinaryReader): ResourceReference; -} - -export namespace ResourceReference { - export type AsObject = { - type: string, - childType: string, - } -} - - export const resourceReference: jspb.ExtensionFieldInfo; - - export const resourceDefinition: jspb.ExtensionFieldInfo; - - export const resource: jspb.ExtensionFieldInfo; - diff --git a/api/js/google/api/resource_pb.js b/api/js/google/api/resource_pb.js deleted file mode 100644 index e36cc908..00000000 --- a/api/js/google/api/resource_pb.js +++ /dev/null @@ -1,673 +0,0 @@ -// source: google/api/resource.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); -goog.object.extend(proto, google_protobuf_descriptor_pb); -goog.exportSymbol('proto.google.api.ResourceDescriptor', null, global); -goog.exportSymbol('proto.google.api.ResourceDescriptor.History', null, global); -goog.exportSymbol('proto.google.api.ResourceDescriptor.Style', null, global); -goog.exportSymbol('proto.google.api.ResourceReference', null, global); -goog.exportSymbol('proto.google.api.resource', null, global); -goog.exportSymbol('proto.google.api.resourceDefinitionList', null, global); -goog.exportSymbol('proto.google.api.resourceReference', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.ResourceDescriptor = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.ResourceDescriptor.repeatedFields_, null); -}; -goog.inherits(proto.google.api.ResourceDescriptor, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.ResourceDescriptor.displayName = 'proto.google.api.ResourceDescriptor'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.ResourceReference = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.ResourceReference, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.ResourceReference.displayName = 'proto.google.api.ResourceReference'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.ResourceDescriptor.repeatedFields_ = [2,10]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.ResourceDescriptor.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.ResourceDescriptor.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.ResourceDescriptor} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ResourceDescriptor.toObject = function(includeInstance, msg) { - var f, obj = { - type: jspb.Message.getFieldWithDefault(msg, 1, ""), - patternList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - nameField: jspb.Message.getFieldWithDefault(msg, 3, ""), - history: jspb.Message.getFieldWithDefault(msg, 4, 0), - plural: jspb.Message.getFieldWithDefault(msg, 5, ""), - singular: jspb.Message.getFieldWithDefault(msg, 6, ""), - styleList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.ResourceDescriptor} - */ -proto.google.api.ResourceDescriptor.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.ResourceDescriptor; - return proto.google.api.ResourceDescriptor.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.ResourceDescriptor} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.ResourceDescriptor} - */ -proto.google.api.ResourceDescriptor.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addPattern(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setNameField(value); - break; - case 4: - var value = /** @type {!proto.google.api.ResourceDescriptor.History} */ (reader.readEnum()); - msg.setHistory(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setPlural(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setSingular(value); - break; - case 10: - var value = /** @type {!Array} */ (reader.readPackedEnum()); - msg.setStyleList(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.ResourceDescriptor.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.ResourceDescriptor.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.ResourceDescriptor} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ResourceDescriptor.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPatternList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getNameField(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getHistory(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getPlural(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getSingular(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getStyleList(); - if (f.length > 0) { - writer.writePackedEnum( - 10, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.google.api.ResourceDescriptor.History = { - HISTORY_UNSPECIFIED: 0, - ORIGINALLY_SINGLE_PATTERN: 1, - FUTURE_MULTI_PATTERN: 2 -}; - -/** - * @enum {number} - */ -proto.google.api.ResourceDescriptor.Style = { - STYLE_UNSPECIFIED: 0, - DECLARATIVE_FRIENDLY: 1 -}; - -/** - * optional string type = 1; - * @return {string} - */ -proto.google.api.ResourceDescriptor.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string pattern = 2; - * @return {!Array} - */ -proto.google.api.ResourceDescriptor.prototype.getPatternList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.setPatternList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.addPattern = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.clearPatternList = function() { - return this.setPatternList([]); -}; - - -/** - * optional string name_field = 3; - * @return {string} - */ -proto.google.api.ResourceDescriptor.prototype.getNameField = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.setNameField = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional History history = 4; - * @return {!proto.google.api.ResourceDescriptor.History} - */ -proto.google.api.ResourceDescriptor.prototype.getHistory = function() { - return /** @type {!proto.google.api.ResourceDescriptor.History} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.google.api.ResourceDescriptor.History} value - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.setHistory = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional string plural = 5; - * @return {string} - */ -proto.google.api.ResourceDescriptor.prototype.getPlural = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.setPlural = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string singular = 6; - * @return {string} - */ -proto.google.api.ResourceDescriptor.prototype.getSingular = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.setSingular = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * repeated Style style = 10; - * @return {!Array} - */ -proto.google.api.ResourceDescriptor.prototype.getStyleList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 10)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.setStyleList = function(value) { - return jspb.Message.setField(this, 10, value || []); -}; - - -/** - * @param {!proto.google.api.ResourceDescriptor.Style} value - * @param {number=} opt_index - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.addStyle = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 10, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.ResourceDescriptor} returns this - */ -proto.google.api.ResourceDescriptor.prototype.clearStyleList = function() { - return this.setStyleList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.ResourceReference.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.ResourceReference.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.ResourceReference} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ResourceReference.toObject = function(includeInstance, msg) { - var f, obj = { - type: jspb.Message.getFieldWithDefault(msg, 1, ""), - childType: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.ResourceReference} - */ -proto.google.api.ResourceReference.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.ResourceReference; - return proto.google.api.ResourceReference.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.ResourceReference} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.ResourceReference} - */ -proto.google.api.ResourceReference.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setChildType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.ResourceReference.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.ResourceReference.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.ResourceReference} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.ResourceReference.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getChildType(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string type = 1; - * @return {string} - */ -proto.google.api.ResourceReference.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ResourceReference} returns this - */ -proto.google.api.ResourceReference.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string child_type = 2; - * @return {string} - */ -proto.google.api.ResourceReference.prototype.getChildType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.ResourceReference} returns this - */ -proto.google.api.ResourceReference.prototype.setChildType = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `resourceReference`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.resourceReference = new jspb.ExtensionFieldInfo( - 1055, - {resourceReference: 0}, - proto.google.api.ResourceReference, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.ResourceReference.toObject), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[1055] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.resourceReference, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - proto.google.api.ResourceReference.serializeBinaryToWriter, - proto.google.api.ResourceReference.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[1055] = proto.google.api.resourceReference; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `resourceDefinitionList`. - * @type {!jspb.ExtensionFieldInfo>} - */ -proto.google.api.resourceDefinitionList = new jspb.ExtensionFieldInfo( - 1053, - {resourceDefinitionList: 0}, - proto.google.api.ResourceDescriptor, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.ResourceDescriptor.toObject), - 1); - -google_protobuf_descriptor_pb.FileOptions.extensionsBinary[1053] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.resourceDefinitionList, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeRepeatedMessage, - proto.google.api.ResourceDescriptor.serializeBinaryToWriter, - proto.google.api.ResourceDescriptor.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FileOptions.extensions[1053] = proto.google.api.resourceDefinitionList; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `resource`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.resource = new jspb.ExtensionFieldInfo( - 1053, - {resource: 0}, - proto.google.api.ResourceDescriptor, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.ResourceDescriptor.toObject), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[1053] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.resource, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - proto.google.api.ResourceDescriptor.serializeBinaryToWriter, - proto.google.api.ResourceDescriptor.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[1053] = proto.google.api.resource; - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/routing_grpc_pb.d.ts b/api/js/google/api/routing_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/routing_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/routing_pb.d.ts b/api/js/google/api/routing_pb.d.ts deleted file mode 100644 index 5bd4f265..00000000 --- a/api/js/google/api/routing_pb.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -// package: google.api -// file: google/api/routing.proto - -import * as jspb from "google-protobuf"; -import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; - -export class RoutingRule extends jspb.Message { - clearRoutingParametersList(): void; - getRoutingParametersList(): Array; - setRoutingParametersList(value: Array): void; - addRoutingParameters(value?: RoutingParameter, index?: number): RoutingParameter; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RoutingRule.AsObject; - static toObject(includeInstance: boolean, msg: RoutingRule): RoutingRule.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RoutingRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RoutingRule; - static deserializeBinaryFromReader(message: RoutingRule, reader: jspb.BinaryReader): RoutingRule; -} - -export namespace RoutingRule { - export type AsObject = { - routingParametersList: Array, - } -} - -export class RoutingParameter extends jspb.Message { - getField(): string; - setField(value: string): void; - - getPathTemplate(): string; - setPathTemplate(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RoutingParameter.AsObject; - static toObject(includeInstance: boolean, msg: RoutingParameter): RoutingParameter.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RoutingParameter, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RoutingParameter; - static deserializeBinaryFromReader(message: RoutingParameter, reader: jspb.BinaryReader): RoutingParameter; -} - -export namespace RoutingParameter { - export type AsObject = { - field: string, - pathTemplate: string, - } -} - - export const routing: jspb.ExtensionFieldInfo; - diff --git a/api/js/google/api/routing_pb.js b/api/js/google/api/routing_pb.js deleted file mode 100644 index 57158434..00000000 --- a/api/js/google/api/routing_pb.js +++ /dev/null @@ -1,407 +0,0 @@ -// source: google/api/routing.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); -goog.object.extend(proto, google_protobuf_descriptor_pb); -goog.exportSymbol('proto.google.api.RoutingParameter', null, global); -goog.exportSymbol('proto.google.api.RoutingRule', null, global); -goog.exportSymbol('proto.google.api.routing', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.RoutingRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.RoutingRule.repeatedFields_, null); -}; -goog.inherits(proto.google.api.RoutingRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.RoutingRule.displayName = 'proto.google.api.RoutingRule'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.RoutingParameter = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.RoutingParameter, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.RoutingParameter.displayName = 'proto.google.api.RoutingParameter'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.RoutingRule.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.RoutingRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.RoutingRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.RoutingRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.RoutingRule.toObject = function(includeInstance, msg) { - var f, obj = { - routingParametersList: jspb.Message.toObjectList(msg.getRoutingParametersList(), - proto.google.api.RoutingParameter.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.RoutingRule} - */ -proto.google.api.RoutingRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.RoutingRule; - return proto.google.api.RoutingRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.RoutingRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.RoutingRule} - */ -proto.google.api.RoutingRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = new proto.google.api.RoutingParameter; - reader.readMessage(value,proto.google.api.RoutingParameter.deserializeBinaryFromReader); - msg.addRoutingParameters(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.RoutingRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.RoutingRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.RoutingRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.RoutingRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRoutingParametersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.google.api.RoutingParameter.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated RoutingParameter routing_parameters = 2; - * @return {!Array} - */ -proto.google.api.RoutingRule.prototype.getRoutingParametersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.RoutingParameter, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.RoutingRule} returns this -*/ -proto.google.api.RoutingRule.prototype.setRoutingParametersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.api.RoutingParameter=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.RoutingParameter} - */ -proto.google.api.RoutingRule.prototype.addRoutingParameters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.RoutingParameter, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.RoutingRule} returns this - */ -proto.google.api.RoutingRule.prototype.clearRoutingParametersList = function() { - return this.setRoutingParametersList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.RoutingParameter.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.RoutingParameter.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.RoutingParameter} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.RoutingParameter.toObject = function(includeInstance, msg) { - var f, obj = { - field: jspb.Message.getFieldWithDefault(msg, 1, ""), - pathTemplate: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.RoutingParameter} - */ -proto.google.api.RoutingParameter.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.RoutingParameter; - return proto.google.api.RoutingParameter.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.RoutingParameter} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.RoutingParameter} - */ -proto.google.api.RoutingParameter.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setField(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPathTemplate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.RoutingParameter.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.RoutingParameter.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.RoutingParameter} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.RoutingParameter.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getField(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPathTemplate(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string field = 1; - * @return {string} - */ -proto.google.api.RoutingParameter.prototype.getField = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.RoutingParameter} returns this - */ -proto.google.api.RoutingParameter.prototype.setField = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string path_template = 2; - * @return {string} - */ -proto.google.api.RoutingParameter.prototype.getPathTemplate = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.RoutingParameter} returns this - */ -proto.google.api.RoutingParameter.prototype.setPathTemplate = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `routing`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.routing = new jspb.ExtensionFieldInfo( - 72295729, - {routing: 0}, - proto.google.api.RoutingRule, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.RoutingRule.toObject), - 0); - -google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295729] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.routing, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - proto.google.api.RoutingRule.serializeBinaryToWriter, - proto.google.api.RoutingRule.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MethodOptions.extensions[72295729] = proto.google.api.routing; - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/service_grpc_pb.d.ts b/api/js/google/api/service_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/service_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/service_pb.d.ts b/api/js/google/api/service_pb.d.ts deleted file mode 100644 index c6819a6b..00000000 --- a/api/js/google/api/service_pb.d.ts +++ /dev/null @@ -1,190 +0,0 @@ -// package: google.api -// file: google/api/service.proto - -import * as jspb from "google-protobuf"; -import * as google_api_auth_pb from "../../google/api/auth_pb"; -import * as google_api_backend_pb from "../../google/api/backend_pb"; -import * as google_api_billing_pb from "../../google/api/billing_pb"; -import * as google_api_client_pb from "../../google/api/client_pb"; -import * as google_api_context_pb from "../../google/api/context_pb"; -import * as google_api_control_pb from "../../google/api/control_pb"; -import * as google_api_documentation_pb from "../../google/api/documentation_pb"; -import * as google_api_endpoint_pb from "../../google/api/endpoint_pb"; -import * as google_api_http_pb from "../../google/api/http_pb"; -import * as google_api_log_pb from "../../google/api/log_pb"; -import * as google_api_logging_pb from "../../google/api/logging_pb"; -import * as google_api_metric_pb from "../../google/api/metric_pb"; -import * as google_api_monitored_resource_pb from "../../google/api/monitored_resource_pb"; -import * as google_api_monitoring_pb from "../../google/api/monitoring_pb"; -import * as google_api_quota_pb from "../../google/api/quota_pb"; -import * as google_api_source_info_pb from "../../google/api/source_info_pb"; -import * as google_api_system_parameter_pb from "../../google/api/system_parameter_pb"; -import * as google_api_usage_pb from "../../google/api/usage_pb"; -import * as google_protobuf_api_pb from "google-protobuf/google/protobuf/api_pb"; -import * as google_protobuf_type_pb from "google-protobuf/google/protobuf/type_pb"; -import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb"; - -export class Service extends jspb.Message { - getName(): string; - setName(value: string): void; - - getTitle(): string; - setTitle(value: string): void; - - getProducerProjectId(): string; - setProducerProjectId(value: string): void; - - getId(): string; - setId(value: string): void; - - clearApisList(): void; - getApisList(): Array; - setApisList(value: Array): void; - addApis(value?: google_protobuf_api_pb.Api, index?: number): google_protobuf_api_pb.Api; - - clearTypesList(): void; - getTypesList(): Array; - setTypesList(value: Array): void; - addTypes(value?: google_protobuf_type_pb.Type, index?: number): google_protobuf_type_pb.Type; - - clearEnumsList(): void; - getEnumsList(): Array; - setEnumsList(value: Array): void; - addEnums(value?: google_protobuf_type_pb.Enum, index?: number): google_protobuf_type_pb.Enum; - - hasDocumentation(): boolean; - clearDocumentation(): void; - getDocumentation(): google_api_documentation_pb.Documentation | undefined; - setDocumentation(value?: google_api_documentation_pb.Documentation): void; - - hasBackend(): boolean; - clearBackend(): void; - getBackend(): google_api_backend_pb.Backend | undefined; - setBackend(value?: google_api_backend_pb.Backend): void; - - hasHttp(): boolean; - clearHttp(): void; - getHttp(): google_api_http_pb.Http | undefined; - setHttp(value?: google_api_http_pb.Http): void; - - hasQuota(): boolean; - clearQuota(): void; - getQuota(): google_api_quota_pb.Quota | undefined; - setQuota(value?: google_api_quota_pb.Quota): void; - - hasAuthentication(): boolean; - clearAuthentication(): void; - getAuthentication(): google_api_auth_pb.Authentication | undefined; - setAuthentication(value?: google_api_auth_pb.Authentication): void; - - hasContext(): boolean; - clearContext(): void; - getContext(): google_api_context_pb.Context | undefined; - setContext(value?: google_api_context_pb.Context): void; - - hasUsage(): boolean; - clearUsage(): void; - getUsage(): google_api_usage_pb.Usage | undefined; - setUsage(value?: google_api_usage_pb.Usage): void; - - clearEndpointsList(): void; - getEndpointsList(): Array; - setEndpointsList(value: Array): void; - addEndpoints(value?: google_api_endpoint_pb.Endpoint, index?: number): google_api_endpoint_pb.Endpoint; - - hasControl(): boolean; - clearControl(): void; - getControl(): google_api_control_pb.Control | undefined; - setControl(value?: google_api_control_pb.Control): void; - - clearLogsList(): void; - getLogsList(): Array; - setLogsList(value: Array): void; - addLogs(value?: google_api_log_pb.LogDescriptor, index?: number): google_api_log_pb.LogDescriptor; - - clearMetricsList(): void; - getMetricsList(): Array; - setMetricsList(value: Array): void; - addMetrics(value?: google_api_metric_pb.MetricDescriptor, index?: number): google_api_metric_pb.MetricDescriptor; - - clearMonitoredResourcesList(): void; - getMonitoredResourcesList(): Array; - setMonitoredResourcesList(value: Array): void; - addMonitoredResources(value?: google_api_monitored_resource_pb.MonitoredResourceDescriptor, index?: number): google_api_monitored_resource_pb.MonitoredResourceDescriptor; - - hasBilling(): boolean; - clearBilling(): void; - getBilling(): google_api_billing_pb.Billing | undefined; - setBilling(value?: google_api_billing_pb.Billing): void; - - hasLogging(): boolean; - clearLogging(): void; - getLogging(): google_api_logging_pb.Logging | undefined; - setLogging(value?: google_api_logging_pb.Logging): void; - - hasMonitoring(): boolean; - clearMonitoring(): void; - getMonitoring(): google_api_monitoring_pb.Monitoring | undefined; - setMonitoring(value?: google_api_monitoring_pb.Monitoring): void; - - hasSystemParameters(): boolean; - clearSystemParameters(): void; - getSystemParameters(): google_api_system_parameter_pb.SystemParameters | undefined; - setSystemParameters(value?: google_api_system_parameter_pb.SystemParameters): void; - - hasSourceInfo(): boolean; - clearSourceInfo(): void; - getSourceInfo(): google_api_source_info_pb.SourceInfo | undefined; - setSourceInfo(value?: google_api_source_info_pb.SourceInfo): void; - - hasPublishing(): boolean; - clearPublishing(): void; - getPublishing(): google_api_client_pb.Publishing | undefined; - setPublishing(value?: google_api_client_pb.Publishing): void; - - hasConfigVersion(): boolean; - clearConfigVersion(): void; - getConfigVersion(): google_protobuf_wrappers_pb.UInt32Value | undefined; - setConfigVersion(value?: google_protobuf_wrappers_pb.UInt32Value): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Service.AsObject; - static toObject(includeInstance: boolean, msg: Service): Service.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Service, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Service; - static deserializeBinaryFromReader(message: Service, reader: jspb.BinaryReader): Service; -} - -export namespace Service { - export type AsObject = { - name: string, - title: string, - producerProjectId: string, - id: string, - apisList: Array, - typesList: Array, - enumsList: Array, - documentation?: google_api_documentation_pb.Documentation.AsObject, - backend?: google_api_backend_pb.Backend.AsObject, - http?: google_api_http_pb.Http.AsObject, - quota?: google_api_quota_pb.Quota.AsObject, - authentication?: google_api_auth_pb.Authentication.AsObject, - context?: google_api_context_pb.Context.AsObject, - usage?: google_api_usage_pb.Usage.AsObject, - endpointsList: Array, - control?: google_api_control_pb.Control.AsObject, - logsList: Array, - metricsList: Array, - monitoredResourcesList: Array, - billing?: google_api_billing_pb.Billing.AsObject, - logging?: google_api_logging_pb.Logging.AsObject, - monitoring?: google_api_monitoring_pb.Monitoring.AsObject, - systemParameters?: google_api_system_parameter_pb.SystemParameters.AsObject, - sourceInfo?: google_api_source_info_pb.SourceInfo.AsObject, - publishing?: google_api_client_pb.Publishing.AsObject, - configVersion?: google_protobuf_wrappers_pb.UInt32Value.AsObject, - } -} - diff --git a/api/js/google/api/service_pb.js b/api/js/google/api/service_pb.js deleted file mode 100644 index 01569ecd..00000000 --- a/api/js/google/api/service_pb.js +++ /dev/null @@ -1,1442 +0,0 @@ -// source: google/api/service.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_api_auth_pb = require('../../google/api/auth_pb.js'); -goog.object.extend(proto, google_api_auth_pb); -var google_api_backend_pb = require('../../google/api/backend_pb.js'); -goog.object.extend(proto, google_api_backend_pb); -var google_api_billing_pb = require('../../google/api/billing_pb.js'); -goog.object.extend(proto, google_api_billing_pb); -var google_api_client_pb = require('../../google/api/client_pb.js'); -goog.object.extend(proto, google_api_client_pb); -var google_api_context_pb = require('../../google/api/context_pb.js'); -goog.object.extend(proto, google_api_context_pb); -var google_api_control_pb = require('../../google/api/control_pb.js'); -goog.object.extend(proto, google_api_control_pb); -var google_api_documentation_pb = require('../../google/api/documentation_pb.js'); -goog.object.extend(proto, google_api_documentation_pb); -var google_api_endpoint_pb = require('../../google/api/endpoint_pb.js'); -goog.object.extend(proto, google_api_endpoint_pb); -var google_api_http_pb = require('../../google/api/http_pb.js'); -goog.object.extend(proto, google_api_http_pb); -var google_api_log_pb = require('../../google/api/log_pb.js'); -goog.object.extend(proto, google_api_log_pb); -var google_api_logging_pb = require('../../google/api/logging_pb.js'); -goog.object.extend(proto, google_api_logging_pb); -var google_api_metric_pb = require('../../google/api/metric_pb.js'); -goog.object.extend(proto, google_api_metric_pb); -var google_api_monitored_resource_pb = require('../../google/api/monitored_resource_pb.js'); -goog.object.extend(proto, google_api_monitored_resource_pb); -var google_api_monitoring_pb = require('../../google/api/monitoring_pb.js'); -goog.object.extend(proto, google_api_monitoring_pb); -var google_api_quota_pb = require('../../google/api/quota_pb.js'); -goog.object.extend(proto, google_api_quota_pb); -var google_api_source_info_pb = require('../../google/api/source_info_pb.js'); -goog.object.extend(proto, google_api_source_info_pb); -var google_api_system_parameter_pb = require('../../google/api/system_parameter_pb.js'); -goog.object.extend(proto, google_api_system_parameter_pb); -var google_api_usage_pb = require('../../google/api/usage_pb.js'); -goog.object.extend(proto, google_api_usage_pb); -var google_protobuf_api_pb = require('google-protobuf/google/protobuf/api_pb.js'); -goog.object.extend(proto, google_protobuf_api_pb); -var google_protobuf_type_pb = require('google-protobuf/google/protobuf/type_pb.js'); -goog.object.extend(proto, google_protobuf_type_pb); -var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js'); -goog.object.extend(proto, google_protobuf_wrappers_pb); -goog.exportSymbol('proto.google.api.Service', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Service = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Service.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Service, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Service.displayName = 'proto.google.api.Service'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Service.repeatedFields_ = [3,4,5,18,23,24,25]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Service.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Service.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Service} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Service.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - title: jspb.Message.getFieldWithDefault(msg, 2, ""), - producerProjectId: jspb.Message.getFieldWithDefault(msg, 22, ""), - id: jspb.Message.getFieldWithDefault(msg, 33, ""), - apisList: jspb.Message.toObjectList(msg.getApisList(), - google_protobuf_api_pb.Api.toObject, includeInstance), - typesList: jspb.Message.toObjectList(msg.getTypesList(), - google_protobuf_type_pb.Type.toObject, includeInstance), - enumsList: jspb.Message.toObjectList(msg.getEnumsList(), - google_protobuf_type_pb.Enum.toObject, includeInstance), - documentation: (f = msg.getDocumentation()) && google_api_documentation_pb.Documentation.toObject(includeInstance, f), - backend: (f = msg.getBackend()) && google_api_backend_pb.Backend.toObject(includeInstance, f), - http: (f = msg.getHttp()) && google_api_http_pb.Http.toObject(includeInstance, f), - quota: (f = msg.getQuota()) && google_api_quota_pb.Quota.toObject(includeInstance, f), - authentication: (f = msg.getAuthentication()) && google_api_auth_pb.Authentication.toObject(includeInstance, f), - context: (f = msg.getContext()) && google_api_context_pb.Context.toObject(includeInstance, f), - usage: (f = msg.getUsage()) && google_api_usage_pb.Usage.toObject(includeInstance, f), - endpointsList: jspb.Message.toObjectList(msg.getEndpointsList(), - google_api_endpoint_pb.Endpoint.toObject, includeInstance), - control: (f = msg.getControl()) && google_api_control_pb.Control.toObject(includeInstance, f), - logsList: jspb.Message.toObjectList(msg.getLogsList(), - google_api_log_pb.LogDescriptor.toObject, includeInstance), - metricsList: jspb.Message.toObjectList(msg.getMetricsList(), - google_api_metric_pb.MetricDescriptor.toObject, includeInstance), - monitoredResourcesList: jspb.Message.toObjectList(msg.getMonitoredResourcesList(), - google_api_monitored_resource_pb.MonitoredResourceDescriptor.toObject, includeInstance), - billing: (f = msg.getBilling()) && google_api_billing_pb.Billing.toObject(includeInstance, f), - logging: (f = msg.getLogging()) && google_api_logging_pb.Logging.toObject(includeInstance, f), - monitoring: (f = msg.getMonitoring()) && google_api_monitoring_pb.Monitoring.toObject(includeInstance, f), - systemParameters: (f = msg.getSystemParameters()) && google_api_system_parameter_pb.SystemParameters.toObject(includeInstance, f), - sourceInfo: (f = msg.getSourceInfo()) && google_api_source_info_pb.SourceInfo.toObject(includeInstance, f), - publishing: (f = msg.getPublishing()) && google_api_client_pb.Publishing.toObject(includeInstance, f), - configVersion: (f = msg.getConfigVersion()) && google_protobuf_wrappers_pb.UInt32Value.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Service} - */ -proto.google.api.Service.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Service; - return proto.google.api.Service.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Service} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Service} - */ -proto.google.api.Service.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTitle(value); - break; - case 22: - var value = /** @type {string} */ (reader.readString()); - msg.setProducerProjectId(value); - break; - case 33: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 3: - var value = new google_protobuf_api_pb.Api; - reader.readMessage(value,google_protobuf_api_pb.Api.deserializeBinaryFromReader); - msg.addApis(value); - break; - case 4: - var value = new google_protobuf_type_pb.Type; - reader.readMessage(value,google_protobuf_type_pb.Type.deserializeBinaryFromReader); - msg.addTypes(value); - break; - case 5: - var value = new google_protobuf_type_pb.Enum; - reader.readMessage(value,google_protobuf_type_pb.Enum.deserializeBinaryFromReader); - msg.addEnums(value); - break; - case 6: - var value = new google_api_documentation_pb.Documentation; - reader.readMessage(value,google_api_documentation_pb.Documentation.deserializeBinaryFromReader); - msg.setDocumentation(value); - break; - case 8: - var value = new google_api_backend_pb.Backend; - reader.readMessage(value,google_api_backend_pb.Backend.deserializeBinaryFromReader); - msg.setBackend(value); - break; - case 9: - var value = new google_api_http_pb.Http; - reader.readMessage(value,google_api_http_pb.Http.deserializeBinaryFromReader); - msg.setHttp(value); - break; - case 10: - var value = new google_api_quota_pb.Quota; - reader.readMessage(value,google_api_quota_pb.Quota.deserializeBinaryFromReader); - msg.setQuota(value); - break; - case 11: - var value = new google_api_auth_pb.Authentication; - reader.readMessage(value,google_api_auth_pb.Authentication.deserializeBinaryFromReader); - msg.setAuthentication(value); - break; - case 12: - var value = new google_api_context_pb.Context; - reader.readMessage(value,google_api_context_pb.Context.deserializeBinaryFromReader); - msg.setContext(value); - break; - case 15: - var value = new google_api_usage_pb.Usage; - reader.readMessage(value,google_api_usage_pb.Usage.deserializeBinaryFromReader); - msg.setUsage(value); - break; - case 18: - var value = new google_api_endpoint_pb.Endpoint; - reader.readMessage(value,google_api_endpoint_pb.Endpoint.deserializeBinaryFromReader); - msg.addEndpoints(value); - break; - case 21: - var value = new google_api_control_pb.Control; - reader.readMessage(value,google_api_control_pb.Control.deserializeBinaryFromReader); - msg.setControl(value); - break; - case 23: - var value = new google_api_log_pb.LogDescriptor; - reader.readMessage(value,google_api_log_pb.LogDescriptor.deserializeBinaryFromReader); - msg.addLogs(value); - break; - case 24: - var value = new google_api_metric_pb.MetricDescriptor; - reader.readMessage(value,google_api_metric_pb.MetricDescriptor.deserializeBinaryFromReader); - msg.addMetrics(value); - break; - case 25: - var value = new google_api_monitored_resource_pb.MonitoredResourceDescriptor; - reader.readMessage(value,google_api_monitored_resource_pb.MonitoredResourceDescriptor.deserializeBinaryFromReader); - msg.addMonitoredResources(value); - break; - case 26: - var value = new google_api_billing_pb.Billing; - reader.readMessage(value,google_api_billing_pb.Billing.deserializeBinaryFromReader); - msg.setBilling(value); - break; - case 27: - var value = new google_api_logging_pb.Logging; - reader.readMessage(value,google_api_logging_pb.Logging.deserializeBinaryFromReader); - msg.setLogging(value); - break; - case 28: - var value = new google_api_monitoring_pb.Monitoring; - reader.readMessage(value,google_api_monitoring_pb.Monitoring.deserializeBinaryFromReader); - msg.setMonitoring(value); - break; - case 29: - var value = new google_api_system_parameter_pb.SystemParameters; - reader.readMessage(value,google_api_system_parameter_pb.SystemParameters.deserializeBinaryFromReader); - msg.setSystemParameters(value); - break; - case 37: - var value = new google_api_source_info_pb.SourceInfo; - reader.readMessage(value,google_api_source_info_pb.SourceInfo.deserializeBinaryFromReader); - msg.setSourceInfo(value); - break; - case 45: - var value = new google_api_client_pb.Publishing; - reader.readMessage(value,google_api_client_pb.Publishing.deserializeBinaryFromReader); - msg.setPublishing(value); - break; - case 20: - var value = new google_protobuf_wrappers_pb.UInt32Value; - reader.readMessage(value,google_protobuf_wrappers_pb.UInt32Value.deserializeBinaryFromReader); - msg.setConfigVersion(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Service.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Service.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Service} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Service.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTitle(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getProducerProjectId(); - if (f.length > 0) { - writer.writeString( - 22, - f - ); - } - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 33, - f - ); - } - f = message.getApisList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - google_protobuf_api_pb.Api.serializeBinaryToWriter - ); - } - f = message.getTypesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - google_protobuf_type_pb.Type.serializeBinaryToWriter - ); - } - f = message.getEnumsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - google_protobuf_type_pb.Enum.serializeBinaryToWriter - ); - } - f = message.getDocumentation(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_api_documentation_pb.Documentation.serializeBinaryToWriter - ); - } - f = message.getBackend(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_api_backend_pb.Backend.serializeBinaryToWriter - ); - } - f = message.getHttp(); - if (f != null) { - writer.writeMessage( - 9, - f, - google_api_http_pb.Http.serializeBinaryToWriter - ); - } - f = message.getQuota(); - if (f != null) { - writer.writeMessage( - 10, - f, - google_api_quota_pb.Quota.serializeBinaryToWriter - ); - } - f = message.getAuthentication(); - if (f != null) { - writer.writeMessage( - 11, - f, - google_api_auth_pb.Authentication.serializeBinaryToWriter - ); - } - f = message.getContext(); - if (f != null) { - writer.writeMessage( - 12, - f, - google_api_context_pb.Context.serializeBinaryToWriter - ); - } - f = message.getUsage(); - if (f != null) { - writer.writeMessage( - 15, - f, - google_api_usage_pb.Usage.serializeBinaryToWriter - ); - } - f = message.getEndpointsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 18, - f, - google_api_endpoint_pb.Endpoint.serializeBinaryToWriter - ); - } - f = message.getControl(); - if (f != null) { - writer.writeMessage( - 21, - f, - google_api_control_pb.Control.serializeBinaryToWriter - ); - } - f = message.getLogsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 23, - f, - google_api_log_pb.LogDescriptor.serializeBinaryToWriter - ); - } - f = message.getMetricsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 24, - f, - google_api_metric_pb.MetricDescriptor.serializeBinaryToWriter - ); - } - f = message.getMonitoredResourcesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 25, - f, - google_api_monitored_resource_pb.MonitoredResourceDescriptor.serializeBinaryToWriter - ); - } - f = message.getBilling(); - if (f != null) { - writer.writeMessage( - 26, - f, - google_api_billing_pb.Billing.serializeBinaryToWriter - ); - } - f = message.getLogging(); - if (f != null) { - writer.writeMessage( - 27, - f, - google_api_logging_pb.Logging.serializeBinaryToWriter - ); - } - f = message.getMonitoring(); - if (f != null) { - writer.writeMessage( - 28, - f, - google_api_monitoring_pb.Monitoring.serializeBinaryToWriter - ); - } - f = message.getSystemParameters(); - if (f != null) { - writer.writeMessage( - 29, - f, - google_api_system_parameter_pb.SystemParameters.serializeBinaryToWriter - ); - } - f = message.getSourceInfo(); - if (f != null) { - writer.writeMessage( - 37, - f, - google_api_source_info_pb.SourceInfo.serializeBinaryToWriter - ); - } - f = message.getPublishing(); - if (f != null) { - writer.writeMessage( - 45, - f, - google_api_client_pb.Publishing.serializeBinaryToWriter - ); - } - f = message.getConfigVersion(); - if (f != null) { - writer.writeMessage( - 20, - f, - google_protobuf_wrappers_pb.UInt32Value.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.api.Service.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string title = 2; - * @return {string} - */ -proto.google.api.Service.prototype.getTitle = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.setTitle = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string producer_project_id = 22; - * @return {string} - */ -proto.google.api.Service.prototype.getProducerProjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.setProducerProjectId = function(value) { - return jspb.Message.setProto3StringField(this, 22, value); -}; - - -/** - * optional string id = 33; - * @return {string} - */ -proto.google.api.Service.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 33, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 33, value); -}; - - -/** - * repeated google.protobuf.Api apis = 3; - * @return {!Array} - */ -proto.google.api.Service.prototype.getApisList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_protobuf_api_pb.Api, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setApisList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.google.protobuf.Api=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.Api} - */ -proto.google.api.Service.prototype.addApis = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.Api, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearApisList = function() { - return this.setApisList([]); -}; - - -/** - * repeated google.protobuf.Type types = 4; - * @return {!Array} - */ -proto.google.api.Service.prototype.getTypesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_protobuf_type_pb.Type, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setTypesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.google.protobuf.Type=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.Type} - */ -proto.google.api.Service.prototype.addTypes = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.protobuf.Type, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearTypesList = function() { - return this.setTypesList([]); -}; - - -/** - * repeated google.protobuf.Enum enums = 5; - * @return {!Array} - */ -proto.google.api.Service.prototype.getEnumsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_protobuf_type_pb.Enum, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setEnumsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.google.protobuf.Enum=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.Enum} - */ -proto.google.api.Service.prototype.addEnums = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.protobuf.Enum, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearEnumsList = function() { - return this.setEnumsList([]); -}; - - -/** - * optional Documentation documentation = 6; - * @return {?proto.google.api.Documentation} - */ -proto.google.api.Service.prototype.getDocumentation = function() { - return /** @type{?proto.google.api.Documentation} */ ( - jspb.Message.getWrapperField(this, google_api_documentation_pb.Documentation, 6)); -}; - - -/** - * @param {?proto.google.api.Documentation|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setDocumentation = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearDocumentation = function() { - return this.setDocumentation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasDocumentation = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional Backend backend = 8; - * @return {?proto.google.api.Backend} - */ -proto.google.api.Service.prototype.getBackend = function() { - return /** @type{?proto.google.api.Backend} */ ( - jspb.Message.getWrapperField(this, google_api_backend_pb.Backend, 8)); -}; - - -/** - * @param {?proto.google.api.Backend|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setBackend = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearBackend = function() { - return this.setBackend(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasBackend = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional Http http = 9; - * @return {?proto.google.api.Http} - */ -proto.google.api.Service.prototype.getHttp = function() { - return /** @type{?proto.google.api.Http} */ ( - jspb.Message.getWrapperField(this, google_api_http_pb.Http, 9)); -}; - - -/** - * @param {?proto.google.api.Http|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setHttp = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearHttp = function() { - return this.setHttp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasHttp = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional Quota quota = 10; - * @return {?proto.google.api.Quota} - */ -proto.google.api.Service.prototype.getQuota = function() { - return /** @type{?proto.google.api.Quota} */ ( - jspb.Message.getWrapperField(this, google_api_quota_pb.Quota, 10)); -}; - - -/** - * @param {?proto.google.api.Quota|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setQuota = function(value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearQuota = function() { - return this.setQuota(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasQuota = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional Authentication authentication = 11; - * @return {?proto.google.api.Authentication} - */ -proto.google.api.Service.prototype.getAuthentication = function() { - return /** @type{?proto.google.api.Authentication} */ ( - jspb.Message.getWrapperField(this, google_api_auth_pb.Authentication, 11)); -}; - - -/** - * @param {?proto.google.api.Authentication|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setAuthentication = function(value) { - return jspb.Message.setWrapperField(this, 11, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearAuthentication = function() { - return this.setAuthentication(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasAuthentication = function() { - return jspb.Message.getField(this, 11) != null; -}; - - -/** - * optional Context context = 12; - * @return {?proto.google.api.Context} - */ -proto.google.api.Service.prototype.getContext = function() { - return /** @type{?proto.google.api.Context} */ ( - jspb.Message.getWrapperField(this, google_api_context_pb.Context, 12)); -}; - - -/** - * @param {?proto.google.api.Context|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setContext = function(value) { - return jspb.Message.setWrapperField(this, 12, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearContext = function() { - return this.setContext(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasContext = function() { - return jspb.Message.getField(this, 12) != null; -}; - - -/** - * optional Usage usage = 15; - * @return {?proto.google.api.Usage} - */ -proto.google.api.Service.prototype.getUsage = function() { - return /** @type{?proto.google.api.Usage} */ ( - jspb.Message.getWrapperField(this, google_api_usage_pb.Usage, 15)); -}; - - -/** - * @param {?proto.google.api.Usage|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setUsage = function(value) { - return jspb.Message.setWrapperField(this, 15, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearUsage = function() { - return this.setUsage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasUsage = function() { - return jspb.Message.getField(this, 15) != null; -}; - - -/** - * repeated Endpoint endpoints = 18; - * @return {!Array} - */ -proto.google.api.Service.prototype.getEndpointsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_api_endpoint_pb.Endpoint, 18)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setEndpointsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 18, value); -}; - - -/** - * @param {!proto.google.api.Endpoint=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.Endpoint} - */ -proto.google.api.Service.prototype.addEndpoints = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 18, opt_value, proto.google.api.Endpoint, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearEndpointsList = function() { - return this.setEndpointsList([]); -}; - - -/** - * optional Control control = 21; - * @return {?proto.google.api.Control} - */ -proto.google.api.Service.prototype.getControl = function() { - return /** @type{?proto.google.api.Control} */ ( - jspb.Message.getWrapperField(this, google_api_control_pb.Control, 21)); -}; - - -/** - * @param {?proto.google.api.Control|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setControl = function(value) { - return jspb.Message.setWrapperField(this, 21, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearControl = function() { - return this.setControl(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasControl = function() { - return jspb.Message.getField(this, 21) != null; -}; - - -/** - * repeated LogDescriptor logs = 23; - * @return {!Array} - */ -proto.google.api.Service.prototype.getLogsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_api_log_pb.LogDescriptor, 23)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setLogsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 23, value); -}; - - -/** - * @param {!proto.google.api.LogDescriptor=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.LogDescriptor} - */ -proto.google.api.Service.prototype.addLogs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 23, opt_value, proto.google.api.LogDescriptor, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearLogsList = function() { - return this.setLogsList([]); -}; - - -/** - * repeated MetricDescriptor metrics = 24; - * @return {!Array} - */ -proto.google.api.Service.prototype.getMetricsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_api_metric_pb.MetricDescriptor, 24)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setMetricsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 24, value); -}; - - -/** - * @param {!proto.google.api.MetricDescriptor=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.MetricDescriptor} - */ -proto.google.api.Service.prototype.addMetrics = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 24, opt_value, proto.google.api.MetricDescriptor, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearMetricsList = function() { - return this.setMetricsList([]); -}; - - -/** - * repeated MonitoredResourceDescriptor monitored_resources = 25; - * @return {!Array} - */ -proto.google.api.Service.prototype.getMonitoredResourcesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_api_monitored_resource_pb.MonitoredResourceDescriptor, 25)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setMonitoredResourcesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 25, value); -}; - - -/** - * @param {!proto.google.api.MonitoredResourceDescriptor=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.MonitoredResourceDescriptor} - */ -proto.google.api.Service.prototype.addMonitoredResources = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 25, opt_value, proto.google.api.MonitoredResourceDescriptor, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearMonitoredResourcesList = function() { - return this.setMonitoredResourcesList([]); -}; - - -/** - * optional Billing billing = 26; - * @return {?proto.google.api.Billing} - */ -proto.google.api.Service.prototype.getBilling = function() { - return /** @type{?proto.google.api.Billing} */ ( - jspb.Message.getWrapperField(this, google_api_billing_pb.Billing, 26)); -}; - - -/** - * @param {?proto.google.api.Billing|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setBilling = function(value) { - return jspb.Message.setWrapperField(this, 26, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearBilling = function() { - return this.setBilling(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasBilling = function() { - return jspb.Message.getField(this, 26) != null; -}; - - -/** - * optional Logging logging = 27; - * @return {?proto.google.api.Logging} - */ -proto.google.api.Service.prototype.getLogging = function() { - return /** @type{?proto.google.api.Logging} */ ( - jspb.Message.getWrapperField(this, google_api_logging_pb.Logging, 27)); -}; - - -/** - * @param {?proto.google.api.Logging|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setLogging = function(value) { - return jspb.Message.setWrapperField(this, 27, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearLogging = function() { - return this.setLogging(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasLogging = function() { - return jspb.Message.getField(this, 27) != null; -}; - - -/** - * optional Monitoring monitoring = 28; - * @return {?proto.google.api.Monitoring} - */ -proto.google.api.Service.prototype.getMonitoring = function() { - return /** @type{?proto.google.api.Monitoring} */ ( - jspb.Message.getWrapperField(this, google_api_monitoring_pb.Monitoring, 28)); -}; - - -/** - * @param {?proto.google.api.Monitoring|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setMonitoring = function(value) { - return jspb.Message.setWrapperField(this, 28, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearMonitoring = function() { - return this.setMonitoring(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasMonitoring = function() { - return jspb.Message.getField(this, 28) != null; -}; - - -/** - * optional SystemParameters system_parameters = 29; - * @return {?proto.google.api.SystemParameters} - */ -proto.google.api.Service.prototype.getSystemParameters = function() { - return /** @type{?proto.google.api.SystemParameters} */ ( - jspb.Message.getWrapperField(this, google_api_system_parameter_pb.SystemParameters, 29)); -}; - - -/** - * @param {?proto.google.api.SystemParameters|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setSystemParameters = function(value) { - return jspb.Message.setWrapperField(this, 29, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearSystemParameters = function() { - return this.setSystemParameters(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasSystemParameters = function() { - return jspb.Message.getField(this, 29) != null; -}; - - -/** - * optional SourceInfo source_info = 37; - * @return {?proto.google.api.SourceInfo} - */ -proto.google.api.Service.prototype.getSourceInfo = function() { - return /** @type{?proto.google.api.SourceInfo} */ ( - jspb.Message.getWrapperField(this, google_api_source_info_pb.SourceInfo, 37)); -}; - - -/** - * @param {?proto.google.api.SourceInfo|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setSourceInfo = function(value) { - return jspb.Message.setWrapperField(this, 37, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearSourceInfo = function() { - return this.setSourceInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasSourceInfo = function() { - return jspb.Message.getField(this, 37) != null; -}; - - -/** - * optional Publishing publishing = 45; - * @return {?proto.google.api.Publishing} - */ -proto.google.api.Service.prototype.getPublishing = function() { - return /** @type{?proto.google.api.Publishing} */ ( - jspb.Message.getWrapperField(this, google_api_client_pb.Publishing, 45)); -}; - - -/** - * @param {?proto.google.api.Publishing|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setPublishing = function(value) { - return jspb.Message.setWrapperField(this, 45, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearPublishing = function() { - return this.setPublishing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasPublishing = function() { - return jspb.Message.getField(this, 45) != null; -}; - - -/** - * optional google.protobuf.UInt32Value config_version = 20; - * @return {?proto.google.protobuf.UInt32Value} - */ -proto.google.api.Service.prototype.getConfigVersion = function() { - return /** @type{?proto.google.protobuf.UInt32Value} */ ( - jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt32Value, 20)); -}; - - -/** - * @param {?proto.google.protobuf.UInt32Value|undefined} value - * @return {!proto.google.api.Service} returns this -*/ -proto.google.api.Service.prototype.setConfigVersion = function(value) { - return jspb.Message.setWrapperField(this, 20, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.google.api.Service} returns this - */ -proto.google.api.Service.prototype.clearConfigVersion = function() { - return this.setConfigVersion(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.google.api.Service.prototype.hasConfigVersion = function() { - return jspb.Message.getField(this, 20) != null; -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/source_info_grpc_pb.d.ts b/api/js/google/api/source_info_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/source_info_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/source_info_pb.d.ts b/api/js/google/api/source_info_pb.d.ts deleted file mode 100644 index 572c899f..00000000 --- a/api/js/google/api/source_info_pb.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -// package: google.api -// file: google/api/source_info.proto - -import * as jspb from "google-protobuf"; -import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; - -export class SourceInfo extends jspb.Message { - clearSourceFilesList(): void; - getSourceFilesList(): Array; - setSourceFilesList(value: Array): void; - addSourceFiles(value?: google_protobuf_any_pb.Any, index?: number): google_protobuf_any_pb.Any; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SourceInfo.AsObject; - static toObject(includeInstance: boolean, msg: SourceInfo): SourceInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SourceInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SourceInfo; - static deserializeBinaryFromReader(message: SourceInfo, reader: jspb.BinaryReader): SourceInfo; -} - -export namespace SourceInfo { - export type AsObject = { - sourceFilesList: Array, - } -} - diff --git a/api/js/google/api/source_info_pb.js b/api/js/google/api/source_info_pb.js deleted file mode 100644 index f8d72309..00000000 --- a/api/js/google/api/source_info_pb.js +++ /dev/null @@ -1,199 +0,0 @@ -// source: google/api/source_info.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); -goog.object.extend(proto, google_protobuf_any_pb); -goog.exportSymbol('proto.google.api.SourceInfo', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.SourceInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.SourceInfo.repeatedFields_, null); -}; -goog.inherits(proto.google.api.SourceInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.SourceInfo.displayName = 'proto.google.api.SourceInfo'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.SourceInfo.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.SourceInfo.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.SourceInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.SourceInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.SourceInfo.toObject = function(includeInstance, msg) { - var f, obj = { - sourceFilesList: jspb.Message.toObjectList(msg.getSourceFilesList(), - google_protobuf_any_pb.Any.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.SourceInfo} - */ -proto.google.api.SourceInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.SourceInfo; - return proto.google.api.SourceInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.SourceInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.SourceInfo} - */ -proto.google.api.SourceInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_any_pb.Any; - reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); - msg.addSourceFiles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.SourceInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.SourceInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.SourceInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.SourceInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSourceFilesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - google_protobuf_any_pb.Any.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated google.protobuf.Any source_files = 1; - * @return {!Array} - */ -proto.google.api.SourceInfo.prototype.getSourceFilesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, google_protobuf_any_pb.Any, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.SourceInfo} returns this -*/ -proto.google.api.SourceInfo.prototype.setSourceFilesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.protobuf.Any=} opt_value - * @param {number=} opt_index - * @return {!proto.google.protobuf.Any} - */ -proto.google.api.SourceInfo.prototype.addSourceFiles = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.Any, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.SourceInfo} returns this - */ -proto.google.api.SourceInfo.prototype.clearSourceFilesList = function() { - return this.setSourceFilesList([]); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/system_parameter_grpc_pb.d.ts b/api/js/google/api/system_parameter_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/system_parameter_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/system_parameter_pb.d.ts b/api/js/google/api/system_parameter_pb.d.ts deleted file mode 100644 index f42da547..00000000 --- a/api/js/google/api/system_parameter_pb.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -// package: google.api -// file: google/api/system_parameter.proto - -import * as jspb from "google-protobuf"; - -export class SystemParameters extends jspb.Message { - clearRulesList(): void; - getRulesList(): Array; - setRulesList(value: Array): void; - addRules(value?: SystemParameterRule, index?: number): SystemParameterRule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SystemParameters.AsObject; - static toObject(includeInstance: boolean, msg: SystemParameters): SystemParameters.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SystemParameters, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SystemParameters; - static deserializeBinaryFromReader(message: SystemParameters, reader: jspb.BinaryReader): SystemParameters; -} - -export namespace SystemParameters { - export type AsObject = { - rulesList: Array, - } -} - -export class SystemParameterRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): void; - - clearParametersList(): void; - getParametersList(): Array; - setParametersList(value: Array): void; - addParameters(value?: SystemParameter, index?: number): SystemParameter; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SystemParameterRule.AsObject; - static toObject(includeInstance: boolean, msg: SystemParameterRule): SystemParameterRule.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SystemParameterRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SystemParameterRule; - static deserializeBinaryFromReader(message: SystemParameterRule, reader: jspb.BinaryReader): SystemParameterRule; -} - -export namespace SystemParameterRule { - export type AsObject = { - selector: string, - parametersList: Array, - } -} - -export class SystemParameter extends jspb.Message { - getName(): string; - setName(value: string): void; - - getHttpHeader(): string; - setHttpHeader(value: string): void; - - getUrlQueryParameter(): string; - setUrlQueryParameter(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SystemParameter.AsObject; - static toObject(includeInstance: boolean, msg: SystemParameter): SystemParameter.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SystemParameter, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SystemParameter; - static deserializeBinaryFromReader(message: SystemParameter, reader: jspb.BinaryReader): SystemParameter; -} - -export namespace SystemParameter { - export type AsObject = { - name: string, - httpHeader: string, - urlQueryParameter: string, - } -} - diff --git a/api/js/google/api/system_parameter_pb.js b/api/js/google/api/system_parameter_pb.js deleted file mode 100644 index 5524ea0d..00000000 --- a/api/js/google/api/system_parameter_pb.js +++ /dev/null @@ -1,621 +0,0 @@ -// source: google/api/system_parameter.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.SystemParameter', null, global); -goog.exportSymbol('proto.google.api.SystemParameterRule', null, global); -goog.exportSymbol('proto.google.api.SystemParameters', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.SystemParameters = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.SystemParameters.repeatedFields_, null); -}; -goog.inherits(proto.google.api.SystemParameters, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.SystemParameters.displayName = 'proto.google.api.SystemParameters'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.SystemParameterRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.SystemParameterRule.repeatedFields_, null); -}; -goog.inherits(proto.google.api.SystemParameterRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.SystemParameterRule.displayName = 'proto.google.api.SystemParameterRule'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.SystemParameter = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.SystemParameter, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.SystemParameter.displayName = 'proto.google.api.SystemParameter'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.SystemParameters.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.SystemParameters.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.SystemParameters.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.SystemParameters} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.SystemParameters.toObject = function(includeInstance, msg) { - var f, obj = { - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.google.api.SystemParameterRule.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.SystemParameters} - */ -proto.google.api.SystemParameters.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.SystemParameters; - return proto.google.api.SystemParameters.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.SystemParameters} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.SystemParameters} - */ -proto.google.api.SystemParameters.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.SystemParameterRule; - reader.readMessage(value,proto.google.api.SystemParameterRule.deserializeBinaryFromReader); - msg.addRules(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.SystemParameters.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.SystemParameters.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.SystemParameters} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.SystemParameters.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.api.SystemParameterRule.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated SystemParameterRule rules = 1; - * @return {!Array} - */ -proto.google.api.SystemParameters.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.SystemParameterRule, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.SystemParameters} returns this -*/ -proto.google.api.SystemParameters.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.api.SystemParameterRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.SystemParameterRule} - */ -proto.google.api.SystemParameters.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.SystemParameterRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.SystemParameters} returns this - */ -proto.google.api.SystemParameters.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.SystemParameterRule.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.SystemParameterRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.SystemParameterRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.SystemParameterRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.SystemParameterRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - parametersList: jspb.Message.toObjectList(msg.getParametersList(), - proto.google.api.SystemParameter.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.SystemParameterRule} - */ -proto.google.api.SystemParameterRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.SystemParameterRule; - return proto.google.api.SystemParameterRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.SystemParameterRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.SystemParameterRule} - */ -proto.google.api.SystemParameterRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = new proto.google.api.SystemParameter; - reader.readMessage(value,proto.google.api.SystemParameter.deserializeBinaryFromReader); - msg.addParameters(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.SystemParameterRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.SystemParameterRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.SystemParameterRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.SystemParameterRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getParametersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.google.api.SystemParameter.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.SystemParameterRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.SystemParameterRule} returns this - */ -proto.google.api.SystemParameterRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated SystemParameter parameters = 2; - * @return {!Array} - */ -proto.google.api.SystemParameterRule.prototype.getParametersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.SystemParameter, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.SystemParameterRule} returns this -*/ -proto.google.api.SystemParameterRule.prototype.setParametersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.google.api.SystemParameter=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.SystemParameter} - */ -proto.google.api.SystemParameterRule.prototype.addParameters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.SystemParameter, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.SystemParameterRule} returns this - */ -proto.google.api.SystemParameterRule.prototype.clearParametersList = function() { - return this.setParametersList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.SystemParameter.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.SystemParameter.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.SystemParameter} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.SystemParameter.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - httpHeader: jspb.Message.getFieldWithDefault(msg, 2, ""), - urlQueryParameter: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.SystemParameter} - */ -proto.google.api.SystemParameter.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.SystemParameter; - return proto.google.api.SystemParameter.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.SystemParameter} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.SystemParameter} - */ -proto.google.api.SystemParameter.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setHttpHeader(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setUrlQueryParameter(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.SystemParameter.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.SystemParameter.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.SystemParameter} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.SystemParameter.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHttpHeader(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getUrlQueryParameter(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.google.api.SystemParameter.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.SystemParameter} returns this - */ -proto.google.api.SystemParameter.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string http_header = 2; - * @return {string} - */ -proto.google.api.SystemParameter.prototype.getHttpHeader = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.SystemParameter} returns this - */ -proto.google.api.SystemParameter.prototype.setHttpHeader = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string url_query_parameter = 3; - * @return {string} - */ -proto.google.api.SystemParameter.prototype.getUrlQueryParameter = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.SystemParameter} returns this - */ -proto.google.api.SystemParameter.prototype.setUrlQueryParameter = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/usage_grpc_pb.d.ts b/api/js/google/api/usage_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/usage_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/usage_pb.d.ts b/api/js/google/api/usage_pb.d.ts deleted file mode 100644 index ce4f57fa..00000000 --- a/api/js/google/api/usage_pb.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -// package: google.api -// file: google/api/usage.proto - -import * as jspb from "google-protobuf"; - -export class Usage extends jspb.Message { - clearRequirementsList(): void; - getRequirementsList(): Array; - setRequirementsList(value: Array): void; - addRequirements(value: string, index?: number): string; - - clearRulesList(): void; - getRulesList(): Array; - setRulesList(value: Array): void; - addRules(value?: UsageRule, index?: number): UsageRule; - - getProducerNotificationChannel(): string; - setProducerNotificationChannel(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Usage.AsObject; - static toObject(includeInstance: boolean, msg: Usage): Usage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Usage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Usage; - static deserializeBinaryFromReader(message: Usage, reader: jspb.BinaryReader): Usage; -} - -export namespace Usage { - export type AsObject = { - requirementsList: Array, - rulesList: Array, - producerNotificationChannel: string, - } -} - -export class UsageRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): void; - - getAllowUnregisteredCalls(): boolean; - setAllowUnregisteredCalls(value: boolean): void; - - getSkipServiceControl(): boolean; - setSkipServiceControl(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UsageRule.AsObject; - static toObject(includeInstance: boolean, msg: UsageRule): UsageRule.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UsageRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UsageRule; - static deserializeBinaryFromReader(message: UsageRule, reader: jspb.BinaryReader): UsageRule; -} - -export namespace UsageRule { - export type AsObject = { - selector: string, - allowUnregisteredCalls: boolean, - skipServiceControl: boolean, - } -} - diff --git a/api/js/google/api/usage_pb.js b/api/js/google/api/usage_pb.js deleted file mode 100644 index 1bb9b425..00000000 --- a/api/js/google/api/usage_pb.js +++ /dev/null @@ -1,488 +0,0 @@ -// source: google/api/usage.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.google.api.Usage', null, global); -goog.exportSymbol('proto.google.api.UsageRule', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Usage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Usage.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Usage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Usage.displayName = 'proto.google.api.Usage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.UsageRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.UsageRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.UsageRule.displayName = 'proto.google.api.UsageRule'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Usage.repeatedFields_ = [1,6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Usage.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Usage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Usage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Usage.toObject = function(includeInstance, msg) { - var f, obj = { - requirementsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.google.api.UsageRule.toObject, includeInstance), - producerNotificationChannel: jspb.Message.getFieldWithDefault(msg, 7, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Usage} - */ -proto.google.api.Usage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Usage; - return proto.google.api.Usage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Usage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Usage} - */ -proto.google.api.Usage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addRequirements(value); - break; - case 6: - var value = new proto.google.api.UsageRule; - reader.readMessage(value,proto.google.api.UsageRule.deserializeBinaryFromReader); - msg.addRules(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setProducerNotificationChannel(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Usage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Usage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Usage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Usage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequirementsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.google.api.UsageRule.serializeBinaryToWriter - ); - } - f = message.getProducerNotificationChannel(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * repeated string requirements = 1; - * @return {!Array} - */ -proto.google.api.Usage.prototype.getRequirementsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Usage} returns this - */ -proto.google.api.Usage.prototype.setRequirementsList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.google.api.Usage} returns this - */ -proto.google.api.Usage.prototype.addRequirements = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Usage} returns this - */ -proto.google.api.Usage.prototype.clearRequirementsList = function() { - return this.setRequirementsList([]); -}; - - -/** - * repeated UsageRule rules = 6; - * @return {!Array} - */ -proto.google.api.Usage.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.UsageRule, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Usage} returns this -*/ -proto.google.api.Usage.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.google.api.UsageRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.UsageRule} - */ -proto.google.api.Usage.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.google.api.UsageRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Usage} returns this - */ -proto.google.api.Usage.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - -/** - * optional string producer_notification_channel = 7; - * @return {string} - */ -proto.google.api.Usage.prototype.getProducerNotificationChannel = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.Usage} returns this - */ -proto.google.api.Usage.prototype.setProducerNotificationChannel = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.UsageRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.UsageRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.UsageRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.UsageRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - allowUnregisteredCalls: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - skipServiceControl: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.UsageRule} - */ -proto.google.api.UsageRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.UsageRule; - return proto.google.api.UsageRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.UsageRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.UsageRule} - */ -proto.google.api.UsageRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAllowUnregisteredCalls(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSkipServiceControl(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.UsageRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.UsageRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.UsageRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.UsageRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAllowUnregisteredCalls(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getSkipServiceControl(); - if (f) { - writer.writeBool( - 3, - f - ); - } -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.UsageRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.UsageRule} returns this - */ -proto.google.api.UsageRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool allow_unregistered_calls = 2; - * @return {boolean} - */ -proto.google.api.UsageRule.prototype.getAllowUnregisteredCalls = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.api.UsageRule} returns this - */ -proto.google.api.UsageRule.prototype.setAllowUnregisteredCalls = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional bool skip_service_control = 3; - * @return {boolean} - */ -proto.google.api.UsageRule.prototype.getSkipServiceControl = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.google.api.UsageRule} returns this - */ -proto.google.api.UsageRule.prototype.setSkipServiceControl = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/google/api/visibility_grpc_pb.d.ts b/api/js/google/api/visibility_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/google/api/visibility_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/google/api/visibility_pb.d.ts b/api/js/google/api/visibility_pb.d.ts deleted file mode 100644 index 1de6b27f..00000000 --- a/api/js/google/api/visibility_pb.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -// package: google.api -// file: google/api/visibility.proto - -import * as jspb from "google-protobuf"; -import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; - -export class Visibility extends jspb.Message { - clearRulesList(): void; - getRulesList(): Array; - setRulesList(value: Array): void; - addRules(value?: VisibilityRule, index?: number): VisibilityRule; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Visibility.AsObject; - static toObject(includeInstance: boolean, msg: Visibility): Visibility.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Visibility, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Visibility; - static deserializeBinaryFromReader(message: Visibility, reader: jspb.BinaryReader): Visibility; -} - -export namespace Visibility { - export type AsObject = { - rulesList: Array, - } -} - -export class VisibilityRule extends jspb.Message { - getSelector(): string; - setSelector(value: string): void; - - getRestriction(): string; - setRestriction(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VisibilityRule.AsObject; - static toObject(includeInstance: boolean, msg: VisibilityRule): VisibilityRule.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VisibilityRule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VisibilityRule; - static deserializeBinaryFromReader(message: VisibilityRule, reader: jspb.BinaryReader): VisibilityRule; -} - -export namespace VisibilityRule { - export type AsObject = { - selector: string, - restriction: string, - } -} - - export const enumVisibility: jspb.ExtensionFieldInfo; - - export const valueVisibility: jspb.ExtensionFieldInfo; - - export const fieldVisibility: jspb.ExtensionFieldInfo; - - export const messageVisibility: jspb.ExtensionFieldInfo; - - export const methodVisibility: jspb.ExtensionFieldInfo; - - export const apiVisibility: jspb.ExtensionFieldInfo; - diff --git a/api/js/google/api/visibility_pb.js b/api/js/google/api/visibility_pb.js deleted file mode 100644 index 048a516b..00000000 --- a/api/js/google/api/visibility_pb.js +++ /dev/null @@ -1,537 +0,0 @@ -// source: google/api/visibility.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); -goog.object.extend(proto, google_protobuf_descriptor_pb); -goog.exportSymbol('proto.google.api.Visibility', null, global); -goog.exportSymbol('proto.google.api.VisibilityRule', null, global); -goog.exportSymbol('proto.google.api.apiVisibility', null, global); -goog.exportSymbol('proto.google.api.enumVisibility', null, global); -goog.exportSymbol('proto.google.api.fieldVisibility', null, global); -goog.exportSymbol('proto.google.api.messageVisibility', null, global); -goog.exportSymbol('proto.google.api.methodVisibility', null, global); -goog.exportSymbol('proto.google.api.valueVisibility', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.Visibility = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Visibility.repeatedFields_, null); -}; -goog.inherits(proto.google.api.Visibility, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.Visibility.displayName = 'proto.google.api.Visibility'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.google.api.VisibilityRule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.google.api.VisibilityRule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.google.api.VisibilityRule.displayName = 'proto.google.api.VisibilityRule'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.google.api.Visibility.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.Visibility.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.Visibility.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.Visibility} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Visibility.toObject = function(includeInstance, msg) { - var f, obj = { - rulesList: jspb.Message.toObjectList(msg.getRulesList(), - proto.google.api.VisibilityRule.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.Visibility} - */ -proto.google.api.Visibility.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.Visibility; - return proto.google.api.Visibility.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.Visibility} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.Visibility} - */ -proto.google.api.Visibility.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.google.api.VisibilityRule; - reader.readMessage(value,proto.google.api.VisibilityRule.deserializeBinaryFromReader); - msg.addRules(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.Visibility.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.Visibility.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.Visibility} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.Visibility.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRulesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.google.api.VisibilityRule.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated VisibilityRule rules = 1; - * @return {!Array} - */ -proto.google.api.Visibility.prototype.getRulesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.google.api.VisibilityRule, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.google.api.Visibility} returns this -*/ -proto.google.api.Visibility.prototype.setRulesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.google.api.VisibilityRule=} opt_value - * @param {number=} opt_index - * @return {!proto.google.api.VisibilityRule} - */ -proto.google.api.Visibility.prototype.addRules = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.VisibilityRule, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.google.api.Visibility} returns this - */ -proto.google.api.Visibility.prototype.clearRulesList = function() { - return this.setRulesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.google.api.VisibilityRule.prototype.toObject = function(opt_includeInstance) { - return proto.google.api.VisibilityRule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.google.api.VisibilityRule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.VisibilityRule.toObject = function(includeInstance, msg) { - var f, obj = { - selector: jspb.Message.getFieldWithDefault(msg, 1, ""), - restriction: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.google.api.VisibilityRule} - */ -proto.google.api.VisibilityRule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.google.api.VisibilityRule; - return proto.google.api.VisibilityRule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.google.api.VisibilityRule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.google.api.VisibilityRule} - */ -proto.google.api.VisibilityRule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSelector(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setRestriction(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.google.api.VisibilityRule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.google.api.VisibilityRule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.google.api.VisibilityRule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.google.api.VisibilityRule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSelector(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRestriction(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string selector = 1; - * @return {string} - */ -proto.google.api.VisibilityRule.prototype.getSelector = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.VisibilityRule} returns this - */ -proto.google.api.VisibilityRule.prototype.setSelector = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string restriction = 2; - * @return {string} - */ -proto.google.api.VisibilityRule.prototype.getRestriction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.google.api.VisibilityRule} returns this - */ -proto.google.api.VisibilityRule.prototype.setRestriction = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `enumVisibility`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.enumVisibility = new jspb.ExtensionFieldInfo( - 72295727, - {enumVisibility: 0}, - proto.google.api.VisibilityRule, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.VisibilityRule.toObject), - 0); - -google_protobuf_descriptor_pb.EnumOptions.extensionsBinary[72295727] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.enumVisibility, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - proto.google.api.VisibilityRule.serializeBinaryToWriter, - proto.google.api.VisibilityRule.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.EnumOptions.extensions[72295727] = proto.google.api.enumVisibility; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `valueVisibility`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.valueVisibility = new jspb.ExtensionFieldInfo( - 72295727, - {valueVisibility: 0}, - proto.google.api.VisibilityRule, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.VisibilityRule.toObject), - 0); - -google_protobuf_descriptor_pb.EnumValueOptions.extensionsBinary[72295727] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.valueVisibility, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - proto.google.api.VisibilityRule.serializeBinaryToWriter, - proto.google.api.VisibilityRule.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.EnumValueOptions.extensions[72295727] = proto.google.api.valueVisibility; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `fieldVisibility`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.fieldVisibility = new jspb.ExtensionFieldInfo( - 72295727, - {fieldVisibility: 0}, - proto.google.api.VisibilityRule, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.VisibilityRule.toObject), - 0); - -google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[72295727] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.fieldVisibility, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - proto.google.api.VisibilityRule.serializeBinaryToWriter, - proto.google.api.VisibilityRule.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.FieldOptions.extensions[72295727] = proto.google.api.fieldVisibility; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `messageVisibility`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.messageVisibility = new jspb.ExtensionFieldInfo( - 72295727, - {messageVisibility: 0}, - proto.google.api.VisibilityRule, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.VisibilityRule.toObject), - 0); - -google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[72295727] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.messageVisibility, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - proto.google.api.VisibilityRule.serializeBinaryToWriter, - proto.google.api.VisibilityRule.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MessageOptions.extensions[72295727] = proto.google.api.messageVisibility; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `methodVisibility`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.methodVisibility = new jspb.ExtensionFieldInfo( - 72295727, - {methodVisibility: 0}, - proto.google.api.VisibilityRule, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.VisibilityRule.toObject), - 0); - -google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295727] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.methodVisibility, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - proto.google.api.VisibilityRule.serializeBinaryToWriter, - proto.google.api.VisibilityRule.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.MethodOptions.extensions[72295727] = proto.google.api.methodVisibility; - - -/** - * A tuple of {field number, class constructor} for the extension - * field named `apiVisibility`. - * @type {!jspb.ExtensionFieldInfo} - */ -proto.google.api.apiVisibility = new jspb.ExtensionFieldInfo( - 72295727, - {apiVisibility: 0}, - proto.google.api.VisibilityRule, - /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( - proto.google.api.VisibilityRule.toObject), - 0); - -google_protobuf_descriptor_pb.ServiceOptions.extensionsBinary[72295727] = new jspb.ExtensionFieldBinaryInfo( - proto.google.api.apiVisibility, - jspb.BinaryReader.prototype.readMessage, - jspb.BinaryWriter.prototype.writeMessage, - proto.google.api.VisibilityRule.serializeBinaryToWriter, - proto.google.api.VisibilityRule.deserializeBinaryFromReader, - false); -// This registers the extension field with the extended class, so that -// toObject() will function correctly. -google_protobuf_descriptor_pb.ServiceOptions.extensions[72295727] = proto.google.api.apiVisibility; - -goog.object.extend(exports, proto.google.api); diff --git a/api/js/gw/gw_grpc_pb.d.ts b/api/js/gw/gw_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/gw/gw_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/gw/gw_pb.d.ts b/api/js/gw/gw_pb.d.ts deleted file mode 100644 index 83f5d541..00000000 --- a/api/js/gw/gw_pb.d.ts +++ /dev/null @@ -1,1452 +0,0 @@ -// package: gw -// file: gw/gw.proto - -import * as jspb from "google-protobuf"; -import * as common_common_pb from "../common/common_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb"; -import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; - -export class Modulation extends jspb.Message { - hasLora(): boolean; - clearLora(): void; - getLora(): LoraModulationInfo | undefined; - setLora(value?: LoraModulationInfo): void; - - hasFsk(): boolean; - clearFsk(): void; - getFsk(): FskModulationInfo | undefined; - setFsk(value?: FskModulationInfo): void; - - hasLrFhss(): boolean; - clearLrFhss(): void; - getLrFhss(): LrFhssModulationInfo | undefined; - setLrFhss(value?: LrFhssModulationInfo): void; - - getParametersCase(): Modulation.ParametersCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Modulation.AsObject; - static toObject(includeInstance: boolean, msg: Modulation): Modulation.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Modulation, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Modulation; - static deserializeBinaryFromReader(message: Modulation, reader: jspb.BinaryReader): Modulation; -} - -export namespace Modulation { - export type AsObject = { - lora?: LoraModulationInfo.AsObject, - fsk?: FskModulationInfo.AsObject, - lrFhss?: LrFhssModulationInfo.AsObject, - } - - export enum ParametersCase { - PARAMETERS_NOT_SET = 0, - LORA = 3, - FSK = 4, - LR_FHSS = 5, - } -} - -export class UplinkTxInfoLegacy extends jspb.Message { - getFrequency(): number; - setFrequency(value: number): void; - - getModulation(): common_common_pb.ModulationMap[keyof common_common_pb.ModulationMap]; - setModulation(value: common_common_pb.ModulationMap[keyof common_common_pb.ModulationMap]): void; - - hasLoraModulationInfo(): boolean; - clearLoraModulationInfo(): void; - getLoraModulationInfo(): LoraModulationInfo | undefined; - setLoraModulationInfo(value?: LoraModulationInfo): void; - - hasFskModulationInfo(): boolean; - clearFskModulationInfo(): void; - getFskModulationInfo(): FskModulationInfo | undefined; - setFskModulationInfo(value?: FskModulationInfo): void; - - hasLrFhssModulationInfo(): boolean; - clearLrFhssModulationInfo(): void; - getLrFhssModulationInfo(): LrFhssModulationInfo | undefined; - setLrFhssModulationInfo(value?: LrFhssModulationInfo): void; - - getModulationInfoCase(): UplinkTxInfoLegacy.ModulationInfoCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UplinkTxInfoLegacy.AsObject; - static toObject(includeInstance: boolean, msg: UplinkTxInfoLegacy): UplinkTxInfoLegacy.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UplinkTxInfoLegacy, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UplinkTxInfoLegacy; - static deserializeBinaryFromReader(message: UplinkTxInfoLegacy, reader: jspb.BinaryReader): UplinkTxInfoLegacy; -} - -export namespace UplinkTxInfoLegacy { - export type AsObject = { - frequency: number, - modulation: common_common_pb.ModulationMap[keyof common_common_pb.ModulationMap], - loraModulationInfo?: LoraModulationInfo.AsObject, - fskModulationInfo?: FskModulationInfo.AsObject, - lrFhssModulationInfo?: LrFhssModulationInfo.AsObject, - } - - export enum ModulationInfoCase { - MODULATION_INFO_NOT_SET = 0, - LORA_MODULATION_INFO = 3, - FSK_MODULATION_INFO = 4, - LR_FHSS_MODULATION_INFO = 5, - } -} - -export class UplinkTxInfo extends jspb.Message { - getFrequency(): number; - setFrequency(value: number): void; - - hasModulation(): boolean; - clearModulation(): void; - getModulation(): Modulation | undefined; - setModulation(value?: Modulation): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UplinkTxInfo.AsObject; - static toObject(includeInstance: boolean, msg: UplinkTxInfo): UplinkTxInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UplinkTxInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UplinkTxInfo; - static deserializeBinaryFromReader(message: UplinkTxInfo, reader: jspb.BinaryReader): UplinkTxInfo; -} - -export namespace UplinkTxInfo { - export type AsObject = { - frequency: number, - modulation?: Modulation.AsObject, - } -} - -export class LoraModulationInfo extends jspb.Message { - getBandwidth(): number; - setBandwidth(value: number): void; - - getSpreadingFactor(): number; - setSpreadingFactor(value: number): void; - - getCodeRateLegacy(): string; - setCodeRateLegacy(value: string): void; - - getCodeRate(): CodeRateMap[keyof CodeRateMap]; - setCodeRate(value: CodeRateMap[keyof CodeRateMap]): void; - - getPolarizationInversion(): boolean; - setPolarizationInversion(value: boolean): void; - - getPreamble(): number; - setPreamble(value: number): void; - - getNoCrc(): boolean; - setNoCrc(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoraModulationInfo.AsObject; - static toObject(includeInstance: boolean, msg: LoraModulationInfo): LoraModulationInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LoraModulationInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoraModulationInfo; - static deserializeBinaryFromReader(message: LoraModulationInfo, reader: jspb.BinaryReader): LoraModulationInfo; -} - -export namespace LoraModulationInfo { - export type AsObject = { - bandwidth: number, - spreadingFactor: number, - codeRateLegacy: string, - codeRate: CodeRateMap[keyof CodeRateMap], - polarizationInversion: boolean, - preamble: number, - noCrc: boolean, - } -} - -export class FskModulationInfo extends jspb.Message { - getFrequencyDeviation(): number; - setFrequencyDeviation(value: number): void; - - getDatarate(): number; - setDatarate(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FskModulationInfo.AsObject; - static toObject(includeInstance: boolean, msg: FskModulationInfo): FskModulationInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FskModulationInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FskModulationInfo; - static deserializeBinaryFromReader(message: FskModulationInfo, reader: jspb.BinaryReader): FskModulationInfo; -} - -export namespace FskModulationInfo { - export type AsObject = { - frequencyDeviation: number, - datarate: number, - } -} - -export class LrFhssModulationInfo extends jspb.Message { - getOperatingChannelWidth(): number; - setOperatingChannelWidth(value: number): void; - - getCodeRateLegacy(): string; - setCodeRateLegacy(value: string): void; - - getCodeRate(): CodeRateMap[keyof CodeRateMap]; - setCodeRate(value: CodeRateMap[keyof CodeRateMap]): void; - - getGridSteps(): number; - setGridSteps(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LrFhssModulationInfo.AsObject; - static toObject(includeInstance: boolean, msg: LrFhssModulationInfo): LrFhssModulationInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LrFhssModulationInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LrFhssModulationInfo; - static deserializeBinaryFromReader(message: LrFhssModulationInfo, reader: jspb.BinaryReader): LrFhssModulationInfo; -} - -export namespace LrFhssModulationInfo { - export type AsObject = { - operatingChannelWidth: number, - codeRateLegacy: string, - codeRate: CodeRateMap[keyof CodeRateMap], - gridSteps: number, - } -} - -export class EncryptedFineTimestamp extends jspb.Message { - getAesKeyIndex(): number; - setAesKeyIndex(value: number): void; - - getEncryptedNs(): Uint8Array | string; - getEncryptedNs_asU8(): Uint8Array; - getEncryptedNs_asB64(): string; - setEncryptedNs(value: Uint8Array | string): void; - - getFpgaId(): Uint8Array | string; - getFpgaId_asU8(): Uint8Array; - getFpgaId_asB64(): string; - setFpgaId(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EncryptedFineTimestamp.AsObject; - static toObject(includeInstance: boolean, msg: EncryptedFineTimestamp): EncryptedFineTimestamp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EncryptedFineTimestamp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EncryptedFineTimestamp; - static deserializeBinaryFromReader(message: EncryptedFineTimestamp, reader: jspb.BinaryReader): EncryptedFineTimestamp; -} - -export namespace EncryptedFineTimestamp { - export type AsObject = { - aesKeyIndex: number, - encryptedNs: Uint8Array | string, - fpgaId: Uint8Array | string, - } -} - -export class PlainFineTimestamp extends jspb.Message { - hasTime(): boolean; - clearTime(): void; - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PlainFineTimestamp.AsObject; - static toObject(includeInstance: boolean, msg: PlainFineTimestamp): PlainFineTimestamp.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PlainFineTimestamp, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PlainFineTimestamp; - static deserializeBinaryFromReader(message: PlainFineTimestamp, reader: jspb.BinaryReader): PlainFineTimestamp; -} - -export namespace PlainFineTimestamp { - export type AsObject = { - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class GatewayStats extends jspb.Message { - getGatewayIdLegacy(): Uint8Array | string; - getGatewayIdLegacy_asU8(): Uint8Array; - getGatewayIdLegacy_asB64(): string; - setGatewayIdLegacy(value: Uint8Array | string): void; - - getGatewayId(): string; - setGatewayId(value: string): void; - - hasTime(): boolean; - clearTime(): void; - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasLocation(): boolean; - clearLocation(): void; - getLocation(): common_common_pb.Location | undefined; - setLocation(value?: common_common_pb.Location): void; - - getConfigVersion(): string; - setConfigVersion(value: string): void; - - getRxPacketsReceived(): number; - setRxPacketsReceived(value: number): void; - - getRxPacketsReceivedOk(): number; - setRxPacketsReceivedOk(value: number): void; - - getTxPacketsReceived(): number; - setTxPacketsReceived(value: number): void; - - getTxPacketsEmitted(): number; - setTxPacketsEmitted(value: number): void; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - getTxPacketsPerFrequencyMap(): jspb.Map; - clearTxPacketsPerFrequencyMap(): void; - getRxPacketsPerFrequencyMap(): jspb.Map; - clearRxPacketsPerFrequencyMap(): void; - clearTxPacketsPerModulationList(): void; - getTxPacketsPerModulationList(): Array; - setTxPacketsPerModulationList(value: Array): void; - addTxPacketsPerModulation(value?: PerModulationCount, index?: number): PerModulationCount; - - clearRxPacketsPerModulationList(): void; - getRxPacketsPerModulationList(): Array; - setRxPacketsPerModulationList(value: Array): void; - addRxPacketsPerModulation(value?: PerModulationCount, index?: number): PerModulationCount; - - getTxPacketsPerStatusMap(): jspb.Map; - clearTxPacketsPerStatusMap(): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GatewayStats.AsObject; - static toObject(includeInstance: boolean, msg: GatewayStats): GatewayStats.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GatewayStats, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GatewayStats; - static deserializeBinaryFromReader(message: GatewayStats, reader: jspb.BinaryReader): GatewayStats; -} - -export namespace GatewayStats { - export type AsObject = { - gatewayIdLegacy: Uint8Array | string, - gatewayId: string, - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - location?: common_common_pb.Location.AsObject, - configVersion: string, - rxPacketsReceived: number, - rxPacketsReceivedOk: number, - txPacketsReceived: number, - txPacketsEmitted: number, - metadataMap: Array<[string, string]>, - txPacketsPerFrequencyMap: Array<[number, number]>, - rxPacketsPerFrequencyMap: Array<[number, number]>, - txPacketsPerModulationList: Array, - rxPacketsPerModulationList: Array, - txPacketsPerStatusMap: Array<[string, number]>, - } -} - -export class PerModulationCount extends jspb.Message { - hasModulation(): boolean; - clearModulation(): void; - getModulation(): Modulation | undefined; - setModulation(value?: Modulation): void; - - getCount(): number; - setCount(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PerModulationCount.AsObject; - static toObject(includeInstance: boolean, msg: PerModulationCount): PerModulationCount.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PerModulationCount, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PerModulationCount; - static deserializeBinaryFromReader(message: PerModulationCount, reader: jspb.BinaryReader): PerModulationCount; -} - -export namespace PerModulationCount { - export type AsObject = { - modulation?: Modulation.AsObject, - count: number, - } -} - -export class UplinkRxInfoLegacy extends jspb.Message { - getGatewayId(): Uint8Array | string; - getGatewayId_asU8(): Uint8Array; - getGatewayId_asB64(): string; - setGatewayId(value: Uint8Array | string): void; - - hasTime(): boolean; - clearTime(): void; - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasTimeSinceGpsEpoch(): boolean; - clearTimeSinceGpsEpoch(): void; - getTimeSinceGpsEpoch(): google_protobuf_duration_pb.Duration | undefined; - setTimeSinceGpsEpoch(value?: google_protobuf_duration_pb.Duration): void; - - getRssi(): number; - setRssi(value: number): void; - - getLoraSnr(): number; - setLoraSnr(value: number): void; - - getChannel(): number; - setChannel(value: number): void; - - getRfChain(): number; - setRfChain(value: number): void; - - getBoard(): number; - setBoard(value: number): void; - - getAntenna(): number; - setAntenna(value: number): void; - - hasLocation(): boolean; - clearLocation(): void; - getLocation(): common_common_pb.Location | undefined; - setLocation(value?: common_common_pb.Location): void; - - getFineTimestampType(): FineTimestampTypeMap[keyof FineTimestampTypeMap]; - setFineTimestampType(value: FineTimestampTypeMap[keyof FineTimestampTypeMap]): void; - - hasEncryptedFineTimestamp(): boolean; - clearEncryptedFineTimestamp(): void; - getEncryptedFineTimestamp(): EncryptedFineTimestamp | undefined; - setEncryptedFineTimestamp(value?: EncryptedFineTimestamp): void; - - hasPlainFineTimestamp(): boolean; - clearPlainFineTimestamp(): void; - getPlainFineTimestamp(): PlainFineTimestamp | undefined; - setPlainFineTimestamp(value?: PlainFineTimestamp): void; - - getContext(): Uint8Array | string; - getContext_asU8(): Uint8Array; - getContext_asB64(): string; - setContext(value: Uint8Array | string): void; - - getUplinkId(): Uint8Array | string; - getUplinkId_asU8(): Uint8Array; - getUplinkId_asB64(): string; - setUplinkId(value: Uint8Array | string): void; - - getCrcStatus(): CRCStatusMap[keyof CRCStatusMap]; - setCrcStatus(value: CRCStatusMap[keyof CRCStatusMap]): void; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - getFineTimestampCase(): UplinkRxInfoLegacy.FineTimestampCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UplinkRxInfoLegacy.AsObject; - static toObject(includeInstance: boolean, msg: UplinkRxInfoLegacy): UplinkRxInfoLegacy.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UplinkRxInfoLegacy, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UplinkRxInfoLegacy; - static deserializeBinaryFromReader(message: UplinkRxInfoLegacy, reader: jspb.BinaryReader): UplinkRxInfoLegacy; -} - -export namespace UplinkRxInfoLegacy { - export type AsObject = { - gatewayId: Uint8Array | string, - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - timeSinceGpsEpoch?: google_protobuf_duration_pb.Duration.AsObject, - rssi: number, - loraSnr: number, - channel: number, - rfChain: number, - board: number, - antenna: number, - location?: common_common_pb.Location.AsObject, - fineTimestampType: FineTimestampTypeMap[keyof FineTimestampTypeMap], - encryptedFineTimestamp?: EncryptedFineTimestamp.AsObject, - plainFineTimestamp?: PlainFineTimestamp.AsObject, - context: Uint8Array | string, - uplinkId: Uint8Array | string, - crcStatus: CRCStatusMap[keyof CRCStatusMap], - metadataMap: Array<[string, string]>, - } - - export enum FineTimestampCase { - FINE_TIMESTAMP_NOT_SET = 0, - ENCRYPTED_FINE_TIMESTAMP = 13, - PLAIN_FINE_TIMESTAMP = 14, - } -} - -export class UplinkRxInfo extends jspb.Message { - getGatewayId(): string; - setGatewayId(value: string): void; - - getUplinkId(): number; - setUplinkId(value: number): void; - - hasGwTime(): boolean; - clearGwTime(): void; - getGwTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setGwTime(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasNsTime(): boolean; - clearNsTime(): void; - getNsTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setNsTime(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasTimeSinceGpsEpoch(): boolean; - clearTimeSinceGpsEpoch(): void; - getTimeSinceGpsEpoch(): google_protobuf_duration_pb.Duration | undefined; - setTimeSinceGpsEpoch(value?: google_protobuf_duration_pb.Duration): void; - - hasFineTimeSinceGpsEpoch(): boolean; - clearFineTimeSinceGpsEpoch(): void; - getFineTimeSinceGpsEpoch(): google_protobuf_duration_pb.Duration | undefined; - setFineTimeSinceGpsEpoch(value?: google_protobuf_duration_pb.Duration): void; - - getRssi(): number; - setRssi(value: number): void; - - getSnr(): number; - setSnr(value: number): void; - - getChannel(): number; - setChannel(value: number): void; - - getRfChain(): number; - setRfChain(value: number): void; - - getBoard(): number; - setBoard(value: number): void; - - getAntenna(): number; - setAntenna(value: number): void; - - hasLocation(): boolean; - clearLocation(): void; - getLocation(): common_common_pb.Location | undefined; - setLocation(value?: common_common_pb.Location): void; - - getContext(): Uint8Array | string; - getContext_asU8(): Uint8Array; - getContext_asB64(): string; - setContext(value: Uint8Array | string): void; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - getCrcStatus(): CRCStatusMap[keyof CRCStatusMap]; - setCrcStatus(value: CRCStatusMap[keyof CRCStatusMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UplinkRxInfo.AsObject; - static toObject(includeInstance: boolean, msg: UplinkRxInfo): UplinkRxInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UplinkRxInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UplinkRxInfo; - static deserializeBinaryFromReader(message: UplinkRxInfo, reader: jspb.BinaryReader): UplinkRxInfo; -} - -export namespace UplinkRxInfo { - export type AsObject = { - gatewayId: string, - uplinkId: number, - gwTime?: google_protobuf_timestamp_pb.Timestamp.AsObject, - nsTime?: google_protobuf_timestamp_pb.Timestamp.AsObject, - timeSinceGpsEpoch?: google_protobuf_duration_pb.Duration.AsObject, - fineTimeSinceGpsEpoch?: google_protobuf_duration_pb.Duration.AsObject, - rssi: number, - snr: number, - channel: number, - rfChain: number, - board: number, - antenna: number, - location?: common_common_pb.Location.AsObject, - context: Uint8Array | string, - metadataMap: Array<[string, string]>, - crcStatus: CRCStatusMap[keyof CRCStatusMap], - } -} - -export class DownlinkTxInfoLegacy extends jspb.Message { - getGatewayId(): Uint8Array | string; - getGatewayId_asU8(): Uint8Array; - getGatewayId_asB64(): string; - setGatewayId(value: Uint8Array | string): void; - - getFrequency(): number; - setFrequency(value: number): void; - - getPower(): number; - setPower(value: number): void; - - getModulation(): common_common_pb.ModulationMap[keyof common_common_pb.ModulationMap]; - setModulation(value: common_common_pb.ModulationMap[keyof common_common_pb.ModulationMap]): void; - - hasLoraModulationInfo(): boolean; - clearLoraModulationInfo(): void; - getLoraModulationInfo(): LoraModulationInfo | undefined; - setLoraModulationInfo(value?: LoraModulationInfo): void; - - hasFskModulationInfo(): boolean; - clearFskModulationInfo(): void; - getFskModulationInfo(): FskModulationInfo | undefined; - setFskModulationInfo(value?: FskModulationInfo): void; - - getBoard(): number; - setBoard(value: number): void; - - getAntenna(): number; - setAntenna(value: number): void; - - getTiming(): DownlinkTimingMap[keyof DownlinkTimingMap]; - setTiming(value: DownlinkTimingMap[keyof DownlinkTimingMap]): void; - - hasImmediatelyTimingInfo(): boolean; - clearImmediatelyTimingInfo(): void; - getImmediatelyTimingInfo(): ImmediatelyTimingInfo | undefined; - setImmediatelyTimingInfo(value?: ImmediatelyTimingInfo): void; - - hasDelayTimingInfo(): boolean; - clearDelayTimingInfo(): void; - getDelayTimingInfo(): DelayTimingInfo | undefined; - setDelayTimingInfo(value?: DelayTimingInfo): void; - - hasGpsEpochTimingInfo(): boolean; - clearGpsEpochTimingInfo(): void; - getGpsEpochTimingInfo(): GPSEpochTimingInfo | undefined; - setGpsEpochTimingInfo(value?: GPSEpochTimingInfo): void; - - getContext(): Uint8Array | string; - getContext_asU8(): Uint8Array; - getContext_asB64(): string; - setContext(value: Uint8Array | string): void; - - getModulationInfoCase(): DownlinkTxInfoLegacy.ModulationInfoCase; - getTimingInfoCase(): DownlinkTxInfoLegacy.TimingInfoCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DownlinkTxInfoLegacy.AsObject; - static toObject(includeInstance: boolean, msg: DownlinkTxInfoLegacy): DownlinkTxInfoLegacy.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DownlinkTxInfoLegacy, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DownlinkTxInfoLegacy; - static deserializeBinaryFromReader(message: DownlinkTxInfoLegacy, reader: jspb.BinaryReader): DownlinkTxInfoLegacy; -} - -export namespace DownlinkTxInfoLegacy { - export type AsObject = { - gatewayId: Uint8Array | string, - frequency: number, - power: number, - modulation: common_common_pb.ModulationMap[keyof common_common_pb.ModulationMap], - loraModulationInfo?: LoraModulationInfo.AsObject, - fskModulationInfo?: FskModulationInfo.AsObject, - board: number, - antenna: number, - timing: DownlinkTimingMap[keyof DownlinkTimingMap], - immediatelyTimingInfo?: ImmediatelyTimingInfo.AsObject, - delayTimingInfo?: DelayTimingInfo.AsObject, - gpsEpochTimingInfo?: GPSEpochTimingInfo.AsObject, - context: Uint8Array | string, - } - - export enum ModulationInfoCase { - MODULATION_INFO_NOT_SET = 0, - LORA_MODULATION_INFO = 8, - FSK_MODULATION_INFO = 9, - } - - export enum TimingInfoCase { - TIMING_INFO_NOT_SET = 0, - IMMEDIATELY_TIMING_INFO = 13, - DELAY_TIMING_INFO = 14, - GPS_EPOCH_TIMING_INFO = 15, - } -} - -export class DownlinkTxInfo extends jspb.Message { - getFrequency(): number; - setFrequency(value: number): void; - - getPower(): number; - setPower(value: number): void; - - hasModulation(): boolean; - clearModulation(): void; - getModulation(): Modulation | undefined; - setModulation(value?: Modulation): void; - - getBoard(): number; - setBoard(value: number): void; - - getAntenna(): number; - setAntenna(value: number): void; - - hasTiming(): boolean; - clearTiming(): void; - getTiming(): Timing | undefined; - setTiming(value?: Timing): void; - - getContext(): Uint8Array | string; - getContext_asU8(): Uint8Array; - getContext_asB64(): string; - setContext(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DownlinkTxInfo.AsObject; - static toObject(includeInstance: boolean, msg: DownlinkTxInfo): DownlinkTxInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DownlinkTxInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DownlinkTxInfo; - static deserializeBinaryFromReader(message: DownlinkTxInfo, reader: jspb.BinaryReader): DownlinkTxInfo; -} - -export namespace DownlinkTxInfo { - export type AsObject = { - frequency: number, - power: number, - modulation?: Modulation.AsObject, - board: number, - antenna: number, - timing?: Timing.AsObject, - context: Uint8Array | string, - } -} - -export class Timing extends jspb.Message { - hasImmediately(): boolean; - clearImmediately(): void; - getImmediately(): ImmediatelyTimingInfo | undefined; - setImmediately(value?: ImmediatelyTimingInfo): void; - - hasDelay(): boolean; - clearDelay(): void; - getDelay(): DelayTimingInfo | undefined; - setDelay(value?: DelayTimingInfo): void; - - hasGpsEpoch(): boolean; - clearGpsEpoch(): void; - getGpsEpoch(): GPSEpochTimingInfo | undefined; - setGpsEpoch(value?: GPSEpochTimingInfo): void; - - getParametersCase(): Timing.ParametersCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Timing.AsObject; - static toObject(includeInstance: boolean, msg: Timing): Timing.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Timing, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Timing; - static deserializeBinaryFromReader(message: Timing, reader: jspb.BinaryReader): Timing; -} - -export namespace Timing { - export type AsObject = { - immediately?: ImmediatelyTimingInfo.AsObject, - delay?: DelayTimingInfo.AsObject, - gpsEpoch?: GPSEpochTimingInfo.AsObject, - } - - export enum ParametersCase { - PARAMETERS_NOT_SET = 0, - IMMEDIATELY = 1, - DELAY = 2, - GPS_EPOCH = 3, - } -} - -export class ImmediatelyTimingInfo extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ImmediatelyTimingInfo.AsObject; - static toObject(includeInstance: boolean, msg: ImmediatelyTimingInfo): ImmediatelyTimingInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ImmediatelyTimingInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ImmediatelyTimingInfo; - static deserializeBinaryFromReader(message: ImmediatelyTimingInfo, reader: jspb.BinaryReader): ImmediatelyTimingInfo; -} - -export namespace ImmediatelyTimingInfo { - export type AsObject = { - } -} - -export class DelayTimingInfo extends jspb.Message { - hasDelay(): boolean; - clearDelay(): void; - getDelay(): google_protobuf_duration_pb.Duration | undefined; - setDelay(value?: google_protobuf_duration_pb.Duration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DelayTimingInfo.AsObject; - static toObject(includeInstance: boolean, msg: DelayTimingInfo): DelayTimingInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DelayTimingInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DelayTimingInfo; - static deserializeBinaryFromReader(message: DelayTimingInfo, reader: jspb.BinaryReader): DelayTimingInfo; -} - -export namespace DelayTimingInfo { - export type AsObject = { - delay?: google_protobuf_duration_pb.Duration.AsObject, - } -} - -export class GPSEpochTimingInfo extends jspb.Message { - hasTimeSinceGpsEpoch(): boolean; - clearTimeSinceGpsEpoch(): void; - getTimeSinceGpsEpoch(): google_protobuf_duration_pb.Duration | undefined; - setTimeSinceGpsEpoch(value?: google_protobuf_duration_pb.Duration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GPSEpochTimingInfo.AsObject; - static toObject(includeInstance: boolean, msg: GPSEpochTimingInfo): GPSEpochTimingInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GPSEpochTimingInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GPSEpochTimingInfo; - static deserializeBinaryFromReader(message: GPSEpochTimingInfo, reader: jspb.BinaryReader): GPSEpochTimingInfo; -} - -export namespace GPSEpochTimingInfo { - export type AsObject = { - timeSinceGpsEpoch?: google_protobuf_duration_pb.Duration.AsObject, - } -} - -export class UplinkFrame extends jspb.Message { - getPhyPayload(): Uint8Array | string; - getPhyPayload_asU8(): Uint8Array; - getPhyPayload_asB64(): string; - setPhyPayload(value: Uint8Array | string): void; - - hasTxInfoLegacy(): boolean; - clearTxInfoLegacy(): void; - getTxInfoLegacy(): UplinkTxInfoLegacy | undefined; - setTxInfoLegacy(value?: UplinkTxInfoLegacy): void; - - hasRxInfoLegacy(): boolean; - clearRxInfoLegacy(): void; - getRxInfoLegacy(): UplinkRxInfoLegacy | undefined; - setRxInfoLegacy(value?: UplinkRxInfoLegacy): void; - - hasTxInfo(): boolean; - clearTxInfo(): void; - getTxInfo(): UplinkTxInfo | undefined; - setTxInfo(value?: UplinkTxInfo): void; - - hasRxInfo(): boolean; - clearRxInfo(): void; - getRxInfo(): UplinkRxInfo | undefined; - setRxInfo(value?: UplinkRxInfo): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UplinkFrame.AsObject; - static toObject(includeInstance: boolean, msg: UplinkFrame): UplinkFrame.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UplinkFrame, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UplinkFrame; - static deserializeBinaryFromReader(message: UplinkFrame, reader: jspb.BinaryReader): UplinkFrame; -} - -export namespace UplinkFrame { - export type AsObject = { - phyPayload: Uint8Array | string, - txInfoLegacy?: UplinkTxInfoLegacy.AsObject, - rxInfoLegacy?: UplinkRxInfoLegacy.AsObject, - txInfo?: UplinkTxInfo.AsObject, - rxInfo?: UplinkRxInfo.AsObject, - } -} - -export class UplinkFrameSet extends jspb.Message { - getPhyPayload(): Uint8Array | string; - getPhyPayload_asU8(): Uint8Array; - getPhyPayload_asB64(): string; - setPhyPayload(value: Uint8Array | string): void; - - hasTxInfo(): boolean; - clearTxInfo(): void; - getTxInfo(): UplinkTxInfo | undefined; - setTxInfo(value?: UplinkTxInfo): void; - - clearRxInfoList(): void; - getRxInfoList(): Array; - setRxInfoList(value: Array): void; - addRxInfo(value?: UplinkRxInfo, index?: number): UplinkRxInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UplinkFrameSet.AsObject; - static toObject(includeInstance: boolean, msg: UplinkFrameSet): UplinkFrameSet.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UplinkFrameSet, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UplinkFrameSet; - static deserializeBinaryFromReader(message: UplinkFrameSet, reader: jspb.BinaryReader): UplinkFrameSet; -} - -export namespace UplinkFrameSet { - export type AsObject = { - phyPayload: Uint8Array | string, - txInfo?: UplinkTxInfo.AsObject, - rxInfoList: Array, - } -} - -export class DownlinkFrame extends jspb.Message { - getDownlinkId(): number; - setDownlinkId(value: number): void; - - getDownlinkIdLegacy(): Uint8Array | string; - getDownlinkIdLegacy_asU8(): Uint8Array; - getDownlinkIdLegacy_asB64(): string; - setDownlinkIdLegacy(value: Uint8Array | string): void; - - clearItemsList(): void; - getItemsList(): Array; - setItemsList(value: Array): void; - addItems(value?: DownlinkFrameItem, index?: number): DownlinkFrameItem; - - getGatewayIdLegacy(): Uint8Array | string; - getGatewayIdLegacy_asU8(): Uint8Array; - getGatewayIdLegacy_asB64(): string; - setGatewayIdLegacy(value: Uint8Array | string): void; - - getGatewayId(): string; - setGatewayId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DownlinkFrame.AsObject; - static toObject(includeInstance: boolean, msg: DownlinkFrame): DownlinkFrame.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DownlinkFrame, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DownlinkFrame; - static deserializeBinaryFromReader(message: DownlinkFrame, reader: jspb.BinaryReader): DownlinkFrame; -} - -export namespace DownlinkFrame { - export type AsObject = { - downlinkId: number, - downlinkIdLegacy: Uint8Array | string, - itemsList: Array, - gatewayIdLegacy: Uint8Array | string, - gatewayId: string, - } -} - -export class DownlinkFrameItem extends jspb.Message { - getPhyPayload(): Uint8Array | string; - getPhyPayload_asU8(): Uint8Array; - getPhyPayload_asB64(): string; - setPhyPayload(value: Uint8Array | string): void; - - hasTxInfoLegacy(): boolean; - clearTxInfoLegacy(): void; - getTxInfoLegacy(): DownlinkTxInfoLegacy | undefined; - setTxInfoLegacy(value?: DownlinkTxInfoLegacy): void; - - hasTxInfo(): boolean; - clearTxInfo(): void; - getTxInfo(): DownlinkTxInfo | undefined; - setTxInfo(value?: DownlinkTxInfo): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DownlinkFrameItem.AsObject; - static toObject(includeInstance: boolean, msg: DownlinkFrameItem): DownlinkFrameItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DownlinkFrameItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DownlinkFrameItem; - static deserializeBinaryFromReader(message: DownlinkFrameItem, reader: jspb.BinaryReader): DownlinkFrameItem; -} - -export namespace DownlinkFrameItem { - export type AsObject = { - phyPayload: Uint8Array | string, - txInfoLegacy?: DownlinkTxInfoLegacy.AsObject, - txInfo?: DownlinkTxInfo.AsObject, - } -} - -export class DownlinkTxAck extends jspb.Message { - getGatewayIdLegacy(): Uint8Array | string; - getGatewayIdLegacy_asU8(): Uint8Array; - getGatewayIdLegacy_asB64(): string; - setGatewayIdLegacy(value: Uint8Array | string): void; - - getGatewayId(): string; - setGatewayId(value: string): void; - - getDownlinkId(): number; - setDownlinkId(value: number): void; - - getDownlinkIdLegacy(): Uint8Array | string; - getDownlinkIdLegacy_asU8(): Uint8Array; - getDownlinkIdLegacy_asB64(): string; - setDownlinkIdLegacy(value: Uint8Array | string): void; - - clearItemsList(): void; - getItemsList(): Array; - setItemsList(value: Array): void; - addItems(value?: DownlinkTxAckItem, index?: number): DownlinkTxAckItem; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DownlinkTxAck.AsObject; - static toObject(includeInstance: boolean, msg: DownlinkTxAck): DownlinkTxAck.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DownlinkTxAck, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DownlinkTxAck; - static deserializeBinaryFromReader(message: DownlinkTxAck, reader: jspb.BinaryReader): DownlinkTxAck; -} - -export namespace DownlinkTxAck { - export type AsObject = { - gatewayIdLegacy: Uint8Array | string, - gatewayId: string, - downlinkId: number, - downlinkIdLegacy: Uint8Array | string, - itemsList: Array, - } -} - -export class DownlinkTxAckItem extends jspb.Message { - getStatus(): TxAckStatusMap[keyof TxAckStatusMap]; - setStatus(value: TxAckStatusMap[keyof TxAckStatusMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DownlinkTxAckItem.AsObject; - static toObject(includeInstance: boolean, msg: DownlinkTxAckItem): DownlinkTxAckItem.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DownlinkTxAckItem, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DownlinkTxAckItem; - static deserializeBinaryFromReader(message: DownlinkTxAckItem, reader: jspb.BinaryReader): DownlinkTxAckItem; -} - -export namespace DownlinkTxAckItem { - export type AsObject = { - status: TxAckStatusMap[keyof TxAckStatusMap], - } -} - -export class GatewayConfiguration extends jspb.Message { - getGatewayIdLegacy(): Uint8Array | string; - getGatewayIdLegacy_asU8(): Uint8Array; - getGatewayIdLegacy_asB64(): string; - setGatewayIdLegacy(value: Uint8Array | string): void; - - getGatewayId(): string; - setGatewayId(value: string): void; - - getVersion(): string; - setVersion(value: string): void; - - clearChannelsList(): void; - getChannelsList(): Array; - setChannelsList(value: Array): void; - addChannels(value?: ChannelConfiguration, index?: number): ChannelConfiguration; - - hasStatsInterval(): boolean; - clearStatsInterval(): void; - getStatsInterval(): google_protobuf_duration_pb.Duration | undefined; - setStatsInterval(value?: google_protobuf_duration_pb.Duration): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GatewayConfiguration.AsObject; - static toObject(includeInstance: boolean, msg: GatewayConfiguration): GatewayConfiguration.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GatewayConfiguration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GatewayConfiguration; - static deserializeBinaryFromReader(message: GatewayConfiguration, reader: jspb.BinaryReader): GatewayConfiguration; -} - -export namespace GatewayConfiguration { - export type AsObject = { - gatewayIdLegacy: Uint8Array | string, - gatewayId: string, - version: string, - channelsList: Array, - statsInterval?: google_protobuf_duration_pb.Duration.AsObject, - } -} - -export class ChannelConfiguration extends jspb.Message { - getFrequency(): number; - setFrequency(value: number): void; - - getModulationLegacy(): common_common_pb.ModulationMap[keyof common_common_pb.ModulationMap]; - setModulationLegacy(value: common_common_pb.ModulationMap[keyof common_common_pb.ModulationMap]): void; - - hasLoraModulationConfig(): boolean; - clearLoraModulationConfig(): void; - getLoraModulationConfig(): LoraModulationConfig | undefined; - setLoraModulationConfig(value?: LoraModulationConfig): void; - - hasFskModulationConfig(): boolean; - clearFskModulationConfig(): void; - getFskModulationConfig(): FskModulationConfig | undefined; - setFskModulationConfig(value?: FskModulationConfig): void; - - getBoard(): number; - setBoard(value: number): void; - - getDemodulator(): number; - setDemodulator(value: number): void; - - getModulationConfigCase(): ChannelConfiguration.ModulationConfigCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChannelConfiguration.AsObject; - static toObject(includeInstance: boolean, msg: ChannelConfiguration): ChannelConfiguration.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ChannelConfiguration, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChannelConfiguration; - static deserializeBinaryFromReader(message: ChannelConfiguration, reader: jspb.BinaryReader): ChannelConfiguration; -} - -export namespace ChannelConfiguration { - export type AsObject = { - frequency: number, - modulationLegacy: common_common_pb.ModulationMap[keyof common_common_pb.ModulationMap], - loraModulationConfig?: LoraModulationConfig.AsObject, - fskModulationConfig?: FskModulationConfig.AsObject, - board: number, - demodulator: number, - } - - export enum ModulationConfigCase { - MODULATION_CONFIG_NOT_SET = 0, - LORA_MODULATION_CONFIG = 3, - FSK_MODULATION_CONFIG = 4, - } -} - -export class LoraModulationConfig extends jspb.Message { - getBandwidthLegacy(): number; - setBandwidthLegacy(value: number): void; - - getBandwidth(): number; - setBandwidth(value: number): void; - - clearSpreadingFactorsList(): void; - getSpreadingFactorsList(): Array; - setSpreadingFactorsList(value: Array): void; - addSpreadingFactors(value: number, index?: number): number; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoraModulationConfig.AsObject; - static toObject(includeInstance: boolean, msg: LoraModulationConfig): LoraModulationConfig.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LoraModulationConfig, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LoraModulationConfig; - static deserializeBinaryFromReader(message: LoraModulationConfig, reader: jspb.BinaryReader): LoraModulationConfig; -} - -export namespace LoraModulationConfig { - export type AsObject = { - bandwidthLegacy: number, - bandwidth: number, - spreadingFactorsList: Array, - } -} - -export class FskModulationConfig extends jspb.Message { - getBandwidthLegacy(): number; - setBandwidthLegacy(value: number): void; - - getBandwidth(): number; - setBandwidth(value: number): void; - - getBitrate(): number; - setBitrate(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FskModulationConfig.AsObject; - static toObject(includeInstance: boolean, msg: FskModulationConfig): FskModulationConfig.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FskModulationConfig, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FskModulationConfig; - static deserializeBinaryFromReader(message: FskModulationConfig, reader: jspb.BinaryReader): FskModulationConfig; -} - -export namespace FskModulationConfig { - export type AsObject = { - bandwidthLegacy: number, - bandwidth: number, - bitrate: number, - } -} - -export class GatewayCommandExecRequest extends jspb.Message { - getGatewayIdLegacy(): Uint8Array | string; - getGatewayIdLegacy_asU8(): Uint8Array; - getGatewayIdLegacy_asB64(): string; - setGatewayIdLegacy(value: Uint8Array | string): void; - - getGatewayId(): string; - setGatewayId(value: string): void; - - getCommand(): string; - setCommand(value: string): void; - - getExecId(): number; - setExecId(value: number): void; - - getStdin(): Uint8Array | string; - getStdin_asU8(): Uint8Array; - getStdin_asB64(): string; - setStdin(value: Uint8Array | string): void; - - getEnvironmentMap(): jspb.Map; - clearEnvironmentMap(): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GatewayCommandExecRequest.AsObject; - static toObject(includeInstance: boolean, msg: GatewayCommandExecRequest): GatewayCommandExecRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GatewayCommandExecRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GatewayCommandExecRequest; - static deserializeBinaryFromReader(message: GatewayCommandExecRequest, reader: jspb.BinaryReader): GatewayCommandExecRequest; -} - -export namespace GatewayCommandExecRequest { - export type AsObject = { - gatewayIdLegacy: Uint8Array | string, - gatewayId: string, - command: string, - execId: number, - stdin: Uint8Array | string, - environmentMap: Array<[string, string]>, - } -} - -export class GatewayCommandExecResponse extends jspb.Message { - getGatewayIdLegacy(): Uint8Array | string; - getGatewayIdLegacy_asU8(): Uint8Array; - getGatewayIdLegacy_asB64(): string; - setGatewayIdLegacy(value: Uint8Array | string): void; - - getGatewayId(): string; - setGatewayId(value: string): void; - - getExecId(): number; - setExecId(value: number): void; - - getStdout(): Uint8Array | string; - getStdout_asU8(): Uint8Array; - getStdout_asB64(): string; - setStdout(value: Uint8Array | string): void; - - getStderr(): Uint8Array | string; - getStderr_asU8(): Uint8Array; - getStderr_asB64(): string; - setStderr(value: Uint8Array | string): void; - - getError(): string; - setError(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GatewayCommandExecResponse.AsObject; - static toObject(includeInstance: boolean, msg: GatewayCommandExecResponse): GatewayCommandExecResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GatewayCommandExecResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GatewayCommandExecResponse; - static deserializeBinaryFromReader(message: GatewayCommandExecResponse, reader: jspb.BinaryReader): GatewayCommandExecResponse; -} - -export namespace GatewayCommandExecResponse { - export type AsObject = { - gatewayIdLegacy: Uint8Array | string, - gatewayId: string, - execId: number, - stdout: Uint8Array | string, - stderr: Uint8Array | string, - error: string, - } -} - -export class RawPacketForwarderEvent extends jspb.Message { - getGatewayIdLegacy(): Uint8Array | string; - getGatewayIdLegacy_asU8(): Uint8Array; - getGatewayIdLegacy_asB64(): string; - setGatewayIdLegacy(value: Uint8Array | string): void; - - getGatewayId(): string; - setGatewayId(value: string): void; - - getPayload(): Uint8Array | string; - getPayload_asU8(): Uint8Array; - getPayload_asB64(): string; - setPayload(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RawPacketForwarderEvent.AsObject; - static toObject(includeInstance: boolean, msg: RawPacketForwarderEvent): RawPacketForwarderEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RawPacketForwarderEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RawPacketForwarderEvent; - static deserializeBinaryFromReader(message: RawPacketForwarderEvent, reader: jspb.BinaryReader): RawPacketForwarderEvent; -} - -export namespace RawPacketForwarderEvent { - export type AsObject = { - gatewayIdLegacy: Uint8Array | string, - gatewayId: string, - payload: Uint8Array | string, - } -} - -export class RawPacketForwarderCommand extends jspb.Message { - getGatewayIdLegacy(): Uint8Array | string; - getGatewayIdLegacy_asU8(): Uint8Array; - getGatewayIdLegacy_asB64(): string; - setGatewayIdLegacy(value: Uint8Array | string): void; - - getGatewayId(): string; - setGatewayId(value: string): void; - - getPayload(): Uint8Array | string; - getPayload_asU8(): Uint8Array; - getPayload_asB64(): string; - setPayload(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RawPacketForwarderCommand.AsObject; - static toObject(includeInstance: boolean, msg: RawPacketForwarderCommand): RawPacketForwarderCommand.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RawPacketForwarderCommand, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RawPacketForwarderCommand; - static deserializeBinaryFromReader(message: RawPacketForwarderCommand, reader: jspb.BinaryReader): RawPacketForwarderCommand; -} - -export namespace RawPacketForwarderCommand { - export type AsObject = { - gatewayIdLegacy: Uint8Array | string, - gatewayId: string, - payload: Uint8Array | string, - } -} - -export class ConnState extends jspb.Message { - getGatewayIdLegacy(): Uint8Array | string; - getGatewayIdLegacy_asU8(): Uint8Array; - getGatewayIdLegacy_asB64(): string; - setGatewayIdLegacy(value: Uint8Array | string): void; - - getGatewayId(): string; - setGatewayId(value: string): void; - - getState(): ConnState.StateMap[keyof ConnState.StateMap]; - setState(value: ConnState.StateMap[keyof ConnState.StateMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConnState.AsObject; - static toObject(includeInstance: boolean, msg: ConnState): ConnState.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConnState, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConnState; - static deserializeBinaryFromReader(message: ConnState, reader: jspb.BinaryReader): ConnState; -} - -export namespace ConnState { - export type AsObject = { - gatewayIdLegacy: Uint8Array | string, - gatewayId: string, - state: ConnState.StateMap[keyof ConnState.StateMap], - } - - export interface StateMap { - OFFLINE: 0; - ONLINE: 1; - } - - export const State: StateMap; -} - -export interface CodeRateMap { - CR_UNDEFINED: 0; - CR_4_5: 1; - CR_4_6: 2; - CR_4_7: 3; - CR_4_8: 4; - CR_3_8: 5; - CR_2_6: 6; - CR_1_4: 7; - CR_1_6: 8; - CR_5_6: 9; - CR_LI_4_5: 10; - CR_LI_4_6: 11; - CR_LI_4_8: 12; -} - -export const CodeRate: CodeRateMap; - -export interface DownlinkTimingMap { - IMMEDIATELY: 0; - DELAY: 1; - GPS_EPOCH: 2; -} - -export const DownlinkTiming: DownlinkTimingMap; - -export interface FineTimestampTypeMap { - NONE: 0; - ENCRYPTED: 1; - PLAIN: 2; -} - -export const FineTimestampType: FineTimestampTypeMap; - -export interface CRCStatusMap { - NO_CRC: 0; - BAD_CRC: 1; - CRC_OK: 2; -} - -export const CRCStatus: CRCStatusMap; - -export interface TxAckStatusMap { - IGNORED: 0; - OK: 1; - TOO_LATE: 2; - TOO_EARLY: 3; - COLLISION_PACKET: 4; - COLLISION_BEACON: 5; - TX_FREQ: 6; - TX_POWER: 7; - GPS_UNLOCKED: 8; - QUEUE_FULL: 9; - INTERNAL_ERROR: 10; -} - -export const TxAckStatus: TxAckStatusMap; - diff --git a/api/js/gw/gw_pb.js b/api/js/gw/gw_pb.js deleted file mode 100644 index 70362b46..00000000 --- a/api/js/gw/gw_pb.js +++ /dev/null @@ -1,10965 +0,0 @@ -// source: gw/gw.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); -goog.object.extend(proto, google_protobuf_duration_pb); -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); -goog.object.extend(proto, google_protobuf_struct_pb); -goog.exportSymbol('proto.gw.CRCStatus', null, global); -goog.exportSymbol('proto.gw.ChannelConfiguration', null, global); -goog.exportSymbol('proto.gw.ChannelConfiguration.ModulationConfigCase', null, global); -goog.exportSymbol('proto.gw.CodeRate', null, global); -goog.exportSymbol('proto.gw.ConnState', null, global); -goog.exportSymbol('proto.gw.ConnState.State', null, global); -goog.exportSymbol('proto.gw.DelayTimingInfo', null, global); -goog.exportSymbol('proto.gw.DownlinkFrame', null, global); -goog.exportSymbol('proto.gw.DownlinkFrameItem', null, global); -goog.exportSymbol('proto.gw.DownlinkTiming', null, global); -goog.exportSymbol('proto.gw.DownlinkTxAck', null, global); -goog.exportSymbol('proto.gw.DownlinkTxAckItem', null, global); -goog.exportSymbol('proto.gw.DownlinkTxInfo', null, global); -goog.exportSymbol('proto.gw.DownlinkTxInfoLegacy', null, global); -goog.exportSymbol('proto.gw.DownlinkTxInfoLegacy.ModulationInfoCase', null, global); -goog.exportSymbol('proto.gw.DownlinkTxInfoLegacy.TimingInfoCase', null, global); -goog.exportSymbol('proto.gw.EncryptedFineTimestamp', null, global); -goog.exportSymbol('proto.gw.FineTimestampType', null, global); -goog.exportSymbol('proto.gw.FskModulationConfig', null, global); -goog.exportSymbol('proto.gw.FskModulationInfo', null, global); -goog.exportSymbol('proto.gw.GPSEpochTimingInfo', null, global); -goog.exportSymbol('proto.gw.GatewayCommandExecRequest', null, global); -goog.exportSymbol('proto.gw.GatewayCommandExecResponse', null, global); -goog.exportSymbol('proto.gw.GatewayConfiguration', null, global); -goog.exportSymbol('proto.gw.GatewayStats', null, global); -goog.exportSymbol('proto.gw.ImmediatelyTimingInfo', null, global); -goog.exportSymbol('proto.gw.LoraModulationConfig', null, global); -goog.exportSymbol('proto.gw.LoraModulationInfo', null, global); -goog.exportSymbol('proto.gw.LrFhssModulationInfo', null, global); -goog.exportSymbol('proto.gw.Modulation', null, global); -goog.exportSymbol('proto.gw.Modulation.ParametersCase', null, global); -goog.exportSymbol('proto.gw.PerModulationCount', null, global); -goog.exportSymbol('proto.gw.PlainFineTimestamp', null, global); -goog.exportSymbol('proto.gw.RawPacketForwarderCommand', null, global); -goog.exportSymbol('proto.gw.RawPacketForwarderEvent', null, global); -goog.exportSymbol('proto.gw.Timing', null, global); -goog.exportSymbol('proto.gw.Timing.ParametersCase', null, global); -goog.exportSymbol('proto.gw.TxAckStatus', null, global); -goog.exportSymbol('proto.gw.UplinkFrame', null, global); -goog.exportSymbol('proto.gw.UplinkFrameSet', null, global); -goog.exportSymbol('proto.gw.UplinkRxInfo', null, global); -goog.exportSymbol('proto.gw.UplinkRxInfoLegacy', null, global); -goog.exportSymbol('proto.gw.UplinkRxInfoLegacy.FineTimestampCase', null, global); -goog.exportSymbol('proto.gw.UplinkTxInfo', null, global); -goog.exportSymbol('proto.gw.UplinkTxInfoLegacy', null, global); -goog.exportSymbol('proto.gw.UplinkTxInfoLegacy.ModulationInfoCase', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.Modulation = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gw.Modulation.oneofGroups_); -}; -goog.inherits(proto.gw.Modulation, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.Modulation.displayName = 'proto.gw.Modulation'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.UplinkTxInfoLegacy = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gw.UplinkTxInfoLegacy.oneofGroups_); -}; -goog.inherits(proto.gw.UplinkTxInfoLegacy, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.UplinkTxInfoLegacy.displayName = 'proto.gw.UplinkTxInfoLegacy'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.UplinkTxInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.UplinkTxInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.UplinkTxInfo.displayName = 'proto.gw.UplinkTxInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.LoraModulationInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.LoraModulationInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.LoraModulationInfo.displayName = 'proto.gw.LoraModulationInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.FskModulationInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.FskModulationInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.FskModulationInfo.displayName = 'proto.gw.FskModulationInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.LrFhssModulationInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.LrFhssModulationInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.LrFhssModulationInfo.displayName = 'proto.gw.LrFhssModulationInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.EncryptedFineTimestamp = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.EncryptedFineTimestamp, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.EncryptedFineTimestamp.displayName = 'proto.gw.EncryptedFineTimestamp'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.PlainFineTimestamp = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.PlainFineTimestamp, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.PlainFineTimestamp.displayName = 'proto.gw.PlainFineTimestamp'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.GatewayStats = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.gw.GatewayStats.repeatedFields_, null); -}; -goog.inherits(proto.gw.GatewayStats, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.GatewayStats.displayName = 'proto.gw.GatewayStats'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.PerModulationCount = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.PerModulationCount, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.PerModulationCount.displayName = 'proto.gw.PerModulationCount'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.UplinkRxInfoLegacy = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gw.UplinkRxInfoLegacy.oneofGroups_); -}; -goog.inherits(proto.gw.UplinkRxInfoLegacy, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.UplinkRxInfoLegacy.displayName = 'proto.gw.UplinkRxInfoLegacy'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.UplinkRxInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.UplinkRxInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.UplinkRxInfo.displayName = 'proto.gw.UplinkRxInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.DownlinkTxInfoLegacy = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gw.DownlinkTxInfoLegacy.oneofGroups_); -}; -goog.inherits(proto.gw.DownlinkTxInfoLegacy, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.DownlinkTxInfoLegacy.displayName = 'proto.gw.DownlinkTxInfoLegacy'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.DownlinkTxInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.DownlinkTxInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.DownlinkTxInfo.displayName = 'proto.gw.DownlinkTxInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.Timing = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gw.Timing.oneofGroups_); -}; -goog.inherits(proto.gw.Timing, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.Timing.displayName = 'proto.gw.Timing'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.ImmediatelyTimingInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.ImmediatelyTimingInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.ImmediatelyTimingInfo.displayName = 'proto.gw.ImmediatelyTimingInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.DelayTimingInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.DelayTimingInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.DelayTimingInfo.displayName = 'proto.gw.DelayTimingInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.GPSEpochTimingInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.GPSEpochTimingInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.GPSEpochTimingInfo.displayName = 'proto.gw.GPSEpochTimingInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.UplinkFrame = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.UplinkFrame, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.UplinkFrame.displayName = 'proto.gw.UplinkFrame'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.UplinkFrameSet = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.gw.UplinkFrameSet.repeatedFields_, null); -}; -goog.inherits(proto.gw.UplinkFrameSet, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.UplinkFrameSet.displayName = 'proto.gw.UplinkFrameSet'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.DownlinkFrame = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.gw.DownlinkFrame.repeatedFields_, null); -}; -goog.inherits(proto.gw.DownlinkFrame, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.DownlinkFrame.displayName = 'proto.gw.DownlinkFrame'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.DownlinkFrameItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.DownlinkFrameItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.DownlinkFrameItem.displayName = 'proto.gw.DownlinkFrameItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.DownlinkTxAck = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.gw.DownlinkTxAck.repeatedFields_, null); -}; -goog.inherits(proto.gw.DownlinkTxAck, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.DownlinkTxAck.displayName = 'proto.gw.DownlinkTxAck'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.DownlinkTxAckItem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.DownlinkTxAckItem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.DownlinkTxAckItem.displayName = 'proto.gw.DownlinkTxAckItem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.GatewayConfiguration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.gw.GatewayConfiguration.repeatedFields_, null); -}; -goog.inherits(proto.gw.GatewayConfiguration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.GatewayConfiguration.displayName = 'proto.gw.GatewayConfiguration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.ChannelConfiguration = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gw.ChannelConfiguration.oneofGroups_); -}; -goog.inherits(proto.gw.ChannelConfiguration, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.ChannelConfiguration.displayName = 'proto.gw.ChannelConfiguration'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.LoraModulationConfig = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.gw.LoraModulationConfig.repeatedFields_, null); -}; -goog.inherits(proto.gw.LoraModulationConfig, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.LoraModulationConfig.displayName = 'proto.gw.LoraModulationConfig'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.FskModulationConfig = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.FskModulationConfig, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.FskModulationConfig.displayName = 'proto.gw.FskModulationConfig'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.GatewayCommandExecRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.GatewayCommandExecRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.GatewayCommandExecRequest.displayName = 'proto.gw.GatewayCommandExecRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.GatewayCommandExecResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.GatewayCommandExecResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.GatewayCommandExecResponse.displayName = 'proto.gw.GatewayCommandExecResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.RawPacketForwarderEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.RawPacketForwarderEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.RawPacketForwarderEvent.displayName = 'proto.gw.RawPacketForwarderEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.RawPacketForwarderCommand = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.RawPacketForwarderCommand, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.RawPacketForwarderCommand.displayName = 'proto.gw.RawPacketForwarderCommand'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.gw.ConnState = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.gw.ConnState, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.gw.ConnState.displayName = 'proto.gw.ConnState'; -} - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.gw.Modulation.oneofGroups_ = [[3,4,5]]; - -/** - * @enum {number} - */ -proto.gw.Modulation.ParametersCase = { - PARAMETERS_NOT_SET: 0, - LORA: 3, - FSK: 4, - LR_FHSS: 5 -}; - -/** - * @return {proto.gw.Modulation.ParametersCase} - */ -proto.gw.Modulation.prototype.getParametersCase = function() { - return /** @type {proto.gw.Modulation.ParametersCase} */(jspb.Message.computeOneofCase(this, proto.gw.Modulation.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.Modulation.prototype.toObject = function(opt_includeInstance) { - return proto.gw.Modulation.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.Modulation} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.Modulation.toObject = function(includeInstance, msg) { - var f, obj = { - lora: (f = msg.getLora()) && proto.gw.LoraModulationInfo.toObject(includeInstance, f), - fsk: (f = msg.getFsk()) && proto.gw.FskModulationInfo.toObject(includeInstance, f), - lrFhss: (f = msg.getLrFhss()) && proto.gw.LrFhssModulationInfo.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.Modulation} - */ -proto.gw.Modulation.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.Modulation; - return proto.gw.Modulation.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.Modulation} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.Modulation} - */ -proto.gw.Modulation.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 3: - var value = new proto.gw.LoraModulationInfo; - reader.readMessage(value,proto.gw.LoraModulationInfo.deserializeBinaryFromReader); - msg.setLora(value); - break; - case 4: - var value = new proto.gw.FskModulationInfo; - reader.readMessage(value,proto.gw.FskModulationInfo.deserializeBinaryFromReader); - msg.setFsk(value); - break; - case 5: - var value = new proto.gw.LrFhssModulationInfo; - reader.readMessage(value,proto.gw.LrFhssModulationInfo.deserializeBinaryFromReader); - msg.setLrFhss(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.Modulation.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.Modulation.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.Modulation} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.Modulation.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLora(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.gw.LoraModulationInfo.serializeBinaryToWriter - ); - } - f = message.getFsk(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.gw.FskModulationInfo.serializeBinaryToWriter - ); - } - f = message.getLrFhss(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.gw.LrFhssModulationInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * optional LoraModulationInfo lora = 3; - * @return {?proto.gw.LoraModulationInfo} - */ -proto.gw.Modulation.prototype.getLora = function() { - return /** @type{?proto.gw.LoraModulationInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.LoraModulationInfo, 3)); -}; - - -/** - * @param {?proto.gw.LoraModulationInfo|undefined} value - * @return {!proto.gw.Modulation} returns this -*/ -proto.gw.Modulation.prototype.setLora = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.gw.Modulation.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.Modulation} returns this - */ -proto.gw.Modulation.prototype.clearLora = function() { - return this.setLora(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.Modulation.prototype.hasLora = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional FskModulationInfo fsk = 4; - * @return {?proto.gw.FskModulationInfo} - */ -proto.gw.Modulation.prototype.getFsk = function() { - return /** @type{?proto.gw.FskModulationInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.FskModulationInfo, 4)); -}; - - -/** - * @param {?proto.gw.FskModulationInfo|undefined} value - * @return {!proto.gw.Modulation} returns this -*/ -proto.gw.Modulation.prototype.setFsk = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.gw.Modulation.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.Modulation} returns this - */ -proto.gw.Modulation.prototype.clearFsk = function() { - return this.setFsk(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.Modulation.prototype.hasFsk = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional LrFhssModulationInfo lr_fhss = 5; - * @return {?proto.gw.LrFhssModulationInfo} - */ -proto.gw.Modulation.prototype.getLrFhss = function() { - return /** @type{?proto.gw.LrFhssModulationInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.LrFhssModulationInfo, 5)); -}; - - -/** - * @param {?proto.gw.LrFhssModulationInfo|undefined} value - * @return {!proto.gw.Modulation} returns this -*/ -proto.gw.Modulation.prototype.setLrFhss = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.gw.Modulation.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.Modulation} returns this - */ -proto.gw.Modulation.prototype.clearLrFhss = function() { - return this.setLrFhss(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.Modulation.prototype.hasLrFhss = function() { - return jspb.Message.getField(this, 5) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.gw.UplinkTxInfoLegacy.oneofGroups_ = [[3,4,5]]; - -/** - * @enum {number} - */ -proto.gw.UplinkTxInfoLegacy.ModulationInfoCase = { - MODULATION_INFO_NOT_SET: 0, - LORA_MODULATION_INFO: 3, - FSK_MODULATION_INFO: 4, - LR_FHSS_MODULATION_INFO: 5 -}; - -/** - * @return {proto.gw.UplinkTxInfoLegacy.ModulationInfoCase} - */ -proto.gw.UplinkTxInfoLegacy.prototype.getModulationInfoCase = function() { - return /** @type {proto.gw.UplinkTxInfoLegacy.ModulationInfoCase} */(jspb.Message.computeOneofCase(this, proto.gw.UplinkTxInfoLegacy.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.UplinkTxInfoLegacy.prototype.toObject = function(opt_includeInstance) { - return proto.gw.UplinkTxInfoLegacy.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.UplinkTxInfoLegacy} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkTxInfoLegacy.toObject = function(includeInstance, msg) { - var f, obj = { - frequency: jspb.Message.getFieldWithDefault(msg, 1, 0), - modulation: jspb.Message.getFieldWithDefault(msg, 2, 0), - loraModulationInfo: (f = msg.getLoraModulationInfo()) && proto.gw.LoraModulationInfo.toObject(includeInstance, f), - fskModulationInfo: (f = msg.getFskModulationInfo()) && proto.gw.FskModulationInfo.toObject(includeInstance, f), - lrFhssModulationInfo: (f = msg.getLrFhssModulationInfo()) && proto.gw.LrFhssModulationInfo.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.UplinkTxInfoLegacy} - */ -proto.gw.UplinkTxInfoLegacy.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.UplinkTxInfoLegacy; - return proto.gw.UplinkTxInfoLegacy.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.UplinkTxInfoLegacy} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.UplinkTxInfoLegacy} - */ -proto.gw.UplinkTxInfoLegacy.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFrequency(value); - break; - case 2: - var value = /** @type {!proto.common.Modulation} */ (reader.readEnum()); - msg.setModulation(value); - break; - case 3: - var value = new proto.gw.LoraModulationInfo; - reader.readMessage(value,proto.gw.LoraModulationInfo.deserializeBinaryFromReader); - msg.setLoraModulationInfo(value); - break; - case 4: - var value = new proto.gw.FskModulationInfo; - reader.readMessage(value,proto.gw.FskModulationInfo.deserializeBinaryFromReader); - msg.setFskModulationInfo(value); - break; - case 5: - var value = new proto.gw.LrFhssModulationInfo; - reader.readMessage(value,proto.gw.LrFhssModulationInfo.deserializeBinaryFromReader); - msg.setLrFhssModulationInfo(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.UplinkTxInfoLegacy.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.UplinkTxInfoLegacy.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.UplinkTxInfoLegacy} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkTxInfoLegacy.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFrequency(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getModulation(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getLoraModulationInfo(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.gw.LoraModulationInfo.serializeBinaryToWriter - ); - } - f = message.getFskModulationInfo(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.gw.FskModulationInfo.serializeBinaryToWriter - ); - } - f = message.getLrFhssModulationInfo(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.gw.LrFhssModulationInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 frequency = 1; - * @return {number} - */ -proto.gw.UplinkTxInfoLegacy.prototype.getFrequency = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkTxInfoLegacy} returns this - */ -proto.gw.UplinkTxInfoLegacy.prototype.setFrequency = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional common.Modulation modulation = 2; - * @return {!proto.common.Modulation} - */ -proto.gw.UplinkTxInfoLegacy.prototype.getModulation = function() { - return /** @type {!proto.common.Modulation} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.common.Modulation} value - * @return {!proto.gw.UplinkTxInfoLegacy} returns this - */ -proto.gw.UplinkTxInfoLegacy.prototype.setModulation = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional LoraModulationInfo lora_modulation_info = 3; - * @return {?proto.gw.LoraModulationInfo} - */ -proto.gw.UplinkTxInfoLegacy.prototype.getLoraModulationInfo = function() { - return /** @type{?proto.gw.LoraModulationInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.LoraModulationInfo, 3)); -}; - - -/** - * @param {?proto.gw.LoraModulationInfo|undefined} value - * @return {!proto.gw.UplinkTxInfoLegacy} returns this -*/ -proto.gw.UplinkTxInfoLegacy.prototype.setLoraModulationInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.gw.UplinkTxInfoLegacy.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkTxInfoLegacy} returns this - */ -proto.gw.UplinkTxInfoLegacy.prototype.clearLoraModulationInfo = function() { - return this.setLoraModulationInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkTxInfoLegacy.prototype.hasLoraModulationInfo = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional FskModulationInfo fsk_modulation_info = 4; - * @return {?proto.gw.FskModulationInfo} - */ -proto.gw.UplinkTxInfoLegacy.prototype.getFskModulationInfo = function() { - return /** @type{?proto.gw.FskModulationInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.FskModulationInfo, 4)); -}; - - -/** - * @param {?proto.gw.FskModulationInfo|undefined} value - * @return {!proto.gw.UplinkTxInfoLegacy} returns this -*/ -proto.gw.UplinkTxInfoLegacy.prototype.setFskModulationInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.gw.UplinkTxInfoLegacy.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkTxInfoLegacy} returns this - */ -proto.gw.UplinkTxInfoLegacy.prototype.clearFskModulationInfo = function() { - return this.setFskModulationInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkTxInfoLegacy.prototype.hasFskModulationInfo = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional LrFhssModulationInfo lr_fhss_modulation_info = 5; - * @return {?proto.gw.LrFhssModulationInfo} - */ -proto.gw.UplinkTxInfoLegacy.prototype.getLrFhssModulationInfo = function() { - return /** @type{?proto.gw.LrFhssModulationInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.LrFhssModulationInfo, 5)); -}; - - -/** - * @param {?proto.gw.LrFhssModulationInfo|undefined} value - * @return {!proto.gw.UplinkTxInfoLegacy} returns this -*/ -proto.gw.UplinkTxInfoLegacy.prototype.setLrFhssModulationInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.gw.UplinkTxInfoLegacy.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkTxInfoLegacy} returns this - */ -proto.gw.UplinkTxInfoLegacy.prototype.clearLrFhssModulationInfo = function() { - return this.setLrFhssModulationInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkTxInfoLegacy.prototype.hasLrFhssModulationInfo = function() { - return jspb.Message.getField(this, 5) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.UplinkTxInfo.prototype.toObject = function(opt_includeInstance) { - return proto.gw.UplinkTxInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.UplinkTxInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkTxInfo.toObject = function(includeInstance, msg) { - var f, obj = { - frequency: jspb.Message.getFieldWithDefault(msg, 1, 0), - modulation: (f = msg.getModulation()) && proto.gw.Modulation.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.UplinkTxInfo} - */ -proto.gw.UplinkTxInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.UplinkTxInfo; - return proto.gw.UplinkTxInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.UplinkTxInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.UplinkTxInfo} - */ -proto.gw.UplinkTxInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFrequency(value); - break; - case 2: - var value = new proto.gw.Modulation; - reader.readMessage(value,proto.gw.Modulation.deserializeBinaryFromReader); - msg.setModulation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.UplinkTxInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.UplinkTxInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.UplinkTxInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkTxInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFrequency(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getModulation(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.gw.Modulation.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 frequency = 1; - * @return {number} - */ -proto.gw.UplinkTxInfo.prototype.getFrequency = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkTxInfo} returns this - */ -proto.gw.UplinkTxInfo.prototype.setFrequency = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional Modulation modulation = 2; - * @return {?proto.gw.Modulation} - */ -proto.gw.UplinkTxInfo.prototype.getModulation = function() { - return /** @type{?proto.gw.Modulation} */ ( - jspb.Message.getWrapperField(this, proto.gw.Modulation, 2)); -}; - - -/** - * @param {?proto.gw.Modulation|undefined} value - * @return {!proto.gw.UplinkTxInfo} returns this -*/ -proto.gw.UplinkTxInfo.prototype.setModulation = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkTxInfo} returns this - */ -proto.gw.UplinkTxInfo.prototype.clearModulation = function() { - return this.setModulation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkTxInfo.prototype.hasModulation = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.LoraModulationInfo.prototype.toObject = function(opt_includeInstance) { - return proto.gw.LoraModulationInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.LoraModulationInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.LoraModulationInfo.toObject = function(includeInstance, msg) { - var f, obj = { - bandwidth: jspb.Message.getFieldWithDefault(msg, 1, 0), - spreadingFactor: jspb.Message.getFieldWithDefault(msg, 2, 0), - codeRateLegacy: jspb.Message.getFieldWithDefault(msg, 3, ""), - codeRate: jspb.Message.getFieldWithDefault(msg, 5, 0), - polarizationInversion: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - preamble: jspb.Message.getFieldWithDefault(msg, 6, 0), - noCrc: jspb.Message.getBooleanFieldWithDefault(msg, 7, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.LoraModulationInfo} - */ -proto.gw.LoraModulationInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.LoraModulationInfo; - return proto.gw.LoraModulationInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.LoraModulationInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.LoraModulationInfo} - */ -proto.gw.LoraModulationInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBandwidth(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSpreadingFactor(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setCodeRateLegacy(value); - break; - case 5: - var value = /** @type {!proto.gw.CodeRate} */ (reader.readEnum()); - msg.setCodeRate(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPolarizationInversion(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPreamble(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setNoCrc(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.LoraModulationInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.LoraModulationInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.LoraModulationInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.LoraModulationInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBandwidth(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getSpreadingFactor(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getCodeRateLegacy(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getCodeRate(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } - f = message.getPolarizationInversion(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getPreamble(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } - f = message.getNoCrc(); - if (f) { - writer.writeBool( - 7, - f - ); - } -}; - - -/** - * optional uint32 bandwidth = 1; - * @return {number} - */ -proto.gw.LoraModulationInfo.prototype.getBandwidth = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.LoraModulationInfo} returns this - */ -proto.gw.LoraModulationInfo.prototype.setBandwidth = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 spreading_factor = 2; - * @return {number} - */ -proto.gw.LoraModulationInfo.prototype.getSpreadingFactor = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.LoraModulationInfo} returns this - */ -proto.gw.LoraModulationInfo.prototype.setSpreadingFactor = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string code_rate_legacy = 3; - * @return {string} - */ -proto.gw.LoraModulationInfo.prototype.getCodeRateLegacy = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.LoraModulationInfo} returns this - */ -proto.gw.LoraModulationInfo.prototype.setCodeRateLegacy = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional CodeRate code_rate = 5; - * @return {!proto.gw.CodeRate} - */ -proto.gw.LoraModulationInfo.prototype.getCodeRate = function() { - return /** @type {!proto.gw.CodeRate} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {!proto.gw.CodeRate} value - * @return {!proto.gw.LoraModulationInfo} returns this - */ -proto.gw.LoraModulationInfo.prototype.setCodeRate = function(value) { - return jspb.Message.setProto3EnumField(this, 5, value); -}; - - -/** - * optional bool polarization_inversion = 4; - * @return {boolean} - */ -proto.gw.LoraModulationInfo.prototype.getPolarizationInversion = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.gw.LoraModulationInfo} returns this - */ -proto.gw.LoraModulationInfo.prototype.setPolarizationInversion = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional uint32 preamble = 6; - * @return {number} - */ -proto.gw.LoraModulationInfo.prototype.getPreamble = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.LoraModulationInfo} returns this - */ -proto.gw.LoraModulationInfo.prototype.setPreamble = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional bool no_crc = 7; - * @return {boolean} - */ -proto.gw.LoraModulationInfo.prototype.getNoCrc = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.gw.LoraModulationInfo} returns this - */ -proto.gw.LoraModulationInfo.prototype.setNoCrc = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.FskModulationInfo.prototype.toObject = function(opt_includeInstance) { - return proto.gw.FskModulationInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.FskModulationInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.FskModulationInfo.toObject = function(includeInstance, msg) { - var f, obj = { - frequencyDeviation: jspb.Message.getFieldWithDefault(msg, 1, 0), - datarate: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.FskModulationInfo} - */ -proto.gw.FskModulationInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.FskModulationInfo; - return proto.gw.FskModulationInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.FskModulationInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.FskModulationInfo} - */ -proto.gw.FskModulationInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFrequencyDeviation(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDatarate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.FskModulationInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.FskModulationInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.FskModulationInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.FskModulationInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFrequencyDeviation(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getDatarate(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } -}; - - -/** - * optional uint32 frequency_deviation = 1; - * @return {number} - */ -proto.gw.FskModulationInfo.prototype.getFrequencyDeviation = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.FskModulationInfo} returns this - */ -proto.gw.FskModulationInfo.prototype.setFrequencyDeviation = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 datarate = 2; - * @return {number} - */ -proto.gw.FskModulationInfo.prototype.getDatarate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.FskModulationInfo} returns this - */ -proto.gw.FskModulationInfo.prototype.setDatarate = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.LrFhssModulationInfo.prototype.toObject = function(opt_includeInstance) { - return proto.gw.LrFhssModulationInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.LrFhssModulationInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.LrFhssModulationInfo.toObject = function(includeInstance, msg) { - var f, obj = { - operatingChannelWidth: jspb.Message.getFieldWithDefault(msg, 1, 0), - codeRateLegacy: jspb.Message.getFieldWithDefault(msg, 2, ""), - codeRate: jspb.Message.getFieldWithDefault(msg, 4, 0), - gridSteps: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.LrFhssModulationInfo} - */ -proto.gw.LrFhssModulationInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.LrFhssModulationInfo; - return proto.gw.LrFhssModulationInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.LrFhssModulationInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.LrFhssModulationInfo} - */ -proto.gw.LrFhssModulationInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOperatingChannelWidth(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCodeRateLegacy(value); - break; - case 4: - var value = /** @type {!proto.gw.CodeRate} */ (reader.readEnum()); - msg.setCodeRate(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setGridSteps(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.LrFhssModulationInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.LrFhssModulationInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.LrFhssModulationInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.LrFhssModulationInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOperatingChannelWidth(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getCodeRateLegacy(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getCodeRate(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getGridSteps(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } -}; - - -/** - * optional uint32 operating_channel_width = 1; - * @return {number} - */ -proto.gw.LrFhssModulationInfo.prototype.getOperatingChannelWidth = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.LrFhssModulationInfo} returns this - */ -proto.gw.LrFhssModulationInfo.prototype.setOperatingChannelWidth = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string code_rate_legacy = 2; - * @return {string} - */ -proto.gw.LrFhssModulationInfo.prototype.getCodeRateLegacy = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.LrFhssModulationInfo} returns this - */ -proto.gw.LrFhssModulationInfo.prototype.setCodeRateLegacy = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional CodeRate code_rate = 4; - * @return {!proto.gw.CodeRate} - */ -proto.gw.LrFhssModulationInfo.prototype.getCodeRate = function() { - return /** @type {!proto.gw.CodeRate} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.gw.CodeRate} value - * @return {!proto.gw.LrFhssModulationInfo} returns this - */ -proto.gw.LrFhssModulationInfo.prototype.setCodeRate = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional uint32 grid_steps = 3; - * @return {number} - */ -proto.gw.LrFhssModulationInfo.prototype.getGridSteps = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.LrFhssModulationInfo} returns this - */ -proto.gw.LrFhssModulationInfo.prototype.setGridSteps = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.EncryptedFineTimestamp.prototype.toObject = function(opt_includeInstance) { - return proto.gw.EncryptedFineTimestamp.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.EncryptedFineTimestamp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.EncryptedFineTimestamp.toObject = function(includeInstance, msg) { - var f, obj = { - aesKeyIndex: jspb.Message.getFieldWithDefault(msg, 1, 0), - encryptedNs: msg.getEncryptedNs_asB64(), - fpgaId: msg.getFpgaId_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.EncryptedFineTimestamp} - */ -proto.gw.EncryptedFineTimestamp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.EncryptedFineTimestamp; - return proto.gw.EncryptedFineTimestamp.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.EncryptedFineTimestamp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.EncryptedFineTimestamp} - */ -proto.gw.EncryptedFineTimestamp.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAesKeyIndex(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setEncryptedNs(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setFpgaId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.EncryptedFineTimestamp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.EncryptedFineTimestamp.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.EncryptedFineTimestamp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.EncryptedFineTimestamp.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAesKeyIndex(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getEncryptedNs_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getFpgaId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } -}; - - -/** - * optional uint32 aes_key_index = 1; - * @return {number} - */ -proto.gw.EncryptedFineTimestamp.prototype.getAesKeyIndex = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.EncryptedFineTimestamp} returns this - */ -proto.gw.EncryptedFineTimestamp.prototype.setAesKeyIndex = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bytes encrypted_ns = 2; - * @return {!(string|Uint8Array)} - */ -proto.gw.EncryptedFineTimestamp.prototype.getEncryptedNs = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes encrypted_ns = 2; - * This is a type-conversion wrapper around `getEncryptedNs()` - * @return {string} - */ -proto.gw.EncryptedFineTimestamp.prototype.getEncryptedNs_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getEncryptedNs())); -}; - - -/** - * optional bytes encrypted_ns = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getEncryptedNs()` - * @return {!Uint8Array} - */ -proto.gw.EncryptedFineTimestamp.prototype.getEncryptedNs_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getEncryptedNs())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.EncryptedFineTimestamp} returns this - */ -proto.gw.EncryptedFineTimestamp.prototype.setEncryptedNs = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional bytes fpga_id = 3; - * @return {!(string|Uint8Array)} - */ -proto.gw.EncryptedFineTimestamp.prototype.getFpgaId = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes fpga_id = 3; - * This is a type-conversion wrapper around `getFpgaId()` - * @return {string} - */ -proto.gw.EncryptedFineTimestamp.prototype.getFpgaId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getFpgaId())); -}; - - -/** - * optional bytes fpga_id = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getFpgaId()` - * @return {!Uint8Array} - */ -proto.gw.EncryptedFineTimestamp.prototype.getFpgaId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getFpgaId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.EncryptedFineTimestamp} returns this - */ -proto.gw.EncryptedFineTimestamp.prototype.setFpgaId = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.PlainFineTimestamp.prototype.toObject = function(opt_includeInstance) { - return proto.gw.PlainFineTimestamp.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.PlainFineTimestamp} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.PlainFineTimestamp.toObject = function(includeInstance, msg) { - var f, obj = { - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.PlainFineTimestamp} - */ -proto.gw.PlainFineTimestamp.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.PlainFineTimestamp; - return proto.gw.PlainFineTimestamp.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.PlainFineTimestamp} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.PlainFineTimestamp} - */ -proto.gw.PlainFineTimestamp.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.PlainFineTimestamp.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.PlainFineTimestamp.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.PlainFineTimestamp} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.PlainFineTimestamp.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional google.protobuf.Timestamp time = 1; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.gw.PlainFineTimestamp.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.gw.PlainFineTimestamp} returns this -*/ -proto.gw.PlainFineTimestamp.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.PlainFineTimestamp} returns this - */ -proto.gw.PlainFineTimestamp.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.PlainFineTimestamp.prototype.hasTime = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.gw.GatewayStats.repeatedFields_ = [14,15]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.GatewayStats.prototype.toObject = function(opt_includeInstance) { - return proto.gw.GatewayStats.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.GatewayStats} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GatewayStats.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(), - gatewayId: jspb.Message.getFieldWithDefault(msg, 17, ""), - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - location: (f = msg.getLocation()) && common_common_pb.Location.toObject(includeInstance, f), - configVersion: jspb.Message.getFieldWithDefault(msg, 4, ""), - rxPacketsReceived: jspb.Message.getFieldWithDefault(msg, 5, 0), - rxPacketsReceivedOk: jspb.Message.getFieldWithDefault(msg, 6, 0), - txPacketsReceived: jspb.Message.getFieldWithDefault(msg, 7, 0), - txPacketsEmitted: jspb.Message.getFieldWithDefault(msg, 8, 0), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [], - txPacketsPerFrequencyMap: (f = msg.getTxPacketsPerFrequencyMap()) ? f.toObject(includeInstance, undefined) : [], - rxPacketsPerFrequencyMap: (f = msg.getRxPacketsPerFrequencyMap()) ? f.toObject(includeInstance, undefined) : [], - txPacketsPerModulationList: jspb.Message.toObjectList(msg.getTxPacketsPerModulationList(), - proto.gw.PerModulationCount.toObject, includeInstance), - rxPacketsPerModulationList: jspb.Message.toObjectList(msg.getRxPacketsPerModulationList(), - proto.gw.PerModulationCount.toObject, includeInstance), - txPacketsPerStatusMap: (f = msg.getTxPacketsPerStatusMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.GatewayStats} - */ -proto.gw.GatewayStats.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.GatewayStats; - return proto.gw.GatewayStats.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.GatewayStats} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.GatewayStats} - */ -proto.gw.GatewayStats.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayIdLegacy(value); - break; - case 17: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - case 3: - var value = new common_common_pb.Location; - reader.readMessage(value,common_common_pb.Location.deserializeBinaryFromReader); - msg.setLocation(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setConfigVersion(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRxPacketsReceived(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRxPacketsReceivedOk(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTxPacketsReceived(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTxPacketsEmitted(value); - break; - case 10: - var value = msg.getMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 12: - var value = msg.getTxPacketsPerFrequencyMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readUint32, null, 0, 0); - }); - break; - case 13: - var value = msg.getRxPacketsPerFrequencyMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readUint32, null, 0, 0); - }); - break; - case 14: - var value = new proto.gw.PerModulationCount; - reader.readMessage(value,proto.gw.PerModulationCount.deserializeBinaryFromReader); - msg.addTxPacketsPerModulation(value); - break; - case 15: - var value = new proto.gw.PerModulationCount; - reader.readMessage(value,proto.gw.PerModulationCount.deserializeBinaryFromReader); - msg.addRxPacketsPerModulation(value); - break; - case 16: - var value = msg.getTxPacketsPerStatusMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readUint32, null, "", 0); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.GatewayStats.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.GatewayStats.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.GatewayStats} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GatewayStats.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayIdLegacy_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 17, - f - ); - } - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getLocation(); - if (f != null) { - writer.writeMessage( - 3, - f, - common_common_pb.Location.serializeBinaryToWriter - ); - } - f = message.getConfigVersion(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRxPacketsReceived(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getRxPacketsReceivedOk(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } - f = message.getTxPacketsReceived(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getTxPacketsEmitted(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(10, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getTxPacketsPerFrequencyMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(12, writer, jspb.BinaryWriter.prototype.writeUint32, jspb.BinaryWriter.prototype.writeUint32); - } - f = message.getRxPacketsPerFrequencyMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(13, writer, jspb.BinaryWriter.prototype.writeUint32, jspb.BinaryWriter.prototype.writeUint32); - } - f = message.getTxPacketsPerModulationList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 14, - f, - proto.gw.PerModulationCount.serializeBinaryToWriter - ); - } - f = message.getRxPacketsPerModulationList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 15, - f, - proto.gw.PerModulationCount.serializeBinaryToWriter - ); - } - f = message.getTxPacketsPerStatusMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(16, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeUint32); - } -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * @return {!(string|Uint8Array)} - */ -proto.gw.GatewayStats.prototype.getGatewayIdLegacy = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * This is a type-conversion wrapper around `getGatewayIdLegacy()` - * @return {string} - */ -proto.gw.GatewayStats.prototype.getGatewayIdLegacy_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayIdLegacy())); -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayIdLegacy()` - * @return {!Uint8Array} - */ -proto.gw.GatewayStats.prototype.getGatewayIdLegacy_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayIdLegacy())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.setGatewayIdLegacy = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string gateway_id = 17; - * @return {string} - */ -proto.gw.GatewayStats.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 17, value); -}; - - -/** - * optional google.protobuf.Timestamp time = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.gw.GatewayStats.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.gw.GatewayStats} returns this -*/ -proto.gw.GatewayStats.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.GatewayStats.prototype.hasTime = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional common.Location location = 3; - * @return {?proto.common.Location} - */ -proto.gw.GatewayStats.prototype.getLocation = function() { - return /** @type{?proto.common.Location} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Location, 3)); -}; - - -/** - * @param {?proto.common.Location|undefined} value - * @return {!proto.gw.GatewayStats} returns this -*/ -proto.gw.GatewayStats.prototype.setLocation = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.clearLocation = function() { - return this.setLocation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.GatewayStats.prototype.hasLocation = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string config_version = 4; - * @return {string} - */ -proto.gw.GatewayStats.prototype.getConfigVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.setConfigVersion = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional uint32 rx_packets_received = 5; - * @return {number} - */ -proto.gw.GatewayStats.prototype.getRxPacketsReceived = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.setRxPacketsReceived = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional uint32 rx_packets_received_ok = 6; - * @return {number} - */ -proto.gw.GatewayStats.prototype.getRxPacketsReceivedOk = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.setRxPacketsReceivedOk = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional uint32 tx_packets_received = 7; - * @return {number} - */ -proto.gw.GatewayStats.prototype.getTxPacketsReceived = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.setTxPacketsReceived = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional uint32 tx_packets_emitted = 8; - * @return {number} - */ -proto.gw.GatewayStats.prototype.getTxPacketsEmitted = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.setTxPacketsEmitted = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * map metadata = 10; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.gw.GatewayStats.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 10, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - - -/** - * map tx_packets_per_frequency = 12; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.gw.GatewayStats.prototype.getTxPacketsPerFrequencyMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 12, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.clearTxPacketsPerFrequencyMap = function() { - this.getTxPacketsPerFrequencyMap().clear(); - return this;}; - - -/** - * map rx_packets_per_frequency = 13; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.gw.GatewayStats.prototype.getRxPacketsPerFrequencyMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 13, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.clearRxPacketsPerFrequencyMap = function() { - this.getRxPacketsPerFrequencyMap().clear(); - return this;}; - - -/** - * repeated PerModulationCount tx_packets_per_modulation = 14; - * @return {!Array} - */ -proto.gw.GatewayStats.prototype.getTxPacketsPerModulationList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.gw.PerModulationCount, 14)); -}; - - -/** - * @param {!Array} value - * @return {!proto.gw.GatewayStats} returns this -*/ -proto.gw.GatewayStats.prototype.setTxPacketsPerModulationList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 14, value); -}; - - -/** - * @param {!proto.gw.PerModulationCount=} opt_value - * @param {number=} opt_index - * @return {!proto.gw.PerModulationCount} - */ -proto.gw.GatewayStats.prototype.addTxPacketsPerModulation = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.gw.PerModulationCount, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.clearTxPacketsPerModulationList = function() { - return this.setTxPacketsPerModulationList([]); -}; - - -/** - * repeated PerModulationCount rx_packets_per_modulation = 15; - * @return {!Array} - */ -proto.gw.GatewayStats.prototype.getRxPacketsPerModulationList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.gw.PerModulationCount, 15)); -}; - - -/** - * @param {!Array} value - * @return {!proto.gw.GatewayStats} returns this -*/ -proto.gw.GatewayStats.prototype.setRxPacketsPerModulationList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 15, value); -}; - - -/** - * @param {!proto.gw.PerModulationCount=} opt_value - * @param {number=} opt_index - * @return {!proto.gw.PerModulationCount} - */ -proto.gw.GatewayStats.prototype.addRxPacketsPerModulation = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 15, opt_value, proto.gw.PerModulationCount, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.clearRxPacketsPerModulationList = function() { - return this.setRxPacketsPerModulationList([]); -}; - - -/** - * map tx_packets_per_status = 16; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.gw.GatewayStats.prototype.getTxPacketsPerStatusMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 16, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.gw.GatewayStats} returns this - */ -proto.gw.GatewayStats.prototype.clearTxPacketsPerStatusMap = function() { - this.getTxPacketsPerStatusMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.PerModulationCount.prototype.toObject = function(opt_includeInstance) { - return proto.gw.PerModulationCount.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.PerModulationCount} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.PerModulationCount.toObject = function(includeInstance, msg) { - var f, obj = { - modulation: (f = msg.getModulation()) && proto.gw.Modulation.toObject(includeInstance, f), - count: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.PerModulationCount} - */ -proto.gw.PerModulationCount.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.PerModulationCount; - return proto.gw.PerModulationCount.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.PerModulationCount} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.PerModulationCount} - */ -proto.gw.PerModulationCount.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.gw.Modulation; - reader.readMessage(value,proto.gw.Modulation.deserializeBinaryFromReader); - msg.setModulation(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setCount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.PerModulationCount.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.PerModulationCount.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.PerModulationCount} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.PerModulationCount.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getModulation(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.gw.Modulation.serializeBinaryToWriter - ); - } - f = message.getCount(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } -}; - - -/** - * optional Modulation modulation = 1; - * @return {?proto.gw.Modulation} - */ -proto.gw.PerModulationCount.prototype.getModulation = function() { - return /** @type{?proto.gw.Modulation} */ ( - jspb.Message.getWrapperField(this, proto.gw.Modulation, 1)); -}; - - -/** - * @param {?proto.gw.Modulation|undefined} value - * @return {!proto.gw.PerModulationCount} returns this -*/ -proto.gw.PerModulationCount.prototype.setModulation = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.PerModulationCount} returns this - */ -proto.gw.PerModulationCount.prototype.clearModulation = function() { - return this.setModulation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.PerModulationCount.prototype.hasModulation = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional uint32 count = 2; - * @return {number} - */ -proto.gw.PerModulationCount.prototype.getCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.PerModulationCount} returns this - */ -proto.gw.PerModulationCount.prototype.setCount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.gw.UplinkRxInfoLegacy.oneofGroups_ = [[13,14]]; - -/** - * @enum {number} - */ -proto.gw.UplinkRxInfoLegacy.FineTimestampCase = { - FINE_TIMESTAMP_NOT_SET: 0, - ENCRYPTED_FINE_TIMESTAMP: 13, - PLAIN_FINE_TIMESTAMP: 14 -}; - -/** - * @return {proto.gw.UplinkRxInfoLegacy.FineTimestampCase} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getFineTimestampCase = function() { - return /** @type {proto.gw.UplinkRxInfoLegacy.FineTimestampCase} */(jspb.Message.computeOneofCase(this, proto.gw.UplinkRxInfoLegacy.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.UplinkRxInfoLegacy.prototype.toObject = function(opt_includeInstance) { - return proto.gw.UplinkRxInfoLegacy.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.UplinkRxInfoLegacy} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkRxInfoLegacy.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: msg.getGatewayId_asB64(), - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - timeSinceGpsEpoch: (f = msg.getTimeSinceGpsEpoch()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), - rssi: jspb.Message.getFieldWithDefault(msg, 5, 0), - loraSnr: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0), - channel: jspb.Message.getFieldWithDefault(msg, 7, 0), - rfChain: jspb.Message.getFieldWithDefault(msg, 8, 0), - board: jspb.Message.getFieldWithDefault(msg, 9, 0), - antenna: jspb.Message.getFieldWithDefault(msg, 10, 0), - location: (f = msg.getLocation()) && common_common_pb.Location.toObject(includeInstance, f), - fineTimestampType: jspb.Message.getFieldWithDefault(msg, 12, 0), - encryptedFineTimestamp: (f = msg.getEncryptedFineTimestamp()) && proto.gw.EncryptedFineTimestamp.toObject(includeInstance, f), - plainFineTimestamp: (f = msg.getPlainFineTimestamp()) && proto.gw.PlainFineTimestamp.toObject(includeInstance, f), - context: msg.getContext_asB64(), - uplinkId: msg.getUplinkId_asB64(), - crcStatus: jspb.Message.getFieldWithDefault(msg, 17, 0), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.UplinkRxInfoLegacy} - */ -proto.gw.UplinkRxInfoLegacy.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.UplinkRxInfoLegacy; - return proto.gw.UplinkRxInfoLegacy.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.UplinkRxInfoLegacy} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.UplinkRxInfoLegacy} - */ -proto.gw.UplinkRxInfoLegacy.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - case 3: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setTimeSinceGpsEpoch(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setRssi(value); - break; - case 6: - var value = /** @type {number} */ (reader.readDouble()); - msg.setLoraSnr(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setChannel(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRfChain(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBoard(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAntenna(value); - break; - case 11: - var value = new common_common_pb.Location; - reader.readMessage(value,common_common_pb.Location.deserializeBinaryFromReader); - msg.setLocation(value); - break; - case 12: - var value = /** @type {!proto.gw.FineTimestampType} */ (reader.readEnum()); - msg.setFineTimestampType(value); - break; - case 13: - var value = new proto.gw.EncryptedFineTimestamp; - reader.readMessage(value,proto.gw.EncryptedFineTimestamp.deserializeBinaryFromReader); - msg.setEncryptedFineTimestamp(value); - break; - case 14: - var value = new proto.gw.PlainFineTimestamp; - reader.readMessage(value,proto.gw.PlainFineTimestamp.deserializeBinaryFromReader); - msg.setPlainFineTimestamp(value); - break; - case 15: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setContext(value); - break; - case 16: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setUplinkId(value); - break; - case 17: - var value = /** @type {!proto.gw.CRCStatus} */ (reader.readEnum()); - msg.setCrcStatus(value); - break; - case 18: - var value = msg.getMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.UplinkRxInfoLegacy.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.UplinkRxInfoLegacy.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.UplinkRxInfoLegacy} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkRxInfoLegacy.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getTimeSinceGpsEpoch(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } - f = message.getRssi(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getLoraSnr(); - if (f !== 0.0) { - writer.writeDouble( - 6, - f - ); - } - f = message.getChannel(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getRfChain(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getBoard(); - if (f !== 0) { - writer.writeUint32( - 9, - f - ); - } - f = message.getAntenna(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getLocation(); - if (f != null) { - writer.writeMessage( - 11, - f, - common_common_pb.Location.serializeBinaryToWriter - ); - } - f = message.getFineTimestampType(); - if (f !== 0.0) { - writer.writeEnum( - 12, - f - ); - } - f = message.getEncryptedFineTimestamp(); - if (f != null) { - writer.writeMessage( - 13, - f, - proto.gw.EncryptedFineTimestamp.serializeBinaryToWriter - ); - } - f = message.getPlainFineTimestamp(); - if (f != null) { - writer.writeMessage( - 14, - f, - proto.gw.PlainFineTimestamp.serializeBinaryToWriter - ); - } - f = message.getContext_asU8(); - if (f.length > 0) { - writer.writeBytes( - 15, - f - ); - } - f = message.getUplinkId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 16, - f - ); - } - f = message.getCrcStatus(); - if (f !== 0.0) { - writer.writeEnum( - 17, - f - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(18, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional bytes gateway_id = 1; - * @return {!(string|Uint8Array)} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getGatewayId = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id = 1; - * This is a type-conversion wrapper around `getGatewayId()` - * @return {string} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getGatewayId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayId())); -}; - - -/** - * optional bytes gateway_id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayId()` - * @return {!Uint8Array} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getGatewayId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.UplinkRxInfoLegacy} returns this - */ -proto.gw.UplinkRxInfoLegacy.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp time = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.gw.UplinkRxInfoLegacy} returns this -*/ -proto.gw.UplinkRxInfoLegacy.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkRxInfoLegacy} returns this - */ -proto.gw.UplinkRxInfoLegacy.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkRxInfoLegacy.prototype.hasTime = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Duration time_since_gps_epoch = 3; - * @return {?proto.google.protobuf.Duration} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getTimeSinceGpsEpoch = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.gw.UplinkRxInfoLegacy} returns this -*/ -proto.gw.UplinkRxInfoLegacy.prototype.setTimeSinceGpsEpoch = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkRxInfoLegacy} returns this - */ -proto.gw.UplinkRxInfoLegacy.prototype.clearTimeSinceGpsEpoch = function() { - return this.setTimeSinceGpsEpoch(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkRxInfoLegacy.prototype.hasTimeSinceGpsEpoch = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional int32 rssi = 5; - * @return {number} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getRssi = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRxInfoLegacy} returns this - */ -proto.gw.UplinkRxInfoLegacy.prototype.setRssi = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional double lora_snr = 6; - * @return {number} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getLoraSnr = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRxInfoLegacy} returns this - */ -proto.gw.UplinkRxInfoLegacy.prototype.setLoraSnr = function(value) { - return jspb.Message.setProto3FloatField(this, 6, value); -}; - - -/** - * optional uint32 channel = 7; - * @return {number} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getChannel = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRxInfoLegacy} returns this - */ -proto.gw.UplinkRxInfoLegacy.prototype.setChannel = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional uint32 rf_chain = 8; - * @return {number} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getRfChain = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRxInfoLegacy} returns this - */ -proto.gw.UplinkRxInfoLegacy.prototype.setRfChain = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional uint32 board = 9; - * @return {number} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getBoard = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRxInfoLegacy} returns this - */ -proto.gw.UplinkRxInfoLegacy.prototype.setBoard = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - - -/** - * optional uint32 antenna = 10; - * @return {number} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getAntenna = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRxInfoLegacy} returns this - */ -proto.gw.UplinkRxInfoLegacy.prototype.setAntenna = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional common.Location location = 11; - * @return {?proto.common.Location} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getLocation = function() { - return /** @type{?proto.common.Location} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Location, 11)); -}; - - -/** - * @param {?proto.common.Location|undefined} value - * @return {!proto.gw.UplinkRxInfoLegacy} returns this -*/ -proto.gw.UplinkRxInfoLegacy.prototype.setLocation = function(value) { - return jspb.Message.setWrapperField(this, 11, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkRxInfoLegacy} returns this - */ -proto.gw.UplinkRxInfoLegacy.prototype.clearLocation = function() { - return this.setLocation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkRxInfoLegacy.prototype.hasLocation = function() { - return jspb.Message.getField(this, 11) != null; -}; - - -/** - * optional FineTimestampType fine_timestamp_type = 12; - * @return {!proto.gw.FineTimestampType} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getFineTimestampType = function() { - return /** @type {!proto.gw.FineTimestampType} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {!proto.gw.FineTimestampType} value - * @return {!proto.gw.UplinkRxInfoLegacy} returns this - */ -proto.gw.UplinkRxInfoLegacy.prototype.setFineTimestampType = function(value) { - return jspb.Message.setProto3EnumField(this, 12, value); -}; - - -/** - * optional EncryptedFineTimestamp encrypted_fine_timestamp = 13; - * @return {?proto.gw.EncryptedFineTimestamp} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getEncryptedFineTimestamp = function() { - return /** @type{?proto.gw.EncryptedFineTimestamp} */ ( - jspb.Message.getWrapperField(this, proto.gw.EncryptedFineTimestamp, 13)); -}; - - -/** - * @param {?proto.gw.EncryptedFineTimestamp|undefined} value - * @return {!proto.gw.UplinkRxInfoLegacy} returns this -*/ -proto.gw.UplinkRxInfoLegacy.prototype.setEncryptedFineTimestamp = function(value) { - return jspb.Message.setOneofWrapperField(this, 13, proto.gw.UplinkRxInfoLegacy.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkRxInfoLegacy} returns this - */ -proto.gw.UplinkRxInfoLegacy.prototype.clearEncryptedFineTimestamp = function() { - return this.setEncryptedFineTimestamp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkRxInfoLegacy.prototype.hasEncryptedFineTimestamp = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional PlainFineTimestamp plain_fine_timestamp = 14; - * @return {?proto.gw.PlainFineTimestamp} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getPlainFineTimestamp = function() { - return /** @type{?proto.gw.PlainFineTimestamp} */ ( - jspb.Message.getWrapperField(this, proto.gw.PlainFineTimestamp, 14)); -}; - - -/** - * @param {?proto.gw.PlainFineTimestamp|undefined} value - * @return {!proto.gw.UplinkRxInfoLegacy} returns this -*/ -proto.gw.UplinkRxInfoLegacy.prototype.setPlainFineTimestamp = function(value) { - return jspb.Message.setOneofWrapperField(this, 14, proto.gw.UplinkRxInfoLegacy.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkRxInfoLegacy} returns this - */ -proto.gw.UplinkRxInfoLegacy.prototype.clearPlainFineTimestamp = function() { - return this.setPlainFineTimestamp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkRxInfoLegacy.prototype.hasPlainFineTimestamp = function() { - return jspb.Message.getField(this, 14) != null; -}; - - -/** - * optional bytes context = 15; - * @return {!(string|Uint8Array)} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getContext = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** - * optional bytes context = 15; - * This is a type-conversion wrapper around `getContext()` - * @return {string} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getContext_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getContext())); -}; - - -/** - * optional bytes context = 15; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getContext()` - * @return {!Uint8Array} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getContext_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getContext())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.UplinkRxInfoLegacy} returns this - */ -proto.gw.UplinkRxInfoLegacy.prototype.setContext = function(value) { - return jspb.Message.setProto3BytesField(this, 15, value); -}; - - -/** - * optional bytes uplink_id = 16; - * @return {!(string|Uint8Array)} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getUplinkId = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** - * optional bytes uplink_id = 16; - * This is a type-conversion wrapper around `getUplinkId()` - * @return {string} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getUplinkId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getUplinkId())); -}; - - -/** - * optional bytes uplink_id = 16; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getUplinkId()` - * @return {!Uint8Array} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getUplinkId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getUplinkId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.UplinkRxInfoLegacy} returns this - */ -proto.gw.UplinkRxInfoLegacy.prototype.setUplinkId = function(value) { - return jspb.Message.setProto3BytesField(this, 16, value); -}; - - -/** - * optional CRCStatus crc_status = 17; - * @return {!proto.gw.CRCStatus} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getCrcStatus = function() { - return /** @type {!proto.gw.CRCStatus} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); -}; - - -/** - * @param {!proto.gw.CRCStatus} value - * @return {!proto.gw.UplinkRxInfoLegacy} returns this - */ -proto.gw.UplinkRxInfoLegacy.prototype.setCrcStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 17, value); -}; - - -/** - * map metadata = 18; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.gw.UplinkRxInfoLegacy.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 18, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.gw.UplinkRxInfoLegacy} returns this - */ -proto.gw.UplinkRxInfoLegacy.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.UplinkRxInfo.prototype.toObject = function(opt_includeInstance) { - return proto.gw.UplinkRxInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.UplinkRxInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkRxInfo.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: jspb.Message.getFieldWithDefault(msg, 1, ""), - uplinkId: jspb.Message.getFieldWithDefault(msg, 2, 0), - gwTime: (f = msg.getGwTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - nsTime: (f = msg.getNsTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - timeSinceGpsEpoch: (f = msg.getTimeSinceGpsEpoch()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), - fineTimeSinceGpsEpoch: (f = msg.getFineTimeSinceGpsEpoch()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), - rssi: jspb.Message.getFieldWithDefault(msg, 6, 0), - snr: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), - channel: jspb.Message.getFieldWithDefault(msg, 8, 0), - rfChain: jspb.Message.getFieldWithDefault(msg, 9, 0), - board: jspb.Message.getFieldWithDefault(msg, 10, 0), - antenna: jspb.Message.getFieldWithDefault(msg, 11, 0), - location: (f = msg.getLocation()) && common_common_pb.Location.toObject(includeInstance, f), - context: msg.getContext_asB64(), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [], - crcStatus: jspb.Message.getFieldWithDefault(msg, 16, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.UplinkRxInfo} - */ -proto.gw.UplinkRxInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.UplinkRxInfo; - return proto.gw.UplinkRxInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.UplinkRxInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.UplinkRxInfo} - */ -proto.gw.UplinkRxInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setUplinkId(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setGwTime(value); - break; - case 17: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setNsTime(value); - break; - case 4: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setTimeSinceGpsEpoch(value); - break; - case 5: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setFineTimeSinceGpsEpoch(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt32()); - msg.setRssi(value); - break; - case 7: - var value = /** @type {number} */ (reader.readFloat()); - msg.setSnr(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setChannel(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint32()); - msg.setRfChain(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBoard(value); - break; - case 11: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAntenna(value); - break; - case 12: - var value = new common_common_pb.Location; - reader.readMessage(value,common_common_pb.Location.deserializeBinaryFromReader); - msg.setLocation(value); - break; - case 13: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setContext(value); - break; - case 15: - var value = msg.getMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - case 16: - var value = /** @type {!proto.gw.CRCStatus} */ (reader.readEnum()); - msg.setCrcStatus(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.UplinkRxInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.UplinkRxInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.UplinkRxInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkRxInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getUplinkId(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getGwTime(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getNsTime(); - if (f != null) { - writer.writeMessage( - 17, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getTimeSinceGpsEpoch(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } - f = message.getFineTimeSinceGpsEpoch(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } - f = message.getRssi(); - if (f !== 0) { - writer.writeInt32( - 6, - f - ); - } - f = message.getSnr(); - if (f !== 0.0) { - writer.writeFloat( - 7, - f - ); - } - f = message.getChannel(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getRfChain(); - if (f !== 0) { - writer.writeUint32( - 9, - f - ); - } - f = message.getBoard(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getAntenna(); - if (f !== 0) { - writer.writeUint32( - 11, - f - ); - } - f = message.getLocation(); - if (f != null) { - writer.writeMessage( - 12, - f, - common_common_pb.Location.serializeBinaryToWriter - ); - } - f = message.getContext_asU8(); - if (f.length > 0) { - writer.writeBytes( - 13, - f - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(15, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } - f = message.getCrcStatus(); - if (f !== 0.0) { - writer.writeEnum( - 16, - f - ); - } -}; - - -/** - * optional string gateway_id = 1; - * @return {string} - */ -proto.gw.UplinkRxInfo.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.UplinkRxInfo} returns this - */ -proto.gw.UplinkRxInfo.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint32 uplink_id = 2; - * @return {number} - */ -proto.gw.UplinkRxInfo.prototype.getUplinkId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRxInfo} returns this - */ -proto.gw.UplinkRxInfo.prototype.setUplinkId = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional google.protobuf.Timestamp gw_time = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.gw.UplinkRxInfo.prototype.getGwTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.gw.UplinkRxInfo} returns this -*/ -proto.gw.UplinkRxInfo.prototype.setGwTime = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkRxInfo} returns this - */ -proto.gw.UplinkRxInfo.prototype.clearGwTime = function() { - return this.setGwTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkRxInfo.prototype.hasGwTime = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Timestamp ns_time = 17; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.gw.UplinkRxInfo.prototype.getNsTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 17)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.gw.UplinkRxInfo} returns this -*/ -proto.gw.UplinkRxInfo.prototype.setNsTime = function(value) { - return jspb.Message.setWrapperField(this, 17, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkRxInfo} returns this - */ -proto.gw.UplinkRxInfo.prototype.clearNsTime = function() { - return this.setNsTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkRxInfo.prototype.hasNsTime = function() { - return jspb.Message.getField(this, 17) != null; -}; - - -/** - * optional google.protobuf.Duration time_since_gps_epoch = 4; - * @return {?proto.google.protobuf.Duration} - */ -proto.gw.UplinkRxInfo.prototype.getTimeSinceGpsEpoch = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.gw.UplinkRxInfo} returns this -*/ -proto.gw.UplinkRxInfo.prototype.setTimeSinceGpsEpoch = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkRxInfo} returns this - */ -proto.gw.UplinkRxInfo.prototype.clearTimeSinceGpsEpoch = function() { - return this.setTimeSinceGpsEpoch(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkRxInfo.prototype.hasTimeSinceGpsEpoch = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional google.protobuf.Duration fine_time_since_gps_epoch = 5; - * @return {?proto.google.protobuf.Duration} - */ -proto.gw.UplinkRxInfo.prototype.getFineTimeSinceGpsEpoch = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 5)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.gw.UplinkRxInfo} returns this -*/ -proto.gw.UplinkRxInfo.prototype.setFineTimeSinceGpsEpoch = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkRxInfo} returns this - */ -proto.gw.UplinkRxInfo.prototype.clearFineTimeSinceGpsEpoch = function() { - return this.setFineTimeSinceGpsEpoch(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkRxInfo.prototype.hasFineTimeSinceGpsEpoch = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional int32 rssi = 6; - * @return {number} - */ -proto.gw.UplinkRxInfo.prototype.getRssi = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRxInfo} returns this - */ -proto.gw.UplinkRxInfo.prototype.setRssi = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional float snr = 7; - * @return {number} - */ -proto.gw.UplinkRxInfo.prototype.getSnr = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRxInfo} returns this - */ -proto.gw.UplinkRxInfo.prototype.setSnr = function(value) { - return jspb.Message.setProto3FloatField(this, 7, value); -}; - - -/** - * optional uint32 channel = 8; - * @return {number} - */ -proto.gw.UplinkRxInfo.prototype.getChannel = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRxInfo} returns this - */ -proto.gw.UplinkRxInfo.prototype.setChannel = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional uint32 rf_chain = 9; - * @return {number} - */ -proto.gw.UplinkRxInfo.prototype.getRfChain = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRxInfo} returns this - */ -proto.gw.UplinkRxInfo.prototype.setRfChain = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - - -/** - * optional uint32 board = 10; - * @return {number} - */ -proto.gw.UplinkRxInfo.prototype.getBoard = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRxInfo} returns this - */ -proto.gw.UplinkRxInfo.prototype.setBoard = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional uint32 antenna = 11; - * @return {number} - */ -proto.gw.UplinkRxInfo.prototype.getAntenna = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.UplinkRxInfo} returns this - */ -proto.gw.UplinkRxInfo.prototype.setAntenna = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional common.Location location = 12; - * @return {?proto.common.Location} - */ -proto.gw.UplinkRxInfo.prototype.getLocation = function() { - return /** @type{?proto.common.Location} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Location, 12)); -}; - - -/** - * @param {?proto.common.Location|undefined} value - * @return {!proto.gw.UplinkRxInfo} returns this -*/ -proto.gw.UplinkRxInfo.prototype.setLocation = function(value) { - return jspb.Message.setWrapperField(this, 12, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkRxInfo} returns this - */ -proto.gw.UplinkRxInfo.prototype.clearLocation = function() { - return this.setLocation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkRxInfo.prototype.hasLocation = function() { - return jspb.Message.getField(this, 12) != null; -}; - - -/** - * optional bytes context = 13; - * @return {!(string|Uint8Array)} - */ -proto.gw.UplinkRxInfo.prototype.getContext = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 13, "")); -}; - - -/** - * optional bytes context = 13; - * This is a type-conversion wrapper around `getContext()` - * @return {string} - */ -proto.gw.UplinkRxInfo.prototype.getContext_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getContext())); -}; - - -/** - * optional bytes context = 13; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getContext()` - * @return {!Uint8Array} - */ -proto.gw.UplinkRxInfo.prototype.getContext_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getContext())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.UplinkRxInfo} returns this - */ -proto.gw.UplinkRxInfo.prototype.setContext = function(value) { - return jspb.Message.setProto3BytesField(this, 13, value); -}; - - -/** - * map metadata = 15; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.gw.UplinkRxInfo.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 15, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.gw.UplinkRxInfo} returns this - */ -proto.gw.UplinkRxInfo.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - - -/** - * optional CRCStatus crc_status = 16; - * @return {!proto.gw.CRCStatus} - */ -proto.gw.UplinkRxInfo.prototype.getCrcStatus = function() { - return /** @type {!proto.gw.CRCStatus} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); -}; - - -/** - * @param {!proto.gw.CRCStatus} value - * @return {!proto.gw.UplinkRxInfo} returns this - */ -proto.gw.UplinkRxInfo.prototype.setCrcStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 16, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.gw.DownlinkTxInfoLegacy.oneofGroups_ = [[8,9],[13,14,15]]; - -/** - * @enum {number} - */ -proto.gw.DownlinkTxInfoLegacy.ModulationInfoCase = { - MODULATION_INFO_NOT_SET: 0, - LORA_MODULATION_INFO: 8, - FSK_MODULATION_INFO: 9 -}; - -/** - * @return {proto.gw.DownlinkTxInfoLegacy.ModulationInfoCase} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getModulationInfoCase = function() { - return /** @type {proto.gw.DownlinkTxInfoLegacy.ModulationInfoCase} */(jspb.Message.computeOneofCase(this, proto.gw.DownlinkTxInfoLegacy.oneofGroups_[0])); -}; - -/** - * @enum {number} - */ -proto.gw.DownlinkTxInfoLegacy.TimingInfoCase = { - TIMING_INFO_NOT_SET: 0, - IMMEDIATELY_TIMING_INFO: 13, - DELAY_TIMING_INFO: 14, - GPS_EPOCH_TIMING_INFO: 15 -}; - -/** - * @return {proto.gw.DownlinkTxInfoLegacy.TimingInfoCase} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getTimingInfoCase = function() { - return /** @type {proto.gw.DownlinkTxInfoLegacy.TimingInfoCase} */(jspb.Message.computeOneofCase(this, proto.gw.DownlinkTxInfoLegacy.oneofGroups_[1])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.toObject = function(opt_includeInstance) { - return proto.gw.DownlinkTxInfoLegacy.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.DownlinkTxInfoLegacy} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkTxInfoLegacy.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayId: msg.getGatewayId_asB64(), - frequency: jspb.Message.getFieldWithDefault(msg, 5, 0), - power: jspb.Message.getFieldWithDefault(msg, 6, 0), - modulation: jspb.Message.getFieldWithDefault(msg, 7, 0), - loraModulationInfo: (f = msg.getLoraModulationInfo()) && proto.gw.LoraModulationInfo.toObject(includeInstance, f), - fskModulationInfo: (f = msg.getFskModulationInfo()) && proto.gw.FskModulationInfo.toObject(includeInstance, f), - board: jspb.Message.getFieldWithDefault(msg, 10, 0), - antenna: jspb.Message.getFieldWithDefault(msg, 11, 0), - timing: jspb.Message.getFieldWithDefault(msg, 12, 0), - immediatelyTimingInfo: (f = msg.getImmediatelyTimingInfo()) && proto.gw.ImmediatelyTimingInfo.toObject(includeInstance, f), - delayTimingInfo: (f = msg.getDelayTimingInfo()) && proto.gw.DelayTimingInfo.toObject(includeInstance, f), - gpsEpochTimingInfo: (f = msg.getGpsEpochTimingInfo()) && proto.gw.GPSEpochTimingInfo.toObject(includeInstance, f), - context: msg.getContext_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.DownlinkTxInfoLegacy} - */ -proto.gw.DownlinkTxInfoLegacy.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.DownlinkTxInfoLegacy; - return proto.gw.DownlinkTxInfoLegacy.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.DownlinkTxInfoLegacy} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.DownlinkTxInfoLegacy} - */ -proto.gw.DownlinkTxInfoLegacy.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayId(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFrequency(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPower(value); - break; - case 7: - var value = /** @type {!proto.common.Modulation} */ (reader.readEnum()); - msg.setModulation(value); - break; - case 8: - var value = new proto.gw.LoraModulationInfo; - reader.readMessage(value,proto.gw.LoraModulationInfo.deserializeBinaryFromReader); - msg.setLoraModulationInfo(value); - break; - case 9: - var value = new proto.gw.FskModulationInfo; - reader.readMessage(value,proto.gw.FskModulationInfo.deserializeBinaryFromReader); - msg.setFskModulationInfo(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBoard(value); - break; - case 11: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAntenna(value); - break; - case 12: - var value = /** @type {!proto.gw.DownlinkTiming} */ (reader.readEnum()); - msg.setTiming(value); - break; - case 13: - var value = new proto.gw.ImmediatelyTimingInfo; - reader.readMessage(value,proto.gw.ImmediatelyTimingInfo.deserializeBinaryFromReader); - msg.setImmediatelyTimingInfo(value); - break; - case 14: - var value = new proto.gw.DelayTimingInfo; - reader.readMessage(value,proto.gw.DelayTimingInfo.deserializeBinaryFromReader); - msg.setDelayTimingInfo(value); - break; - case 15: - var value = new proto.gw.GPSEpochTimingInfo; - reader.readMessage(value,proto.gw.GPSEpochTimingInfo.deserializeBinaryFromReader); - msg.setGpsEpochTimingInfo(value); - break; - case 16: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setContext(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.DownlinkTxInfoLegacy.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.DownlinkTxInfoLegacy} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkTxInfoLegacy.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getFrequency(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getPower(); - if (f !== 0) { - writer.writeInt32( - 6, - f - ); - } - f = message.getModulation(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getLoraModulationInfo(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.gw.LoraModulationInfo.serializeBinaryToWriter - ); - } - f = message.getFskModulationInfo(); - if (f != null) { - writer.writeMessage( - 9, - f, - proto.gw.FskModulationInfo.serializeBinaryToWriter - ); - } - f = message.getBoard(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getAntenna(); - if (f !== 0) { - writer.writeUint32( - 11, - f - ); - } - f = message.getTiming(); - if (f !== 0.0) { - writer.writeEnum( - 12, - f - ); - } - f = message.getImmediatelyTimingInfo(); - if (f != null) { - writer.writeMessage( - 13, - f, - proto.gw.ImmediatelyTimingInfo.serializeBinaryToWriter - ); - } - f = message.getDelayTimingInfo(); - if (f != null) { - writer.writeMessage( - 14, - f, - proto.gw.DelayTimingInfo.serializeBinaryToWriter - ); - } - f = message.getGpsEpochTimingInfo(); - if (f != null) { - writer.writeMessage( - 15, - f, - proto.gw.GPSEpochTimingInfo.serializeBinaryToWriter - ); - } - f = message.getContext_asU8(); - if (f.length > 0) { - writer.writeBytes( - 16, - f - ); - } -}; - - -/** - * optional bytes gateway_id = 1; - * @return {!(string|Uint8Array)} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getGatewayId = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id = 1; - * This is a type-conversion wrapper around `getGatewayId()` - * @return {string} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getGatewayId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayId())); -}; - - -/** - * optional bytes gateway_id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayId()` - * @return {!Uint8Array} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getGatewayId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.DownlinkTxInfoLegacy} returns this - */ -proto.gw.DownlinkTxInfoLegacy.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional uint32 frequency = 5; - * @return {number} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getFrequency = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.DownlinkTxInfoLegacy} returns this - */ -proto.gw.DownlinkTxInfoLegacy.prototype.setFrequency = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional int32 power = 6; - * @return {number} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getPower = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.DownlinkTxInfoLegacy} returns this - */ -proto.gw.DownlinkTxInfoLegacy.prototype.setPower = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional common.Modulation modulation = 7; - * @return {!proto.common.Modulation} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getModulation = function() { - return /** @type {!proto.common.Modulation} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.common.Modulation} value - * @return {!proto.gw.DownlinkTxInfoLegacy} returns this - */ -proto.gw.DownlinkTxInfoLegacy.prototype.setModulation = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); -}; - - -/** - * optional LoraModulationInfo lora_modulation_info = 8; - * @return {?proto.gw.LoraModulationInfo} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getLoraModulationInfo = function() { - return /** @type{?proto.gw.LoraModulationInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.LoraModulationInfo, 8)); -}; - - -/** - * @param {?proto.gw.LoraModulationInfo|undefined} value - * @return {!proto.gw.DownlinkTxInfoLegacy} returns this -*/ -proto.gw.DownlinkTxInfoLegacy.prototype.setLoraModulationInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 8, proto.gw.DownlinkTxInfoLegacy.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.DownlinkTxInfoLegacy} returns this - */ -proto.gw.DownlinkTxInfoLegacy.prototype.clearLoraModulationInfo = function() { - return this.setLoraModulationInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.hasLoraModulationInfo = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional FskModulationInfo fsk_modulation_info = 9; - * @return {?proto.gw.FskModulationInfo} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getFskModulationInfo = function() { - return /** @type{?proto.gw.FskModulationInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.FskModulationInfo, 9)); -}; - - -/** - * @param {?proto.gw.FskModulationInfo|undefined} value - * @return {!proto.gw.DownlinkTxInfoLegacy} returns this -*/ -proto.gw.DownlinkTxInfoLegacy.prototype.setFskModulationInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 9, proto.gw.DownlinkTxInfoLegacy.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.DownlinkTxInfoLegacy} returns this - */ -proto.gw.DownlinkTxInfoLegacy.prototype.clearFskModulationInfo = function() { - return this.setFskModulationInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.hasFskModulationInfo = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional uint32 board = 10; - * @return {number} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getBoard = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.DownlinkTxInfoLegacy} returns this - */ -proto.gw.DownlinkTxInfoLegacy.prototype.setBoard = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional uint32 antenna = 11; - * @return {number} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getAntenna = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.DownlinkTxInfoLegacy} returns this - */ -proto.gw.DownlinkTxInfoLegacy.prototype.setAntenna = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional DownlinkTiming timing = 12; - * @return {!proto.gw.DownlinkTiming} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getTiming = function() { - return /** @type {!proto.gw.DownlinkTiming} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {!proto.gw.DownlinkTiming} value - * @return {!proto.gw.DownlinkTxInfoLegacy} returns this - */ -proto.gw.DownlinkTxInfoLegacy.prototype.setTiming = function(value) { - return jspb.Message.setProto3EnumField(this, 12, value); -}; - - -/** - * optional ImmediatelyTimingInfo immediately_timing_info = 13; - * @return {?proto.gw.ImmediatelyTimingInfo} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getImmediatelyTimingInfo = function() { - return /** @type{?proto.gw.ImmediatelyTimingInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.ImmediatelyTimingInfo, 13)); -}; - - -/** - * @param {?proto.gw.ImmediatelyTimingInfo|undefined} value - * @return {!proto.gw.DownlinkTxInfoLegacy} returns this -*/ -proto.gw.DownlinkTxInfoLegacy.prototype.setImmediatelyTimingInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 13, proto.gw.DownlinkTxInfoLegacy.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.DownlinkTxInfoLegacy} returns this - */ -proto.gw.DownlinkTxInfoLegacy.prototype.clearImmediatelyTimingInfo = function() { - return this.setImmediatelyTimingInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.hasImmediatelyTimingInfo = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional DelayTimingInfo delay_timing_info = 14; - * @return {?proto.gw.DelayTimingInfo} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getDelayTimingInfo = function() { - return /** @type{?proto.gw.DelayTimingInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.DelayTimingInfo, 14)); -}; - - -/** - * @param {?proto.gw.DelayTimingInfo|undefined} value - * @return {!proto.gw.DownlinkTxInfoLegacy} returns this -*/ -proto.gw.DownlinkTxInfoLegacy.prototype.setDelayTimingInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 14, proto.gw.DownlinkTxInfoLegacy.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.DownlinkTxInfoLegacy} returns this - */ -proto.gw.DownlinkTxInfoLegacy.prototype.clearDelayTimingInfo = function() { - return this.setDelayTimingInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.hasDelayTimingInfo = function() { - return jspb.Message.getField(this, 14) != null; -}; - - -/** - * optional GPSEpochTimingInfo gps_epoch_timing_info = 15; - * @return {?proto.gw.GPSEpochTimingInfo} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getGpsEpochTimingInfo = function() { - return /** @type{?proto.gw.GPSEpochTimingInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.GPSEpochTimingInfo, 15)); -}; - - -/** - * @param {?proto.gw.GPSEpochTimingInfo|undefined} value - * @return {!proto.gw.DownlinkTxInfoLegacy} returns this -*/ -proto.gw.DownlinkTxInfoLegacy.prototype.setGpsEpochTimingInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 15, proto.gw.DownlinkTxInfoLegacy.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.DownlinkTxInfoLegacy} returns this - */ -proto.gw.DownlinkTxInfoLegacy.prototype.clearGpsEpochTimingInfo = function() { - return this.setGpsEpochTimingInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.hasGpsEpochTimingInfo = function() { - return jspb.Message.getField(this, 15) != null; -}; - - -/** - * optional bytes context = 16; - * @return {!(string|Uint8Array)} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getContext = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** - * optional bytes context = 16; - * This is a type-conversion wrapper around `getContext()` - * @return {string} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getContext_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getContext())); -}; - - -/** - * optional bytes context = 16; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getContext()` - * @return {!Uint8Array} - */ -proto.gw.DownlinkTxInfoLegacy.prototype.getContext_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getContext())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.DownlinkTxInfoLegacy} returns this - */ -proto.gw.DownlinkTxInfoLegacy.prototype.setContext = function(value) { - return jspb.Message.setProto3BytesField(this, 16, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.DownlinkTxInfo.prototype.toObject = function(opt_includeInstance) { - return proto.gw.DownlinkTxInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.DownlinkTxInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkTxInfo.toObject = function(includeInstance, msg) { - var f, obj = { - frequency: jspb.Message.getFieldWithDefault(msg, 1, 0), - power: jspb.Message.getFieldWithDefault(msg, 2, 0), - modulation: (f = msg.getModulation()) && proto.gw.Modulation.toObject(includeInstance, f), - board: jspb.Message.getFieldWithDefault(msg, 4, 0), - antenna: jspb.Message.getFieldWithDefault(msg, 5, 0), - timing: (f = msg.getTiming()) && proto.gw.Timing.toObject(includeInstance, f), - context: msg.getContext_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.DownlinkTxInfo} - */ -proto.gw.DownlinkTxInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.DownlinkTxInfo; - return proto.gw.DownlinkTxInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.DownlinkTxInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.DownlinkTxInfo} - */ -proto.gw.DownlinkTxInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFrequency(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPower(value); - break; - case 3: - var value = new proto.gw.Modulation; - reader.readMessage(value,proto.gw.Modulation.deserializeBinaryFromReader); - msg.setModulation(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBoard(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAntenna(value); - break; - case 6: - var value = new proto.gw.Timing; - reader.readMessage(value,proto.gw.Timing.deserializeBinaryFromReader); - msg.setTiming(value); - break; - case 7: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setContext(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.DownlinkTxInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.DownlinkTxInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.DownlinkTxInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkTxInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFrequency(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getPower(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getModulation(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.gw.Modulation.serializeBinaryToWriter - ); - } - f = message.getBoard(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getAntenna(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getTiming(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.gw.Timing.serializeBinaryToWriter - ); - } - f = message.getContext_asU8(); - if (f.length > 0) { - writer.writeBytes( - 7, - f - ); - } -}; - - -/** - * optional uint32 frequency = 1; - * @return {number} - */ -proto.gw.DownlinkTxInfo.prototype.getFrequency = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.DownlinkTxInfo} returns this - */ -proto.gw.DownlinkTxInfo.prototype.setFrequency = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional int32 power = 2; - * @return {number} - */ -proto.gw.DownlinkTxInfo.prototype.getPower = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.DownlinkTxInfo} returns this - */ -proto.gw.DownlinkTxInfo.prototype.setPower = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional Modulation modulation = 3; - * @return {?proto.gw.Modulation} - */ -proto.gw.DownlinkTxInfo.prototype.getModulation = function() { - return /** @type{?proto.gw.Modulation} */ ( - jspb.Message.getWrapperField(this, proto.gw.Modulation, 3)); -}; - - -/** - * @param {?proto.gw.Modulation|undefined} value - * @return {!proto.gw.DownlinkTxInfo} returns this -*/ -proto.gw.DownlinkTxInfo.prototype.setModulation = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.DownlinkTxInfo} returns this - */ -proto.gw.DownlinkTxInfo.prototype.clearModulation = function() { - return this.setModulation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.DownlinkTxInfo.prototype.hasModulation = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional uint32 board = 4; - * @return {number} - */ -proto.gw.DownlinkTxInfo.prototype.getBoard = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.DownlinkTxInfo} returns this - */ -proto.gw.DownlinkTxInfo.prototype.setBoard = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional uint32 antenna = 5; - * @return {number} - */ -proto.gw.DownlinkTxInfo.prototype.getAntenna = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.DownlinkTxInfo} returns this - */ -proto.gw.DownlinkTxInfo.prototype.setAntenna = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional Timing timing = 6; - * @return {?proto.gw.Timing} - */ -proto.gw.DownlinkTxInfo.prototype.getTiming = function() { - return /** @type{?proto.gw.Timing} */ ( - jspb.Message.getWrapperField(this, proto.gw.Timing, 6)); -}; - - -/** - * @param {?proto.gw.Timing|undefined} value - * @return {!proto.gw.DownlinkTxInfo} returns this -*/ -proto.gw.DownlinkTxInfo.prototype.setTiming = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.DownlinkTxInfo} returns this - */ -proto.gw.DownlinkTxInfo.prototype.clearTiming = function() { - return this.setTiming(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.DownlinkTxInfo.prototype.hasTiming = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional bytes context = 7; - * @return {!(string|Uint8Array)} - */ -proto.gw.DownlinkTxInfo.prototype.getContext = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * optional bytes context = 7; - * This is a type-conversion wrapper around `getContext()` - * @return {string} - */ -proto.gw.DownlinkTxInfo.prototype.getContext_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getContext())); -}; - - -/** - * optional bytes context = 7; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getContext()` - * @return {!Uint8Array} - */ -proto.gw.DownlinkTxInfo.prototype.getContext_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getContext())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.DownlinkTxInfo} returns this - */ -proto.gw.DownlinkTxInfo.prototype.setContext = function(value) { - return jspb.Message.setProto3BytesField(this, 7, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.gw.Timing.oneofGroups_ = [[1,2,3]]; - -/** - * @enum {number} - */ -proto.gw.Timing.ParametersCase = { - PARAMETERS_NOT_SET: 0, - IMMEDIATELY: 1, - DELAY: 2, - GPS_EPOCH: 3 -}; - -/** - * @return {proto.gw.Timing.ParametersCase} - */ -proto.gw.Timing.prototype.getParametersCase = function() { - return /** @type {proto.gw.Timing.ParametersCase} */(jspb.Message.computeOneofCase(this, proto.gw.Timing.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.Timing.prototype.toObject = function(opt_includeInstance) { - return proto.gw.Timing.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.Timing} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.Timing.toObject = function(includeInstance, msg) { - var f, obj = { - immediately: (f = msg.getImmediately()) && proto.gw.ImmediatelyTimingInfo.toObject(includeInstance, f), - delay: (f = msg.getDelay()) && proto.gw.DelayTimingInfo.toObject(includeInstance, f), - gpsEpoch: (f = msg.getGpsEpoch()) && proto.gw.GPSEpochTimingInfo.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.Timing} - */ -proto.gw.Timing.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.Timing; - return proto.gw.Timing.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.Timing} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.Timing} - */ -proto.gw.Timing.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.gw.ImmediatelyTimingInfo; - reader.readMessage(value,proto.gw.ImmediatelyTimingInfo.deserializeBinaryFromReader); - msg.setImmediately(value); - break; - case 2: - var value = new proto.gw.DelayTimingInfo; - reader.readMessage(value,proto.gw.DelayTimingInfo.deserializeBinaryFromReader); - msg.setDelay(value); - break; - case 3: - var value = new proto.gw.GPSEpochTimingInfo; - reader.readMessage(value,proto.gw.GPSEpochTimingInfo.deserializeBinaryFromReader); - msg.setGpsEpoch(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.Timing.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.Timing.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.Timing} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.Timing.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getImmediately(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.gw.ImmediatelyTimingInfo.serializeBinaryToWriter - ); - } - f = message.getDelay(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.gw.DelayTimingInfo.serializeBinaryToWriter - ); - } - f = message.getGpsEpoch(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.gw.GPSEpochTimingInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ImmediatelyTimingInfo immediately = 1; - * @return {?proto.gw.ImmediatelyTimingInfo} - */ -proto.gw.Timing.prototype.getImmediately = function() { - return /** @type{?proto.gw.ImmediatelyTimingInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.ImmediatelyTimingInfo, 1)); -}; - - -/** - * @param {?proto.gw.ImmediatelyTimingInfo|undefined} value - * @return {!proto.gw.Timing} returns this -*/ -proto.gw.Timing.prototype.setImmediately = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.gw.Timing.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.Timing} returns this - */ -proto.gw.Timing.prototype.clearImmediately = function() { - return this.setImmediately(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.Timing.prototype.hasImmediately = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional DelayTimingInfo delay = 2; - * @return {?proto.gw.DelayTimingInfo} - */ -proto.gw.Timing.prototype.getDelay = function() { - return /** @type{?proto.gw.DelayTimingInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.DelayTimingInfo, 2)); -}; - - -/** - * @param {?proto.gw.DelayTimingInfo|undefined} value - * @return {!proto.gw.Timing} returns this -*/ -proto.gw.Timing.prototype.setDelay = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.gw.Timing.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.Timing} returns this - */ -proto.gw.Timing.prototype.clearDelay = function() { - return this.setDelay(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.Timing.prototype.hasDelay = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional GPSEpochTimingInfo gps_epoch = 3; - * @return {?proto.gw.GPSEpochTimingInfo} - */ -proto.gw.Timing.prototype.getGpsEpoch = function() { - return /** @type{?proto.gw.GPSEpochTimingInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.GPSEpochTimingInfo, 3)); -}; - - -/** - * @param {?proto.gw.GPSEpochTimingInfo|undefined} value - * @return {!proto.gw.Timing} returns this -*/ -proto.gw.Timing.prototype.setGpsEpoch = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.gw.Timing.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.Timing} returns this - */ -proto.gw.Timing.prototype.clearGpsEpoch = function() { - return this.setGpsEpoch(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.Timing.prototype.hasGpsEpoch = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.ImmediatelyTimingInfo.prototype.toObject = function(opt_includeInstance) { - return proto.gw.ImmediatelyTimingInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.ImmediatelyTimingInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.ImmediatelyTimingInfo.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.ImmediatelyTimingInfo} - */ -proto.gw.ImmediatelyTimingInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.ImmediatelyTimingInfo; - return proto.gw.ImmediatelyTimingInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.ImmediatelyTimingInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.ImmediatelyTimingInfo} - */ -proto.gw.ImmediatelyTimingInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.ImmediatelyTimingInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.ImmediatelyTimingInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.ImmediatelyTimingInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.ImmediatelyTimingInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.DelayTimingInfo.prototype.toObject = function(opt_includeInstance) { - return proto.gw.DelayTimingInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.DelayTimingInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DelayTimingInfo.toObject = function(includeInstance, msg) { - var f, obj = { - delay: (f = msg.getDelay()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.DelayTimingInfo} - */ -proto.gw.DelayTimingInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.DelayTimingInfo; - return proto.gw.DelayTimingInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.DelayTimingInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.DelayTimingInfo} - */ -proto.gw.DelayTimingInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setDelay(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.DelayTimingInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.DelayTimingInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.DelayTimingInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DelayTimingInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDelay(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional google.protobuf.Duration delay = 1; - * @return {?proto.google.protobuf.Duration} - */ -proto.gw.DelayTimingInfo.prototype.getDelay = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.gw.DelayTimingInfo} returns this -*/ -proto.gw.DelayTimingInfo.prototype.setDelay = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.DelayTimingInfo} returns this - */ -proto.gw.DelayTimingInfo.prototype.clearDelay = function() { - return this.setDelay(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.DelayTimingInfo.prototype.hasDelay = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.GPSEpochTimingInfo.prototype.toObject = function(opt_includeInstance) { - return proto.gw.GPSEpochTimingInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.GPSEpochTimingInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GPSEpochTimingInfo.toObject = function(includeInstance, msg) { - var f, obj = { - timeSinceGpsEpoch: (f = msg.getTimeSinceGpsEpoch()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.GPSEpochTimingInfo} - */ -proto.gw.GPSEpochTimingInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.GPSEpochTimingInfo; - return proto.gw.GPSEpochTimingInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.GPSEpochTimingInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.GPSEpochTimingInfo} - */ -proto.gw.GPSEpochTimingInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setTimeSinceGpsEpoch(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.GPSEpochTimingInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.GPSEpochTimingInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.GPSEpochTimingInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GPSEpochTimingInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTimeSinceGpsEpoch(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional google.protobuf.Duration time_since_gps_epoch = 1; - * @return {?proto.google.protobuf.Duration} - */ -proto.gw.GPSEpochTimingInfo.prototype.getTimeSinceGpsEpoch = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.gw.GPSEpochTimingInfo} returns this -*/ -proto.gw.GPSEpochTimingInfo.prototype.setTimeSinceGpsEpoch = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.GPSEpochTimingInfo} returns this - */ -proto.gw.GPSEpochTimingInfo.prototype.clearTimeSinceGpsEpoch = function() { - return this.setTimeSinceGpsEpoch(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.GPSEpochTimingInfo.prototype.hasTimeSinceGpsEpoch = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.UplinkFrame.prototype.toObject = function(opt_includeInstance) { - return proto.gw.UplinkFrame.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.UplinkFrame} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkFrame.toObject = function(includeInstance, msg) { - var f, obj = { - phyPayload: msg.getPhyPayload_asB64(), - txInfoLegacy: (f = msg.getTxInfoLegacy()) && proto.gw.UplinkTxInfoLegacy.toObject(includeInstance, f), - rxInfoLegacy: (f = msg.getRxInfoLegacy()) && proto.gw.UplinkRxInfoLegacy.toObject(includeInstance, f), - txInfo: (f = msg.getTxInfo()) && proto.gw.UplinkTxInfo.toObject(includeInstance, f), - rxInfo: (f = msg.getRxInfo()) && proto.gw.UplinkRxInfo.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.UplinkFrame} - */ -proto.gw.UplinkFrame.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.UplinkFrame; - return proto.gw.UplinkFrame.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.UplinkFrame} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.UplinkFrame} - */ -proto.gw.UplinkFrame.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPhyPayload(value); - break; - case 2: - var value = new proto.gw.UplinkTxInfoLegacy; - reader.readMessage(value,proto.gw.UplinkTxInfoLegacy.deserializeBinaryFromReader); - msg.setTxInfoLegacy(value); - break; - case 3: - var value = new proto.gw.UplinkRxInfoLegacy; - reader.readMessage(value,proto.gw.UplinkRxInfoLegacy.deserializeBinaryFromReader); - msg.setRxInfoLegacy(value); - break; - case 4: - var value = new proto.gw.UplinkTxInfo; - reader.readMessage(value,proto.gw.UplinkTxInfo.deserializeBinaryFromReader); - msg.setTxInfo(value); - break; - case 5: - var value = new proto.gw.UplinkRxInfo; - reader.readMessage(value,proto.gw.UplinkRxInfo.deserializeBinaryFromReader); - msg.setRxInfo(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.UplinkFrame.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.UplinkFrame.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.UplinkFrame} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkFrame.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPhyPayload_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getTxInfoLegacy(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.gw.UplinkTxInfoLegacy.serializeBinaryToWriter - ); - } - f = message.getRxInfoLegacy(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.gw.UplinkRxInfoLegacy.serializeBinaryToWriter - ); - } - f = message.getTxInfo(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.gw.UplinkTxInfo.serializeBinaryToWriter - ); - } - f = message.getRxInfo(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.gw.UplinkRxInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes phy_payload = 1; - * @return {!(string|Uint8Array)} - */ -proto.gw.UplinkFrame.prototype.getPhyPayload = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes phy_payload = 1; - * This is a type-conversion wrapper around `getPhyPayload()` - * @return {string} - */ -proto.gw.UplinkFrame.prototype.getPhyPayload_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPhyPayload())); -}; - - -/** - * optional bytes phy_payload = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPhyPayload()` - * @return {!Uint8Array} - */ -proto.gw.UplinkFrame.prototype.getPhyPayload_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPhyPayload())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.UplinkFrame} returns this - */ -proto.gw.UplinkFrame.prototype.setPhyPayload = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional UplinkTxInfoLegacy tx_info_legacy = 2; - * @return {?proto.gw.UplinkTxInfoLegacy} - */ -proto.gw.UplinkFrame.prototype.getTxInfoLegacy = function() { - return /** @type{?proto.gw.UplinkTxInfoLegacy} */ ( - jspb.Message.getWrapperField(this, proto.gw.UplinkTxInfoLegacy, 2)); -}; - - -/** - * @param {?proto.gw.UplinkTxInfoLegacy|undefined} value - * @return {!proto.gw.UplinkFrame} returns this -*/ -proto.gw.UplinkFrame.prototype.setTxInfoLegacy = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkFrame} returns this - */ -proto.gw.UplinkFrame.prototype.clearTxInfoLegacy = function() { - return this.setTxInfoLegacy(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkFrame.prototype.hasTxInfoLegacy = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional UplinkRxInfoLegacy rx_info_legacy = 3; - * @return {?proto.gw.UplinkRxInfoLegacy} - */ -proto.gw.UplinkFrame.prototype.getRxInfoLegacy = function() { - return /** @type{?proto.gw.UplinkRxInfoLegacy} */ ( - jspb.Message.getWrapperField(this, proto.gw.UplinkRxInfoLegacy, 3)); -}; - - -/** - * @param {?proto.gw.UplinkRxInfoLegacy|undefined} value - * @return {!proto.gw.UplinkFrame} returns this -*/ -proto.gw.UplinkFrame.prototype.setRxInfoLegacy = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkFrame} returns this - */ -proto.gw.UplinkFrame.prototype.clearRxInfoLegacy = function() { - return this.setRxInfoLegacy(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkFrame.prototype.hasRxInfoLegacy = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional UplinkTxInfo tx_info = 4; - * @return {?proto.gw.UplinkTxInfo} - */ -proto.gw.UplinkFrame.prototype.getTxInfo = function() { - return /** @type{?proto.gw.UplinkTxInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.UplinkTxInfo, 4)); -}; - - -/** - * @param {?proto.gw.UplinkTxInfo|undefined} value - * @return {!proto.gw.UplinkFrame} returns this -*/ -proto.gw.UplinkFrame.prototype.setTxInfo = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkFrame} returns this - */ -proto.gw.UplinkFrame.prototype.clearTxInfo = function() { - return this.setTxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkFrame.prototype.hasTxInfo = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional UplinkRxInfo rx_info = 5; - * @return {?proto.gw.UplinkRxInfo} - */ -proto.gw.UplinkFrame.prototype.getRxInfo = function() { - return /** @type{?proto.gw.UplinkRxInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.UplinkRxInfo, 5)); -}; - - -/** - * @param {?proto.gw.UplinkRxInfo|undefined} value - * @return {!proto.gw.UplinkFrame} returns this -*/ -proto.gw.UplinkFrame.prototype.setRxInfo = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkFrame} returns this - */ -proto.gw.UplinkFrame.prototype.clearRxInfo = function() { - return this.setRxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkFrame.prototype.hasRxInfo = function() { - return jspb.Message.getField(this, 5) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.gw.UplinkFrameSet.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.UplinkFrameSet.prototype.toObject = function(opt_includeInstance) { - return proto.gw.UplinkFrameSet.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.UplinkFrameSet} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkFrameSet.toObject = function(includeInstance, msg) { - var f, obj = { - phyPayload: msg.getPhyPayload_asB64(), - txInfo: (f = msg.getTxInfo()) && proto.gw.UplinkTxInfo.toObject(includeInstance, f), - rxInfoList: jspb.Message.toObjectList(msg.getRxInfoList(), - proto.gw.UplinkRxInfo.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.UplinkFrameSet} - */ -proto.gw.UplinkFrameSet.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.UplinkFrameSet; - return proto.gw.UplinkFrameSet.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.UplinkFrameSet} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.UplinkFrameSet} - */ -proto.gw.UplinkFrameSet.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPhyPayload(value); - break; - case 2: - var value = new proto.gw.UplinkTxInfo; - reader.readMessage(value,proto.gw.UplinkTxInfo.deserializeBinaryFromReader); - msg.setTxInfo(value); - break; - case 3: - var value = new proto.gw.UplinkRxInfo; - reader.readMessage(value,proto.gw.UplinkRxInfo.deserializeBinaryFromReader); - msg.addRxInfo(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.UplinkFrameSet.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.UplinkFrameSet.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.UplinkFrameSet} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.UplinkFrameSet.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPhyPayload_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getTxInfo(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.gw.UplinkTxInfo.serializeBinaryToWriter - ); - } - f = message.getRxInfoList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.gw.UplinkRxInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes phy_payload = 1; - * @return {!(string|Uint8Array)} - */ -proto.gw.UplinkFrameSet.prototype.getPhyPayload = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes phy_payload = 1; - * This is a type-conversion wrapper around `getPhyPayload()` - * @return {string} - */ -proto.gw.UplinkFrameSet.prototype.getPhyPayload_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPhyPayload())); -}; - - -/** - * optional bytes phy_payload = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPhyPayload()` - * @return {!Uint8Array} - */ -proto.gw.UplinkFrameSet.prototype.getPhyPayload_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPhyPayload())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.UplinkFrameSet} returns this - */ -proto.gw.UplinkFrameSet.prototype.setPhyPayload = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional UplinkTxInfo tx_info = 2; - * @return {?proto.gw.UplinkTxInfo} - */ -proto.gw.UplinkFrameSet.prototype.getTxInfo = function() { - return /** @type{?proto.gw.UplinkTxInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.UplinkTxInfo, 2)); -}; - - -/** - * @param {?proto.gw.UplinkTxInfo|undefined} value - * @return {!proto.gw.UplinkFrameSet} returns this -*/ -proto.gw.UplinkFrameSet.prototype.setTxInfo = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.UplinkFrameSet} returns this - */ -proto.gw.UplinkFrameSet.prototype.clearTxInfo = function() { - return this.setTxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.UplinkFrameSet.prototype.hasTxInfo = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * repeated UplinkRxInfo rx_info = 3; - * @return {!Array} - */ -proto.gw.UplinkFrameSet.prototype.getRxInfoList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.gw.UplinkRxInfo, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.gw.UplinkFrameSet} returns this -*/ -proto.gw.UplinkFrameSet.prototype.setRxInfoList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.gw.UplinkRxInfo=} opt_value - * @param {number=} opt_index - * @return {!proto.gw.UplinkRxInfo} - */ -proto.gw.UplinkFrameSet.prototype.addRxInfo = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gw.UplinkRxInfo, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.gw.UplinkFrameSet} returns this - */ -proto.gw.UplinkFrameSet.prototype.clearRxInfoList = function() { - return this.setRxInfoList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.gw.DownlinkFrame.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.DownlinkFrame.prototype.toObject = function(opt_includeInstance) { - return proto.gw.DownlinkFrame.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.DownlinkFrame} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkFrame.toObject = function(includeInstance, msg) { - var f, obj = { - downlinkId: jspb.Message.getFieldWithDefault(msg, 3, 0), - downlinkIdLegacy: msg.getDownlinkIdLegacy_asB64(), - itemsList: jspb.Message.toObjectList(msg.getItemsList(), - proto.gw.DownlinkFrameItem.toObject, includeInstance), - gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(), - gatewayId: jspb.Message.getFieldWithDefault(msg, 7, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.DownlinkFrame} - */ -proto.gw.DownlinkFrame.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.DownlinkFrame; - return proto.gw.DownlinkFrame.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.DownlinkFrame} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.DownlinkFrame} - */ -proto.gw.DownlinkFrame.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDownlinkId(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setDownlinkIdLegacy(value); - break; - case 5: - var value = new proto.gw.DownlinkFrameItem; - reader.readMessage(value,proto.gw.DownlinkFrameItem.deserializeBinaryFromReader); - msg.addItems(value); - break; - case 6: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayIdLegacy(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.DownlinkFrame.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.DownlinkFrame.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.DownlinkFrame} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkFrame.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDownlinkId(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getDownlinkIdLegacy_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getItemsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.gw.DownlinkFrameItem.serializeBinaryToWriter - ); - } - f = message.getGatewayIdLegacy_asU8(); - if (f.length > 0) { - writer.writeBytes( - 6, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } -}; - - -/** - * optional uint32 downlink_id = 3; - * @return {number} - */ -proto.gw.DownlinkFrame.prototype.getDownlinkId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.DownlinkFrame} returns this - */ -proto.gw.DownlinkFrame.prototype.setDownlinkId = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bytes downlink_id_legacy = 4; - * @return {!(string|Uint8Array)} - */ -proto.gw.DownlinkFrame.prototype.getDownlinkIdLegacy = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes downlink_id_legacy = 4; - * This is a type-conversion wrapper around `getDownlinkIdLegacy()` - * @return {string} - */ -proto.gw.DownlinkFrame.prototype.getDownlinkIdLegacy_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getDownlinkIdLegacy())); -}; - - -/** - * optional bytes downlink_id_legacy = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getDownlinkIdLegacy()` - * @return {!Uint8Array} - */ -proto.gw.DownlinkFrame.prototype.getDownlinkIdLegacy_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getDownlinkIdLegacy())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.DownlinkFrame} returns this - */ -proto.gw.DownlinkFrame.prototype.setDownlinkIdLegacy = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * repeated DownlinkFrameItem items = 5; - * @return {!Array} - */ -proto.gw.DownlinkFrame.prototype.getItemsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.gw.DownlinkFrameItem, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.gw.DownlinkFrame} returns this -*/ -proto.gw.DownlinkFrame.prototype.setItemsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.gw.DownlinkFrameItem=} opt_value - * @param {number=} opt_index - * @return {!proto.gw.DownlinkFrameItem} - */ -proto.gw.DownlinkFrame.prototype.addItems = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.gw.DownlinkFrameItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.gw.DownlinkFrame} returns this - */ -proto.gw.DownlinkFrame.prototype.clearItemsList = function() { - return this.setItemsList([]); -}; - - -/** - * optional bytes gateway_id_legacy = 6; - * @return {!(string|Uint8Array)} - */ -proto.gw.DownlinkFrame.prototype.getGatewayIdLegacy = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * optional bytes gateway_id_legacy = 6; - * This is a type-conversion wrapper around `getGatewayIdLegacy()` - * @return {string} - */ -proto.gw.DownlinkFrame.prototype.getGatewayIdLegacy_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayIdLegacy())); -}; - - -/** - * optional bytes gateway_id_legacy = 6; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayIdLegacy()` - * @return {!Uint8Array} - */ -proto.gw.DownlinkFrame.prototype.getGatewayIdLegacy_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayIdLegacy())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.DownlinkFrame} returns this - */ -proto.gw.DownlinkFrame.prototype.setGatewayIdLegacy = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); -}; - - -/** - * optional string gateway_id = 7; - * @return {string} - */ -proto.gw.DownlinkFrame.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.DownlinkFrame} returns this - */ -proto.gw.DownlinkFrame.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.DownlinkFrameItem.prototype.toObject = function(opt_includeInstance) { - return proto.gw.DownlinkFrameItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.DownlinkFrameItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkFrameItem.toObject = function(includeInstance, msg) { - var f, obj = { - phyPayload: msg.getPhyPayload_asB64(), - txInfoLegacy: (f = msg.getTxInfoLegacy()) && proto.gw.DownlinkTxInfoLegacy.toObject(includeInstance, f), - txInfo: (f = msg.getTxInfo()) && proto.gw.DownlinkTxInfo.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.DownlinkFrameItem} - */ -proto.gw.DownlinkFrameItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.DownlinkFrameItem; - return proto.gw.DownlinkFrameItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.DownlinkFrameItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.DownlinkFrameItem} - */ -proto.gw.DownlinkFrameItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPhyPayload(value); - break; - case 2: - var value = new proto.gw.DownlinkTxInfoLegacy; - reader.readMessage(value,proto.gw.DownlinkTxInfoLegacy.deserializeBinaryFromReader); - msg.setTxInfoLegacy(value); - break; - case 3: - var value = new proto.gw.DownlinkTxInfo; - reader.readMessage(value,proto.gw.DownlinkTxInfo.deserializeBinaryFromReader); - msg.setTxInfo(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.DownlinkFrameItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.DownlinkFrameItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.DownlinkFrameItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkFrameItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPhyPayload_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getTxInfoLegacy(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.gw.DownlinkTxInfoLegacy.serializeBinaryToWriter - ); - } - f = message.getTxInfo(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.gw.DownlinkTxInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes phy_payload = 1; - * @return {!(string|Uint8Array)} - */ -proto.gw.DownlinkFrameItem.prototype.getPhyPayload = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes phy_payload = 1; - * This is a type-conversion wrapper around `getPhyPayload()` - * @return {string} - */ -proto.gw.DownlinkFrameItem.prototype.getPhyPayload_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPhyPayload())); -}; - - -/** - * optional bytes phy_payload = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPhyPayload()` - * @return {!Uint8Array} - */ -proto.gw.DownlinkFrameItem.prototype.getPhyPayload_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPhyPayload())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.DownlinkFrameItem} returns this - */ -proto.gw.DownlinkFrameItem.prototype.setPhyPayload = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional DownlinkTxInfoLegacy tx_info_legacy = 2; - * @return {?proto.gw.DownlinkTxInfoLegacy} - */ -proto.gw.DownlinkFrameItem.prototype.getTxInfoLegacy = function() { - return /** @type{?proto.gw.DownlinkTxInfoLegacy} */ ( - jspb.Message.getWrapperField(this, proto.gw.DownlinkTxInfoLegacy, 2)); -}; - - -/** - * @param {?proto.gw.DownlinkTxInfoLegacy|undefined} value - * @return {!proto.gw.DownlinkFrameItem} returns this -*/ -proto.gw.DownlinkFrameItem.prototype.setTxInfoLegacy = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.DownlinkFrameItem} returns this - */ -proto.gw.DownlinkFrameItem.prototype.clearTxInfoLegacy = function() { - return this.setTxInfoLegacy(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.DownlinkFrameItem.prototype.hasTxInfoLegacy = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional DownlinkTxInfo tx_info = 3; - * @return {?proto.gw.DownlinkTxInfo} - */ -proto.gw.DownlinkFrameItem.prototype.getTxInfo = function() { - return /** @type{?proto.gw.DownlinkTxInfo} */ ( - jspb.Message.getWrapperField(this, proto.gw.DownlinkTxInfo, 3)); -}; - - -/** - * @param {?proto.gw.DownlinkTxInfo|undefined} value - * @return {!proto.gw.DownlinkFrameItem} returns this -*/ -proto.gw.DownlinkFrameItem.prototype.setTxInfo = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.DownlinkFrameItem} returns this - */ -proto.gw.DownlinkFrameItem.prototype.clearTxInfo = function() { - return this.setTxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.DownlinkFrameItem.prototype.hasTxInfo = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.gw.DownlinkTxAck.repeatedFields_ = [5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.DownlinkTxAck.prototype.toObject = function(opt_includeInstance) { - return proto.gw.DownlinkTxAck.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.DownlinkTxAck} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkTxAck.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(), - gatewayId: jspb.Message.getFieldWithDefault(msg, 6, ""), - downlinkId: jspb.Message.getFieldWithDefault(msg, 2, 0), - downlinkIdLegacy: msg.getDownlinkIdLegacy_asB64(), - itemsList: jspb.Message.toObjectList(msg.getItemsList(), - proto.gw.DownlinkTxAckItem.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.DownlinkTxAck} - */ -proto.gw.DownlinkTxAck.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.DownlinkTxAck; - return proto.gw.DownlinkTxAck.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.DownlinkTxAck} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.DownlinkTxAck} - */ -proto.gw.DownlinkTxAck.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayIdLegacy(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDownlinkId(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setDownlinkIdLegacy(value); - break; - case 5: - var value = new proto.gw.DownlinkTxAckItem; - reader.readMessage(value,proto.gw.DownlinkTxAckItem.deserializeBinaryFromReader); - msg.addItems(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.DownlinkTxAck.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.DownlinkTxAck.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.DownlinkTxAck} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkTxAck.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayIdLegacy_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getDownlinkId(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getDownlinkIdLegacy_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getItemsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.gw.DownlinkTxAckItem.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * @return {!(string|Uint8Array)} - */ -proto.gw.DownlinkTxAck.prototype.getGatewayIdLegacy = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * This is a type-conversion wrapper around `getGatewayIdLegacy()` - * @return {string} - */ -proto.gw.DownlinkTxAck.prototype.getGatewayIdLegacy_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayIdLegacy())); -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayIdLegacy()` - * @return {!Uint8Array} - */ -proto.gw.DownlinkTxAck.prototype.getGatewayIdLegacy_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayIdLegacy())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.DownlinkTxAck} returns this - */ -proto.gw.DownlinkTxAck.prototype.setGatewayIdLegacy = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string gateway_id = 6; - * @return {string} - */ -proto.gw.DownlinkTxAck.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.DownlinkTxAck} returns this - */ -proto.gw.DownlinkTxAck.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional uint32 downlink_id = 2; - * @return {number} - */ -proto.gw.DownlinkTxAck.prototype.getDownlinkId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.DownlinkTxAck} returns this - */ -proto.gw.DownlinkTxAck.prototype.setDownlinkId = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional bytes downlink_id_legacy = 4; - * @return {!(string|Uint8Array)} - */ -proto.gw.DownlinkTxAck.prototype.getDownlinkIdLegacy = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes downlink_id_legacy = 4; - * This is a type-conversion wrapper around `getDownlinkIdLegacy()` - * @return {string} - */ -proto.gw.DownlinkTxAck.prototype.getDownlinkIdLegacy_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getDownlinkIdLegacy())); -}; - - -/** - * optional bytes downlink_id_legacy = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getDownlinkIdLegacy()` - * @return {!Uint8Array} - */ -proto.gw.DownlinkTxAck.prototype.getDownlinkIdLegacy_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getDownlinkIdLegacy())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.DownlinkTxAck} returns this - */ -proto.gw.DownlinkTxAck.prototype.setDownlinkIdLegacy = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * repeated DownlinkTxAckItem items = 5; - * @return {!Array} - */ -proto.gw.DownlinkTxAck.prototype.getItemsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.gw.DownlinkTxAckItem, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.gw.DownlinkTxAck} returns this -*/ -proto.gw.DownlinkTxAck.prototype.setItemsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.gw.DownlinkTxAckItem=} opt_value - * @param {number=} opt_index - * @return {!proto.gw.DownlinkTxAckItem} - */ -proto.gw.DownlinkTxAck.prototype.addItems = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.gw.DownlinkTxAckItem, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.gw.DownlinkTxAck} returns this - */ -proto.gw.DownlinkTxAck.prototype.clearItemsList = function() { - return this.setItemsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.DownlinkTxAckItem.prototype.toObject = function(opt_includeInstance) { - return proto.gw.DownlinkTxAckItem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.DownlinkTxAckItem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkTxAckItem.toObject = function(includeInstance, msg) { - var f, obj = { - status: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.DownlinkTxAckItem} - */ -proto.gw.DownlinkTxAckItem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.DownlinkTxAckItem; - return proto.gw.DownlinkTxAckItem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.DownlinkTxAckItem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.DownlinkTxAckItem} - */ -proto.gw.DownlinkTxAckItem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.gw.TxAckStatus} */ (reader.readEnum()); - msg.setStatus(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.DownlinkTxAckItem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.DownlinkTxAckItem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.DownlinkTxAckItem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.DownlinkTxAckItem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStatus(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } -}; - - -/** - * optional TxAckStatus status = 1; - * @return {!proto.gw.TxAckStatus} - */ -proto.gw.DownlinkTxAckItem.prototype.getStatus = function() { - return /** @type {!proto.gw.TxAckStatus} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.gw.TxAckStatus} value - * @return {!proto.gw.DownlinkTxAckItem} returns this - */ -proto.gw.DownlinkTxAckItem.prototype.setStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.gw.GatewayConfiguration.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.GatewayConfiguration.prototype.toObject = function(opt_includeInstance) { - return proto.gw.GatewayConfiguration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.GatewayConfiguration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GatewayConfiguration.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(), - gatewayId: jspb.Message.getFieldWithDefault(msg, 5, ""), - version: jspb.Message.getFieldWithDefault(msg, 2, ""), - channelsList: jspb.Message.toObjectList(msg.getChannelsList(), - proto.gw.ChannelConfiguration.toObject, includeInstance), - statsInterval: (f = msg.getStatsInterval()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.GatewayConfiguration} - */ -proto.gw.GatewayConfiguration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.GatewayConfiguration; - return proto.gw.GatewayConfiguration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.GatewayConfiguration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.GatewayConfiguration} - */ -proto.gw.GatewayConfiguration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayIdLegacy(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; - case 3: - var value = new proto.gw.ChannelConfiguration; - reader.readMessage(value,proto.gw.ChannelConfiguration.deserializeBinaryFromReader); - msg.addChannels(value); - break; - case 4: - var value = new google_protobuf_duration_pb.Duration; - reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); - msg.setStatsInterval(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.GatewayConfiguration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.GatewayConfiguration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.GatewayConfiguration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GatewayConfiguration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayIdLegacy_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getChannelsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.gw.ChannelConfiguration.serializeBinaryToWriter - ); - } - f = message.getStatsInterval(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_duration_pb.Duration.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * @return {!(string|Uint8Array)} - */ -proto.gw.GatewayConfiguration.prototype.getGatewayIdLegacy = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * This is a type-conversion wrapper around `getGatewayIdLegacy()` - * @return {string} - */ -proto.gw.GatewayConfiguration.prototype.getGatewayIdLegacy_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayIdLegacy())); -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayIdLegacy()` - * @return {!Uint8Array} - */ -proto.gw.GatewayConfiguration.prototype.getGatewayIdLegacy_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayIdLegacy())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.GatewayConfiguration} returns this - */ -proto.gw.GatewayConfiguration.prototype.setGatewayIdLegacy = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string gateway_id = 5; - * @return {string} - */ -proto.gw.GatewayConfiguration.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.GatewayConfiguration} returns this - */ -proto.gw.GatewayConfiguration.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string version = 2; - * @return {string} - */ -proto.gw.GatewayConfiguration.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.GatewayConfiguration} returns this - */ -proto.gw.GatewayConfiguration.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated ChannelConfiguration channels = 3; - * @return {!Array} - */ -proto.gw.GatewayConfiguration.prototype.getChannelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.gw.ChannelConfiguration, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.gw.GatewayConfiguration} returns this -*/ -proto.gw.GatewayConfiguration.prototype.setChannelsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.gw.ChannelConfiguration=} opt_value - * @param {number=} opt_index - * @return {!proto.gw.ChannelConfiguration} - */ -proto.gw.GatewayConfiguration.prototype.addChannels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gw.ChannelConfiguration, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.gw.GatewayConfiguration} returns this - */ -proto.gw.GatewayConfiguration.prototype.clearChannelsList = function() { - return this.setChannelsList([]); -}; - - -/** - * optional google.protobuf.Duration stats_interval = 4; - * @return {?proto.google.protobuf.Duration} - */ -proto.gw.GatewayConfiguration.prototype.getStatsInterval = function() { - return /** @type{?proto.google.protobuf.Duration} */ ( - jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.gw.GatewayConfiguration} returns this -*/ -proto.gw.GatewayConfiguration.prototype.setStatsInterval = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.GatewayConfiguration} returns this - */ -proto.gw.GatewayConfiguration.prototype.clearStatsInterval = function() { - return this.setStatsInterval(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.GatewayConfiguration.prototype.hasStatsInterval = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.gw.ChannelConfiguration.oneofGroups_ = [[3,4]]; - -/** - * @enum {number} - */ -proto.gw.ChannelConfiguration.ModulationConfigCase = { - MODULATION_CONFIG_NOT_SET: 0, - LORA_MODULATION_CONFIG: 3, - FSK_MODULATION_CONFIG: 4 -}; - -/** - * @return {proto.gw.ChannelConfiguration.ModulationConfigCase} - */ -proto.gw.ChannelConfiguration.prototype.getModulationConfigCase = function() { - return /** @type {proto.gw.ChannelConfiguration.ModulationConfigCase} */(jspb.Message.computeOneofCase(this, proto.gw.ChannelConfiguration.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.ChannelConfiguration.prototype.toObject = function(opt_includeInstance) { - return proto.gw.ChannelConfiguration.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.ChannelConfiguration} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.ChannelConfiguration.toObject = function(includeInstance, msg) { - var f, obj = { - frequency: jspb.Message.getFieldWithDefault(msg, 1, 0), - modulationLegacy: jspb.Message.getFieldWithDefault(msg, 2, 0), - loraModulationConfig: (f = msg.getLoraModulationConfig()) && proto.gw.LoraModulationConfig.toObject(includeInstance, f), - fskModulationConfig: (f = msg.getFskModulationConfig()) && proto.gw.FskModulationConfig.toObject(includeInstance, f), - board: jspb.Message.getFieldWithDefault(msg, 5, 0), - demodulator: jspb.Message.getFieldWithDefault(msg, 6, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.ChannelConfiguration} - */ -proto.gw.ChannelConfiguration.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.ChannelConfiguration; - return proto.gw.ChannelConfiguration.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.ChannelConfiguration} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.ChannelConfiguration} - */ -proto.gw.ChannelConfiguration.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFrequency(value); - break; - case 2: - var value = /** @type {!proto.common.Modulation} */ (reader.readEnum()); - msg.setModulationLegacy(value); - break; - case 3: - var value = new proto.gw.LoraModulationConfig; - reader.readMessage(value,proto.gw.LoraModulationConfig.deserializeBinaryFromReader); - msg.setLoraModulationConfig(value); - break; - case 4: - var value = new proto.gw.FskModulationConfig; - reader.readMessage(value,proto.gw.FskModulationConfig.deserializeBinaryFromReader); - msg.setFskModulationConfig(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBoard(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDemodulator(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.ChannelConfiguration.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.ChannelConfiguration.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.ChannelConfiguration} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.ChannelConfiguration.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFrequency(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getModulationLegacy(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getLoraModulationConfig(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.gw.LoraModulationConfig.serializeBinaryToWriter - ); - } - f = message.getFskModulationConfig(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.gw.FskModulationConfig.serializeBinaryToWriter - ); - } - f = message.getBoard(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getDemodulator(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } -}; - - -/** - * optional uint32 frequency = 1; - * @return {number} - */ -proto.gw.ChannelConfiguration.prototype.getFrequency = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.ChannelConfiguration} returns this - */ -proto.gw.ChannelConfiguration.prototype.setFrequency = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional common.Modulation modulation_legacy = 2; - * @return {!proto.common.Modulation} - */ -proto.gw.ChannelConfiguration.prototype.getModulationLegacy = function() { - return /** @type {!proto.common.Modulation} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.common.Modulation} value - * @return {!proto.gw.ChannelConfiguration} returns this - */ -proto.gw.ChannelConfiguration.prototype.setModulationLegacy = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional LoraModulationConfig lora_modulation_config = 3; - * @return {?proto.gw.LoraModulationConfig} - */ -proto.gw.ChannelConfiguration.prototype.getLoraModulationConfig = function() { - return /** @type{?proto.gw.LoraModulationConfig} */ ( - jspb.Message.getWrapperField(this, proto.gw.LoraModulationConfig, 3)); -}; - - -/** - * @param {?proto.gw.LoraModulationConfig|undefined} value - * @return {!proto.gw.ChannelConfiguration} returns this -*/ -proto.gw.ChannelConfiguration.prototype.setLoraModulationConfig = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.gw.ChannelConfiguration.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.ChannelConfiguration} returns this - */ -proto.gw.ChannelConfiguration.prototype.clearLoraModulationConfig = function() { - return this.setLoraModulationConfig(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.ChannelConfiguration.prototype.hasLoraModulationConfig = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional FskModulationConfig fsk_modulation_config = 4; - * @return {?proto.gw.FskModulationConfig} - */ -proto.gw.ChannelConfiguration.prototype.getFskModulationConfig = function() { - return /** @type{?proto.gw.FskModulationConfig} */ ( - jspb.Message.getWrapperField(this, proto.gw.FskModulationConfig, 4)); -}; - - -/** - * @param {?proto.gw.FskModulationConfig|undefined} value - * @return {!proto.gw.ChannelConfiguration} returns this -*/ -proto.gw.ChannelConfiguration.prototype.setFskModulationConfig = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.gw.ChannelConfiguration.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.gw.ChannelConfiguration} returns this - */ -proto.gw.ChannelConfiguration.prototype.clearFskModulationConfig = function() { - return this.setFskModulationConfig(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.gw.ChannelConfiguration.prototype.hasFskModulationConfig = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional uint32 board = 5; - * @return {number} - */ -proto.gw.ChannelConfiguration.prototype.getBoard = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.ChannelConfiguration} returns this - */ -proto.gw.ChannelConfiguration.prototype.setBoard = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional uint32 demodulator = 6; - * @return {number} - */ -proto.gw.ChannelConfiguration.prototype.getDemodulator = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.ChannelConfiguration} returns this - */ -proto.gw.ChannelConfiguration.prototype.setDemodulator = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.gw.LoraModulationConfig.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.LoraModulationConfig.prototype.toObject = function(opt_includeInstance) { - return proto.gw.LoraModulationConfig.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.LoraModulationConfig} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.LoraModulationConfig.toObject = function(includeInstance, msg) { - var f, obj = { - bandwidthLegacy: jspb.Message.getFieldWithDefault(msg, 1, 0), - bandwidth: jspb.Message.getFieldWithDefault(msg, 3, 0), - spreadingFactorsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.LoraModulationConfig} - */ -proto.gw.LoraModulationConfig.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.LoraModulationConfig; - return proto.gw.LoraModulationConfig.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.LoraModulationConfig} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.LoraModulationConfig} - */ -proto.gw.LoraModulationConfig.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBandwidthLegacy(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBandwidth(value); - break; - case 2: - var value = /** @type {!Array} */ (reader.readPackedUint32()); - msg.setSpreadingFactorsList(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.LoraModulationConfig.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.LoraModulationConfig.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.LoraModulationConfig} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.LoraModulationConfig.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBandwidthLegacy(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getBandwidth(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getSpreadingFactorsList(); - if (f.length > 0) { - writer.writePackedUint32( - 2, - f - ); - } -}; - - -/** - * optional uint32 bandwidth_legacy = 1; - * @return {number} - */ -proto.gw.LoraModulationConfig.prototype.getBandwidthLegacy = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.LoraModulationConfig} returns this - */ -proto.gw.LoraModulationConfig.prototype.setBandwidthLegacy = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 bandwidth = 3; - * @return {number} - */ -proto.gw.LoraModulationConfig.prototype.getBandwidth = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.LoraModulationConfig} returns this - */ -proto.gw.LoraModulationConfig.prototype.setBandwidth = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * repeated uint32 spreading_factors = 2; - * @return {!Array} - */ -proto.gw.LoraModulationConfig.prototype.getSpreadingFactorsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.gw.LoraModulationConfig} returns this - */ -proto.gw.LoraModulationConfig.prototype.setSpreadingFactorsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.gw.LoraModulationConfig} returns this - */ -proto.gw.LoraModulationConfig.prototype.addSpreadingFactors = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.gw.LoraModulationConfig} returns this - */ -proto.gw.LoraModulationConfig.prototype.clearSpreadingFactorsList = function() { - return this.setSpreadingFactorsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.FskModulationConfig.prototype.toObject = function(opt_includeInstance) { - return proto.gw.FskModulationConfig.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.FskModulationConfig} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.FskModulationConfig.toObject = function(includeInstance, msg) { - var f, obj = { - bandwidthLegacy: jspb.Message.getFieldWithDefault(msg, 1, 0), - bandwidth: jspb.Message.getFieldWithDefault(msg, 3, 0), - bitrate: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.FskModulationConfig} - */ -proto.gw.FskModulationConfig.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.FskModulationConfig; - return proto.gw.FskModulationConfig.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.FskModulationConfig} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.FskModulationConfig} - */ -proto.gw.FskModulationConfig.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBandwidthLegacy(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBandwidth(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBitrate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.FskModulationConfig.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.FskModulationConfig.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.FskModulationConfig} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.FskModulationConfig.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBandwidthLegacy(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getBandwidth(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getBitrate(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } -}; - - -/** - * optional uint32 bandwidth_legacy = 1; - * @return {number} - */ -proto.gw.FskModulationConfig.prototype.getBandwidthLegacy = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.FskModulationConfig} returns this - */ -proto.gw.FskModulationConfig.prototype.setBandwidthLegacy = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 bandwidth = 3; - * @return {number} - */ -proto.gw.FskModulationConfig.prototype.getBandwidth = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.FskModulationConfig} returns this - */ -proto.gw.FskModulationConfig.prototype.setBandwidth = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional uint32 bitrate = 2; - * @return {number} - */ -proto.gw.FskModulationConfig.prototype.getBitrate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.FskModulationConfig} returns this - */ -proto.gw.FskModulationConfig.prototype.setBitrate = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.GatewayCommandExecRequest.prototype.toObject = function(opt_includeInstance) { - return proto.gw.GatewayCommandExecRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.GatewayCommandExecRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GatewayCommandExecRequest.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(), - gatewayId: jspb.Message.getFieldWithDefault(msg, 6, ""), - command: jspb.Message.getFieldWithDefault(msg, 2, ""), - execId: jspb.Message.getFieldWithDefault(msg, 7, 0), - stdin: msg.getStdin_asB64(), - environmentMap: (f = msg.getEnvironmentMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.GatewayCommandExecRequest} - */ -proto.gw.GatewayCommandExecRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.GatewayCommandExecRequest; - return proto.gw.GatewayCommandExecRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.GatewayCommandExecRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.GatewayCommandExecRequest} - */ -proto.gw.GatewayCommandExecRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayIdLegacy(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCommand(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setExecId(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setStdin(value); - break; - case 5: - var value = msg.getEnvironmentMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.GatewayCommandExecRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.GatewayCommandExecRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.GatewayCommandExecRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GatewayCommandExecRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayIdLegacy_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getCommand(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getExecId(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getStdin_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getEnvironmentMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * @return {!(string|Uint8Array)} - */ -proto.gw.GatewayCommandExecRequest.prototype.getGatewayIdLegacy = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * This is a type-conversion wrapper around `getGatewayIdLegacy()` - * @return {string} - */ -proto.gw.GatewayCommandExecRequest.prototype.getGatewayIdLegacy_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayIdLegacy())); -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayIdLegacy()` - * @return {!Uint8Array} - */ -proto.gw.GatewayCommandExecRequest.prototype.getGatewayIdLegacy_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayIdLegacy())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.GatewayCommandExecRequest} returns this - */ -proto.gw.GatewayCommandExecRequest.prototype.setGatewayIdLegacy = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string gateway_id = 6; - * @return {string} - */ -proto.gw.GatewayCommandExecRequest.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.GatewayCommandExecRequest} returns this - */ -proto.gw.GatewayCommandExecRequest.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string command = 2; - * @return {string} - */ -proto.gw.GatewayCommandExecRequest.prototype.getCommand = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.GatewayCommandExecRequest} returns this - */ -proto.gw.GatewayCommandExecRequest.prototype.setCommand = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint32 exec_id = 7; - * @return {number} - */ -proto.gw.GatewayCommandExecRequest.prototype.getExecId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.GatewayCommandExecRequest} returns this - */ -proto.gw.GatewayCommandExecRequest.prototype.setExecId = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional bytes stdin = 4; - * @return {!(string|Uint8Array)} - */ -proto.gw.GatewayCommandExecRequest.prototype.getStdin = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes stdin = 4; - * This is a type-conversion wrapper around `getStdin()` - * @return {string} - */ -proto.gw.GatewayCommandExecRequest.prototype.getStdin_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getStdin())); -}; - - -/** - * optional bytes stdin = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getStdin()` - * @return {!Uint8Array} - */ -proto.gw.GatewayCommandExecRequest.prototype.getStdin_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getStdin())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.GatewayCommandExecRequest} returns this - */ -proto.gw.GatewayCommandExecRequest.prototype.setStdin = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * map environment = 5; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.gw.GatewayCommandExecRequest.prototype.getEnvironmentMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 5, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.gw.GatewayCommandExecRequest} returns this - */ -proto.gw.GatewayCommandExecRequest.prototype.clearEnvironmentMap = function() { - this.getEnvironmentMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.GatewayCommandExecResponse.prototype.toObject = function(opt_includeInstance) { - return proto.gw.GatewayCommandExecResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.GatewayCommandExecResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GatewayCommandExecResponse.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(), - gatewayId: jspb.Message.getFieldWithDefault(msg, 6, ""), - execId: jspb.Message.getFieldWithDefault(msg, 7, 0), - stdout: msg.getStdout_asB64(), - stderr: msg.getStderr_asB64(), - error: jspb.Message.getFieldWithDefault(msg, 5, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.GatewayCommandExecResponse} - */ -proto.gw.GatewayCommandExecResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.GatewayCommandExecResponse; - return proto.gw.GatewayCommandExecResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.GatewayCommandExecResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.GatewayCommandExecResponse} - */ -proto.gw.GatewayCommandExecResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayIdLegacy(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setExecId(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setStdout(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setStderr(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setError(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.GatewayCommandExecResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.GatewayCommandExecResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.GatewayCommandExecResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.GatewayCommandExecResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayIdLegacy_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getExecId(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getStdout_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getStderr_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getError(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * @return {!(string|Uint8Array)} - */ -proto.gw.GatewayCommandExecResponse.prototype.getGatewayIdLegacy = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * This is a type-conversion wrapper around `getGatewayIdLegacy()` - * @return {string} - */ -proto.gw.GatewayCommandExecResponse.prototype.getGatewayIdLegacy_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayIdLegacy())); -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayIdLegacy()` - * @return {!Uint8Array} - */ -proto.gw.GatewayCommandExecResponse.prototype.getGatewayIdLegacy_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayIdLegacy())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.GatewayCommandExecResponse} returns this - */ -proto.gw.GatewayCommandExecResponse.prototype.setGatewayIdLegacy = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string gateway_id = 6; - * @return {string} - */ -proto.gw.GatewayCommandExecResponse.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.GatewayCommandExecResponse} returns this - */ -proto.gw.GatewayCommandExecResponse.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional uint32 exec_id = 7; - * @return {number} - */ -proto.gw.GatewayCommandExecResponse.prototype.getExecId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.gw.GatewayCommandExecResponse} returns this - */ -proto.gw.GatewayCommandExecResponse.prototype.setExecId = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional bytes stdout = 3; - * @return {!(string|Uint8Array)} - */ -proto.gw.GatewayCommandExecResponse.prototype.getStdout = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes stdout = 3; - * This is a type-conversion wrapper around `getStdout()` - * @return {string} - */ -proto.gw.GatewayCommandExecResponse.prototype.getStdout_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getStdout())); -}; - - -/** - * optional bytes stdout = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getStdout()` - * @return {!Uint8Array} - */ -proto.gw.GatewayCommandExecResponse.prototype.getStdout_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getStdout())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.GatewayCommandExecResponse} returns this - */ -proto.gw.GatewayCommandExecResponse.prototype.setStdout = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional bytes stderr = 4; - * @return {!(string|Uint8Array)} - */ -proto.gw.GatewayCommandExecResponse.prototype.getStderr = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes stderr = 4; - * This is a type-conversion wrapper around `getStderr()` - * @return {string} - */ -proto.gw.GatewayCommandExecResponse.prototype.getStderr_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getStderr())); -}; - - -/** - * optional bytes stderr = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getStderr()` - * @return {!Uint8Array} - */ -proto.gw.GatewayCommandExecResponse.prototype.getStderr_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getStderr())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.GatewayCommandExecResponse} returns this - */ -proto.gw.GatewayCommandExecResponse.prototype.setStderr = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * optional string error = 5; - * @return {string} - */ -proto.gw.GatewayCommandExecResponse.prototype.getError = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.GatewayCommandExecResponse} returns this - */ -proto.gw.GatewayCommandExecResponse.prototype.setError = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.RawPacketForwarderEvent.prototype.toObject = function(opt_includeInstance) { - return proto.gw.RawPacketForwarderEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.RawPacketForwarderEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.RawPacketForwarderEvent.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(), - gatewayId: jspb.Message.getFieldWithDefault(msg, 4, ""), - payload: msg.getPayload_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.RawPacketForwarderEvent} - */ -proto.gw.RawPacketForwarderEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.RawPacketForwarderEvent; - return proto.gw.RawPacketForwarderEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.RawPacketForwarderEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.RawPacketForwarderEvent} - */ -proto.gw.RawPacketForwarderEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayIdLegacy(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.RawPacketForwarderEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.RawPacketForwarderEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.RawPacketForwarderEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.RawPacketForwarderEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayIdLegacy_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getPayload_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * @return {!(string|Uint8Array)} - */ -proto.gw.RawPacketForwarderEvent.prototype.getGatewayIdLegacy = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * This is a type-conversion wrapper around `getGatewayIdLegacy()` - * @return {string} - */ -proto.gw.RawPacketForwarderEvent.prototype.getGatewayIdLegacy_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayIdLegacy())); -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayIdLegacy()` - * @return {!Uint8Array} - */ -proto.gw.RawPacketForwarderEvent.prototype.getGatewayIdLegacy_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayIdLegacy())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.RawPacketForwarderEvent} returns this - */ -proto.gw.RawPacketForwarderEvent.prototype.setGatewayIdLegacy = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string gateway_id = 4; - * @return {string} - */ -proto.gw.RawPacketForwarderEvent.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.RawPacketForwarderEvent} returns this - */ -proto.gw.RawPacketForwarderEvent.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bytes payload = 3; - * @return {!(string|Uint8Array)} - */ -proto.gw.RawPacketForwarderEvent.prototype.getPayload = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes payload = 3; - * This is a type-conversion wrapper around `getPayload()` - * @return {string} - */ -proto.gw.RawPacketForwarderEvent.prototype.getPayload_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPayload())); -}; - - -/** - * optional bytes payload = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPayload()` - * @return {!Uint8Array} - */ -proto.gw.RawPacketForwarderEvent.prototype.getPayload_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPayload())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.RawPacketForwarderEvent} returns this - */ -proto.gw.RawPacketForwarderEvent.prototype.setPayload = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.RawPacketForwarderCommand.prototype.toObject = function(opt_includeInstance) { - return proto.gw.RawPacketForwarderCommand.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.RawPacketForwarderCommand} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.RawPacketForwarderCommand.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(), - gatewayId: jspb.Message.getFieldWithDefault(msg, 4, ""), - payload: msg.getPayload_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.RawPacketForwarderCommand} - */ -proto.gw.RawPacketForwarderCommand.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.RawPacketForwarderCommand; - return proto.gw.RawPacketForwarderCommand.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.RawPacketForwarderCommand} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.RawPacketForwarderCommand} - */ -proto.gw.RawPacketForwarderCommand.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayIdLegacy(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.RawPacketForwarderCommand.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.RawPacketForwarderCommand.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.RawPacketForwarderCommand} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.RawPacketForwarderCommand.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayIdLegacy_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getPayload_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * @return {!(string|Uint8Array)} - */ -proto.gw.RawPacketForwarderCommand.prototype.getGatewayIdLegacy = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * This is a type-conversion wrapper around `getGatewayIdLegacy()` - * @return {string} - */ -proto.gw.RawPacketForwarderCommand.prototype.getGatewayIdLegacy_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayIdLegacy())); -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayIdLegacy()` - * @return {!Uint8Array} - */ -proto.gw.RawPacketForwarderCommand.prototype.getGatewayIdLegacy_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayIdLegacy())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.RawPacketForwarderCommand} returns this - */ -proto.gw.RawPacketForwarderCommand.prototype.setGatewayIdLegacy = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string gateway_id = 4; - * @return {string} - */ -proto.gw.RawPacketForwarderCommand.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.RawPacketForwarderCommand} returns this - */ -proto.gw.RawPacketForwarderCommand.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bytes payload = 3; - * @return {!(string|Uint8Array)} - */ -proto.gw.RawPacketForwarderCommand.prototype.getPayload = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes payload = 3; - * This is a type-conversion wrapper around `getPayload()` - * @return {string} - */ -proto.gw.RawPacketForwarderCommand.prototype.getPayload_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPayload())); -}; - - -/** - * optional bytes payload = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPayload()` - * @return {!Uint8Array} - */ -proto.gw.RawPacketForwarderCommand.prototype.getPayload_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPayload())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.RawPacketForwarderCommand} returns this - */ -proto.gw.RawPacketForwarderCommand.prototype.setPayload = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.gw.ConnState.prototype.toObject = function(opt_includeInstance) { - return proto.gw.ConnState.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.gw.ConnState} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.ConnState.toObject = function(includeInstance, msg) { - var f, obj = { - gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(), - gatewayId: jspb.Message.getFieldWithDefault(msg, 3, ""), - state: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gw.ConnState} - */ -proto.gw.ConnState.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gw.ConnState; - return proto.gw.ConnState.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.gw.ConnState} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gw.ConnState} - */ -proto.gw.ConnState.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setGatewayIdLegacy(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 2: - var value = /** @type {!proto.gw.ConnState.State} */ (reader.readEnum()); - msg.setState(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.gw.ConnState.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.gw.ConnState.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.gw.ConnState} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.gw.ConnState.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGatewayIdLegacy_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.gw.ConnState.State = { - OFFLINE: 0, - ONLINE: 1 -}; - -/** - * optional bytes gateway_id_legacy = 1; - * @return {!(string|Uint8Array)} - */ -proto.gw.ConnState.prototype.getGatewayIdLegacy = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * This is a type-conversion wrapper around `getGatewayIdLegacy()` - * @return {string} - */ -proto.gw.ConnState.prototype.getGatewayIdLegacy_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getGatewayIdLegacy())); -}; - - -/** - * optional bytes gateway_id_legacy = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getGatewayIdLegacy()` - * @return {!Uint8Array} - */ -proto.gw.ConnState.prototype.getGatewayIdLegacy_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getGatewayIdLegacy())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.gw.ConnState} returns this - */ -proto.gw.ConnState.prototype.setGatewayIdLegacy = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string gateway_id = 3; - * @return {string} - */ -proto.gw.ConnState.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.gw.ConnState} returns this - */ -proto.gw.ConnState.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional State state = 2; - * @return {!proto.gw.ConnState.State} - */ -proto.gw.ConnState.prototype.getState = function() { - return /** @type {!proto.gw.ConnState.State} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.gw.ConnState.State} value - * @return {!proto.gw.ConnState} returns this - */ -proto.gw.ConnState.prototype.setState = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * @enum {number} - */ -proto.gw.CodeRate = { - CR_UNDEFINED: 0, - CR_4_5: 1, - CR_4_6: 2, - CR_4_7: 3, - CR_4_8: 4, - CR_3_8: 5, - CR_2_6: 6, - CR_1_4: 7, - CR_1_6: 8, - CR_5_6: 9, - CR_LI_4_5: 10, - CR_LI_4_6: 11, - CR_LI_4_8: 12 -}; - -/** - * @enum {number} - */ -proto.gw.DownlinkTiming = { - IMMEDIATELY: 0, - DELAY: 1, - GPS_EPOCH: 2 -}; - -/** - * @enum {number} - */ -proto.gw.FineTimestampType = { - NONE: 0, - ENCRYPTED: 1, - PLAIN: 2 -}; - -/** - * @enum {number} - */ -proto.gw.CRCStatus = { - NO_CRC: 0, - BAD_CRC: 1, - CRC_OK: 2 -}; - -/** - * @enum {number} - */ -proto.gw.TxAckStatus = { - IGNORED: 0, - OK: 1, - TOO_LATE: 2, - TOO_EARLY: 3, - COLLISION_PACKET: 4, - COLLISION_BEACON: 5, - TX_FREQ: 6, - TX_POWER: 7, - GPS_UNLOCKED: 8, - QUEUE_FULL: 9, - INTERNAL_ERROR: 10 -}; - -goog.object.extend(exports, proto.gw); diff --git a/api/js/integration/integration_grpc_pb.d.ts b/api/js/integration/integration_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/integration/integration_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/integration/integration_pb.d.ts b/api/js/integration/integration_pb.d.ts deleted file mode 100644 index fb03a6a2..00000000 --- a/api/js/integration/integration_pb.d.ts +++ /dev/null @@ -1,581 +0,0 @@ -// package: integration -// file: integration/integration.proto - -import * as jspb from "google-protobuf"; -import * as common_common_pb from "../common/common_pb"; -import * as gw_gw_pb from "../gw/gw_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; - -export class DeviceInfo extends jspb.Message { - getTenantId(): string; - setTenantId(value: string): void; - - getTenantName(): string; - setTenantName(value: string): void; - - getApplicationId(): string; - setApplicationId(value: string): void; - - getApplicationName(): string; - setApplicationName(value: string): void; - - getDeviceProfileId(): string; - setDeviceProfileId(value: string): void; - - getDeviceProfileName(): string; - setDeviceProfileName(value: string): void; - - getDeviceName(): string; - setDeviceName(value: string): void; - - getDevEui(): string; - setDevEui(value: string): void; - - getDeviceClassEnabled(): common_common_pb.DeviceClassMap[keyof common_common_pb.DeviceClassMap]; - setDeviceClassEnabled(value: common_common_pb.DeviceClassMap[keyof common_common_pb.DeviceClassMap]): void; - - getTagsMap(): jspb.Map; - clearTagsMap(): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeviceInfo.AsObject; - static toObject(includeInstance: boolean, msg: DeviceInfo): DeviceInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeviceInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeviceInfo; - static deserializeBinaryFromReader(message: DeviceInfo, reader: jspb.BinaryReader): DeviceInfo; -} - -export namespace DeviceInfo { - export type AsObject = { - tenantId: string, - tenantName: string, - applicationId: string, - applicationName: string, - deviceProfileId: string, - deviceProfileName: string, - deviceName: string, - devEui: string, - deviceClassEnabled: common_common_pb.DeviceClassMap[keyof common_common_pb.DeviceClassMap], - tagsMap: Array<[string, string]>, - } -} - -export class UplinkRelayRxInfo extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - getFrequency(): number; - setFrequency(value: number): void; - - getDr(): number; - setDr(value: number): void; - - getSnr(): number; - setSnr(value: number): void; - - getRssi(): number; - setRssi(value: number): void; - - getWorChannel(): number; - setWorChannel(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UplinkRelayRxInfo.AsObject; - static toObject(includeInstance: boolean, msg: UplinkRelayRxInfo): UplinkRelayRxInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UplinkRelayRxInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UplinkRelayRxInfo; - static deserializeBinaryFromReader(message: UplinkRelayRxInfo, reader: jspb.BinaryReader): UplinkRelayRxInfo; -} - -export namespace UplinkRelayRxInfo { - export type AsObject = { - devEui: string, - frequency: number, - dr: number, - snr: number, - rssi: number, - worChannel: number, - } -} - -export class UplinkEvent extends jspb.Message { - getDeduplicationId(): string; - setDeduplicationId(value: string): void; - - hasTime(): boolean; - clearTime(): void; - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasDeviceInfo(): boolean; - clearDeviceInfo(): void; - getDeviceInfo(): DeviceInfo | undefined; - setDeviceInfo(value?: DeviceInfo): void; - - getDevAddr(): string; - setDevAddr(value: string): void; - - getAdr(): boolean; - setAdr(value: boolean): void; - - getDr(): number; - setDr(value: number): void; - - getFCnt(): number; - setFCnt(value: number): void; - - getFPort(): number; - setFPort(value: number): void; - - getConfirmed(): boolean; - setConfirmed(value: boolean): void; - - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): void; - - hasObject(): boolean; - clearObject(): void; - getObject(): google_protobuf_struct_pb.Struct | undefined; - setObject(value?: google_protobuf_struct_pb.Struct): void; - - clearRxInfoList(): void; - getRxInfoList(): Array; - setRxInfoList(value: Array): void; - addRxInfo(value?: gw_gw_pb.UplinkRxInfo, index?: number): gw_gw_pb.UplinkRxInfo; - - hasTxInfo(): boolean; - clearTxInfo(): void; - getTxInfo(): gw_gw_pb.UplinkTxInfo | undefined; - setTxInfo(value?: gw_gw_pb.UplinkTxInfo): void; - - hasRelayRxInfo(): boolean; - clearRelayRxInfo(): void; - getRelayRxInfo(): UplinkRelayRxInfo | undefined; - setRelayRxInfo(value?: UplinkRelayRxInfo): void; - - hasJoinServerContext(): boolean; - clearJoinServerContext(): void; - getJoinServerContext(): common_common_pb.JoinServerContext | undefined; - setJoinServerContext(value?: common_common_pb.JoinServerContext): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UplinkEvent.AsObject; - static toObject(includeInstance: boolean, msg: UplinkEvent): UplinkEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UplinkEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UplinkEvent; - static deserializeBinaryFromReader(message: UplinkEvent, reader: jspb.BinaryReader): UplinkEvent; -} - -export namespace UplinkEvent { - export type AsObject = { - deduplicationId: string, - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - deviceInfo?: DeviceInfo.AsObject, - devAddr: string, - adr: boolean, - dr: number, - fCnt: number, - fPort: number, - confirmed: boolean, - data: Uint8Array | string, - object?: google_protobuf_struct_pb.Struct.AsObject, - rxInfoList: Array, - txInfo?: gw_gw_pb.UplinkTxInfo.AsObject, - relayRxInfo?: UplinkRelayRxInfo.AsObject, - joinServerContext?: common_common_pb.JoinServerContext.AsObject, - } -} - -export class JoinEvent extends jspb.Message { - getDeduplicationId(): string; - setDeduplicationId(value: string): void; - - hasTime(): boolean; - clearTime(): void; - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasDeviceInfo(): boolean; - clearDeviceInfo(): void; - getDeviceInfo(): DeviceInfo | undefined; - setDeviceInfo(value?: DeviceInfo): void; - - getDevAddr(): string; - setDevAddr(value: string): void; - - hasRelayRxInfo(): boolean; - clearRelayRxInfo(): void; - getRelayRxInfo(): UplinkRelayRxInfo | undefined; - setRelayRxInfo(value?: UplinkRelayRxInfo): void; - - hasJoinServerContext(): boolean; - clearJoinServerContext(): void; - getJoinServerContext(): common_common_pb.JoinServerContext | undefined; - setJoinServerContext(value?: common_common_pb.JoinServerContext): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): JoinEvent.AsObject; - static toObject(includeInstance: boolean, msg: JoinEvent): JoinEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: JoinEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): JoinEvent; - static deserializeBinaryFromReader(message: JoinEvent, reader: jspb.BinaryReader): JoinEvent; -} - -export namespace JoinEvent { - export type AsObject = { - deduplicationId: string, - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - deviceInfo?: DeviceInfo.AsObject, - devAddr: string, - relayRxInfo?: UplinkRelayRxInfo.AsObject, - joinServerContext?: common_common_pb.JoinServerContext.AsObject, - } -} - -export class AckEvent extends jspb.Message { - getDeduplicationId(): string; - setDeduplicationId(value: string): void; - - hasTime(): boolean; - clearTime(): void; - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasDeviceInfo(): boolean; - clearDeviceInfo(): void; - getDeviceInfo(): DeviceInfo | undefined; - setDeviceInfo(value?: DeviceInfo): void; - - getQueueItemId(): string; - setQueueItemId(value: string): void; - - getAcknowledged(): boolean; - setAcknowledged(value: boolean): void; - - getFCntDown(): number; - setFCntDown(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AckEvent.AsObject; - static toObject(includeInstance: boolean, msg: AckEvent): AckEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AckEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AckEvent; - static deserializeBinaryFromReader(message: AckEvent, reader: jspb.BinaryReader): AckEvent; -} - -export namespace AckEvent { - export type AsObject = { - deduplicationId: string, - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - deviceInfo?: DeviceInfo.AsObject, - queueItemId: string, - acknowledged: boolean, - fCntDown: number, - } -} - -export class TxAckEvent extends jspb.Message { - getDownlinkId(): number; - setDownlinkId(value: number): void; - - hasTime(): boolean; - clearTime(): void; - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasDeviceInfo(): boolean; - clearDeviceInfo(): void; - getDeviceInfo(): DeviceInfo | undefined; - setDeviceInfo(value?: DeviceInfo): void; - - getQueueItemId(): string; - setQueueItemId(value: string): void; - - getFCntDown(): number; - setFCntDown(value: number): void; - - getGatewayId(): string; - setGatewayId(value: string): void; - - hasTxInfo(): boolean; - clearTxInfo(): void; - getTxInfo(): gw_gw_pb.DownlinkTxInfo | undefined; - setTxInfo(value?: gw_gw_pb.DownlinkTxInfo): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TxAckEvent.AsObject; - static toObject(includeInstance: boolean, msg: TxAckEvent): TxAckEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: TxAckEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): TxAckEvent; - static deserializeBinaryFromReader(message: TxAckEvent, reader: jspb.BinaryReader): TxAckEvent; -} - -export namespace TxAckEvent { - export type AsObject = { - downlinkId: number, - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - deviceInfo?: DeviceInfo.AsObject, - queueItemId: string, - fCntDown: number, - gatewayId: string, - txInfo?: gw_gw_pb.DownlinkTxInfo.AsObject, - } -} - -export class LogEvent extends jspb.Message { - hasTime(): boolean; - clearTime(): void; - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasDeviceInfo(): boolean; - clearDeviceInfo(): void; - getDeviceInfo(): DeviceInfo | undefined; - setDeviceInfo(value?: DeviceInfo): void; - - getLevel(): LogLevelMap[keyof LogLevelMap]; - setLevel(value: LogLevelMap[keyof LogLevelMap]): void; - - getCode(): LogCodeMap[keyof LogCodeMap]; - setCode(value: LogCodeMap[keyof LogCodeMap]): void; - - getDescription(): string; - setDescription(value: string): void; - - getContextMap(): jspb.Map; - clearContextMap(): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LogEvent.AsObject; - static toObject(includeInstance: boolean, msg: LogEvent): LogEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LogEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LogEvent; - static deserializeBinaryFromReader(message: LogEvent, reader: jspb.BinaryReader): LogEvent; -} - -export namespace LogEvent { - export type AsObject = { - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - deviceInfo?: DeviceInfo.AsObject, - level: LogLevelMap[keyof LogLevelMap], - code: LogCodeMap[keyof LogCodeMap], - description: string, - contextMap: Array<[string, string]>, - } -} - -export class StatusEvent extends jspb.Message { - getDeduplicationId(): string; - setDeduplicationId(value: string): void; - - hasTime(): boolean; - clearTime(): void; - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasDeviceInfo(): boolean; - clearDeviceInfo(): void; - getDeviceInfo(): DeviceInfo | undefined; - setDeviceInfo(value?: DeviceInfo): void; - - getMargin(): number; - setMargin(value: number): void; - - getExternalPowerSource(): boolean; - setExternalPowerSource(value: boolean): void; - - getBatteryLevelUnavailable(): boolean; - setBatteryLevelUnavailable(value: boolean): void; - - getBatteryLevel(): number; - setBatteryLevel(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StatusEvent.AsObject; - static toObject(includeInstance: boolean, msg: StatusEvent): StatusEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StatusEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StatusEvent; - static deserializeBinaryFromReader(message: StatusEvent, reader: jspb.BinaryReader): StatusEvent; -} - -export namespace StatusEvent { - export type AsObject = { - deduplicationId: string, - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - deviceInfo?: DeviceInfo.AsObject, - margin: number, - externalPowerSource: boolean, - batteryLevelUnavailable: boolean, - batteryLevel: number, - } -} - -export class LocationEvent extends jspb.Message { - getDeduplicationId(): string; - setDeduplicationId(value: string): void; - - hasTime(): boolean; - clearTime(): void; - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasDeviceInfo(): boolean; - clearDeviceInfo(): void; - getDeviceInfo(): DeviceInfo | undefined; - setDeviceInfo(value?: DeviceInfo): void; - - hasLocation(): boolean; - clearLocation(): void; - getLocation(): common_common_pb.Location | undefined; - setLocation(value?: common_common_pb.Location): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LocationEvent.AsObject; - static toObject(includeInstance: boolean, msg: LocationEvent): LocationEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LocationEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LocationEvent; - static deserializeBinaryFromReader(message: LocationEvent, reader: jspb.BinaryReader): LocationEvent; -} - -export namespace LocationEvent { - export type AsObject = { - deduplicationId: string, - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - deviceInfo?: DeviceInfo.AsObject, - location?: common_common_pb.Location.AsObject, - } -} - -export class IntegrationEvent extends jspb.Message { - getDeduplicationId(): string; - setDeduplicationId(value: string): void; - - hasTime(): boolean; - clearTime(): void; - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasDeviceInfo(): boolean; - clearDeviceInfo(): void; - getDeviceInfo(): DeviceInfo | undefined; - setDeviceInfo(value?: DeviceInfo): void; - - getIntegrationName(): string; - setIntegrationName(value: string): void; - - getEventType(): string; - setEventType(value: string): void; - - hasObject(): boolean; - clearObject(): void; - getObject(): google_protobuf_struct_pb.Struct | undefined; - setObject(value?: google_protobuf_struct_pb.Struct): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): IntegrationEvent.AsObject; - static toObject(includeInstance: boolean, msg: IntegrationEvent): IntegrationEvent.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: IntegrationEvent, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): IntegrationEvent; - static deserializeBinaryFromReader(message: IntegrationEvent, reader: jspb.BinaryReader): IntegrationEvent; -} - -export namespace IntegrationEvent { - export type AsObject = { - deduplicationId: string, - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - deviceInfo?: DeviceInfo.AsObject, - integrationName: string, - eventType: string, - object?: google_protobuf_struct_pb.Struct.AsObject, - } -} - -export class DownlinkCommand extends jspb.Message { - getId(): string; - setId(value: string): void; - - getDevEui(): string; - setDevEui(value: string): void; - - getConfirmed(): boolean; - setConfirmed(value: boolean): void; - - getFPort(): number; - setFPort(value: number): void; - - getData(): Uint8Array | string; - getData_asU8(): Uint8Array; - getData_asB64(): string; - setData(value: Uint8Array | string): void; - - hasObject(): boolean; - clearObject(): void; - getObject(): google_protobuf_struct_pb.Struct | undefined; - setObject(value?: google_protobuf_struct_pb.Struct): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DownlinkCommand.AsObject; - static toObject(includeInstance: boolean, msg: DownlinkCommand): DownlinkCommand.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DownlinkCommand, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DownlinkCommand; - static deserializeBinaryFromReader(message: DownlinkCommand, reader: jspb.BinaryReader): DownlinkCommand; -} - -export namespace DownlinkCommand { - export type AsObject = { - id: string, - devEui: string, - confirmed: boolean, - fPort: number, - data: Uint8Array | string, - object?: google_protobuf_struct_pb.Struct.AsObject, - } -} - -export interface LogLevelMap { - INFO: 0; - WARNING: 1; - ERROR: 2; -} - -export const LogLevel: LogLevelMap; - -export interface LogCodeMap { - UNKNOWN: 0; - DOWNLINK_PAYLOAD_SIZE: 1; - UPLINK_CODEC: 2; - DOWNLINK_CODEC: 3; - OTAA: 4; - UPLINK_F_CNT_RESET: 5; - UPLINK_MIC: 6; - UPLINK_F_CNT_RETRANSMISSION: 7; - DOWNLINK_GATEWAY: 8; - RELAY_NEW_END_DEVICE: 9; - F_CNT_DOWN: 10; -} - -export const LogCode: LogCodeMap; - diff --git a/api/js/integration/integration_pb.js b/api/js/integration/integration_pb.js deleted file mode 100644 index dfe7a19d..00000000 --- a/api/js/integration/integration_pb.js +++ /dev/null @@ -1,4393 +0,0 @@ -// source: integration/integration.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -var gw_gw_pb = require('../gw/gw_pb.js'); -goog.object.extend(proto, gw_gw_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); -goog.object.extend(proto, google_protobuf_struct_pb); -goog.exportSymbol('proto.integration.AckEvent', null, global); -goog.exportSymbol('proto.integration.DeviceInfo', null, global); -goog.exportSymbol('proto.integration.DownlinkCommand', null, global); -goog.exportSymbol('proto.integration.IntegrationEvent', null, global); -goog.exportSymbol('proto.integration.JoinEvent', null, global); -goog.exportSymbol('proto.integration.LocationEvent', null, global); -goog.exportSymbol('proto.integration.LogCode', null, global); -goog.exportSymbol('proto.integration.LogEvent', null, global); -goog.exportSymbol('proto.integration.LogLevel', null, global); -goog.exportSymbol('proto.integration.StatusEvent', null, global); -goog.exportSymbol('proto.integration.TxAckEvent', null, global); -goog.exportSymbol('proto.integration.UplinkEvent', null, global); -goog.exportSymbol('proto.integration.UplinkRelayRxInfo', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.DeviceInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.integration.DeviceInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.DeviceInfo.displayName = 'proto.integration.DeviceInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.UplinkRelayRxInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.integration.UplinkRelayRxInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.UplinkRelayRxInfo.displayName = 'proto.integration.UplinkRelayRxInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.UplinkEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.integration.UplinkEvent.repeatedFields_, null); -}; -goog.inherits(proto.integration.UplinkEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.UplinkEvent.displayName = 'proto.integration.UplinkEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.JoinEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.integration.JoinEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.JoinEvent.displayName = 'proto.integration.JoinEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.AckEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.integration.AckEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.AckEvent.displayName = 'proto.integration.AckEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.TxAckEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.integration.TxAckEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.TxAckEvent.displayName = 'proto.integration.TxAckEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.LogEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.integration.LogEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.LogEvent.displayName = 'proto.integration.LogEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.StatusEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.integration.StatusEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.StatusEvent.displayName = 'proto.integration.StatusEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.LocationEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.integration.LocationEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.LocationEvent.displayName = 'proto.integration.LocationEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.IntegrationEvent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.integration.IntegrationEvent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.IntegrationEvent.displayName = 'proto.integration.IntegrationEvent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.integration.DownlinkCommand = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.integration.DownlinkCommand, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.integration.DownlinkCommand.displayName = 'proto.integration.DownlinkCommand'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.DeviceInfo.prototype.toObject = function(opt_includeInstance) { - return proto.integration.DeviceInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.DeviceInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.DeviceInfo.toObject = function(includeInstance, msg) { - var f, obj = { - tenantId: jspb.Message.getFieldWithDefault(msg, 1, ""), - tenantName: jspb.Message.getFieldWithDefault(msg, 2, ""), - applicationId: jspb.Message.getFieldWithDefault(msg, 3, ""), - applicationName: jspb.Message.getFieldWithDefault(msg, 4, ""), - deviceProfileId: jspb.Message.getFieldWithDefault(msg, 5, ""), - deviceProfileName: jspb.Message.getFieldWithDefault(msg, 6, ""), - deviceName: jspb.Message.getFieldWithDefault(msg, 7, ""), - devEui: jspb.Message.getFieldWithDefault(msg, 8, ""), - deviceClassEnabled: jspb.Message.getFieldWithDefault(msg, 10, 0), - tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.DeviceInfo} - */ -proto.integration.DeviceInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.DeviceInfo; - return proto.integration.DeviceInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.DeviceInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.DeviceInfo} - */ -proto.integration.DeviceInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTenantName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceProfileId(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceProfileName(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setDeviceName(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 10: - var value = /** @type {!proto.common.DeviceClass} */ (reader.readEnum()); - msg.setDeviceClassEnabled(value); - break; - case 9: - var value = msg.getTagsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.DeviceInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.DeviceInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.DeviceInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.DeviceInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTenantId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTenantName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getApplicationName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getDeviceProfileId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getDeviceProfileName(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getDeviceName(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getDeviceClassEnabled(); - if (f !== 0.0) { - writer.writeEnum( - 10, - f - ); - } - f = message.getTagsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string tenant_id = 1; - * @return {string} - */ -proto.integration.DeviceInfo.prototype.getTenantId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.DeviceInfo} returns this - */ -proto.integration.DeviceInfo.prototype.setTenantId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string tenant_name = 2; - * @return {string} - */ -proto.integration.DeviceInfo.prototype.getTenantName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.DeviceInfo} returns this - */ -proto.integration.DeviceInfo.prototype.setTenantName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string application_id = 3; - * @return {string} - */ -proto.integration.DeviceInfo.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.DeviceInfo} returns this - */ -proto.integration.DeviceInfo.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string application_name = 4; - * @return {string} - */ -proto.integration.DeviceInfo.prototype.getApplicationName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.DeviceInfo} returns this - */ -proto.integration.DeviceInfo.prototype.setApplicationName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string device_profile_id = 5; - * @return {string} - */ -proto.integration.DeviceInfo.prototype.getDeviceProfileId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.DeviceInfo} returns this - */ -proto.integration.DeviceInfo.prototype.setDeviceProfileId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string device_profile_name = 6; - * @return {string} - */ -proto.integration.DeviceInfo.prototype.getDeviceProfileName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.DeviceInfo} returns this - */ -proto.integration.DeviceInfo.prototype.setDeviceProfileName = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string device_name = 7; - * @return {string} - */ -proto.integration.DeviceInfo.prototype.getDeviceName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.DeviceInfo} returns this - */ -proto.integration.DeviceInfo.prototype.setDeviceName = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string dev_eui = 8; - * @return {string} - */ -proto.integration.DeviceInfo.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.DeviceInfo} returns this - */ -proto.integration.DeviceInfo.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional common.DeviceClass device_class_enabled = 10; - * @return {!proto.common.DeviceClass} - */ -proto.integration.DeviceInfo.prototype.getDeviceClassEnabled = function() { - return /** @type {!proto.common.DeviceClass} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {!proto.common.DeviceClass} value - * @return {!proto.integration.DeviceInfo} returns this - */ -proto.integration.DeviceInfo.prototype.setDeviceClassEnabled = function(value) { - return jspb.Message.setProto3EnumField(this, 10, value); -}; - - -/** - * map tags = 9; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.integration.DeviceInfo.prototype.getTagsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 9, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.integration.DeviceInfo} returns this - */ -proto.integration.DeviceInfo.prototype.clearTagsMap = function() { - this.getTagsMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.UplinkRelayRxInfo.prototype.toObject = function(opt_includeInstance) { - return proto.integration.UplinkRelayRxInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.UplinkRelayRxInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.UplinkRelayRxInfo.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - frequency: jspb.Message.getFieldWithDefault(msg, 2, 0), - dr: jspb.Message.getFieldWithDefault(msg, 3, 0), - snr: jspb.Message.getFieldWithDefault(msg, 4, 0), - rssi: jspb.Message.getFieldWithDefault(msg, 5, 0), - worChannel: jspb.Message.getFieldWithDefault(msg, 6, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.UplinkRelayRxInfo} - */ -proto.integration.UplinkRelayRxInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.UplinkRelayRxInfo; - return proto.integration.UplinkRelayRxInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.UplinkRelayRxInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.UplinkRelayRxInfo} - */ -proto.integration.UplinkRelayRxInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFrequency(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDr(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setSnr(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setRssi(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setWorChannel(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.UplinkRelayRxInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.UplinkRelayRxInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.UplinkRelayRxInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.UplinkRelayRxInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getFrequency(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getDr(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getSnr(); - if (f !== 0) { - writer.writeInt32( - 4, - f - ); - } - f = message.getRssi(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getWorChannel(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.integration.UplinkRelayRxInfo.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.UplinkRelayRxInfo} returns this - */ -proto.integration.UplinkRelayRxInfo.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint32 frequency = 2; - * @return {number} - */ -proto.integration.UplinkRelayRxInfo.prototype.getFrequency = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.UplinkRelayRxInfo} returns this - */ -proto.integration.UplinkRelayRxInfo.prototype.setFrequency = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint32 dr = 3; - * @return {number} - */ -proto.integration.UplinkRelayRxInfo.prototype.getDr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.UplinkRelayRxInfo} returns this - */ -proto.integration.UplinkRelayRxInfo.prototype.setDr = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional int32 snr = 4; - * @return {number} - */ -proto.integration.UplinkRelayRxInfo.prototype.getSnr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.UplinkRelayRxInfo} returns this - */ -proto.integration.UplinkRelayRxInfo.prototype.setSnr = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional int32 rssi = 5; - * @return {number} - */ -proto.integration.UplinkRelayRxInfo.prototype.getRssi = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.UplinkRelayRxInfo} returns this - */ -proto.integration.UplinkRelayRxInfo.prototype.setRssi = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional uint32 wor_channel = 6; - * @return {number} - */ -proto.integration.UplinkRelayRxInfo.prototype.getWorChannel = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.UplinkRelayRxInfo} returns this - */ -proto.integration.UplinkRelayRxInfo.prototype.setWorChannel = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.integration.UplinkEvent.repeatedFields_ = [12]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.UplinkEvent.prototype.toObject = function(opt_includeInstance) { - return proto.integration.UplinkEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.UplinkEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.UplinkEvent.toObject = function(includeInstance, msg) { - var f, obj = { - deduplicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - deviceInfo: (f = msg.getDeviceInfo()) && proto.integration.DeviceInfo.toObject(includeInstance, f), - devAddr: jspb.Message.getFieldWithDefault(msg, 4, ""), - adr: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - dr: jspb.Message.getFieldWithDefault(msg, 6, 0), - fCnt: jspb.Message.getFieldWithDefault(msg, 7, 0), - fPort: jspb.Message.getFieldWithDefault(msg, 8, 0), - confirmed: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - data: msg.getData_asB64(), - object: (f = msg.getObject()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - rxInfoList: jspb.Message.toObjectList(msg.getRxInfoList(), - gw_gw_pb.UplinkRxInfo.toObject, includeInstance), - txInfo: (f = msg.getTxInfo()) && gw_gw_pb.UplinkTxInfo.toObject(includeInstance, f), - relayRxInfo: (f = msg.getRelayRxInfo()) && proto.integration.UplinkRelayRxInfo.toObject(includeInstance, f), - joinServerContext: (f = msg.getJoinServerContext()) && common_common_pb.JoinServerContext.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.UplinkEvent} - */ -proto.integration.UplinkEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.UplinkEvent; - return proto.integration.UplinkEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.UplinkEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.UplinkEvent} - */ -proto.integration.UplinkEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDeduplicationId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - case 3: - var value = new proto.integration.DeviceInfo; - reader.readMessage(value,proto.integration.DeviceInfo.deserializeBinaryFromReader); - msg.setDeviceInfo(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDevAddr(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAdr(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDr(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCnt(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFPort(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setConfirmed(value); - break; - case 10: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 11: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setObject(value); - break; - case 12: - var value = new gw_gw_pb.UplinkRxInfo; - reader.readMessage(value,gw_gw_pb.UplinkRxInfo.deserializeBinaryFromReader); - msg.addRxInfo(value); - break; - case 13: - var value = new gw_gw_pb.UplinkTxInfo; - reader.readMessage(value,gw_gw_pb.UplinkTxInfo.deserializeBinaryFromReader); - msg.setTxInfo(value); - break; - case 14: - var value = new proto.integration.UplinkRelayRxInfo; - reader.readMessage(value,proto.integration.UplinkRelayRxInfo.deserializeBinaryFromReader); - msg.setRelayRxInfo(value); - break; - case 15: - var value = new common_common_pb.JoinServerContext; - reader.readMessage(value,common_common_pb.JoinServerContext.deserializeBinaryFromReader); - msg.setJoinServerContext(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.UplinkEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.UplinkEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.UplinkEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.UplinkEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeduplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDeviceInfo(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.integration.DeviceInfo.serializeBinaryToWriter - ); - } - f = message.getDevAddr(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getAdr(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getDr(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } - f = message.getFCnt(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getFPort(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getConfirmed(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 10, - f - ); - } - f = message.getObject(); - if (f != null) { - writer.writeMessage( - 11, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getRxInfoList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 12, - f, - gw_gw_pb.UplinkRxInfo.serializeBinaryToWriter - ); - } - f = message.getTxInfo(); - if (f != null) { - writer.writeMessage( - 13, - f, - gw_gw_pb.UplinkTxInfo.serializeBinaryToWriter - ); - } - f = message.getRelayRxInfo(); - if (f != null) { - writer.writeMessage( - 14, - f, - proto.integration.UplinkRelayRxInfo.serializeBinaryToWriter - ); - } - f = message.getJoinServerContext(); - if (f != null) { - writer.writeMessage( - 15, - f, - common_common_pb.JoinServerContext.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string deduplication_id = 1; - * @return {string} - */ -proto.integration.UplinkEvent.prototype.getDeduplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setDeduplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp time = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.integration.UplinkEvent.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.integration.UplinkEvent} returns this -*/ -proto.integration.UplinkEvent.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.UplinkEvent.prototype.hasTime = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional DeviceInfo device_info = 3; - * @return {?proto.integration.DeviceInfo} - */ -proto.integration.UplinkEvent.prototype.getDeviceInfo = function() { - return /** @type{?proto.integration.DeviceInfo} */ ( - jspb.Message.getWrapperField(this, proto.integration.DeviceInfo, 3)); -}; - - -/** - * @param {?proto.integration.DeviceInfo|undefined} value - * @return {!proto.integration.UplinkEvent} returns this -*/ -proto.integration.UplinkEvent.prototype.setDeviceInfo = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.clearDeviceInfo = function() { - return this.setDeviceInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.UplinkEvent.prototype.hasDeviceInfo = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string dev_addr = 4; - * @return {string} - */ -proto.integration.UplinkEvent.prototype.getDevAddr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setDevAddr = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool adr = 5; - * @return {boolean} - */ -proto.integration.UplinkEvent.prototype.getAdr = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setAdr = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional uint32 dr = 6; - * @return {number} - */ -proto.integration.UplinkEvent.prototype.getDr = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setDr = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional uint32 f_cnt = 7; - * @return {number} - */ -proto.integration.UplinkEvent.prototype.getFCnt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setFCnt = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional uint32 f_port = 8; - * @return {number} - */ -proto.integration.UplinkEvent.prototype.getFPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setFPort = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional bool confirmed = 9; - * @return {boolean} - */ -proto.integration.UplinkEvent.prototype.getConfirmed = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setConfirmed = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - -/** - * optional bytes data = 10; - * @return {!(string|Uint8Array)} - */ -proto.integration.UplinkEvent.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * optional bytes data = 10; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.integration.UplinkEvent.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 10; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.integration.UplinkEvent.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 10, value); -}; - - -/** - * optional google.protobuf.Struct object = 11; - * @return {?proto.google.protobuf.Struct} - */ -proto.integration.UplinkEvent.prototype.getObject = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 11)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.integration.UplinkEvent} returns this -*/ -proto.integration.UplinkEvent.prototype.setObject = function(value) { - return jspb.Message.setWrapperField(this, 11, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.clearObject = function() { - return this.setObject(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.UplinkEvent.prototype.hasObject = function() { - return jspb.Message.getField(this, 11) != null; -}; - - -/** - * repeated gw.UplinkRxInfo rx_info = 12; - * @return {!Array} - */ -proto.integration.UplinkEvent.prototype.getRxInfoList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, gw_gw_pb.UplinkRxInfo, 12)); -}; - - -/** - * @param {!Array} value - * @return {!proto.integration.UplinkEvent} returns this -*/ -proto.integration.UplinkEvent.prototype.setRxInfoList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 12, value); -}; - - -/** - * @param {!proto.gw.UplinkRxInfo=} opt_value - * @param {number=} opt_index - * @return {!proto.gw.UplinkRxInfo} - */ -proto.integration.UplinkEvent.prototype.addRxInfo = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.gw.UplinkRxInfo, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.clearRxInfoList = function() { - return this.setRxInfoList([]); -}; - - -/** - * optional gw.UplinkTxInfo tx_info = 13; - * @return {?proto.gw.UplinkTxInfo} - */ -proto.integration.UplinkEvent.prototype.getTxInfo = function() { - return /** @type{?proto.gw.UplinkTxInfo} */ ( - jspb.Message.getWrapperField(this, gw_gw_pb.UplinkTxInfo, 13)); -}; - - -/** - * @param {?proto.gw.UplinkTxInfo|undefined} value - * @return {!proto.integration.UplinkEvent} returns this -*/ -proto.integration.UplinkEvent.prototype.setTxInfo = function(value) { - return jspb.Message.setWrapperField(this, 13, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.clearTxInfo = function() { - return this.setTxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.UplinkEvent.prototype.hasTxInfo = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional UplinkRelayRxInfo relay_rx_info = 14; - * @return {?proto.integration.UplinkRelayRxInfo} - */ -proto.integration.UplinkEvent.prototype.getRelayRxInfo = function() { - return /** @type{?proto.integration.UplinkRelayRxInfo} */ ( - jspb.Message.getWrapperField(this, proto.integration.UplinkRelayRxInfo, 14)); -}; - - -/** - * @param {?proto.integration.UplinkRelayRxInfo|undefined} value - * @return {!proto.integration.UplinkEvent} returns this -*/ -proto.integration.UplinkEvent.prototype.setRelayRxInfo = function(value) { - return jspb.Message.setWrapperField(this, 14, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.clearRelayRxInfo = function() { - return this.setRelayRxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.UplinkEvent.prototype.hasRelayRxInfo = function() { - return jspb.Message.getField(this, 14) != null; -}; - - -/** - * optional common.JoinServerContext join_server_context = 15; - * @return {?proto.common.JoinServerContext} - */ -proto.integration.UplinkEvent.prototype.getJoinServerContext = function() { - return /** @type{?proto.common.JoinServerContext} */ ( - jspb.Message.getWrapperField(this, common_common_pb.JoinServerContext, 15)); -}; - - -/** - * @param {?proto.common.JoinServerContext|undefined} value - * @return {!proto.integration.UplinkEvent} returns this -*/ -proto.integration.UplinkEvent.prototype.setJoinServerContext = function(value) { - return jspb.Message.setWrapperField(this, 15, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.UplinkEvent} returns this - */ -proto.integration.UplinkEvent.prototype.clearJoinServerContext = function() { - return this.setJoinServerContext(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.UplinkEvent.prototype.hasJoinServerContext = function() { - return jspb.Message.getField(this, 15) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.JoinEvent.prototype.toObject = function(opt_includeInstance) { - return proto.integration.JoinEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.JoinEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.JoinEvent.toObject = function(includeInstance, msg) { - var f, obj = { - deduplicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - deviceInfo: (f = msg.getDeviceInfo()) && proto.integration.DeviceInfo.toObject(includeInstance, f), - devAddr: jspb.Message.getFieldWithDefault(msg, 4, ""), - relayRxInfo: (f = msg.getRelayRxInfo()) && proto.integration.UplinkRelayRxInfo.toObject(includeInstance, f), - joinServerContext: (f = msg.getJoinServerContext()) && common_common_pb.JoinServerContext.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.JoinEvent} - */ -proto.integration.JoinEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.JoinEvent; - return proto.integration.JoinEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.JoinEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.JoinEvent} - */ -proto.integration.JoinEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDeduplicationId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - case 3: - var value = new proto.integration.DeviceInfo; - reader.readMessage(value,proto.integration.DeviceInfo.deserializeBinaryFromReader); - msg.setDeviceInfo(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDevAddr(value); - break; - case 5: - var value = new proto.integration.UplinkRelayRxInfo; - reader.readMessage(value,proto.integration.UplinkRelayRxInfo.deserializeBinaryFromReader); - msg.setRelayRxInfo(value); - break; - case 6: - var value = new common_common_pb.JoinServerContext; - reader.readMessage(value,common_common_pb.JoinServerContext.deserializeBinaryFromReader); - msg.setJoinServerContext(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.JoinEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.JoinEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.JoinEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.JoinEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeduplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDeviceInfo(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.integration.DeviceInfo.serializeBinaryToWriter - ); - } - f = message.getDevAddr(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRelayRxInfo(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.integration.UplinkRelayRxInfo.serializeBinaryToWriter - ); - } - f = message.getJoinServerContext(); - if (f != null) { - writer.writeMessage( - 6, - f, - common_common_pb.JoinServerContext.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string deduplication_id = 1; - * @return {string} - */ -proto.integration.JoinEvent.prototype.getDeduplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.JoinEvent} returns this - */ -proto.integration.JoinEvent.prototype.setDeduplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp time = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.integration.JoinEvent.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.integration.JoinEvent} returns this -*/ -proto.integration.JoinEvent.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.JoinEvent} returns this - */ -proto.integration.JoinEvent.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.JoinEvent.prototype.hasTime = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional DeviceInfo device_info = 3; - * @return {?proto.integration.DeviceInfo} - */ -proto.integration.JoinEvent.prototype.getDeviceInfo = function() { - return /** @type{?proto.integration.DeviceInfo} */ ( - jspb.Message.getWrapperField(this, proto.integration.DeviceInfo, 3)); -}; - - -/** - * @param {?proto.integration.DeviceInfo|undefined} value - * @return {!proto.integration.JoinEvent} returns this -*/ -proto.integration.JoinEvent.prototype.setDeviceInfo = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.JoinEvent} returns this - */ -proto.integration.JoinEvent.prototype.clearDeviceInfo = function() { - return this.setDeviceInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.JoinEvent.prototype.hasDeviceInfo = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string dev_addr = 4; - * @return {string} - */ -proto.integration.JoinEvent.prototype.getDevAddr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.JoinEvent} returns this - */ -proto.integration.JoinEvent.prototype.setDevAddr = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional UplinkRelayRxInfo relay_rx_info = 5; - * @return {?proto.integration.UplinkRelayRxInfo} - */ -proto.integration.JoinEvent.prototype.getRelayRxInfo = function() { - return /** @type{?proto.integration.UplinkRelayRxInfo} */ ( - jspb.Message.getWrapperField(this, proto.integration.UplinkRelayRxInfo, 5)); -}; - - -/** - * @param {?proto.integration.UplinkRelayRxInfo|undefined} value - * @return {!proto.integration.JoinEvent} returns this -*/ -proto.integration.JoinEvent.prototype.setRelayRxInfo = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.JoinEvent} returns this - */ -proto.integration.JoinEvent.prototype.clearRelayRxInfo = function() { - return this.setRelayRxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.JoinEvent.prototype.hasRelayRxInfo = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional common.JoinServerContext join_server_context = 6; - * @return {?proto.common.JoinServerContext} - */ -proto.integration.JoinEvent.prototype.getJoinServerContext = function() { - return /** @type{?proto.common.JoinServerContext} */ ( - jspb.Message.getWrapperField(this, common_common_pb.JoinServerContext, 6)); -}; - - -/** - * @param {?proto.common.JoinServerContext|undefined} value - * @return {!proto.integration.JoinEvent} returns this -*/ -proto.integration.JoinEvent.prototype.setJoinServerContext = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.JoinEvent} returns this - */ -proto.integration.JoinEvent.prototype.clearJoinServerContext = function() { - return this.setJoinServerContext(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.JoinEvent.prototype.hasJoinServerContext = function() { - return jspb.Message.getField(this, 6) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.AckEvent.prototype.toObject = function(opt_includeInstance) { - return proto.integration.AckEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.AckEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.AckEvent.toObject = function(includeInstance, msg) { - var f, obj = { - deduplicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - deviceInfo: (f = msg.getDeviceInfo()) && proto.integration.DeviceInfo.toObject(includeInstance, f), - queueItemId: jspb.Message.getFieldWithDefault(msg, 4, ""), - acknowledged: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - fCntDown: jspb.Message.getFieldWithDefault(msg, 6, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.AckEvent} - */ -proto.integration.AckEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.AckEvent; - return proto.integration.AckEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.AckEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.AckEvent} - */ -proto.integration.AckEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDeduplicationId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - case 3: - var value = new proto.integration.DeviceInfo; - reader.readMessage(value,proto.integration.DeviceInfo.deserializeBinaryFromReader); - msg.setDeviceInfo(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setQueueItemId(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAcknowledged(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCntDown(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.AckEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.AckEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.AckEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.AckEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeduplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDeviceInfo(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.integration.DeviceInfo.serializeBinaryToWriter - ); - } - f = message.getQueueItemId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getAcknowledged(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getFCntDown(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } -}; - - -/** - * optional string deduplication_id = 1; - * @return {string} - */ -proto.integration.AckEvent.prototype.getDeduplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.AckEvent} returns this - */ -proto.integration.AckEvent.prototype.setDeduplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp time = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.integration.AckEvent.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.integration.AckEvent} returns this -*/ -proto.integration.AckEvent.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.AckEvent} returns this - */ -proto.integration.AckEvent.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.AckEvent.prototype.hasTime = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional DeviceInfo device_info = 3; - * @return {?proto.integration.DeviceInfo} - */ -proto.integration.AckEvent.prototype.getDeviceInfo = function() { - return /** @type{?proto.integration.DeviceInfo} */ ( - jspb.Message.getWrapperField(this, proto.integration.DeviceInfo, 3)); -}; - - -/** - * @param {?proto.integration.DeviceInfo|undefined} value - * @return {!proto.integration.AckEvent} returns this -*/ -proto.integration.AckEvent.prototype.setDeviceInfo = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.AckEvent} returns this - */ -proto.integration.AckEvent.prototype.clearDeviceInfo = function() { - return this.setDeviceInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.AckEvent.prototype.hasDeviceInfo = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string queue_item_id = 4; - * @return {string} - */ -proto.integration.AckEvent.prototype.getQueueItemId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.AckEvent} returns this - */ -proto.integration.AckEvent.prototype.setQueueItemId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool acknowledged = 5; - * @return {boolean} - */ -proto.integration.AckEvent.prototype.getAcknowledged = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.integration.AckEvent} returns this - */ -proto.integration.AckEvent.prototype.setAcknowledged = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional uint32 f_cnt_down = 6; - * @return {number} - */ -proto.integration.AckEvent.prototype.getFCntDown = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.AckEvent} returns this - */ -proto.integration.AckEvent.prototype.setFCntDown = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.TxAckEvent.prototype.toObject = function(opt_includeInstance) { - return proto.integration.TxAckEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.TxAckEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.TxAckEvent.toObject = function(includeInstance, msg) { - var f, obj = { - downlinkId: jspb.Message.getFieldWithDefault(msg, 1, 0), - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - deviceInfo: (f = msg.getDeviceInfo()) && proto.integration.DeviceInfo.toObject(includeInstance, f), - queueItemId: jspb.Message.getFieldWithDefault(msg, 4, ""), - fCntDown: jspb.Message.getFieldWithDefault(msg, 5, 0), - gatewayId: jspb.Message.getFieldWithDefault(msg, 6, ""), - txInfo: (f = msg.getTxInfo()) && gw_gw_pb.DownlinkTxInfo.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.TxAckEvent} - */ -proto.integration.TxAckEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.TxAckEvent; - return proto.integration.TxAckEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.TxAckEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.TxAckEvent} - */ -proto.integration.TxAckEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDownlinkId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - case 3: - var value = new proto.integration.DeviceInfo; - reader.readMessage(value,proto.integration.DeviceInfo.deserializeBinaryFromReader); - msg.setDeviceInfo(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setQueueItemId(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFCntDown(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 7: - var value = new gw_gw_pb.DownlinkTxInfo; - reader.readMessage(value,gw_gw_pb.DownlinkTxInfo.deserializeBinaryFromReader); - msg.setTxInfo(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.TxAckEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.TxAckEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.TxAckEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.TxAckEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDownlinkId(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDeviceInfo(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.integration.DeviceInfo.serializeBinaryToWriter - ); - } - f = message.getQueueItemId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getFCntDown(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getTxInfo(); - if (f != null) { - writer.writeMessage( - 7, - f, - gw_gw_pb.DownlinkTxInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 downlink_id = 1; - * @return {number} - */ -proto.integration.TxAckEvent.prototype.getDownlinkId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.TxAckEvent} returns this - */ -proto.integration.TxAckEvent.prototype.setDownlinkId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp time = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.integration.TxAckEvent.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.integration.TxAckEvent} returns this -*/ -proto.integration.TxAckEvent.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.TxAckEvent} returns this - */ -proto.integration.TxAckEvent.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.TxAckEvent.prototype.hasTime = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional DeviceInfo device_info = 3; - * @return {?proto.integration.DeviceInfo} - */ -proto.integration.TxAckEvent.prototype.getDeviceInfo = function() { - return /** @type{?proto.integration.DeviceInfo} */ ( - jspb.Message.getWrapperField(this, proto.integration.DeviceInfo, 3)); -}; - - -/** - * @param {?proto.integration.DeviceInfo|undefined} value - * @return {!proto.integration.TxAckEvent} returns this -*/ -proto.integration.TxAckEvent.prototype.setDeviceInfo = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.TxAckEvent} returns this - */ -proto.integration.TxAckEvent.prototype.clearDeviceInfo = function() { - return this.setDeviceInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.TxAckEvent.prototype.hasDeviceInfo = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string queue_item_id = 4; - * @return {string} - */ -proto.integration.TxAckEvent.prototype.getQueueItemId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.TxAckEvent} returns this - */ -proto.integration.TxAckEvent.prototype.setQueueItemId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional uint32 f_cnt_down = 5; - * @return {number} - */ -proto.integration.TxAckEvent.prototype.getFCntDown = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.TxAckEvent} returns this - */ -proto.integration.TxAckEvent.prototype.setFCntDown = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional string gateway_id = 6; - * @return {string} - */ -proto.integration.TxAckEvent.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.TxAckEvent} returns this - */ -proto.integration.TxAckEvent.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional gw.DownlinkTxInfo tx_info = 7; - * @return {?proto.gw.DownlinkTxInfo} - */ -proto.integration.TxAckEvent.prototype.getTxInfo = function() { - return /** @type{?proto.gw.DownlinkTxInfo} */ ( - jspb.Message.getWrapperField(this, gw_gw_pb.DownlinkTxInfo, 7)); -}; - - -/** - * @param {?proto.gw.DownlinkTxInfo|undefined} value - * @return {!proto.integration.TxAckEvent} returns this -*/ -proto.integration.TxAckEvent.prototype.setTxInfo = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.TxAckEvent} returns this - */ -proto.integration.TxAckEvent.prototype.clearTxInfo = function() { - return this.setTxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.TxAckEvent.prototype.hasTxInfo = function() { - return jspb.Message.getField(this, 7) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.LogEvent.prototype.toObject = function(opt_includeInstance) { - return proto.integration.LogEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.LogEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.LogEvent.toObject = function(includeInstance, msg) { - var f, obj = { - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - deviceInfo: (f = msg.getDeviceInfo()) && proto.integration.DeviceInfo.toObject(includeInstance, f), - level: jspb.Message.getFieldWithDefault(msg, 3, 0), - code: jspb.Message.getFieldWithDefault(msg, 4, 0), - description: jspb.Message.getFieldWithDefault(msg, 5, ""), - contextMap: (f = msg.getContextMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.LogEvent} - */ -proto.integration.LogEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.LogEvent; - return proto.integration.LogEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.LogEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.LogEvent} - */ -proto.integration.LogEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - case 2: - var value = new proto.integration.DeviceInfo; - reader.readMessage(value,proto.integration.DeviceInfo.deserializeBinaryFromReader); - msg.setDeviceInfo(value); - break; - case 3: - var value = /** @type {!proto.integration.LogLevel} */ (reader.readEnum()); - msg.setLevel(value); - break; - case 4: - var value = /** @type {!proto.integration.LogCode} */ (reader.readEnum()); - msg.setCode(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 6: - var value = msg.getContextMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.LogEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.LogEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.LogEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.LogEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDeviceInfo(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.integration.DeviceInfo.serializeBinaryToWriter - ); - } - f = message.getLevel(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getCode(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getContextMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional google.protobuf.Timestamp time = 1; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.integration.LogEvent.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.integration.LogEvent} returns this -*/ -proto.integration.LogEvent.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.LogEvent} returns this - */ -proto.integration.LogEvent.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.LogEvent.prototype.hasTime = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional DeviceInfo device_info = 2; - * @return {?proto.integration.DeviceInfo} - */ -proto.integration.LogEvent.prototype.getDeviceInfo = function() { - return /** @type{?proto.integration.DeviceInfo} */ ( - jspb.Message.getWrapperField(this, proto.integration.DeviceInfo, 2)); -}; - - -/** - * @param {?proto.integration.DeviceInfo|undefined} value - * @return {!proto.integration.LogEvent} returns this -*/ -proto.integration.LogEvent.prototype.setDeviceInfo = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.LogEvent} returns this - */ -proto.integration.LogEvent.prototype.clearDeviceInfo = function() { - return this.setDeviceInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.LogEvent.prototype.hasDeviceInfo = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional LogLevel level = 3; - * @return {!proto.integration.LogLevel} - */ -proto.integration.LogEvent.prototype.getLevel = function() { - return /** @type {!proto.integration.LogLevel} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.integration.LogLevel} value - * @return {!proto.integration.LogEvent} returns this - */ -proto.integration.LogEvent.prototype.setLevel = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional LogCode code = 4; - * @return {!proto.integration.LogCode} - */ -proto.integration.LogEvent.prototype.getCode = function() { - return /** @type {!proto.integration.LogCode} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.integration.LogCode} value - * @return {!proto.integration.LogEvent} returns this - */ -proto.integration.LogEvent.prototype.setCode = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional string description = 5; - * @return {string} - */ -proto.integration.LogEvent.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.LogEvent} returns this - */ -proto.integration.LogEvent.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * map context = 6; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.integration.LogEvent.prototype.getContextMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 6, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.integration.LogEvent} returns this - */ -proto.integration.LogEvent.prototype.clearContextMap = function() { - this.getContextMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.StatusEvent.prototype.toObject = function(opt_includeInstance) { - return proto.integration.StatusEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.StatusEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.StatusEvent.toObject = function(includeInstance, msg) { - var f, obj = { - deduplicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - deviceInfo: (f = msg.getDeviceInfo()) && proto.integration.DeviceInfo.toObject(includeInstance, f), - margin: jspb.Message.getFieldWithDefault(msg, 5, 0), - externalPowerSource: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - batteryLevelUnavailable: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - batteryLevel: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.StatusEvent} - */ -proto.integration.StatusEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.StatusEvent; - return proto.integration.StatusEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.StatusEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.StatusEvent} - */ -proto.integration.StatusEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDeduplicationId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - case 3: - var value = new proto.integration.DeviceInfo; - reader.readMessage(value,proto.integration.DeviceInfo.deserializeBinaryFromReader); - msg.setDeviceInfo(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMargin(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setExternalPowerSource(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setBatteryLevelUnavailable(value); - break; - case 8: - var value = /** @type {number} */ (reader.readFloat()); - msg.setBatteryLevel(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.StatusEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.StatusEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.StatusEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.StatusEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeduplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDeviceInfo(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.integration.DeviceInfo.serializeBinaryToWriter - ); - } - f = message.getMargin(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getExternalPowerSource(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getBatteryLevelUnavailable(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getBatteryLevel(); - if (f !== 0.0) { - writer.writeFloat( - 8, - f - ); - } -}; - - -/** - * optional string deduplication_id = 1; - * @return {string} - */ -proto.integration.StatusEvent.prototype.getDeduplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.StatusEvent} returns this - */ -proto.integration.StatusEvent.prototype.setDeduplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp time = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.integration.StatusEvent.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.integration.StatusEvent} returns this -*/ -proto.integration.StatusEvent.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.StatusEvent} returns this - */ -proto.integration.StatusEvent.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.StatusEvent.prototype.hasTime = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional DeviceInfo device_info = 3; - * @return {?proto.integration.DeviceInfo} - */ -proto.integration.StatusEvent.prototype.getDeviceInfo = function() { - return /** @type{?proto.integration.DeviceInfo} */ ( - jspb.Message.getWrapperField(this, proto.integration.DeviceInfo, 3)); -}; - - -/** - * @param {?proto.integration.DeviceInfo|undefined} value - * @return {!proto.integration.StatusEvent} returns this -*/ -proto.integration.StatusEvent.prototype.setDeviceInfo = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.StatusEvent} returns this - */ -proto.integration.StatusEvent.prototype.clearDeviceInfo = function() { - return this.setDeviceInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.StatusEvent.prototype.hasDeviceInfo = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional int32 margin = 5; - * @return {number} - */ -proto.integration.StatusEvent.prototype.getMargin = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.StatusEvent} returns this - */ -proto.integration.StatusEvent.prototype.setMargin = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional bool external_power_source = 6; - * @return {boolean} - */ -proto.integration.StatusEvent.prototype.getExternalPowerSource = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.integration.StatusEvent} returns this - */ -proto.integration.StatusEvent.prototype.setExternalPowerSource = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional bool battery_level_unavailable = 7; - * @return {boolean} - */ -proto.integration.StatusEvent.prototype.getBatteryLevelUnavailable = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.integration.StatusEvent} returns this - */ -proto.integration.StatusEvent.prototype.setBatteryLevelUnavailable = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * optional float battery_level = 8; - * @return {number} - */ -proto.integration.StatusEvent.prototype.getBatteryLevel = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.StatusEvent} returns this - */ -proto.integration.StatusEvent.prototype.setBatteryLevel = function(value) { - return jspb.Message.setProto3FloatField(this, 8, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.LocationEvent.prototype.toObject = function(opt_includeInstance) { - return proto.integration.LocationEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.LocationEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.LocationEvent.toObject = function(includeInstance, msg) { - var f, obj = { - deduplicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - deviceInfo: (f = msg.getDeviceInfo()) && proto.integration.DeviceInfo.toObject(includeInstance, f), - location: (f = msg.getLocation()) && common_common_pb.Location.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.LocationEvent} - */ -proto.integration.LocationEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.LocationEvent; - return proto.integration.LocationEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.LocationEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.LocationEvent} - */ -proto.integration.LocationEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDeduplicationId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - case 3: - var value = new proto.integration.DeviceInfo; - reader.readMessage(value,proto.integration.DeviceInfo.deserializeBinaryFromReader); - msg.setDeviceInfo(value); - break; - case 4: - var value = new common_common_pb.Location; - reader.readMessage(value,common_common_pb.Location.deserializeBinaryFromReader); - msg.setLocation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.LocationEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.LocationEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.LocationEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.LocationEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeduplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDeviceInfo(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.integration.DeviceInfo.serializeBinaryToWriter - ); - } - f = message.getLocation(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_common_pb.Location.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string deduplication_id = 1; - * @return {string} - */ -proto.integration.LocationEvent.prototype.getDeduplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.LocationEvent} returns this - */ -proto.integration.LocationEvent.prototype.setDeduplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp time = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.integration.LocationEvent.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.integration.LocationEvent} returns this -*/ -proto.integration.LocationEvent.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.LocationEvent} returns this - */ -proto.integration.LocationEvent.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.LocationEvent.prototype.hasTime = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional DeviceInfo device_info = 3; - * @return {?proto.integration.DeviceInfo} - */ -proto.integration.LocationEvent.prototype.getDeviceInfo = function() { - return /** @type{?proto.integration.DeviceInfo} */ ( - jspb.Message.getWrapperField(this, proto.integration.DeviceInfo, 3)); -}; - - -/** - * @param {?proto.integration.DeviceInfo|undefined} value - * @return {!proto.integration.LocationEvent} returns this -*/ -proto.integration.LocationEvent.prototype.setDeviceInfo = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.LocationEvent} returns this - */ -proto.integration.LocationEvent.prototype.clearDeviceInfo = function() { - return this.setDeviceInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.LocationEvent.prototype.hasDeviceInfo = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional common.Location location = 4; - * @return {?proto.common.Location} - */ -proto.integration.LocationEvent.prototype.getLocation = function() { - return /** @type{?proto.common.Location} */ ( - jspb.Message.getWrapperField(this, common_common_pb.Location, 4)); -}; - - -/** - * @param {?proto.common.Location|undefined} value - * @return {!proto.integration.LocationEvent} returns this -*/ -proto.integration.LocationEvent.prototype.setLocation = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.LocationEvent} returns this - */ -proto.integration.LocationEvent.prototype.clearLocation = function() { - return this.setLocation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.LocationEvent.prototype.hasLocation = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.IntegrationEvent.prototype.toObject = function(opt_includeInstance) { - return proto.integration.IntegrationEvent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.IntegrationEvent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.IntegrationEvent.toObject = function(includeInstance, msg) { - var f, obj = { - deduplicationId: jspb.Message.getFieldWithDefault(msg, 1, ""), - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - deviceInfo: (f = msg.getDeviceInfo()) && proto.integration.DeviceInfo.toObject(includeInstance, f), - integrationName: jspb.Message.getFieldWithDefault(msg, 4, ""), - eventType: jspb.Message.getFieldWithDefault(msg, 5, ""), - object: (f = msg.getObject()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.IntegrationEvent} - */ -proto.integration.IntegrationEvent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.IntegrationEvent; - return proto.integration.IntegrationEvent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.IntegrationEvent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.IntegrationEvent} - */ -proto.integration.IntegrationEvent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDeduplicationId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - case 3: - var value = new proto.integration.DeviceInfo; - reader.readMessage(value,proto.integration.DeviceInfo.deserializeBinaryFromReader); - msg.setDeviceInfo(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setIntegrationName(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setEventType(value); - break; - case 6: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setObject(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.IntegrationEvent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.IntegrationEvent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.IntegrationEvent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.IntegrationEvent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeduplicationId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDeviceInfo(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.integration.DeviceInfo.serializeBinaryToWriter - ); - } - f = message.getIntegrationName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getEventType(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getObject(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string deduplication_id = 1; - * @return {string} - */ -proto.integration.IntegrationEvent.prototype.getDeduplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.IntegrationEvent} returns this - */ -proto.integration.IntegrationEvent.prototype.setDeduplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp time = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.integration.IntegrationEvent.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.integration.IntegrationEvent} returns this -*/ -proto.integration.IntegrationEvent.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.IntegrationEvent} returns this - */ -proto.integration.IntegrationEvent.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.IntegrationEvent.prototype.hasTime = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional DeviceInfo device_info = 3; - * @return {?proto.integration.DeviceInfo} - */ -proto.integration.IntegrationEvent.prototype.getDeviceInfo = function() { - return /** @type{?proto.integration.DeviceInfo} */ ( - jspb.Message.getWrapperField(this, proto.integration.DeviceInfo, 3)); -}; - - -/** - * @param {?proto.integration.DeviceInfo|undefined} value - * @return {!proto.integration.IntegrationEvent} returns this -*/ -proto.integration.IntegrationEvent.prototype.setDeviceInfo = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.IntegrationEvent} returns this - */ -proto.integration.IntegrationEvent.prototype.clearDeviceInfo = function() { - return this.setDeviceInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.IntegrationEvent.prototype.hasDeviceInfo = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional string integration_name = 4; - * @return {string} - */ -proto.integration.IntegrationEvent.prototype.getIntegrationName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.IntegrationEvent} returns this - */ -proto.integration.IntegrationEvent.prototype.setIntegrationName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string event_type = 5; - * @return {string} - */ -proto.integration.IntegrationEvent.prototype.getEventType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.IntegrationEvent} returns this - */ -proto.integration.IntegrationEvent.prototype.setEventType = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional google.protobuf.Struct object = 6; - * @return {?proto.google.protobuf.Struct} - */ -proto.integration.IntegrationEvent.prototype.getObject = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 6)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.integration.IntegrationEvent} returns this -*/ -proto.integration.IntegrationEvent.prototype.setObject = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.IntegrationEvent} returns this - */ -proto.integration.IntegrationEvent.prototype.clearObject = function() { - return this.setObject(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.IntegrationEvent.prototype.hasObject = function() { - return jspb.Message.getField(this, 6) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.integration.DownlinkCommand.prototype.toObject = function(opt_includeInstance) { - return proto.integration.DownlinkCommand.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.integration.DownlinkCommand} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.DownlinkCommand.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - devEui: jspb.Message.getFieldWithDefault(msg, 2, ""), - confirmed: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - fPort: jspb.Message.getFieldWithDefault(msg, 4, 0), - data: msg.getData_asB64(), - object: (f = msg.getObject()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.integration.DownlinkCommand} - */ -proto.integration.DownlinkCommand.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.integration.DownlinkCommand; - return proto.integration.DownlinkCommand.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.integration.DownlinkCommand} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.integration.DownlinkCommand} - */ -proto.integration.DownlinkCommand.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setConfirmed(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFPort(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 6: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setObject(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.integration.DownlinkCommand.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.integration.DownlinkCommand.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.integration.DownlinkCommand} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.integration.DownlinkCommand.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getConfirmed(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getFPort(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } - f = message.getObject(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.integration.DownlinkCommand.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.DownlinkCommand} returns this - */ -proto.integration.DownlinkCommand.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string dev_eui = 2; - * @return {string} - */ -proto.integration.DownlinkCommand.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.integration.DownlinkCommand} returns this - */ -proto.integration.DownlinkCommand.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool confirmed = 3; - * @return {boolean} - */ -proto.integration.DownlinkCommand.prototype.getConfirmed = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.integration.DownlinkCommand} returns this - */ -proto.integration.DownlinkCommand.prototype.setConfirmed = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional uint32 f_port = 4; - * @return {number} - */ -proto.integration.DownlinkCommand.prototype.getFPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.integration.DownlinkCommand} returns this - */ -proto.integration.DownlinkCommand.prototype.setFPort = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional bytes data = 5; - * @return {!(string|Uint8Array)} - */ -proto.integration.DownlinkCommand.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes data = 5; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.integration.DownlinkCommand.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes data = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.integration.DownlinkCommand.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.integration.DownlinkCommand} returns this - */ -proto.integration.DownlinkCommand.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - -/** - * optional google.protobuf.Struct object = 6; - * @return {?proto.google.protobuf.Struct} - */ -proto.integration.DownlinkCommand.prototype.getObject = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 6)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.integration.DownlinkCommand} returns this -*/ -proto.integration.DownlinkCommand.prototype.setObject = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.integration.DownlinkCommand} returns this - */ -proto.integration.DownlinkCommand.prototype.clearObject = function() { - return this.setObject(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.integration.DownlinkCommand.prototype.hasObject = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * @enum {number} - */ -proto.integration.LogLevel = { - INFO: 0, - WARNING: 1, - ERROR: 2 -}; - -/** - * @enum {number} - */ -proto.integration.LogCode = { - UNKNOWN: 0, - DOWNLINK_PAYLOAD_SIZE: 1, - UPLINK_CODEC: 2, - DOWNLINK_CODEC: 3, - OTAA: 4, - UPLINK_F_CNT_RESET: 5, - UPLINK_MIC: 6, - UPLINK_F_CNT_RETRANSMISSION: 7, - DOWNLINK_GATEWAY: 8, - RELAY_NEW_END_DEVICE: 9, - F_CNT_DOWN: 10 -}; - -goog.object.extend(exports, proto.integration); diff --git a/api/js/stream/api_request_grpc_pb.d.ts b/api/js/stream/api_request_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/stream/api_request_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/stream/api_request_pb.d.ts b/api/js/stream/api_request_pb.d.ts deleted file mode 100644 index 584383e7..00000000 --- a/api/js/stream/api_request_pb.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -// package: stream -// file: stream/api_request.proto - -import * as jspb from "google-protobuf"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as common_common_pb from "../common/common_pb"; -import * as gw_gw_pb from "../gw/gw_pb"; - -export class ApiRequestLog extends jspb.Message { - getService(): string; - setService(value: string): void; - - getMethod(): string; - setMethod(value: string): void; - - getMetadataMap(): jspb.Map; - clearMetadataMap(): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ApiRequestLog.AsObject; - static toObject(includeInstance: boolean, msg: ApiRequestLog): ApiRequestLog.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ApiRequestLog, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ApiRequestLog; - static deserializeBinaryFromReader(message: ApiRequestLog, reader: jspb.BinaryReader): ApiRequestLog; -} - -export namespace ApiRequestLog { - export type AsObject = { - service: string, - method: string, - metadataMap: Array<[string, string]>, - } -} - diff --git a/api/js/stream/api_request_pb.js b/api/js/stream/api_request_pb.js deleted file mode 100644 index 594a8462..00000000 --- a/api/js/stream/api_request_pb.js +++ /dev/null @@ -1,236 +0,0 @@ -// source: stream/api_request.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -var gw_gw_pb = require('../gw/gw_pb.js'); -goog.object.extend(proto, gw_gw_pb); -goog.exportSymbol('proto.stream.ApiRequestLog', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.stream.ApiRequestLog = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.stream.ApiRequestLog, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.stream.ApiRequestLog.displayName = 'proto.stream.ApiRequestLog'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.stream.ApiRequestLog.prototype.toObject = function(opt_includeInstance) { - return proto.stream.ApiRequestLog.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.stream.ApiRequestLog} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.stream.ApiRequestLog.toObject = function(includeInstance, msg) { - var f, obj = { - service: jspb.Message.getFieldWithDefault(msg, 1, ""), - method: jspb.Message.getFieldWithDefault(msg, 2, ""), - metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.stream.ApiRequestLog} - */ -proto.stream.ApiRequestLog.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.stream.ApiRequestLog; - return proto.stream.ApiRequestLog.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.stream.ApiRequestLog} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.stream.ApiRequestLog} - */ -proto.stream.ApiRequestLog.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setService(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setMethod(value); - break; - case 3: - var value = msg.getMetadataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.stream.ApiRequestLog.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.stream.ApiRequestLog.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.stream.ApiRequestLog} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.stream.ApiRequestLog.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getService(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMethod(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getMetadataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); - } -}; - - -/** - * optional string service = 1; - * @return {string} - */ -proto.stream.ApiRequestLog.prototype.getService = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.stream.ApiRequestLog} returns this - */ -proto.stream.ApiRequestLog.prototype.setService = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string method = 2; - * @return {string} - */ -proto.stream.ApiRequestLog.prototype.getMethod = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.stream.ApiRequestLog} returns this - */ -proto.stream.ApiRequestLog.prototype.setMethod = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * map metadata = 3; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.stream.ApiRequestLog.prototype.getMetadataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 3, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.stream.ApiRequestLog} returns this - */ -proto.stream.ApiRequestLog.prototype.clearMetadataMap = function() { - this.getMetadataMap().clear(); - return this;}; - - -goog.object.extend(exports, proto.stream); diff --git a/api/js/stream/backend_interfaces_grpc_pb.d.ts b/api/js/stream/backend_interfaces_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/stream/backend_interfaces_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/stream/backend_interfaces_pb.d.ts b/api/js/stream/backend_interfaces_pb.d.ts deleted file mode 100644 index b6e1f9a3..00000000 --- a/api/js/stream/backend_interfaces_pb.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -// package: stream -// file: stream/backend_interfaces.proto - -import * as jspb from "google-protobuf"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; - -export class BackendInterfacesRequest extends jspb.Message { - getSenderId(): string; - setSenderId(value: string): void; - - getReceiverId(): string; - setReceiverId(value: string): void; - - hasTime(): boolean; - clearTime(): void; - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; - - getTransactionId(): number; - setTransactionId(value: number): void; - - getMessageType(): string; - setMessageType(value: string): void; - - getResultCode(): string; - setResultCode(value: string): void; - - getRequestBody(): string; - setRequestBody(value: string): void; - - getRequestError(): string; - setRequestError(value: string): void; - - getResponseBody(): string; - setResponseBody(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BackendInterfacesRequest.AsObject; - static toObject(includeInstance: boolean, msg: BackendInterfacesRequest): BackendInterfacesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BackendInterfacesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BackendInterfacesRequest; - static deserializeBinaryFromReader(message: BackendInterfacesRequest, reader: jspb.BinaryReader): BackendInterfacesRequest; -} - -export namespace BackendInterfacesRequest { - export type AsObject = { - senderId: string, - receiverId: string, - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - transactionId: number, - messageType: string, - resultCode: string, - requestBody: string, - requestError: string, - responseBody: string, - } -} - diff --git a/api/js/stream/backend_interfaces_pb.js b/api/js/stream/backend_interfaces_pb.js deleted file mode 100644 index 4c684a28..00000000 --- a/api/js/stream/backend_interfaces_pb.js +++ /dev/null @@ -1,430 +0,0 @@ -// source: stream/backend_interfaces.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -goog.exportSymbol('proto.stream.BackendInterfacesRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.stream.BackendInterfacesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.stream.BackendInterfacesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.stream.BackendInterfacesRequest.displayName = 'proto.stream.BackendInterfacesRequest'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.stream.BackendInterfacesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.stream.BackendInterfacesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.stream.BackendInterfacesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.stream.BackendInterfacesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - senderId: jspb.Message.getFieldWithDefault(msg, 1, ""), - receiverId: jspb.Message.getFieldWithDefault(msg, 2, ""), - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - transactionId: jspb.Message.getFieldWithDefault(msg, 4, 0), - messageType: jspb.Message.getFieldWithDefault(msg, 5, ""), - resultCode: jspb.Message.getFieldWithDefault(msg, 6, ""), - requestBody: jspb.Message.getFieldWithDefault(msg, 7, ""), - requestError: jspb.Message.getFieldWithDefault(msg, 8, ""), - responseBody: jspb.Message.getFieldWithDefault(msg, 9, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.stream.BackendInterfacesRequest} - */ -proto.stream.BackendInterfacesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.stream.BackendInterfacesRequest; - return proto.stream.BackendInterfacesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.stream.BackendInterfacesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.stream.BackendInterfacesRequest} - */ -proto.stream.BackendInterfacesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSenderId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setReceiverId(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTransactionId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setMessageType(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setResultCode(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setRequestBody(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setRequestError(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setResponseBody(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.stream.BackendInterfacesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.stream.BackendInterfacesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.stream.BackendInterfacesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.stream.BackendInterfacesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSenderId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getReceiverId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getTransactionId(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getMessageType(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getResultCode(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getRequestBody(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getRequestError(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getResponseBody(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } -}; - - -/** - * optional string sender_id = 1; - * @return {string} - */ -proto.stream.BackendInterfacesRequest.prototype.getSenderId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.stream.BackendInterfacesRequest} returns this - */ -proto.stream.BackendInterfacesRequest.prototype.setSenderId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string receiver_id = 2; - * @return {string} - */ -proto.stream.BackendInterfacesRequest.prototype.getReceiverId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.stream.BackendInterfacesRequest} returns this - */ -proto.stream.BackendInterfacesRequest.prototype.setReceiverId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional google.protobuf.Timestamp time = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.stream.BackendInterfacesRequest.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.stream.BackendInterfacesRequest} returns this -*/ -proto.stream.BackendInterfacesRequest.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.stream.BackendInterfacesRequest} returns this - */ -proto.stream.BackendInterfacesRequest.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.stream.BackendInterfacesRequest.prototype.hasTime = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional uint32 transaction_id = 4; - * @return {number} - */ -proto.stream.BackendInterfacesRequest.prototype.getTransactionId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.stream.BackendInterfacesRequest} returns this - */ -proto.stream.BackendInterfacesRequest.prototype.setTransactionId = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional string message_type = 5; - * @return {string} - */ -proto.stream.BackendInterfacesRequest.prototype.getMessageType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.stream.BackendInterfacesRequest} returns this - */ -proto.stream.BackendInterfacesRequest.prototype.setMessageType = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string result_code = 6; - * @return {string} - */ -proto.stream.BackendInterfacesRequest.prototype.getResultCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.stream.BackendInterfacesRequest} returns this - */ -proto.stream.BackendInterfacesRequest.prototype.setResultCode = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string request_body = 7; - * @return {string} - */ -proto.stream.BackendInterfacesRequest.prototype.getRequestBody = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.stream.BackendInterfacesRequest} returns this - */ -proto.stream.BackendInterfacesRequest.prototype.setRequestBody = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string request_error = 8; - * @return {string} - */ -proto.stream.BackendInterfacesRequest.prototype.getRequestError = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.stream.BackendInterfacesRequest} returns this - */ -proto.stream.BackendInterfacesRequest.prototype.setRequestError = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string response_body = 9; - * @return {string} - */ -proto.stream.BackendInterfacesRequest.prototype.getResponseBody = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.stream.BackendInterfacesRequest} returns this - */ -proto.stream.BackendInterfacesRequest.prototype.setResponseBody = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -goog.object.extend(exports, proto.stream); diff --git a/api/js/stream/frame_grpc_pb.d.ts b/api/js/stream/frame_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/stream/frame_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/stream/frame_pb.d.ts b/api/js/stream/frame_pb.d.ts deleted file mode 100644 index dbd1886e..00000000 --- a/api/js/stream/frame_pb.d.ts +++ /dev/null @@ -1,130 +0,0 @@ -// package: stream -// file: stream/frame.proto - -import * as jspb from "google-protobuf"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as common_common_pb from "../common/common_pb"; -import * as gw_gw_pb from "../gw/gw_pb"; - -export class UplinkFrameLog extends jspb.Message { - getPhyPayload(): Uint8Array | string; - getPhyPayload_asU8(): Uint8Array; - getPhyPayload_asB64(): string; - setPhyPayload(value: Uint8Array | string): void; - - hasTxInfo(): boolean; - clearTxInfo(): void; - getTxInfo(): gw_gw_pb.UplinkTxInfo | undefined; - setTxInfo(value?: gw_gw_pb.UplinkTxInfo): void; - - clearRxInfoList(): void; - getRxInfoList(): Array; - setRxInfoList(value: Array): void; - addRxInfo(value?: gw_gw_pb.UplinkRxInfo, index?: number): gw_gw_pb.UplinkRxInfo; - - getMType(): common_common_pb.MTypeMap[keyof common_common_pb.MTypeMap]; - setMType(value: common_common_pb.MTypeMap[keyof common_common_pb.MTypeMap]): void; - - getDevAddr(): string; - setDevAddr(value: string): void; - - getDevEui(): string; - setDevEui(value: string): void; - - hasTime(): boolean; - clearTime(): void; - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; - - getPlaintextFOpts(): boolean; - setPlaintextFOpts(value: boolean): void; - - getPlaintextFrmPayload(): boolean; - setPlaintextFrmPayload(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UplinkFrameLog.AsObject; - static toObject(includeInstance: boolean, msg: UplinkFrameLog): UplinkFrameLog.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UplinkFrameLog, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UplinkFrameLog; - static deserializeBinaryFromReader(message: UplinkFrameLog, reader: jspb.BinaryReader): UplinkFrameLog; -} - -export namespace UplinkFrameLog { - export type AsObject = { - phyPayload: Uint8Array | string, - txInfo?: gw_gw_pb.UplinkTxInfo.AsObject, - rxInfoList: Array, - mType: common_common_pb.MTypeMap[keyof common_common_pb.MTypeMap], - devAddr: string, - devEui: string, - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - plaintextFOpts: boolean, - plaintextFrmPayload: boolean, - } -} - -export class DownlinkFrameLog extends jspb.Message { - hasTime(): boolean; - clearTime(): void; - getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTime(value?: google_protobuf_timestamp_pb.Timestamp): void; - - getPhyPayload(): Uint8Array | string; - getPhyPayload_asU8(): Uint8Array; - getPhyPayload_asB64(): string; - setPhyPayload(value: Uint8Array | string): void; - - hasTxInfo(): boolean; - clearTxInfo(): void; - getTxInfo(): gw_gw_pb.DownlinkTxInfo | undefined; - setTxInfo(value?: gw_gw_pb.DownlinkTxInfo): void; - - getDownlinkId(): number; - setDownlinkId(value: number): void; - - getGatewayId(): string; - setGatewayId(value: string): void; - - getMType(): common_common_pb.MTypeMap[keyof common_common_pb.MTypeMap]; - setMType(value: common_common_pb.MTypeMap[keyof common_common_pb.MTypeMap]): void; - - getDevAddr(): string; - setDevAddr(value: string): void; - - getDevEui(): string; - setDevEui(value: string): void; - - getPlaintextFOpts(): boolean; - setPlaintextFOpts(value: boolean): void; - - getPlaintextFrmPayload(): boolean; - setPlaintextFrmPayload(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DownlinkFrameLog.AsObject; - static toObject(includeInstance: boolean, msg: DownlinkFrameLog): DownlinkFrameLog.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DownlinkFrameLog, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DownlinkFrameLog; - static deserializeBinaryFromReader(message: DownlinkFrameLog, reader: jspb.BinaryReader): DownlinkFrameLog; -} - -export namespace DownlinkFrameLog { - export type AsObject = { - time?: google_protobuf_timestamp_pb.Timestamp.AsObject, - phyPayload: Uint8Array | string, - txInfo?: gw_gw_pb.DownlinkTxInfo.AsObject, - downlinkId: number, - gatewayId: string, - mType: common_common_pb.MTypeMap[keyof common_common_pb.MTypeMap], - devAddr: string, - devEui: string, - plaintextFOpts: boolean, - plaintextFrmPayload: boolean, - } -} - diff --git a/api/js/stream/frame_pb.js b/api/js/stream/frame_pb.js deleted file mode 100644 index fd3c4094..00000000 --- a/api/js/stream/frame_pb.js +++ /dev/null @@ -1,997 +0,0 @@ -// source: stream/frame.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -var gw_gw_pb = require('../gw/gw_pb.js'); -goog.object.extend(proto, gw_gw_pb); -goog.exportSymbol('proto.stream.DownlinkFrameLog', null, global); -goog.exportSymbol('proto.stream.UplinkFrameLog', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.stream.UplinkFrameLog = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.stream.UplinkFrameLog.repeatedFields_, null); -}; -goog.inherits(proto.stream.UplinkFrameLog, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.stream.UplinkFrameLog.displayName = 'proto.stream.UplinkFrameLog'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.stream.DownlinkFrameLog = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.stream.DownlinkFrameLog, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.stream.DownlinkFrameLog.displayName = 'proto.stream.DownlinkFrameLog'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.stream.UplinkFrameLog.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.stream.UplinkFrameLog.prototype.toObject = function(opt_includeInstance) { - return proto.stream.UplinkFrameLog.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.stream.UplinkFrameLog} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.stream.UplinkFrameLog.toObject = function(includeInstance, msg) { - var f, obj = { - phyPayload: msg.getPhyPayload_asB64(), - txInfo: (f = msg.getTxInfo()) && gw_gw_pb.UplinkTxInfo.toObject(includeInstance, f), - rxInfoList: jspb.Message.toObjectList(msg.getRxInfoList(), - gw_gw_pb.UplinkRxInfo.toObject, includeInstance), - mType: jspb.Message.getFieldWithDefault(msg, 4, 0), - devAddr: jspb.Message.getFieldWithDefault(msg, 5, ""), - devEui: jspb.Message.getFieldWithDefault(msg, 6, ""), - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - plaintextFOpts: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - plaintextFrmPayload: jspb.Message.getBooleanFieldWithDefault(msg, 9, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.stream.UplinkFrameLog} - */ -proto.stream.UplinkFrameLog.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.stream.UplinkFrameLog; - return proto.stream.UplinkFrameLog.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.stream.UplinkFrameLog} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.stream.UplinkFrameLog} - */ -proto.stream.UplinkFrameLog.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPhyPayload(value); - break; - case 2: - var value = new gw_gw_pb.UplinkTxInfo; - reader.readMessage(value,gw_gw_pb.UplinkTxInfo.deserializeBinaryFromReader); - msg.setTxInfo(value); - break; - case 3: - var value = new gw_gw_pb.UplinkRxInfo; - reader.readMessage(value,gw_gw_pb.UplinkRxInfo.deserializeBinaryFromReader); - msg.addRxInfo(value); - break; - case 4: - var value = /** @type {!proto.common.MType} */ (reader.readEnum()); - msg.setMType(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDevAddr(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 7: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPlaintextFOpts(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPlaintextFrmPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.stream.UplinkFrameLog.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.stream.UplinkFrameLog.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.stream.UplinkFrameLog} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.stream.UplinkFrameLog.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPhyPayload_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getTxInfo(); - if (f != null) { - writer.writeMessage( - 2, - f, - gw_gw_pb.UplinkTxInfo.serializeBinaryToWriter - ); - } - f = message.getRxInfoList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - gw_gw_pb.UplinkRxInfo.serializeBinaryToWriter - ); - } - f = message.getMType(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getDevAddr(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getPlaintextFOpts(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getPlaintextFrmPayload(); - if (f) { - writer.writeBool( - 9, - f - ); - } -}; - - -/** - * optional bytes phy_payload = 1; - * @return {!(string|Uint8Array)} - */ -proto.stream.UplinkFrameLog.prototype.getPhyPayload = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes phy_payload = 1; - * This is a type-conversion wrapper around `getPhyPayload()` - * @return {string} - */ -proto.stream.UplinkFrameLog.prototype.getPhyPayload_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPhyPayload())); -}; - - -/** - * optional bytes phy_payload = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPhyPayload()` - * @return {!Uint8Array} - */ -proto.stream.UplinkFrameLog.prototype.getPhyPayload_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPhyPayload())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.stream.UplinkFrameLog} returns this - */ -proto.stream.UplinkFrameLog.prototype.setPhyPayload = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional gw.UplinkTxInfo tx_info = 2; - * @return {?proto.gw.UplinkTxInfo} - */ -proto.stream.UplinkFrameLog.prototype.getTxInfo = function() { - return /** @type{?proto.gw.UplinkTxInfo} */ ( - jspb.Message.getWrapperField(this, gw_gw_pb.UplinkTxInfo, 2)); -}; - - -/** - * @param {?proto.gw.UplinkTxInfo|undefined} value - * @return {!proto.stream.UplinkFrameLog} returns this -*/ -proto.stream.UplinkFrameLog.prototype.setTxInfo = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.stream.UplinkFrameLog} returns this - */ -proto.stream.UplinkFrameLog.prototype.clearTxInfo = function() { - return this.setTxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.stream.UplinkFrameLog.prototype.hasTxInfo = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * repeated gw.UplinkRxInfo rx_info = 3; - * @return {!Array} - */ -proto.stream.UplinkFrameLog.prototype.getRxInfoList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, gw_gw_pb.UplinkRxInfo, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.stream.UplinkFrameLog} returns this -*/ -proto.stream.UplinkFrameLog.prototype.setRxInfoList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.gw.UplinkRxInfo=} opt_value - * @param {number=} opt_index - * @return {!proto.gw.UplinkRxInfo} - */ -proto.stream.UplinkFrameLog.prototype.addRxInfo = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gw.UplinkRxInfo, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.stream.UplinkFrameLog} returns this - */ -proto.stream.UplinkFrameLog.prototype.clearRxInfoList = function() { - return this.setRxInfoList([]); -}; - - -/** - * optional common.MType m_type = 4; - * @return {!proto.common.MType} - */ -proto.stream.UplinkFrameLog.prototype.getMType = function() { - return /** @type {!proto.common.MType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.common.MType} value - * @return {!proto.stream.UplinkFrameLog} returns this - */ -proto.stream.UplinkFrameLog.prototype.setMType = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional string dev_addr = 5; - * @return {string} - */ -proto.stream.UplinkFrameLog.prototype.getDevAddr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.stream.UplinkFrameLog} returns this - */ -proto.stream.UplinkFrameLog.prototype.setDevAddr = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string dev_eui = 6; - * @return {string} - */ -proto.stream.UplinkFrameLog.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.stream.UplinkFrameLog} returns this - */ -proto.stream.UplinkFrameLog.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional google.protobuf.Timestamp time = 7; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.stream.UplinkFrameLog.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.stream.UplinkFrameLog} returns this -*/ -proto.stream.UplinkFrameLog.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.stream.UplinkFrameLog} returns this - */ -proto.stream.UplinkFrameLog.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.stream.UplinkFrameLog.prototype.hasTime = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional bool plaintext_f_opts = 8; - * @return {boolean} - */ -proto.stream.UplinkFrameLog.prototype.getPlaintextFOpts = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.stream.UplinkFrameLog} returns this - */ -proto.stream.UplinkFrameLog.prototype.setPlaintextFOpts = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); -}; - - -/** - * optional bool plaintext_frm_payload = 9; - * @return {boolean} - */ -proto.stream.UplinkFrameLog.prototype.getPlaintextFrmPayload = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.stream.UplinkFrameLog} returns this - */ -proto.stream.UplinkFrameLog.prototype.setPlaintextFrmPayload = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.stream.DownlinkFrameLog.prototype.toObject = function(opt_includeInstance) { - return proto.stream.DownlinkFrameLog.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.stream.DownlinkFrameLog} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.stream.DownlinkFrameLog.toObject = function(includeInstance, msg) { - var f, obj = { - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - phyPayload: msg.getPhyPayload_asB64(), - txInfo: (f = msg.getTxInfo()) && gw_gw_pb.DownlinkTxInfo.toObject(includeInstance, f), - downlinkId: jspb.Message.getFieldWithDefault(msg, 4, 0), - gatewayId: jspb.Message.getFieldWithDefault(msg, 5, ""), - mType: jspb.Message.getFieldWithDefault(msg, 6, 0), - devAddr: jspb.Message.getFieldWithDefault(msg, 7, ""), - devEui: jspb.Message.getFieldWithDefault(msg, 8, ""), - plaintextFOpts: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - plaintextFrmPayload: jspb.Message.getBooleanFieldWithDefault(msg, 10, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.stream.DownlinkFrameLog} - */ -proto.stream.DownlinkFrameLog.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.stream.DownlinkFrameLog; - return proto.stream.DownlinkFrameLog.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.stream.DownlinkFrameLog} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.stream.DownlinkFrameLog} - */ -proto.stream.DownlinkFrameLog.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPhyPayload(value); - break; - case 3: - var value = new gw_gw_pb.DownlinkTxInfo; - reader.readMessage(value,gw_gw_pb.DownlinkTxInfo.deserializeBinaryFromReader); - msg.setTxInfo(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDownlinkId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - case 6: - var value = /** @type {!proto.common.MType} */ (reader.readEnum()); - msg.setMType(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setDevAddr(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPlaintextFOpts(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPlaintextFrmPayload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.stream.DownlinkFrameLog.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.stream.DownlinkFrameLog.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.stream.DownlinkFrameLog} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.stream.DownlinkFrameLog.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTime(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getPhyPayload_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getTxInfo(); - if (f != null) { - writer.writeMessage( - 3, - f, - gw_gw_pb.DownlinkTxInfo.serializeBinaryToWriter - ); - } - f = message.getDownlinkId(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getMType(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getDevAddr(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getPlaintextFOpts(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getPlaintextFrmPayload(); - if (f) { - writer.writeBool( - 10, - f - ); - } -}; - - -/** - * optional google.protobuf.Timestamp time = 1; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.stream.DownlinkFrameLog.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.stream.DownlinkFrameLog} returns this -*/ -proto.stream.DownlinkFrameLog.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.stream.DownlinkFrameLog} returns this - */ -proto.stream.DownlinkFrameLog.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.stream.DownlinkFrameLog.prototype.hasTime = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional bytes phy_payload = 2; - * @return {!(string|Uint8Array)} - */ -proto.stream.DownlinkFrameLog.prototype.getPhyPayload = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes phy_payload = 2; - * This is a type-conversion wrapper around `getPhyPayload()` - * @return {string} - */ -proto.stream.DownlinkFrameLog.prototype.getPhyPayload_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPhyPayload())); -}; - - -/** - * optional bytes phy_payload = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPhyPayload()` - * @return {!Uint8Array} - */ -proto.stream.DownlinkFrameLog.prototype.getPhyPayload_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPhyPayload())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.stream.DownlinkFrameLog} returns this - */ -proto.stream.DownlinkFrameLog.prototype.setPhyPayload = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional gw.DownlinkTxInfo tx_info = 3; - * @return {?proto.gw.DownlinkTxInfo} - */ -proto.stream.DownlinkFrameLog.prototype.getTxInfo = function() { - return /** @type{?proto.gw.DownlinkTxInfo} */ ( - jspb.Message.getWrapperField(this, gw_gw_pb.DownlinkTxInfo, 3)); -}; - - -/** - * @param {?proto.gw.DownlinkTxInfo|undefined} value - * @return {!proto.stream.DownlinkFrameLog} returns this -*/ -proto.stream.DownlinkFrameLog.prototype.setTxInfo = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.stream.DownlinkFrameLog} returns this - */ -proto.stream.DownlinkFrameLog.prototype.clearTxInfo = function() { - return this.setTxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.stream.DownlinkFrameLog.prototype.hasTxInfo = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional uint32 downlink_id = 4; - * @return {number} - */ -proto.stream.DownlinkFrameLog.prototype.getDownlinkId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.stream.DownlinkFrameLog} returns this - */ -proto.stream.DownlinkFrameLog.prototype.setDownlinkId = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional string gateway_id = 5; - * @return {string} - */ -proto.stream.DownlinkFrameLog.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.stream.DownlinkFrameLog} returns this - */ -proto.stream.DownlinkFrameLog.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional common.MType m_type = 6; - * @return {!proto.common.MType} - */ -proto.stream.DownlinkFrameLog.prototype.getMType = function() { - return /** @type {!proto.common.MType} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.common.MType} value - * @return {!proto.stream.DownlinkFrameLog} returns this - */ -proto.stream.DownlinkFrameLog.prototype.setMType = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional string dev_addr = 7; - * @return {string} - */ -proto.stream.DownlinkFrameLog.prototype.getDevAddr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.stream.DownlinkFrameLog} returns this - */ -proto.stream.DownlinkFrameLog.prototype.setDevAddr = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string dev_eui = 8; - * @return {string} - */ -proto.stream.DownlinkFrameLog.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.stream.DownlinkFrameLog} returns this - */ -proto.stream.DownlinkFrameLog.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional bool plaintext_f_opts = 9; - * @return {boolean} - */ -proto.stream.DownlinkFrameLog.prototype.getPlaintextFOpts = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.stream.DownlinkFrameLog} returns this - */ -proto.stream.DownlinkFrameLog.prototype.setPlaintextFOpts = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - -/** - * optional bool plaintext_frm_payload = 10; - * @return {boolean} - */ -proto.stream.DownlinkFrameLog.prototype.getPlaintextFrmPayload = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.stream.DownlinkFrameLog} returns this - */ -proto.stream.DownlinkFrameLog.prototype.setPlaintextFrmPayload = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); -}; - - -goog.object.extend(exports, proto.stream); diff --git a/api/js/stream/meta_grpc_pb.d.ts b/api/js/stream/meta_grpc_pb.d.ts deleted file mode 100644 index 51b4d695..00000000 --- a/api/js/stream/meta_grpc_pb.d.ts +++ /dev/null @@ -1 +0,0 @@ -// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/api/js/stream/meta_pb.d.ts b/api/js/stream/meta_pb.d.ts deleted file mode 100644 index 9d67e261..00000000 --- a/api/js/stream/meta_pb.d.ts +++ /dev/null @@ -1,105 +0,0 @@ -// package: stream -// file: stream/meta.proto - -import * as jspb from "google-protobuf"; -import * as common_common_pb from "../common/common_pb"; -import * as gw_gw_pb from "../gw/gw_pb"; - -export class UplinkMeta extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - hasTxInfo(): boolean; - clearTxInfo(): void; - getTxInfo(): gw_gw_pb.UplinkTxInfo | undefined; - setTxInfo(value?: gw_gw_pb.UplinkTxInfo): void; - - clearRxInfoList(): void; - getRxInfoList(): Array; - setRxInfoList(value: Array): void; - addRxInfo(value?: gw_gw_pb.UplinkRxInfo, index?: number): gw_gw_pb.UplinkRxInfo; - - getPhyPayloadByteCount(): number; - setPhyPayloadByteCount(value: number): void; - - getMacCommandByteCount(): number; - setMacCommandByteCount(value: number): void; - - getApplicationPayloadByteCount(): number; - setApplicationPayloadByteCount(value: number): void; - - getMessageType(): common_common_pb.MTypeMap[keyof common_common_pb.MTypeMap]; - setMessageType(value: common_common_pb.MTypeMap[keyof common_common_pb.MTypeMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UplinkMeta.AsObject; - static toObject(includeInstance: boolean, msg: UplinkMeta): UplinkMeta.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UplinkMeta, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UplinkMeta; - static deserializeBinaryFromReader(message: UplinkMeta, reader: jspb.BinaryReader): UplinkMeta; -} - -export namespace UplinkMeta { - export type AsObject = { - devEui: string, - txInfo?: gw_gw_pb.UplinkTxInfo.AsObject, - rxInfoList: Array, - phyPayloadByteCount: number, - macCommandByteCount: number, - applicationPayloadByteCount: number, - messageType: common_common_pb.MTypeMap[keyof common_common_pb.MTypeMap], - } -} - -export class DownlinkMeta extends jspb.Message { - getDevEui(): string; - setDevEui(value: string): void; - - getMulticastGroupId(): string; - setMulticastGroupId(value: string): void; - - hasTxInfo(): boolean; - clearTxInfo(): void; - getTxInfo(): gw_gw_pb.DownlinkTxInfo | undefined; - setTxInfo(value?: gw_gw_pb.DownlinkTxInfo): void; - - getPhyPayloadByteCount(): number; - setPhyPayloadByteCount(value: number): void; - - getMacCommandByteCount(): number; - setMacCommandByteCount(value: number): void; - - getApplicationPayloadByteCount(): number; - setApplicationPayloadByteCount(value: number): void; - - getMessageType(): common_common_pb.MTypeMap[keyof common_common_pb.MTypeMap]; - setMessageType(value: common_common_pb.MTypeMap[keyof common_common_pb.MTypeMap]): void; - - getGatewayId(): string; - setGatewayId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DownlinkMeta.AsObject; - static toObject(includeInstance: boolean, msg: DownlinkMeta): DownlinkMeta.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DownlinkMeta, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DownlinkMeta; - static deserializeBinaryFromReader(message: DownlinkMeta, reader: jspb.BinaryReader): DownlinkMeta; -} - -export namespace DownlinkMeta { - export type AsObject = { - devEui: string, - multicastGroupId: string, - txInfo?: gw_gw_pb.DownlinkTxInfo.AsObject, - phyPayloadByteCount: number, - macCommandByteCount: number, - applicationPayloadByteCount: number, - messageType: common_common_pb.MTypeMap[keyof common_common_pb.MTypeMap], - gatewayId: string, - } -} - diff --git a/api/js/stream/meta_pb.js b/api/js/stream/meta_pb.js deleted file mode 100644 index 78af64d1..00000000 --- a/api/js/stream/meta_pb.js +++ /dev/null @@ -1,785 +0,0 @@ -// source: stream/meta.proto -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var common_common_pb = require('../common/common_pb.js'); -goog.object.extend(proto, common_common_pb); -var gw_gw_pb = require('../gw/gw_pb.js'); -goog.object.extend(proto, gw_gw_pb); -goog.exportSymbol('proto.stream.DownlinkMeta', null, global); -goog.exportSymbol('proto.stream.UplinkMeta', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.stream.UplinkMeta = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.stream.UplinkMeta.repeatedFields_, null); -}; -goog.inherits(proto.stream.UplinkMeta, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.stream.UplinkMeta.displayName = 'proto.stream.UplinkMeta'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.stream.DownlinkMeta = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.stream.DownlinkMeta, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.stream.DownlinkMeta.displayName = 'proto.stream.DownlinkMeta'; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.stream.UplinkMeta.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.stream.UplinkMeta.prototype.toObject = function(opt_includeInstance) { - return proto.stream.UplinkMeta.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.stream.UplinkMeta} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.stream.UplinkMeta.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - txInfo: (f = msg.getTxInfo()) && gw_gw_pb.UplinkTxInfo.toObject(includeInstance, f), - rxInfoList: jspb.Message.toObjectList(msg.getRxInfoList(), - gw_gw_pb.UplinkRxInfo.toObject, includeInstance), - phyPayloadByteCount: jspb.Message.getFieldWithDefault(msg, 4, 0), - macCommandByteCount: jspb.Message.getFieldWithDefault(msg, 5, 0), - applicationPayloadByteCount: jspb.Message.getFieldWithDefault(msg, 6, 0), - messageType: jspb.Message.getFieldWithDefault(msg, 7, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.stream.UplinkMeta} - */ -proto.stream.UplinkMeta.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.stream.UplinkMeta; - return proto.stream.UplinkMeta.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.stream.UplinkMeta} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.stream.UplinkMeta} - */ -proto.stream.UplinkMeta.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = new gw_gw_pb.UplinkTxInfo; - reader.readMessage(value,gw_gw_pb.UplinkTxInfo.deserializeBinaryFromReader); - msg.setTxInfo(value); - break; - case 3: - var value = new gw_gw_pb.UplinkRxInfo; - reader.readMessage(value,gw_gw_pb.UplinkRxInfo.deserializeBinaryFromReader); - msg.addRxInfo(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPhyPayloadByteCount(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setMacCommandByteCount(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setApplicationPayloadByteCount(value); - break; - case 7: - var value = /** @type {!proto.common.MType} */ (reader.readEnum()); - msg.setMessageType(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.stream.UplinkMeta.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.stream.UplinkMeta.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.stream.UplinkMeta} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.stream.UplinkMeta.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTxInfo(); - if (f != null) { - writer.writeMessage( - 2, - f, - gw_gw_pb.UplinkTxInfo.serializeBinaryToWriter - ); - } - f = message.getRxInfoList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - gw_gw_pb.UplinkRxInfo.serializeBinaryToWriter - ); - } - f = message.getPhyPayloadByteCount(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getMacCommandByteCount(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getApplicationPayloadByteCount(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } - f = message.getMessageType(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.stream.UplinkMeta.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.stream.UplinkMeta} returns this - */ -proto.stream.UplinkMeta.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional gw.UplinkTxInfo tx_info = 2; - * @return {?proto.gw.UplinkTxInfo} - */ -proto.stream.UplinkMeta.prototype.getTxInfo = function() { - return /** @type{?proto.gw.UplinkTxInfo} */ ( - jspb.Message.getWrapperField(this, gw_gw_pb.UplinkTxInfo, 2)); -}; - - -/** - * @param {?proto.gw.UplinkTxInfo|undefined} value - * @return {!proto.stream.UplinkMeta} returns this -*/ -proto.stream.UplinkMeta.prototype.setTxInfo = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.stream.UplinkMeta} returns this - */ -proto.stream.UplinkMeta.prototype.clearTxInfo = function() { - return this.setTxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.stream.UplinkMeta.prototype.hasTxInfo = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * repeated gw.UplinkRxInfo rx_info = 3; - * @return {!Array} - */ -proto.stream.UplinkMeta.prototype.getRxInfoList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, gw_gw_pb.UplinkRxInfo, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.stream.UplinkMeta} returns this -*/ -proto.stream.UplinkMeta.prototype.setRxInfoList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.gw.UplinkRxInfo=} opt_value - * @param {number=} opt_index - * @return {!proto.gw.UplinkRxInfo} - */ -proto.stream.UplinkMeta.prototype.addRxInfo = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gw.UplinkRxInfo, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.stream.UplinkMeta} returns this - */ -proto.stream.UplinkMeta.prototype.clearRxInfoList = function() { - return this.setRxInfoList([]); -}; - - -/** - * optional uint32 phy_payload_byte_count = 4; - * @return {number} - */ -proto.stream.UplinkMeta.prototype.getPhyPayloadByteCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.stream.UplinkMeta} returns this - */ -proto.stream.UplinkMeta.prototype.setPhyPayloadByteCount = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional uint32 mac_command_byte_count = 5; - * @return {number} - */ -proto.stream.UplinkMeta.prototype.getMacCommandByteCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.stream.UplinkMeta} returns this - */ -proto.stream.UplinkMeta.prototype.setMacCommandByteCount = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional uint32 application_payload_byte_count = 6; - * @return {number} - */ -proto.stream.UplinkMeta.prototype.getApplicationPayloadByteCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.stream.UplinkMeta} returns this - */ -proto.stream.UplinkMeta.prototype.setApplicationPayloadByteCount = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional common.MType message_type = 7; - * @return {!proto.common.MType} - */ -proto.stream.UplinkMeta.prototype.getMessageType = function() { - return /** @type {!proto.common.MType} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.common.MType} value - * @return {!proto.stream.UplinkMeta} returns this - */ -proto.stream.UplinkMeta.prototype.setMessageType = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.stream.DownlinkMeta.prototype.toObject = function(opt_includeInstance) { - return proto.stream.DownlinkMeta.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.stream.DownlinkMeta} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.stream.DownlinkMeta.toObject = function(includeInstance, msg) { - var f, obj = { - devEui: jspb.Message.getFieldWithDefault(msg, 1, ""), - multicastGroupId: jspb.Message.getFieldWithDefault(msg, 2, ""), - txInfo: (f = msg.getTxInfo()) && gw_gw_pb.DownlinkTxInfo.toObject(includeInstance, f), - phyPayloadByteCount: jspb.Message.getFieldWithDefault(msg, 4, 0), - macCommandByteCount: jspb.Message.getFieldWithDefault(msg, 5, 0), - applicationPayloadByteCount: jspb.Message.getFieldWithDefault(msg, 6, 0), - messageType: jspb.Message.getFieldWithDefault(msg, 7, 0), - gatewayId: jspb.Message.getFieldWithDefault(msg, 8, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.stream.DownlinkMeta} - */ -proto.stream.DownlinkMeta.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.stream.DownlinkMeta; - return proto.stream.DownlinkMeta.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.stream.DownlinkMeta} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.stream.DownlinkMeta} - */ -proto.stream.DownlinkMeta.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDevEui(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setMulticastGroupId(value); - break; - case 3: - var value = new gw_gw_pb.DownlinkTxInfo; - reader.readMessage(value,gw_gw_pb.DownlinkTxInfo.deserializeBinaryFromReader); - msg.setTxInfo(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPhyPayloadByteCount(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setMacCommandByteCount(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setApplicationPayloadByteCount(value); - break; - case 7: - var value = /** @type {!proto.common.MType} */ (reader.readEnum()); - msg.setMessageType(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setGatewayId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.stream.DownlinkMeta.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.stream.DownlinkMeta.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.stream.DownlinkMeta} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.stream.DownlinkMeta.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDevEui(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMulticastGroupId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getTxInfo(); - if (f != null) { - writer.writeMessage( - 3, - f, - gw_gw_pb.DownlinkTxInfo.serializeBinaryToWriter - ); - } - f = message.getPhyPayloadByteCount(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getMacCommandByteCount(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getApplicationPayloadByteCount(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } - f = message.getMessageType(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getGatewayId(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } -}; - - -/** - * optional string dev_eui = 1; - * @return {string} - */ -proto.stream.DownlinkMeta.prototype.getDevEui = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.stream.DownlinkMeta} returns this - */ -proto.stream.DownlinkMeta.prototype.setDevEui = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string multicast_group_id = 2; - * @return {string} - */ -proto.stream.DownlinkMeta.prototype.getMulticastGroupId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.stream.DownlinkMeta} returns this - */ -proto.stream.DownlinkMeta.prototype.setMulticastGroupId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional gw.DownlinkTxInfo tx_info = 3; - * @return {?proto.gw.DownlinkTxInfo} - */ -proto.stream.DownlinkMeta.prototype.getTxInfo = function() { - return /** @type{?proto.gw.DownlinkTxInfo} */ ( - jspb.Message.getWrapperField(this, gw_gw_pb.DownlinkTxInfo, 3)); -}; - - -/** - * @param {?proto.gw.DownlinkTxInfo|undefined} value - * @return {!proto.stream.DownlinkMeta} returns this -*/ -proto.stream.DownlinkMeta.prototype.setTxInfo = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.stream.DownlinkMeta} returns this - */ -proto.stream.DownlinkMeta.prototype.clearTxInfo = function() { - return this.setTxInfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.stream.DownlinkMeta.prototype.hasTxInfo = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional uint32 phy_payload_byte_count = 4; - * @return {number} - */ -proto.stream.DownlinkMeta.prototype.getPhyPayloadByteCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.stream.DownlinkMeta} returns this - */ -proto.stream.DownlinkMeta.prototype.setPhyPayloadByteCount = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional uint32 mac_command_byte_count = 5; - * @return {number} - */ -proto.stream.DownlinkMeta.prototype.getMacCommandByteCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.stream.DownlinkMeta} returns this - */ -proto.stream.DownlinkMeta.prototype.setMacCommandByteCount = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional uint32 application_payload_byte_count = 6; - * @return {number} - */ -proto.stream.DownlinkMeta.prototype.getApplicationPayloadByteCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.stream.DownlinkMeta} returns this - */ -proto.stream.DownlinkMeta.prototype.setApplicationPayloadByteCount = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional common.MType message_type = 7; - * @return {!proto.common.MType} - */ -proto.stream.DownlinkMeta.prototype.getMessageType = function() { - return /** @type {!proto.common.MType} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.common.MType} value - * @return {!proto.stream.DownlinkMeta} returns this - */ -proto.stream.DownlinkMeta.prototype.setMessageType = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); -}; - - -/** - * optional string gateway_id = 8; - * @return {string} - */ -proto.stream.DownlinkMeta.prototype.getGatewayId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.stream.DownlinkMeta} returns this - */ -proto.stream.DownlinkMeta.prototype.setGatewayId = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -goog.object.extend(exports, proto.stream); diff --git a/api/kotlin/.gitignore b/api/kotlin/.gitignore new file mode 100644 index 00000000..78ca3d04 --- /dev/null +++ b/api/kotlin/.gitignore @@ -0,0 +1,2 @@ +/build +/src diff --git a/api/md/.gitignore b/api/md/.gitignore new file mode 100644 index 00000000..dd449725 --- /dev/null +++ b/api/md/.gitignore @@ -0,0 +1 @@ +*.md diff --git a/api/md/api/api.md b/api/md/api/api.md deleted file mode 100644 index 045fffe8..00000000 --- a/api/md/api/api.md +++ /dev/null @@ -1,4569 +0,0 @@ -# Protocol Documentation - - -## Table of Contents - -- [api/application.proto](#api_application-proto) - - [Application](#api-Application) - - [Application.TagsEntry](#api-Application-TagsEntry) - - [ApplicationListItem](#api-ApplicationListItem) - - [AwsSnsIntegration](#api-AwsSnsIntegration) - - [AzureServiceBusIntegration](#api-AzureServiceBusIntegration) - - [CreateApplicationRequest](#api-CreateApplicationRequest) - - [CreateApplicationResponse](#api-CreateApplicationResponse) - - [CreateAwsSnsIntegrationRequest](#api-CreateAwsSnsIntegrationRequest) - - [CreateAzureServiceBusIntegrationRequest](#api-CreateAzureServiceBusIntegrationRequest) - - [CreateGcpPubSubIntegrationRequest](#api-CreateGcpPubSubIntegrationRequest) - - [CreateHttpIntegrationRequest](#api-CreateHttpIntegrationRequest) - - [CreateIftttIntegrationRequest](#api-CreateIftttIntegrationRequest) - - [CreateInfluxDbIntegrationRequest](#api-CreateInfluxDbIntegrationRequest) - - [CreateLoraCloudIntegrationRequest](#api-CreateLoraCloudIntegrationRequest) - - [CreateMyDevicesIntegrationRequest](#api-CreateMyDevicesIntegrationRequest) - - [CreatePilotThingsIntegrationRequest](#api-CreatePilotThingsIntegrationRequest) - - [CreateThingsBoardIntegrationRequest](#api-CreateThingsBoardIntegrationRequest) - - [DeleteApplicationRequest](#api-DeleteApplicationRequest) - - [DeleteAwsSnsIntegrationRequest](#api-DeleteAwsSnsIntegrationRequest) - - [DeleteAzureServiceBusIntegrationRequest](#api-DeleteAzureServiceBusIntegrationRequest) - - [DeleteGcpPubSubIntegrationRequest](#api-DeleteGcpPubSubIntegrationRequest) - - [DeleteHttpIntegrationRequest](#api-DeleteHttpIntegrationRequest) - - [DeleteIftttIntegrationRequest](#api-DeleteIftttIntegrationRequest) - - [DeleteInfluxDbIntegrationRequest](#api-DeleteInfluxDbIntegrationRequest) - - [DeleteLoraCloudIntegrationRequest](#api-DeleteLoraCloudIntegrationRequest) - - [DeleteMyDevicesIntegrationRequest](#api-DeleteMyDevicesIntegrationRequest) - - [DeletePilotThingsIntegrationRequest](#api-DeletePilotThingsIntegrationRequest) - - [DeleteThingsBoardIntegrationRequest](#api-DeleteThingsBoardIntegrationRequest) - - [GcpPubSubIntegration](#api-GcpPubSubIntegration) - - [GenerateMqttIntegrationClientCertificateRequest](#api-GenerateMqttIntegrationClientCertificateRequest) - - [GenerateMqttIntegrationClientCertificateResponse](#api-GenerateMqttIntegrationClientCertificateResponse) - - [GetApplicationRequest](#api-GetApplicationRequest) - - [GetApplicationResponse](#api-GetApplicationResponse) - - [GetAwsSnsIntegrationRequest](#api-GetAwsSnsIntegrationRequest) - - [GetAwsSnsIntegrationResponse](#api-GetAwsSnsIntegrationResponse) - - [GetAzureServiceBusIntegrationRequest](#api-GetAzureServiceBusIntegrationRequest) - - [GetAzureServiceBusIntegrationResponse](#api-GetAzureServiceBusIntegrationResponse) - - [GetGcpPubSubIntegrationRequest](#api-GetGcpPubSubIntegrationRequest) - - [GetGcpPubSubIntegrationResponse](#api-GetGcpPubSubIntegrationResponse) - - [GetHttpIntegrationRequest](#api-GetHttpIntegrationRequest) - - [GetHttpIntegrationResponse](#api-GetHttpIntegrationResponse) - - [GetIftttIntegrationRequest](#api-GetIftttIntegrationRequest) - - [GetIftttIntegrationResponse](#api-GetIftttIntegrationResponse) - - [GetInfluxDbIntegrationRequest](#api-GetInfluxDbIntegrationRequest) - - [GetInfluxDbIntegrationResponse](#api-GetInfluxDbIntegrationResponse) - - [GetLoraCloudIntegrationRequest](#api-GetLoraCloudIntegrationRequest) - - [GetLoraCloudIntegrationResponse](#api-GetLoraCloudIntegrationResponse) - - [GetMyDevicesIntegrationRequest](#api-GetMyDevicesIntegrationRequest) - - [GetMyDevicesIntegrationResponse](#api-GetMyDevicesIntegrationResponse) - - [GetPilotThingsIntegrationRequest](#api-GetPilotThingsIntegrationRequest) - - [GetPilotThingsIntegrationResponse](#api-GetPilotThingsIntegrationResponse) - - [GetThingsBoardIntegrationRequest](#api-GetThingsBoardIntegrationRequest) - - [GetThingsBoardIntegrationResponse](#api-GetThingsBoardIntegrationResponse) - - [HttpIntegration](#api-HttpIntegration) - - [HttpIntegration.HeadersEntry](#api-HttpIntegration-HeadersEntry) - - [IftttIntegration](#api-IftttIntegration) - - [InfluxDbIntegration](#api-InfluxDbIntegration) - - [IntegrationListItem](#api-IntegrationListItem) - - [ListApplicationsRequest](#api-ListApplicationsRequest) - - [ListApplicationsResponse](#api-ListApplicationsResponse) - - [ListIntegrationsRequest](#api-ListIntegrationsRequest) - - [ListIntegrationsResponse](#api-ListIntegrationsResponse) - - [LoraCloudIntegration](#api-LoraCloudIntegration) - - [LoraCloudModemGeolocationServices](#api-LoraCloudModemGeolocationServices) - - [MyDevicesIntegration](#api-MyDevicesIntegration) - - [PilotThingsIntegration](#api-PilotThingsIntegration) - - [ThingsBoardIntegration](#api-ThingsBoardIntegration) - - [UpdateApplicationRequest](#api-UpdateApplicationRequest) - - [UpdateAwsSnsIntegrationRequest](#api-UpdateAwsSnsIntegrationRequest) - - [UpdateAzureServiceBusIntegrationRequest](#api-UpdateAzureServiceBusIntegrationRequest) - - [UpdateGcpPubSubIntegrationRequest](#api-UpdateGcpPubSubIntegrationRequest) - - [UpdateHttpIntegrationRequest](#api-UpdateHttpIntegrationRequest) - - [UpdateIftttIntegrationRequest](#api-UpdateIftttIntegrationRequest) - - [UpdateInfluxDbIntegrationRequest](#api-UpdateInfluxDbIntegrationRequest) - - [UpdateLoraCloudIntegrationRequest](#api-UpdateLoraCloudIntegrationRequest) - - [UpdateMyDevicesIntegrationRequest](#api-UpdateMyDevicesIntegrationRequest) - - [UpdatePilotThingsIntegrationRequest](#api-UpdatePilotThingsIntegrationRequest) - - [UpdateThingsBoardIntegrationRequest](#api-UpdateThingsBoardIntegrationRequest) - - - [Encoding](#api-Encoding) - - [InfluxDbPrecision](#api-InfluxDbPrecision) - - [InfluxDbVersion](#api-InfluxDbVersion) - - [IntegrationKind](#api-IntegrationKind) - - - [ApplicationService](#api-ApplicationService) - -- [api/device.proto](#api_device-proto) - - [ActivateDeviceRequest](#api-ActivateDeviceRequest) - - [CreateDeviceKeysRequest](#api-CreateDeviceKeysRequest) - - [CreateDeviceRequest](#api-CreateDeviceRequest) - - [DeactivateDeviceRequest](#api-DeactivateDeviceRequest) - - [DeleteDeviceKeysRequest](#api-DeleteDeviceKeysRequest) - - [DeleteDeviceRequest](#api-DeleteDeviceRequest) - - [Device](#api-Device) - - [Device.TagsEntry](#api-Device-TagsEntry) - - [Device.VariablesEntry](#api-Device-VariablesEntry) - - [DeviceActivation](#api-DeviceActivation) - - [DeviceKeys](#api-DeviceKeys) - - [DeviceListItem](#api-DeviceListItem) - - [DeviceQueueItem](#api-DeviceQueueItem) - - [DeviceState](#api-DeviceState) - - [DeviceStatus](#api-DeviceStatus) - - [EnqueueDeviceQueueItemRequest](#api-EnqueueDeviceQueueItemRequest) - - [EnqueueDeviceQueueItemResponse](#api-EnqueueDeviceQueueItemResponse) - - [FlushDevNoncesRequest](#api-FlushDevNoncesRequest) - - [FlushDeviceQueueRequest](#api-FlushDeviceQueueRequest) - - [GetDeviceActivationRequest](#api-GetDeviceActivationRequest) - - [GetDeviceActivationResponse](#api-GetDeviceActivationResponse) - - [GetDeviceKeysRequest](#api-GetDeviceKeysRequest) - - [GetDeviceKeysResponse](#api-GetDeviceKeysResponse) - - [GetDeviceLinkMetricsRequest](#api-GetDeviceLinkMetricsRequest) - - [GetDeviceLinkMetricsResponse](#api-GetDeviceLinkMetricsResponse) - - [GetDeviceMetricsRequest](#api-GetDeviceMetricsRequest) - - [GetDeviceMetricsResponse](#api-GetDeviceMetricsResponse) - - [GetDeviceMetricsResponse.MetricsEntry](#api-GetDeviceMetricsResponse-MetricsEntry) - - [GetDeviceMetricsResponse.StatesEntry](#api-GetDeviceMetricsResponse-StatesEntry) - - [GetDeviceNextFCntDownRequest](#api-GetDeviceNextFCntDownRequest) - - [GetDeviceNextFCntDownResponse](#api-GetDeviceNextFCntDownResponse) - - [GetDeviceQueueItemsRequest](#api-GetDeviceQueueItemsRequest) - - [GetDeviceQueueItemsResponse](#api-GetDeviceQueueItemsResponse) - - [GetDeviceRequest](#api-GetDeviceRequest) - - [GetDeviceResponse](#api-GetDeviceResponse) - - [GetRandomDevAddrRequest](#api-GetRandomDevAddrRequest) - - [GetRandomDevAddrResponse](#api-GetRandomDevAddrResponse) - - [ListDevicesRequest](#api-ListDevicesRequest) - - [ListDevicesResponse](#api-ListDevicesResponse) - - [UpdateDeviceKeysRequest](#api-UpdateDeviceKeysRequest) - - [UpdateDeviceRequest](#api-UpdateDeviceRequest) - - - [DeviceService](#api-DeviceService) - -- [api/device_profile.proto](#api_device_profile-proto) - - [AdrAlgorithmListItem](#api-AdrAlgorithmListItem) - - [CreateDeviceProfileRequest](#api-CreateDeviceProfileRequest) - - [CreateDeviceProfileResponse](#api-CreateDeviceProfileResponse) - - [DeleteDeviceProfileRequest](#api-DeleteDeviceProfileRequest) - - [DeviceProfile](#api-DeviceProfile) - - [DeviceProfile.MeasurementsEntry](#api-DeviceProfile-MeasurementsEntry) - - [DeviceProfile.TagsEntry](#api-DeviceProfile-TagsEntry) - - [DeviceProfileListItem](#api-DeviceProfileListItem) - - [GetDeviceProfileRequest](#api-GetDeviceProfileRequest) - - [GetDeviceProfileResponse](#api-GetDeviceProfileResponse) - - [ListDeviceProfileAdrAlgorithmsResponse](#api-ListDeviceProfileAdrAlgorithmsResponse) - - [ListDeviceProfilesRequest](#api-ListDeviceProfilesRequest) - - [ListDeviceProfilesResponse](#api-ListDeviceProfilesResponse) - - [Measurement](#api-Measurement) - - [UpdateDeviceProfileRequest](#api-UpdateDeviceProfileRequest) - - - [CadPeriodicity](#api-CadPeriodicity) - - [CodecRuntime](#api-CodecRuntime) - - [MeasurementKind](#api-MeasurementKind) - - [RelayModeActivation](#api-RelayModeActivation) - - [SecondChAckOffset](#api-SecondChAckOffset) - - - [DeviceProfileService](#api-DeviceProfileService) - -- [api/device_profile_template.proto](#api_device_profile_template-proto) - - [CreateDeviceProfileTemplateRequest](#api-CreateDeviceProfileTemplateRequest) - - [DeleteDeviceProfileTemplateRequest](#api-DeleteDeviceProfileTemplateRequest) - - [DeviceProfileTemplate](#api-DeviceProfileTemplate) - - [DeviceProfileTemplate.MeasurementsEntry](#api-DeviceProfileTemplate-MeasurementsEntry) - - [DeviceProfileTemplate.TagsEntry](#api-DeviceProfileTemplate-TagsEntry) - - [DeviceProfileTemplateListItem](#api-DeviceProfileTemplateListItem) - - [GetDeviceProfileTemplateRequest](#api-GetDeviceProfileTemplateRequest) - - [GetDeviceProfileTemplateResponse](#api-GetDeviceProfileTemplateResponse) - - [ListDeviceProfileTemplatesRequest](#api-ListDeviceProfileTemplatesRequest) - - [ListDeviceProfileTemplatesResponse](#api-ListDeviceProfileTemplatesResponse) - - [UpdateDeviceProfileTemplateRequest](#api-UpdateDeviceProfileTemplateRequest) - - - [DeviceProfileTemplateService](#api-DeviceProfileTemplateService) - -- [api/gateway.proto](#api_gateway-proto) - - [CreateGatewayRequest](#api-CreateGatewayRequest) - - [DeleteGatewayRequest](#api-DeleteGatewayRequest) - - [Gateway](#api-Gateway) - - [Gateway.MetadataEntry](#api-Gateway-MetadataEntry) - - [Gateway.TagsEntry](#api-Gateway-TagsEntry) - - [GatewayListItem](#api-GatewayListItem) - - [GatewayListItem.PropertiesEntry](#api-GatewayListItem-PropertiesEntry) - - [GenerateGatewayClientCertificateRequest](#api-GenerateGatewayClientCertificateRequest) - - [GenerateGatewayClientCertificateResponse](#api-GenerateGatewayClientCertificateResponse) - - [GetGatewayMetricsRequest](#api-GetGatewayMetricsRequest) - - [GetGatewayMetricsResponse](#api-GetGatewayMetricsResponse) - - [GetGatewayRequest](#api-GetGatewayRequest) - - [GetGatewayResponse](#api-GetGatewayResponse) - - [ListGatewaysRequest](#api-ListGatewaysRequest) - - [ListGatewaysResponse](#api-ListGatewaysResponse) - - [UpdateGatewayRequest](#api-UpdateGatewayRequest) - - - [GatewayState](#api-GatewayState) - - - [GatewayService](#api-GatewayService) - -- [api/multicast_group.proto](#api_multicast_group-proto) - - [AddDeviceToMulticastGroupRequest](#api-AddDeviceToMulticastGroupRequest) - - [AddGatewayToMulticastGroupRequest](#api-AddGatewayToMulticastGroupRequest) - - [CreateMulticastGroupRequest](#api-CreateMulticastGroupRequest) - - [CreateMulticastGroupResponse](#api-CreateMulticastGroupResponse) - - [DeleteMulticastGroupRequest](#api-DeleteMulticastGroupRequest) - - [EnqueueMulticastGroupQueueItemRequest](#api-EnqueueMulticastGroupQueueItemRequest) - - [EnqueueMulticastGroupQueueItemResponse](#api-EnqueueMulticastGroupQueueItemResponse) - - [FlushMulticastGroupQueueRequest](#api-FlushMulticastGroupQueueRequest) - - [GetMulticastGroupRequest](#api-GetMulticastGroupRequest) - - [GetMulticastGroupResponse](#api-GetMulticastGroupResponse) - - [ListMulticastGroupQueueRequest](#api-ListMulticastGroupQueueRequest) - - [ListMulticastGroupQueueResponse](#api-ListMulticastGroupQueueResponse) - - [ListMulticastGroupsRequest](#api-ListMulticastGroupsRequest) - - [ListMulticastGroupsResponse](#api-ListMulticastGroupsResponse) - - [MulticastGroup](#api-MulticastGroup) - - [MulticastGroupListItem](#api-MulticastGroupListItem) - - [MulticastGroupQueueItem](#api-MulticastGroupQueueItem) - - [RemoveDeviceFromMulticastGroupRequest](#api-RemoveDeviceFromMulticastGroupRequest) - - [RemoveGatewayFromMulticastGroupRequest](#api-RemoveGatewayFromMulticastGroupRequest) - - [UpdateMulticastGroupRequest](#api-UpdateMulticastGroupRequest) - - - [MulticastGroupSchedulingType](#api-MulticastGroupSchedulingType) - - [MulticastGroupType](#api-MulticastGroupType) - - - [MulticastGroupService](#api-MulticastGroupService) - -- [api/relay.proto](#api_relay-proto) - - [AddRelayDeviceRequest](#api-AddRelayDeviceRequest) - - [ListRelayDevicesRequest](#api-ListRelayDevicesRequest) - - [ListRelayDevicesResponse](#api-ListRelayDevicesResponse) - - [ListRelaysRequest](#api-ListRelaysRequest) - - [ListRelaysResponse](#api-ListRelaysResponse) - - [RelayDeviceListItem](#api-RelayDeviceListItem) - - [RelayListItem](#api-RelayListItem) - - [RemoveRelayDeviceRequest](#api-RemoveRelayDeviceRequest) - - - [RelayService](#api-RelayService) - -- [api/tenant.proto](#api_tenant-proto) - - [AddTenantUserRequest](#api-AddTenantUserRequest) - - [CreateTenantRequest](#api-CreateTenantRequest) - - [CreateTenantResponse](#api-CreateTenantResponse) - - [DeleteTenantRequest](#api-DeleteTenantRequest) - - [DeleteTenantUserRequest](#api-DeleteTenantUserRequest) - - [GetTenantRequest](#api-GetTenantRequest) - - [GetTenantResponse](#api-GetTenantResponse) - - [GetTenantUserRequest](#api-GetTenantUserRequest) - - [GetTenantUserResponse](#api-GetTenantUserResponse) - - [ListTenantUsersRequest](#api-ListTenantUsersRequest) - - [ListTenantUsersResponse](#api-ListTenantUsersResponse) - - [ListTenantsRequest](#api-ListTenantsRequest) - - [ListTenantsResponse](#api-ListTenantsResponse) - - [Tenant](#api-Tenant) - - [Tenant.TagsEntry](#api-Tenant-TagsEntry) - - [TenantListItem](#api-TenantListItem) - - [TenantUser](#api-TenantUser) - - [TenantUserListItem](#api-TenantUserListItem) - - [UpdateTenantRequest](#api-UpdateTenantRequest) - - [UpdateTenantUserRequest](#api-UpdateTenantUserRequest) - - - [TenantService](#api-TenantService) - -- [api/user.proto](#api_user-proto) - - [CreateUserRequest](#api-CreateUserRequest) - - [CreateUserResponse](#api-CreateUserResponse) - - [DeleteUserRequest](#api-DeleteUserRequest) - - [GetUserRequest](#api-GetUserRequest) - - [GetUserResponse](#api-GetUserResponse) - - [ListUsersRequest](#api-ListUsersRequest) - - [ListUsersResponse](#api-ListUsersResponse) - - [UpdateUserPasswordRequest](#api-UpdateUserPasswordRequest) - - [UpdateUserRequest](#api-UpdateUserRequest) - - [User](#api-User) - - [UserListItem](#api-UserListItem) - - [UserTenant](#api-UserTenant) - - - [UserService](#api-UserService) - -- [Scalar Value Types](#scalar-value-types) - - - - -

Top

- -## api/application.proto - - - - - -### Application - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Application ID (UUID). Note: on create this will be automatically generated. | -| name | [string](#string) | | Application name. | -| description | [string](#string) | | Application description. | -| tenant_id | [string](#string) | | Tenant ID (UUID). | -| tags | [Application.TagsEntry](#api-Application-TagsEntry) | repeated | Tags (user defined). These tags can be used to add additional information to the application. These tags are exposed in all the integration events of devices under this application. | - - - - - - - - -### Application.TagsEntry - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [string](#string) | | | - - - - - - - - -### ApplicationListItem - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Application ID (UUID). | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | -| name | [string](#string) | | Application name. | -| description | [string](#string) | | Application description. | - - - - - - - - -### AwsSnsIntegration - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | -| encoding | [Encoding](#api-Encoding) | | Encoding. | -| region | [string](#string) | | AWS region. | -| access_key_id | [string](#string) | | AWS Access Key ID. | -| secret_access_key | [string](#string) | | AWS Secret Access Key. | -| topic_arn | [string](#string) | | Topic ARN. | - - - - - - - - -### AzureServiceBusIntegration - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | -| encoding | [Encoding](#api-Encoding) | | Encoding. | -| connection_string | [string](#string) | | Connection string. | -| publish_name | [string](#string) | | Publish name. This is the name of the topic or queue. | - - - - - - - - -### CreateApplicationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application | [Application](#api-Application) | | Application object to create. | - - - - - - - - -### CreateApplicationResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### CreateAwsSnsIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [AwsSnsIntegration](#api-AwsSnsIntegration) | | Integration object to create. | - - - - - - - - -### CreateAzureServiceBusIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [AzureServiceBusIntegration](#api-AzureServiceBusIntegration) | | Integration object to create. | - - - - - - - - -### CreateGcpPubSubIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [GcpPubSubIntegration](#api-GcpPubSubIntegration) | | Integration object to create. | - - - - - - - - -### CreateHttpIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [HttpIntegration](#api-HttpIntegration) | | Integration object to create. | - - - - - - - - -### CreateIftttIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [IftttIntegration](#api-IftttIntegration) | | Integration object. | - - - - - - - - -### CreateInfluxDbIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [InfluxDbIntegration](#api-InfluxDbIntegration) | | Integration object to create. | - - - - - - - - -### CreateLoraCloudIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [LoraCloudIntegration](#api-LoraCloudIntegration) | | Integration object to create. | - - - - - - - - -### CreateMyDevicesIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [MyDevicesIntegration](#api-MyDevicesIntegration) | | Integration object to create. | - - - - - - - - -### CreatePilotThingsIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [PilotThingsIntegration](#api-PilotThingsIntegration) | | Integration object to create. | - - - - - - - - -### CreateThingsBoardIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [ThingsBoardIntegration](#api-ThingsBoardIntegration) | | Integration object to create. | - - - - - - - - -### DeleteApplicationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### DeleteAwsSnsIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### DeleteAzureServiceBusIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### DeleteGcpPubSubIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### DeleteHttpIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### DeleteIftttIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### DeleteInfluxDbIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### DeleteLoraCloudIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### DeleteMyDevicesIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### DeletePilotThingsIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### DeleteThingsBoardIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### GcpPubSubIntegration - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | -| encoding | [Encoding](#api-Encoding) | | Encoding. | -| credentials_file | [string](#string) | | Credentials file. This IAM service-account credentials file (JSON) must have the following Pub/Sub roles: * Pub/Sub Publisher | -| project_id | [string](#string) | | Project ID. | -| topic_name | [string](#string) | | Topic name. This is the name of the Pub/Sub topic. | - - - - - - - - -### GenerateMqttIntegrationClientCertificateRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### GenerateMqttIntegrationClientCertificateResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| tls_cert | [string](#string) | | TLS certificate. | -| tls_key | [string](#string) | | TLS key. | -| ca_cert | [string](#string) | | CA certificate. | -| expires_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Expires at defines the expiration date of the certificate. | - - - - - - - - -### GetApplicationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### GetApplicationResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application | [Application](#api-Application) | | Application object. | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | -| measurement_keys | [string](#string) | repeated | Measurement keys. This contains the measurement keys from all the device-profiles that are used by the devices under this application. | - - - - - - - - -### GetAwsSnsIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### GetAwsSnsIntegrationResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [AwsSnsIntegration](#api-AwsSnsIntegration) | | Integration object. | - - - - - - - - -### GetAzureServiceBusIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### GetAzureServiceBusIntegrationResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [AzureServiceBusIntegration](#api-AzureServiceBusIntegration) | | Integration object. | - - - - - - - - -### GetGcpPubSubIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### GetGcpPubSubIntegrationResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [GcpPubSubIntegration](#api-GcpPubSubIntegration) | | Integration object. | - - - - - - - - -### GetHttpIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### GetHttpIntegrationResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [HttpIntegration](#api-HttpIntegration) | | Integration object. | - - - - - - - - -### GetIftttIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### GetIftttIntegrationResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [IftttIntegration](#api-IftttIntegration) | | Integration object. | - - - - - - - - -### GetInfluxDbIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### GetInfluxDbIntegrationResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [InfluxDbIntegration](#api-InfluxDbIntegration) | | Integration object. | - - - - - - - - -### GetLoraCloudIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### GetLoraCloudIntegrationResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [LoraCloudIntegration](#api-LoraCloudIntegration) | | Integration object. | - - - - - - - - -### GetMyDevicesIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### GetMyDevicesIntegrationResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [MyDevicesIntegration](#api-MyDevicesIntegration) | | Integration object. | - - - - - - - - -### GetPilotThingsIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### GetPilotThingsIntegrationResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [PilotThingsIntegration](#api-PilotThingsIntegration) | | Integration object. | - - - - - - - - -### GetThingsBoardIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### GetThingsBoardIntegrationResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [ThingsBoardIntegration](#api-ThingsBoardIntegration) | | Integration object. | - - - - - - - - -### HttpIntegration - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | -| headers | [HttpIntegration.HeadersEntry](#api-HttpIntegration-HeadersEntry) | repeated | HTTP headers to set when making requests. | -| encoding | [Encoding](#api-Encoding) | | Payload encoding. | -| event_endpoint_url | [string](#string) | | 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. | - - - - - - - - -### HttpIntegration.HeadersEntry - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [string](#string) | | | - - - - - - - - -### IftttIntegration - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | -| key | [string](#string) | | Key. This key can be obtained from the IFTTT Webhooks documentation page. | -| uplink_values | [string](#string) | repeated | Values. Up to 2 values can be forwarded to IFTTT. These values must map to the decoded payload keys. For example: { "batteryLevel": 75.3, "buttons": [{"pressed": false}, {"pressed": true}] } You would specify the following fields: uplink_values = ["batteryLevel", "buttons_0_pressed"] - -Notes: The first value is always used for the DevEUI. Ignored if arbitrary_json is set to true. | -| arbitrary_json | [bool](#bool) | | Arbitrary JSON. If set to true, ChirpStack events will be sent as-is as arbitrary JSON payload. If set to false (default), the 3 JSON values format will be used. | -| event_prefix | [string](#string) | | Event prefix. If set, the event name will be PREFIX_EVENT. For example if event_prefix is set to weatherstation, and uplink event will be sent as weatherstation_up to the IFTTT webhook. Note: Only characters in the A-Z, a-z and 0-9 range are allowed. | - - - - - - - - -### InfluxDbIntegration - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | -| endpoint | [string](#string) | | InfluxDb API write endpoint (e.g. http://localhost:8086/write). | -| db | [string](#string) | | InfluxDb database name. (InfluxDb v1) | -| username | [string](#string) | | InfluxDb username. (InfluxDb v1) | -| password | [string](#string) | | InfluxDb password. (InfluxDb v1) | -| retention_policy_name | [string](#string) | | InfluxDb retention policy name. (InfluxDb v1) | -| precision | [InfluxDbPrecision](#api-InfluxDbPrecision) | | InfluxDb timestamp precision (InfluxDb v1). | -| version | [InfluxDbVersion](#api-InfluxDbVersion) | | InfluxDb version. | -| token | [string](#string) | | Token. (InfluxDb v2) | -| organization | [string](#string) | | Organization. (InfluxDb v2) | -| bucket | [string](#string) | | Bucket. (InfluxDb v2) | - - - - - - - - -### IntegrationListItem - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| kind | [IntegrationKind](#api-IntegrationKind) | | Integration kind. | - - - - - - - - -### ListApplicationsRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| limit | [uint32](#uint32) | | Max number of applications to return in the result-set. | -| offset | [uint32](#uint32) | | Offset in the result-set (for pagination). | -| search | [string](#string) | | If set, the given string will be used to search on name (optional). | -| tenant_id | [string](#string) | | Tenant ID to list the applications for. | - - - - - - - - -### ListApplicationsResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| total_count | [uint32](#uint32) | | Total number of applications. | -| result | [ApplicationListItem](#api-ApplicationListItem) | repeated | Result-set. | - - - - - - - - -### ListIntegrationsRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### ListIntegrationsResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| total_count | [uint32](#uint32) | | Total number of integrations available within the result-set. | -| result | [IntegrationListItem](#api-IntegrationListItem) | repeated | Integrations within result-set. | - - - - - - - - -### LoraCloudIntegration - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | -| modem_geolocation_services | [LoraCloudModemGeolocationServices](#api-LoraCloudModemGeolocationServices) | | Modem & Geolocation Services configuration. | - - - - - - - - -### LoraCloudModemGeolocationServices - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| token | [string](#string) | | API token. | -| modem_enabled | [bool](#bool) | | Device implements Modem / Modem-E stack. | -| forward_f_ports | [uint32](#uint32) | repeated | Forward FPorts. Forward uplink messages matching the given FPorts to the MGS. | -| gnss_use_rx_time | [bool](#bool) | | Use rx time for GNSS resolving. In case this is set to true, the MGS resolver will use the RX time of the network instead of the timestamp included in the LR1110 payload. | -| gnss_use_gateway_location | [bool](#bool) | | Use gateway location for GNSS resolving. In the case this is set to true, ChirpStack will provide the location of one of the gateways to the MGS resolver to aid the resolving process. Disable this in case the gateway location is not accurate / incorrectly configured as an incorrect location will cause the resolver to return an error. | -| parse_tlv | [bool](#bool) | | Parse TLV records. If enabled, stream records (expected in TLV format) are scanned for GNSS data (0x06 or 0x07). If found, ChirpStack will make an additional geolocation call to the MGS API for resolving the location of the detected payload. | -| geolocation_buffer_ttl | [uint32](#uint32) | | Geolocation buffer TTL (in seconds). If > 0, uplink RX meta-data will be stored in a buffer so that the meta-data of multiple uplinks can be used for geolocation. | -| geolocation_min_buffer_size | [uint32](#uint32) | | Geolocation minimum buffer size. If > 0, geolocation will only be performed when the buffer has at least the given size. | -| geolocation_tdoa | [bool](#bool) | | TDOA based geolocation is enabled. | -| geolocation_rssi | [bool](#bool) | | RSSI based geolocation is enabled. | -| geolocation_gnss | [bool](#bool) | | GNSS based geolocation is enabled (LR1110). | -| geolocation_gnss_payload_field | [string](#string) | | GNSS payload field. This holds the name of the field in the decoded payload object which contains the GNSS payload bytes (as HEX string). | -| geolocation_gnss_use_rx_time | [bool](#bool) | | 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. | -| geolocation_wifi | [bool](#bool) | | Wifi based geolocation is enabled. | -| geolocation_wifi_payload_field | [string](#string) | | 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) | - - - - - - - - -### MyDevicesIntegration - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | -| endpoint | [string](#string) | | myDevices API endpoint. | - - - - - - - - -### PilotThingsIntegration - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | -| server | [string](#string) | | Server URL. | -| token | [string](#string) | | Authentication token. | - - - - - - - - -### ThingsBoardIntegration - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application_id | [string](#string) | | Application ID (UUID). | -| server | [string](#string) | | ThingsBoard server endpoint, e.g. https://example.com | - - - - - - - - -### UpdateApplicationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| application | [Application](#api-Application) | | Application object. | - - - - - - - - -### UpdateAwsSnsIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [AwsSnsIntegration](#api-AwsSnsIntegration) | | Integration object to update. | - - - - - - - - -### UpdateAzureServiceBusIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [AzureServiceBusIntegration](#api-AzureServiceBusIntegration) | | Integration object to create. | - - - - - - - - -### UpdateGcpPubSubIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [GcpPubSubIntegration](#api-GcpPubSubIntegration) | | Integration object to update. | - - - - - - - - -### UpdateHttpIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [HttpIntegration](#api-HttpIntegration) | | Integration object to update. | - - - - - - - - -### UpdateIftttIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [IftttIntegration](#api-IftttIntegration) | | Integration object to update. | - - - - - - - - -### UpdateInfluxDbIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [InfluxDbIntegration](#api-InfluxDbIntegration) | | Integration object to update. | - - - - - - - - -### UpdateLoraCloudIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [LoraCloudIntegration](#api-LoraCloudIntegration) | | Integration object to update. | - - - - - - - - -### UpdateMyDevicesIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [MyDevicesIntegration](#api-MyDevicesIntegration) | | Integration object to update. | - - - - - - - - -### UpdatePilotThingsIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [PilotThingsIntegration](#api-PilotThingsIntegration) | | Integration object to update. | - - - - - - - - -### UpdateThingsBoardIntegrationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| integration | [ThingsBoardIntegration](#api-ThingsBoardIntegration) | | Integration object to update. | - - - - - - - - - - -### Encoding - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| JSON | 0 | | -| PROTOBUF | 1 | | - - - - - -### InfluxDbPrecision - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NS | 0 | | -| U | 1 | | -| MS | 2 | | -| S | 3 | | -| M | 4 | | -| H | 5 | | - - - - - -### InfluxDbVersion - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| INFLUXDB_1 | 0 | | -| INFLUXDB_2 | 1 | | - - - - - -### IntegrationKind - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| HTTP | 0 | | -| INFLUX_DB | 1 | | -| THINGS_BOARD | 2 | | -| MY_DEVICES | 3 | | -| LORA_CLOUD | 4 | | -| GCP_PUB_SUB | 5 | | -| AWS_SNS | 6 | | -| AZURE_SERVICE_BUS | 7 | | -| PILOT_THINGS | 8 | | -| MQTT_GLOBAL | 9 | | -| IFTTT | 10 | | - - - - - - - - - -### ApplicationService -ApplicationService is the service providing API methods for managing -applications. - -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| Create | [CreateApplicationRequest](#api-CreateApplicationRequest) | [CreateApplicationResponse](#api-CreateApplicationResponse) | Create creates the given application. | -| Get | [GetApplicationRequest](#api-GetApplicationRequest) | [GetApplicationResponse](#api-GetApplicationResponse) | Get the application for the given ID. | -| Update | [UpdateApplicationRequest](#api-UpdateApplicationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update updates the given application. | -| Delete | [DeleteApplicationRequest](#api-DeleteApplicationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete the application for the given ID. | -| List | [ListApplicationsRequest](#api-ListApplicationsRequest) | [ListApplicationsResponse](#api-ListApplicationsResponse) | Get the list of applications. | -| ListIntegrations | [ListIntegrationsRequest](#api-ListIntegrationsRequest) | [ListIntegrationsResponse](#api-ListIntegrationsResponse) | List all configured integrations. | -| CreateHttpIntegration | [CreateHttpIntegrationRequest](#api-CreateHttpIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Create HTTP integration. | -| GetHttpIntegration | [GetHttpIntegrationRequest](#api-GetHttpIntegrationRequest) | [GetHttpIntegrationResponse](#api-GetHttpIntegrationResponse) | Get the configured HTTP integration. | -| UpdateHttpIntegration | [UpdateHttpIntegrationRequest](#api-UpdateHttpIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update the HTTP integration. | -| DeleteHttpIntegration | [DeleteHttpIntegrationRequest](#api-DeleteHttpIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete the HTTP integration. | -| CreateInfluxDbIntegration | [CreateInfluxDbIntegrationRequest](#api-CreateInfluxDbIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Create InfluxDb integration. | -| GetInfluxDbIntegration | [GetInfluxDbIntegrationRequest](#api-GetInfluxDbIntegrationRequest) | [GetInfluxDbIntegrationResponse](#api-GetInfluxDbIntegrationResponse) | Get InfluxDb integration. | -| UpdateInfluxDbIntegration | [UpdateInfluxDbIntegrationRequest](#api-UpdateInfluxDbIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update InfluxDb integration. | -| DeleteInfluxDbIntegration | [DeleteInfluxDbIntegrationRequest](#api-DeleteInfluxDbIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete InfluxDb integration. | -| CreateThingsBoardIntegration | [CreateThingsBoardIntegrationRequest](#api-CreateThingsBoardIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Create ThingsBoard integration. | -| GetThingsBoardIntegration | [GetThingsBoardIntegrationRequest](#api-GetThingsBoardIntegrationRequest) | [GetThingsBoardIntegrationResponse](#api-GetThingsBoardIntegrationResponse) | Get ThingsBoard integration. | -| UpdateThingsBoardIntegration | [UpdateThingsBoardIntegrationRequest](#api-UpdateThingsBoardIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update ThingsBoard integration. | -| DeleteThingsBoardIntegration | [DeleteThingsBoardIntegrationRequest](#api-DeleteThingsBoardIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete ThingsBoard integration. | -| CreateMyDevicesIntegration | [CreateMyDevicesIntegrationRequest](#api-CreateMyDevicesIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Create myDevices integration. | -| GetMyDevicesIntegration | [GetMyDevicesIntegrationRequest](#api-GetMyDevicesIntegrationRequest) | [GetMyDevicesIntegrationResponse](#api-GetMyDevicesIntegrationResponse) | Get myDevices integration. | -| UpdateMyDevicesIntegration | [UpdateMyDevicesIntegrationRequest](#api-UpdateMyDevicesIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update myDevices integration. | -| DeleteMyDevicesIntegration | [DeleteMyDevicesIntegrationRequest](#api-DeleteMyDevicesIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete myDevices integration. | -| CreateLoraCloudIntegration | [CreateLoraCloudIntegrationRequest](#api-CreateLoraCloudIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Create LoRaCloud integration. | -| GetLoraCloudIntegration | [GetLoraCloudIntegrationRequest](#api-GetLoraCloudIntegrationRequest) | [GetLoraCloudIntegrationResponse](#api-GetLoraCloudIntegrationResponse) | Get LoRaCloud integration. | -| UpdateLoraCloudIntegration | [UpdateLoraCloudIntegrationRequest](#api-UpdateLoraCloudIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update LoRaCloud integration. | -| DeleteLoraCloudIntegration | [DeleteLoraCloudIntegrationRequest](#api-DeleteLoraCloudIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete LoRaCloud integration. | -| CreateGcpPubSubIntegration | [CreateGcpPubSubIntegrationRequest](#api-CreateGcpPubSubIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Create GCP Pub/Sub integration. | -| GetGcpPubSubIntegration | [GetGcpPubSubIntegrationRequest](#api-GetGcpPubSubIntegrationRequest) | [GetGcpPubSubIntegrationResponse](#api-GetGcpPubSubIntegrationResponse) | Get GCP Pub/Sub integration. | -| UpdateGcpPubSubIntegration | [UpdateGcpPubSubIntegrationRequest](#api-UpdateGcpPubSubIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update GCP Pub/Sub integration. | -| DeleteGcpPubSubIntegration | [DeleteGcpPubSubIntegrationRequest](#api-DeleteGcpPubSubIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete GCP Pub/Sub integration. | -| CreateAwsSnsIntegration | [CreateAwsSnsIntegrationRequest](#api-CreateAwsSnsIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Create AWS SNS integration. | -| GetAwsSnsIntegration | [GetAwsSnsIntegrationRequest](#api-GetAwsSnsIntegrationRequest) | [GetAwsSnsIntegrationResponse](#api-GetAwsSnsIntegrationResponse) | Get AWS SNS integration. | -| UpdateAwsSnsIntegration | [UpdateAwsSnsIntegrationRequest](#api-UpdateAwsSnsIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update AWS SNS integration. | -| DeleteAwsSnsIntegration | [DeleteAwsSnsIntegrationRequest](#api-DeleteAwsSnsIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete AWS SNS integration. | -| CreateAzureServiceBusIntegration | [CreateAzureServiceBusIntegrationRequest](#api-CreateAzureServiceBusIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Create Azure Service-Bus integration. | -| GetAzureServiceBusIntegration | [GetAzureServiceBusIntegrationRequest](#api-GetAzureServiceBusIntegrationRequest) | [GetAzureServiceBusIntegrationResponse](#api-GetAzureServiceBusIntegrationResponse) | Get Azure Service-Bus integration. | -| UpdateAzureServiceBusIntegration | [UpdateAzureServiceBusIntegrationRequest](#api-UpdateAzureServiceBusIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update Azure Service-Bus integration. | -| DeleteAzureServiceBusIntegration | [DeleteAzureServiceBusIntegrationRequest](#api-DeleteAzureServiceBusIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete Azure Service-Bus integration. | -| CreatePilotThingsIntegration | [CreatePilotThingsIntegrationRequest](#api-CreatePilotThingsIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Create Pilot Things integration. | -| GetPilotThingsIntegration | [GetPilotThingsIntegrationRequest](#api-GetPilotThingsIntegrationRequest) | [GetPilotThingsIntegrationResponse](#api-GetPilotThingsIntegrationResponse) | Get Pilot Things integration. | -| UpdatePilotThingsIntegration | [UpdatePilotThingsIntegrationRequest](#api-UpdatePilotThingsIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update Pilot Things integration. | -| DeletePilotThingsIntegration | [DeletePilotThingsIntegrationRequest](#api-DeletePilotThingsIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete Pilot Things integration. | -| CreateIftttIntegration | [CreateIftttIntegrationRequest](#api-CreateIftttIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Create IFTTT integration. | -| GetIftttIntegration | [GetIftttIntegrationRequest](#api-GetIftttIntegrationRequest) | [GetIftttIntegrationResponse](#api-GetIftttIntegrationResponse) | Get IFTTT integration. | -| UpdateIftttIntegration | [UpdateIftttIntegrationRequest](#api-UpdateIftttIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update IFTTT integration. | -| DeleteIftttIntegration | [DeleteIftttIntegrationRequest](#api-DeleteIftttIntegrationRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete IFTTT integration. | -| GenerateMqttIntegrationClientCertificate | [GenerateMqttIntegrationClientCertificateRequest](#api-GenerateMqttIntegrationClientCertificateRequest) | [GenerateMqttIntegrationClientCertificateResponse](#api-GenerateMqttIntegrationClientCertificateResponse) | Generates application ID specific client-certificate. | - - - - - - -

Top

- -## api/device.proto - - - - - -### ActivateDeviceRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| device_activation | [DeviceActivation](#api-DeviceActivation) | | Device activation object. | - - - - - - - - -### CreateDeviceKeysRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| device_keys | [DeviceKeys](#api-DeviceKeys) | | Device-keys object. | - - - - - - - - -### CreateDeviceRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| device | [Device](#api-Device) | | Device object. | - - - - - - - - -### DeactivateDeviceRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | DevEUI (EUI64). | - - - - - - - - -### DeleteDeviceKeysRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | DevEUI (EUI64). | - - - - - - - - -### DeleteDeviceRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | DevEUI (EUI64). | - - - - - - - - -### Device - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | DevEUI (EUI64). | -| name | [string](#string) | | Name. | -| description | [string](#string) | | Description. | -| application_id | [string](#string) | | Application ID (UUID). | -| device_profile_id | [string](#string) | | Device-profile ID (UUID). | -| skip_fcnt_check | [bool](#bool) | | Skip frame-counter checks (this is insecure, but could be helpful for debugging). | -| is_disabled | [bool](#bool) | | Device is disabled. | -| variables | [Device.VariablesEntry](#api-Device-VariablesEntry) | repeated | 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. | -| tags | [Device.TagsEntry](#api-Device-TagsEntry) | repeated | Tags (user defined). These tags can be used to add additional information to the device. These tags are exposed in all the integration events. | -| join_eui | [string](#string) | | JoinEUI (optional, EUI64). This field will be automatically set / updated on OTAA. However, in some cases it must be pre-configured. For example to allow OTAA using a Relay. In this case the Relay needs to know the JoinEUI + DevEUI combinations of the devices for which it needs to forward uplinks. | - - - - - - - - -### Device.TagsEntry - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [string](#string) | | | - - - - - - - - -### Device.VariablesEntry - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [string](#string) | | | - - - - - - - - -### DeviceActivation - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | Device EUI (EUI64). | -| dev_addr | [string](#string) | | Device address (HEX encoded). | -| app_s_key | [string](#string) | | Application session key (HEX encoded). | -| nwk_s_enc_key | [string](#string) | | Network session encryption key (HEX encoded). | -| s_nwk_s_int_key | [string](#string) | | Serving network session integrity key (HEX encoded). | -| f_nwk_s_int_key | [string](#string) | | Forwarding network session integrity key (HEX encoded). | -| f_cnt_up | [uint32](#uint32) | | Uplink frame-counter. | -| n_f_cnt_down | [uint32](#uint32) | | Downlink network frame-counter. | -| a_f_cnt_down | [uint32](#uint32) | | Downlink application frame-counter. | - - - - - - - - -### DeviceKeys - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | DevEUI (EUI64). | -| nwk_key | [string](#string) | | Network root key (128 bit). Note: For LoRaWAN 1.0.x, use this field for the LoRaWAN 1.0.x 'AppKey`! | -| app_key | [string](#string) | | Application root key (128 bit). Note: This field only needs to be set for LoRaWAN 1.1.x devices! | - - - - - - - - -### DeviceListItem - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | DevEUI (EUI64). | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | -| last_seen_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last seen at timestamp. | -| name | [string](#string) | | Name. | -| description | [string](#string) | | Description. | -| device_profile_id | [string](#string) | | Device-profile ID (UUID). | -| device_profile_name | [string](#string) | | Device-profile name. | -| device_status | [DeviceStatus](#api-DeviceStatus) | | Device status. | - - - - - - - - -### DeviceQueueItem - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | ID (UUID). This is automatically generated on enqueue. | -| dev_eui | [string](#string) | | Device EUI (EUI64). | -| confirmed | [bool](#bool) | | Confirmed. | -| f_port | [uint32](#uint32) | | FPort (must be > 0). | -| data | [bytes](#bytes) | | Data. Or use the json_object field when a codec has been configured. | -| object | [google.protobuf.Struct](#google-protobuf-Struct) | | Only use this when a codec has been configured that can encode this object to bytes. | -| is_pending | [bool](#bool) | | Is pending. This is set by ChirpStack to true when the downlink is pending (e.g. it has been sent, but a confirmation is still pending). | -| f_cnt_down | [uint32](#uint32) | | Downlink frame-counter. Do not set this for plain-text data payloads. It will be automatically set by ChirpStack when the payload has been sent as downlink. | -| is_encrypted | [bool](#bool) | | Is encrypted. This must be set to true if the end-application has already encrypted the data payload. In this case, the f_cnt_down field must be set to the corresponding frame-counter which has been used during the encryption. | - - - - - - - - -### DeviceState - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| name | [string](#string) | | Name. | -| value | [string](#string) | | Value. | - - - - - - - - -### DeviceStatus - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| margin | [int32](#int32) | | The device margin status -32..32: The demodulation SNR ration in dB | -| external_power_source | [bool](#bool) | | Device is connected to an external power source. | -| battery_level | [float](#float) | | Device battery level as a percentage. -1 when the battery level is not available. | - - - - - - - - -### EnqueueDeviceQueueItemRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| queue_item | [DeviceQueueItem](#api-DeviceQueueItem) | | | - - - - - - - - -### EnqueueDeviceQueueItemResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | ID (UUID). | - - - - - - - - -### FlushDevNoncesRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | Device EUI (EUI64). | - - - - - - - - -### FlushDeviceQueueRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | Device EUI (EUI64). | - - - - - - - - -### GetDeviceActivationRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | DevEUI (EUI64). | - - - - - - - - -### GetDeviceActivationResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| device_activation | [DeviceActivation](#api-DeviceActivation) | | Device activation object. | -| join_server_context | [common.JoinServerContext](#common-JoinServerContext) | | Join-Server context. A non-empty value indicatest that ChirpStack does not have access to the AppSKey and that the encryption / decryption of the payloads is the responsibility of the end-application. | - - - - - - - - -### GetDeviceKeysRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | DevEUI (EUI64). | - - - - - - - - -### GetDeviceKeysResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| device_keys | [DeviceKeys](#api-DeviceKeys) | | Device-keys object. | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | - - - - - - - - -### GetDeviceLinkMetricsRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | DevEUI (EUI64). | -| start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Interval start timestamp. | -| end | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Interval end timestamp. | -| aggregation | [common.Aggregation](#common-Aggregation) | | Aggregation. | - - - - - - - - -### GetDeviceLinkMetricsResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| rx_packets | [common.Metric](#common-Metric) | | Packets received from the device. | -| gw_rssi | [common.Metric](#common-Metric) | | RSSI (as reported by the gateway(s)). | -| gw_snr | [common.Metric](#common-Metric) | | SNR (as reported by the gateway(s)). | -| rx_packets_per_freq | [common.Metric](#common-Metric) | | Packets received by frequency. | -| rx_packets_per_dr | [common.Metric](#common-Metric) | | Packets received by DR. | -| errors | [common.Metric](#common-Metric) | | Errors. | - - - - - - - - -### GetDeviceMetricsRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | DevEUI (EUI64). | -| start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Interval start timestamp. | -| end | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Interval end timestamp. | -| aggregation | [common.Aggregation](#common-Aggregation) | | Aggregation. | - - - - - - - - -### GetDeviceMetricsResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| metrics | [GetDeviceMetricsResponse.MetricsEntry](#api-GetDeviceMetricsResponse-MetricsEntry) | repeated | | -| states | [GetDeviceMetricsResponse.StatesEntry](#api-GetDeviceMetricsResponse-StatesEntry) | repeated | | - - - - - - - - -### GetDeviceMetricsResponse.MetricsEntry - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [common.Metric](#common-Metric) | | | - - - - - - - - -### GetDeviceMetricsResponse.StatesEntry - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [DeviceState](#api-DeviceState) | | | - - - - - - - - -### GetDeviceNextFCntDownRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | Device EUI (EUI64). | - - - - - - - - -### GetDeviceNextFCntDownResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| f_cnt_down | [uint32](#uint32) | | FCntDown. | - - - - - - - - -### GetDeviceQueueItemsRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | Device EUI (EUI64). | -| count_only | [bool](#bool) | | Return only the count, not the result-set. | - - - - - - - - -### GetDeviceQueueItemsResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| total_count | [uint32](#uint32) | | Total number of queue items. | -| result | [DeviceQueueItem](#api-DeviceQueueItem) | repeated | Result-set. | - - - - - - - - -### GetDeviceRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | DevEUI (EUI64). | - - - - - - - - -### GetDeviceResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| device | [Device](#api-Device) | | Device object. | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | -| last_seen_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last seen at timestamp. | -| device_status | [DeviceStatus](#api-DeviceStatus) | | Device status. | -| class_enabled | [common.DeviceClass](#common-DeviceClass) | | Enabled device class. | - - - - - - - - -### GetRandomDevAddrRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | DevEUI (EUI64). | - - - - - - - - -### GetRandomDevAddrResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_addr | [string](#string) | | DevAddr. | - - - - - - - - -### ListDevicesRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| limit | [uint32](#uint32) | | Max number of devices to return in the result-set. | -| offset | [uint32](#uint32) | | Offset in the result-set (for pagination). | -| search | [string](#string) | | If set, the given string will be used to search on name (optional). | -| application_id | [string](#string) | | Application ID (UUID) to filter devices on. | -| multicast_group_id | [string](#string) | | Multicst-group ID (UUID) to filter devices on. | - - - - - - - - -### ListDevicesResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| total_count | [uint32](#uint32) | | Total number of devices. | -| result | [DeviceListItem](#api-DeviceListItem) | repeated | Result-set. | - - - - - - - - -### UpdateDeviceKeysRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| device_keys | [DeviceKeys](#api-DeviceKeys) | | Device-keys object. | - - - - - - - - -### UpdateDeviceRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| device | [Device](#api-Device) | | Device object. | - - - - - - - - - - - - - - -### DeviceService -DeviceService is the service providing API methods for managing devices. - -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| Create | [CreateDeviceRequest](#api-CreateDeviceRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Create the given device. | -| Get | [GetDeviceRequest](#api-GetDeviceRequest) | [GetDeviceResponse](#api-GetDeviceResponse) | Get returns the device for the given DevEUI. | -| Update | [UpdateDeviceRequest](#api-UpdateDeviceRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update the given device. | -| Delete | [DeleteDeviceRequest](#api-DeleteDeviceRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete the device with the given DevEUI. | -| List | [ListDevicesRequest](#api-ListDevicesRequest) | [ListDevicesResponse](#api-ListDevicesResponse) | Get the list of devices. | -| CreateKeys | [CreateDeviceKeysRequest](#api-CreateDeviceKeysRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Create the given device-keys. | -| GetKeys | [GetDeviceKeysRequest](#api-GetDeviceKeysRequest) | [GetDeviceKeysResponse](#api-GetDeviceKeysResponse) | Get the device-keys for the given DevEUI. | -| UpdateKeys | [UpdateDeviceKeysRequest](#api-UpdateDeviceKeysRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update the given device-keys. | -| DeleteKeys | [DeleteDeviceKeysRequest](#api-DeleteDeviceKeysRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete the device-keys for the given DevEUI. | -| FlushDevNonces | [FlushDevNoncesRequest](#api-FlushDevNoncesRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | FlushDevNonces flushes the OTAA device nonces. | -| Activate | [ActivateDeviceRequest](#api-ActivateDeviceRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Activate (re)activates the device with the given parameters (for ABP or for importing OTAA activations). | -| Deactivate | [DeactivateDeviceRequest](#api-DeactivateDeviceRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Deactivate de-activates the device. | -| GetActivation | [GetDeviceActivationRequest](#api-GetDeviceActivationRequest) | [GetDeviceActivationResponse](#api-GetDeviceActivationResponse) | GetActivation returns the current activation details of the device (OTAA or ABP). | -| GetRandomDevAddr | [GetRandomDevAddrRequest](#api-GetRandomDevAddrRequest) | [GetRandomDevAddrResponse](#api-GetRandomDevAddrResponse) | GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into account. | -| GetMetrics | [GetDeviceMetricsRequest](#api-GetDeviceMetricsRequest) | [GetDeviceMetricsResponse](#api-GetDeviceMetricsResponse) | GetMetrics returns the device metrics. Note that this requires a device-profile with codec and measurements configured. | -| GetLinkMetrics | [GetDeviceLinkMetricsRequest](#api-GetDeviceLinkMetricsRequest) | [GetDeviceLinkMetricsResponse](#api-GetDeviceLinkMetricsResponse) | GetLinkMetrics returns the device link metrics. This includes uplinks, downlinks, RSSI, SNR, etc... | -| Enqueue | [EnqueueDeviceQueueItemRequest](#api-EnqueueDeviceQueueItemRequest) | [EnqueueDeviceQueueItemResponse](#api-EnqueueDeviceQueueItemResponse) | Enqueue adds the given item to the downlink queue. | -| FlushQueue | [FlushDeviceQueueRequest](#api-FlushDeviceQueueRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | FlushQueue flushes the downlink device-queue. | -| GetQueue | [GetDeviceQueueItemsRequest](#api-GetDeviceQueueItemsRequest) | [GetDeviceQueueItemsResponse](#api-GetDeviceQueueItemsResponse) | GetQueue returns the downlink device-queue. | -| GetNextFCntDown | [GetDeviceNextFCntDownRequest](#api-GetDeviceNextFCntDownRequest) | [GetDeviceNextFCntDownResponse](#api-GetDeviceNextFCntDownResponse) | GetNextFCntDown returns the next FCntDown to use for enqueing encrypted downlinks. The difference with the DeviceActivation f_cont_down is that this method takes potential existing queue-items into account. | - - - - - - -

Top

- -## api/device_profile.proto - - - - - -### AdrAlgorithmListItem - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Algorithm ID. | -| name | [string](#string) | | Algorithm name. | - - - - - - - - -### CreateDeviceProfileRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| device_profile | [DeviceProfile](#api-DeviceProfile) | | Object to create. | - - - - - - - - -### CreateDeviceProfileResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | ID (UUID). | - - - - - - - - -### DeleteDeviceProfileRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | ID (UUID). | - - - - - - - - -### DeviceProfile - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Device-profile ID (UUID). Note: on create this will be automatically generated. | -| tenant_id | [string](#string) | | Tenant ID (UUID). | -| name | [string](#string) | | Name. | -| description | [string](#string) | | Description. | -| region | [common.Region](#common-Region) | | Region. | -| mac_version | [common.MacVersion](#common-MacVersion) | | LoRaWAN mac-version. | -| reg_params_revision | [common.RegParamsRevision](#common-RegParamsRevision) | | Regional parameters revision. | -| adr_algorithm_id | [string](#string) | | ADR algorithm ID. | -| payload_codec_runtime | [CodecRuntime](#api-CodecRuntime) | | Payload codec runtime. | -| payload_codec_script | [string](#string) | | Payload codec script. | -| flush_queue_on_activate | [bool](#bool) | | Flush queue on device activation. | -| uplink_interval | [uint32](#uint32) | | Uplink interval (seconds). This defines the expected uplink interval which the device uses for communication. If the uplink interval has expired and no uplink has been received, the device is considered inactive. | -| device_status_req_interval | [uint32](#uint32) | | Device-status request interval (times / day). This defines the times per day that ChirpStack will request the device-status from the device. | -| supports_otaa | [bool](#bool) | | Supports OTAA. | -| supports_class_b | [bool](#bool) | | Supports Class B. | -| supports_class_c | [bool](#bool) | | Supports Class-C. | -| class_b_timeout | [uint32](#uint32) | | Class-B timeout (seconds). This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). | -| class_b_ping_slot_nb_k | [uint32](#uint32) | | Class-B ping-slots per beacon period. Valid options are: 0 - 7. - -The actual number of ping-slots per beacon period equals to 2^k. | -| class_b_ping_slot_dr | [uint32](#uint32) | | Class-B ping-slot DR. | -| class_b_ping_slot_freq | [uint32](#uint32) | | Class-B ping-slot freq (Hz). | -| class_c_timeout | [uint32](#uint32) | | Class-C timeout (seconds). This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). | -| abp_rx1_delay | [uint32](#uint32) | | RX1 delay (for ABP). | -| abp_rx1_dr_offset | [uint32](#uint32) | | RX1 DR offset (for ABP). | -| abp_rx2_dr | [uint32](#uint32) | | RX2 DR (for ABP). | -| abp_rx2_freq | [uint32](#uint32) | | RX2 frequency (for ABP, Hz). | -| tags | [DeviceProfile.TagsEntry](#api-DeviceProfile-TagsEntry) | repeated | Tags (user defined). These tags can be used to add additional information the the device-profile. These tags are exposed in all the integration events of devices using this device-profile. | -| measurements | [DeviceProfile.MeasurementsEntry](#api-DeviceProfile-MeasurementsEntry) | repeated | Measurements. If defined, ChirpStack will visualize these metrics in the web-interface. | -| auto_detect_measurements | [bool](#bool) | | Auto-detect measurements. If set to true, measurements will be automatically added based on the keys of the decoded payload. In cases where the decoded payload contains random keys in the data, you want to set this to false. | -| region_config_id | [string](#string) | | Region configuration ID. If set, devices will only use the associated region. If let blank, then devices will use all regions matching the selected common-name. Note that multiple region configurations can exist for the same common-name, e.g. to provide an 8 channel and 16 channel configuration for the US915 band. | -| is_relay | [bool](#bool) | | Device is a Relay device. Enable this in case the device is a Relay. A Relay device implements TS011 and is able to relay data from relay capable devices. See for more information the TS011 specification. | -| is_relay_ed | [bool](#bool) | | Device is a Relay end-device. Enable this in case the device is an end-device that can operate under a Relay. Please refer to the TS011 specification for more information. | -| relay_ed_relay_only | [bool](#bool) | | End-device only accept data through relay. Only accept data for this device through a relay. This setting is useful for testing as in case of a test-setup, the end-device is usually within range of the gateway. | -| relay_enabled | [bool](#bool) | | Relay must be enabled. | -| relay_cad_periodicity | [CadPeriodicity](#api-CadPeriodicity) | | Relay CAD periodicity. | -| relay_default_channel_index | [uint32](#uint32) | | Relay default channel index. Valid values are 0 and 1, please refer to the RP002 specification for the meaning of these values. | -| relay_second_channel_freq | [uint32](#uint32) | | Relay second channel frequency (Hz). | -| relay_second_channel_dr | [uint32](#uint32) | | Relay second channel DR. | -| relay_second_channel_ack_offset | [SecondChAckOffset](#api-SecondChAckOffset) | | Relay second channel ACK offset. | -| relay_ed_activation_mode | [RelayModeActivation](#api-RelayModeActivation) | | Relay end-device activation mode. | -| relay_ed_smart_enable_level | [uint32](#uint32) | | Relay end-device smart-enable level. | -| relay_ed_back_off | [uint32](#uint32) | | Relay end-device back-off (in case it does not receive WOR ACK frame). 0 = Always send a LoRaWAN uplink 1..63 = Send a LoRaWAN uplink after X WOR frames without a WOR ACK | -| relay_ed_uplink_limit_bucket_size | [uint32](#uint32) | | Relay end-device uplink limit bucket size. - -This field indicates the multiplier to determine the bucket size according to the following formula: BucketSize TOKEN = _reload_rate x _bucket_size - -Valid values (0 - 3): 0 = 1 1 = 2 2 = 4 3 = 12 | -| relay_ed_uplink_limit_reload_rate | [uint32](#uint32) | | Relay end-device uplink limit reload rate. - -Valid values: * 0 - 62 = X tokens every hour * 63 = no limitation | -| relay_join_req_limit_reload_rate | [uint32](#uint32) | | Relay join-request limit reload rate. - -Valid values: * 0 - 126 = X tokens every hour * 127 = no limitation | -| relay_notify_limit_reload_rate | [uint32](#uint32) | | Relay notify limit reload rate. - -Valid values: * 0 - 126 = X tokens every hour * 127 = no limitation | -| relay_global_uplink_limit_reload_rate | [uint32](#uint32) | | Relay global uplink limit reload rate. - -Valid values: * 0 - 126 = X tokens every hour * 127 = no limitation | -| relay_overall_limit_reload_rate | [uint32](#uint32) | | Relay overall limit reload rate. - -Valid values: * 0 - 126 = X tokens every hour * 127 = no limitation | -| relay_join_req_limit_bucket_size | [uint32](#uint32) | | Relay join-request limit bucket size. - -This field indicates the multiplier to determine the bucket size according to the following formula: BucketSize TOKEN = _reload_rate x _bucket_size - -Valid values (0 - 3): 0 = 1 1 = 2 2 = 4 3 = 12 | -| relay_notify_limit_bucket_size | [uint32](#uint32) | | Relay notify limit bucket size. - -This field indicates the multiplier to determine the bucket size according to the following formula: BucketSize TOKEN = _reload_rate x _bucket_size - -Valid values (0 - 3): 0 = 1 1 = 2 2 = 4 3 = 12 | -| relay_global_uplink_limit_bucket_size | [uint32](#uint32) | | Relay globak uplink limit bucket size. - -This field indicates the multiplier to determine the bucket size according to the following formula: BucketSize TOKEN = _reload_rate x _bucket_size - -Valid values (0 - 3): 0 = 1 1 = 2 2 = 4 3 = 12 | -| relay_overall_limit_bucket_size | [uint32](#uint32) | | Relay overall limit bucket size. - -This field indicates the multiplier to determine the bucket size according to the following formula: BucketSize TOKEN = _reload_rate x _bucket_size - -Valid values (0 - 3): 0 = 1 1 = 2 2 = 4 3 = 12 | -| allow_roaming | [bool](#bool) | | Allow roaming. - -If set to true, it means that the device is allowed to use roaming. | - - - - - - - - -### DeviceProfile.MeasurementsEntry - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [Measurement](#api-Measurement) | | | - - - - - - - - -### DeviceProfile.TagsEntry - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [string](#string) | | | - - - - - - - - -### DeviceProfileListItem - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Device-profile ID (UUID). | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | -| name | [string](#string) | | Name. | -| region | [common.Region](#common-Region) | | Region. | -| mac_version | [common.MacVersion](#common-MacVersion) | | LoRaWAN mac-version. | -| reg_params_revision | [common.RegParamsRevision](#common-RegParamsRevision) | | Regional parameters revision. | -| supports_otaa | [bool](#bool) | | Supports OTAA. | -| supports_class_b | [bool](#bool) | | Supports Class-B. | -| supports_class_c | [bool](#bool) | | Supports Class-C. | - - - - - - - - -### GetDeviceProfileRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | ID (UUID). | - - - - - - - - -### GetDeviceProfileResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| device_profile | [DeviceProfile](#api-DeviceProfile) | | Device-profile object. | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | - - - - - - - - -### ListDeviceProfileAdrAlgorithmsResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| total_count | [uint32](#uint32) | | Total number of algorithms. | -| result | [AdrAlgorithmListItem](#api-AdrAlgorithmListItem) | repeated | Result-set. | - - - - - - - - -### ListDeviceProfilesRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| limit | [uint32](#uint32) | | Max number of device-profiles to return in the result-set. | -| offset | [uint32](#uint32) | | Offset in the result-set (for pagination). | -| search | [string](#string) | | If set, the given string will be used to search on name. | -| tenant_id | [string](#string) | | Tenant ID to list the device-profiles for. | - - - - - - - - -### ListDeviceProfilesResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| total_count | [uint32](#uint32) | | Total number of device-profiles. | -| result | [DeviceProfileListItem](#api-DeviceProfileListItem) | repeated | Result-set. | - - - - - - - - -### Measurement - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| name | [string](#string) | | Name (user defined). | -| kind | [MeasurementKind](#api-MeasurementKind) | | Kind. | - - - - - - - - -### UpdateDeviceProfileRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| device_profile | [DeviceProfile](#api-DeviceProfile) | | Device-profile object. | - - - - - - - - - - -### CadPeriodicity - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| SEC_1 | 0 | 1 second. | -| MS_500 | 1 | 500 milliseconds | -| MS_250 | 2 | 250 milliseconds | -| MS_100 | 3 | 100 milliseconds | -| MS_50 | 4 | 50 milliseconds | -| MS_20 | 5 | 20 milliseconds | - - - - - -### CodecRuntime - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NONE | 0 | None. | -| CAYENNE_LPP | 1 | Cayenne LPP. | -| JS | 2 | JavaScript. | - - - - - -### MeasurementKind - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| UNKNOWN | 0 | Unknown (in which case it is not tracked). | -| COUNTER | 1 | Incrementing counters that never decrease (these are not reset on each reading). | -| ABSOLUTE | 2 | Counters that do get reset upon reading. | -| GAUGE | 3 | E.g. a temperature value. | -| STRING | 4 | E.g. a firmware version, true / false value. | - - - - - -### RelayModeActivation - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| DISABLE_RELAY_MODE | 0 | Disable the relay mode. | -| ENABLE_RELAY_MODE | 1 | Enable the relay model. | -| DYNAMIC | 2 | Dynamic. | -| END_DEVICE_CONTROLLED | 3 | End-device controlled. | - - - - - -### SecondChAckOffset - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| KHZ_0 | 0 | 0 kHz. | -| KHZ_200 | 1 | 200 kHz. | -| KHZ_400 | 2 | 400 kHz. | -| KHZ_800 | 3 | 800 kHz. | -| KHZ_1600 | 4 | 1600 kHz. | -| KHZ_3200 | 5 | 3200 kHz. | - - - - - - - - - -### DeviceProfileService -DeviceProfileService is the service providing API methods for managing -device-profiles. - -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| Create | [CreateDeviceProfileRequest](#api-CreateDeviceProfileRequest) | [CreateDeviceProfileResponse](#api-CreateDeviceProfileResponse) | Create the given device-profile. | -| Get | [GetDeviceProfileRequest](#api-GetDeviceProfileRequest) | [GetDeviceProfileResponse](#api-GetDeviceProfileResponse) | Get the device-profile for the given ID. | -| Update | [UpdateDeviceProfileRequest](#api-UpdateDeviceProfileRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update the given device-profile. | -| Delete | [DeleteDeviceProfileRequest](#api-DeleteDeviceProfileRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete the device-profile with the given ID. | -| List | [ListDeviceProfilesRequest](#api-ListDeviceProfilesRequest) | [ListDeviceProfilesResponse](#api-ListDeviceProfilesResponse) | List the available device-profiles. | -| ListAdrAlgorithms | [.google.protobuf.Empty](#google-protobuf-Empty) | [ListDeviceProfileAdrAlgorithmsResponse](#api-ListDeviceProfileAdrAlgorithmsResponse) | List available ADR algorithms. | - - - - - - -

Top

- -## api/device_profile_template.proto - - - - - -### CreateDeviceProfileTemplateRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| device_profile_template | [DeviceProfileTemplate](#api-DeviceProfileTemplate) | | Object to create. | - - - - - - - - -### DeleteDeviceProfileTemplateRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | ID. | - - - - - - - - -### DeviceProfileTemplate - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Device-profile template ID. | -| name | [string](#string) | | Name. | -| description | [string](#string) | | Description. | -| vendor | [string](#string) | | Vendor. | -| firmware | [string](#string) | | Firmware. | -| region | [common.Region](#common-Region) | | Region. | -| mac_version | [common.MacVersion](#common-MacVersion) | | LoRaWAN mac-version. | -| reg_params_revision | [common.RegParamsRevision](#common-RegParamsRevision) | | Regional parameters revision. | -| adr_algorithm_id | [string](#string) | | ADR algorithm ID. | -| payload_codec_runtime | [CodecRuntime](#api-CodecRuntime) | | Payload codec runtime. | -| payload_codec_script | [string](#string) | | Payload codec script. | -| flush_queue_on_activate | [bool](#bool) | | Flush queue on device activation. | -| uplink_interval | [uint32](#uint32) | | Uplink interval (seconds). This defines the expected uplink interval which the device uses for communication. When the uplink interval has expired and no uplink has been received, the device is considered inactive. | -| device_status_req_interval | [uint32](#uint32) | | Device-status request interval (times / day). This defines the times per day that ChirpStack will request the device-status from the device. | -| supports_otaa | [bool](#bool) | | Supports OTAA. | -| supports_class_b | [bool](#bool) | | Supports Class B. | -| supports_class_c | [bool](#bool) | | Supports Class-C. | -| class_b_timeout | [uint32](#uint32) | | Class-B timeout (seconds). This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). | -| class_b_ping_slot_nb_k | [uint32](#uint32) | | Class-B ping-slots per beacon period. Valid options are: 0 - 7. - -The actual number of ping-slots per beacon period equals to 2^k. | -| class_b_ping_slot_dr | [uint32](#uint32) | | Class-B ping-slot DR. | -| class_b_ping_slot_freq | [uint32](#uint32) | | Class-B ping-slot freq (Hz). | -| class_c_timeout | [uint32](#uint32) | | Class-C timeout (seconds). This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). | -| abp_rx1_delay | [uint32](#uint32) | | RX1 delay (for ABP). | -| abp_rx1_dr_offset | [uint32](#uint32) | | RX1 DR offset (for ABP). | -| abp_rx2_dr | [uint32](#uint32) | | RX2 DR (for ABP). | -| abp_rx2_freq | [uint32](#uint32) | | RX2 frequency (for ABP, Hz). | -| tags | [DeviceProfileTemplate.TagsEntry](#api-DeviceProfileTemplate-TagsEntry) | repeated | User defined tags. | -| measurements | [DeviceProfileTemplate.MeasurementsEntry](#api-DeviceProfileTemplate-MeasurementsEntry) | repeated | Measurements. If defined, ChirpStack will visualize these metrics in the web-interface. | -| auto_detect_measurements | [bool](#bool) | | Auto-detect measurements. If set to true, measurements will be automatically added based on the keys of the decoded payload. In cases where the decoded payload contains random keys in the data, you want to set this to false. | - - - - - - - - -### DeviceProfileTemplate.MeasurementsEntry - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [Measurement](#api-Measurement) | | | - - - - - - - - -### DeviceProfileTemplate.TagsEntry - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [string](#string) | | | - - - - - - - - -### DeviceProfileTemplateListItem - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Device-profile template ID. | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | -| name | [string](#string) | | Name. | -| vendor | [string](#string) | | Vendor. | -| firmware | [string](#string) | | Firmware. | -| region | [common.Region](#common-Region) | | Region. | -| mac_version | [common.MacVersion](#common-MacVersion) | | LoRaWAN mac-version. | -| reg_params_revision | [common.RegParamsRevision](#common-RegParamsRevision) | | Regional parameters revision. | -| supports_otaa | [bool](#bool) | | Supports OTAA. | -| supports_class_b | [bool](#bool) | | Supports Class-B. | -| supports_class_c | [bool](#bool) | | Supports Class-C. | - - - - - - - - -### GetDeviceProfileTemplateRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | ID. | - - - - - - - - -### GetDeviceProfileTemplateResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| device_profile_template | [DeviceProfileTemplate](#api-DeviceProfileTemplate) | | Device-profile template object. | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | - - - - - - - - -### ListDeviceProfileTemplatesRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| limit | [uint32](#uint32) | | Max number of device-profile templates to return in the result-set. | -| offset | [uint32](#uint32) | | Offset in the result-set (for pagination). | - - - - - - - - -### ListDeviceProfileTemplatesResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| total_count | [uint32](#uint32) | | Total number of device-profile templates. | -| result | [DeviceProfileTemplateListItem](#api-DeviceProfileTemplateListItem) | repeated | Result-set. | - - - - - - - - -### UpdateDeviceProfileTemplateRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| device_profile_template | [DeviceProfileTemplate](#api-DeviceProfileTemplate) | | Object to update. | - - - - - - - - - - - - - - -### DeviceProfileTemplateService -DeviceProfileTemplateService is the service providing API methods for managing device-profile templates. - -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| Create | [CreateDeviceProfileTemplateRequest](#api-CreateDeviceProfileTemplateRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Create the given device-profile template. | -| Get | [GetDeviceProfileTemplateRequest](#api-GetDeviceProfileTemplateRequest) | [GetDeviceProfileTemplateResponse](#api-GetDeviceProfileTemplateResponse) | Get the device-profile template for the given ID. | -| Update | [UpdateDeviceProfileTemplateRequest](#api-UpdateDeviceProfileTemplateRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update the given device-profile template. | -| Delete | [DeleteDeviceProfileTemplateRequest](#api-DeleteDeviceProfileTemplateRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete the device-profile template with the given ID. | -| List | [ListDeviceProfileTemplatesRequest](#api-ListDeviceProfileTemplatesRequest) | [ListDeviceProfileTemplatesResponse](#api-ListDeviceProfileTemplatesResponse) | List the available device-profile templates. | - - - - - - -

Top

- -## api/gateway.proto - - - - - -### CreateGatewayRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| gateway | [Gateway](#api-Gateway) | | Gateway object. | - - - - - - - - -### DeleteGatewayRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| gateway_id | [string](#string) | | Gateway ID (EUI64). | - - - - - - - - -### Gateway - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| gateway_id | [string](#string) | | Gateway ID (EUI64). | -| name | [string](#string) | | Name. | -| description | [string](#string) | | Description. | -| location | [common.Location](#common-Location) | | Gateway location. | -| tenant_id | [string](#string) | | Tenant ID (UUID). | -| tags | [Gateway.TagsEntry](#api-Gateway-TagsEntry) | repeated | Tags. | -| metadata | [Gateway.MetadataEntry](#api-Gateway-MetadataEntry) | repeated | Metadata (provided by the gateway). | -| stats_interval | [uint32](#uint32) | | Stats interval (seconds). This defines the expected interval in which the gateway sends its statistics. | - - - - - - - - -### Gateway.MetadataEntry - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [string](#string) | | | - - - - - - - - -### Gateway.TagsEntry - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [string](#string) | | | - - - - - - - - -### GatewayListItem - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| tenant_id | [string](#string) | | Tenant ID. | -| gateway_id | [string](#string) | | Gateway ID (EUI64). | -| name | [string](#string) | | Name. | -| description | [string](#string) | | Description. | -| location | [common.Location](#common-Location) | | Location. | -| properties | [GatewayListItem.PropertiesEntry](#api-GatewayListItem-PropertiesEntry) | repeated | Gateway properties. | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | -| last_seen_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last seen at timestamp. | -| state | [GatewayState](#api-GatewayState) | | Gateway state. Please note that the state of the gateway is driven by the stats packages that are sent by the gateway. | - - - - - - - - -### GatewayListItem.PropertiesEntry - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [string](#string) | | | - - - - - - - - -### GenerateGatewayClientCertificateRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| gateway_id | [string](#string) | | Gateway ID (EUI64). | - - - - - - - - -### GenerateGatewayClientCertificateResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| tls_cert | [string](#string) | | TLS certificate. | -| tls_key | [string](#string) | | TLS key. | -| ca_cert | [string](#string) | | CA certificate. | -| expires_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Expires at defines the expiration date of the certificate. | - - - - - - - - -### GetGatewayMetricsRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| gateway_id | [string](#string) | | Gateway ID (EUI64). | -| start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Interval start timestamp. | -| end | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Interval end timestamp. | -| aggregation | [common.Aggregation](#common-Aggregation) | | Aggregation. | - - - - - - - - -### GetGatewayMetricsResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| rx_packets | [common.Metric](#common-Metric) | | RX packets. | -| tx_packets | [common.Metric](#common-Metric) | | TX packets. | -| tx_packets_per_freq | [common.Metric](#common-Metric) | | TX packets / frequency. | -| rx_packets_per_freq | [common.Metric](#common-Metric) | | RX packets / frequency. | -| tx_packets_per_dr | [common.Metric](#common-Metric) | | TX packets / DR. | -| rx_packets_per_dr | [common.Metric](#common-Metric) | | RX packets / DR. | -| tx_packets_per_status | [common.Metric](#common-Metric) | | TX packets per status. | - - - - - - - - -### GetGatewayRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| gateway_id | [string](#string) | | Gateway ID (EUI64). | - - - - - - - - -### GetGatewayResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| gateway | [Gateway](#api-Gateway) | | Gateway object. | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | -| last_seen_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last seen at timestamp. | - - - - - - - - -### ListGatewaysRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| limit | [uint32](#uint32) | | Max number of gateways to return in the result-set. | -| offset | [uint32](#uint32) | | Offset in the result-set (for pagination). | -| search | [string](#string) | | If set, the given string will be used to search on name (optional). | -| tenant_id | [string](#string) | | Tenant ID (UUID) to filter gateways on. To list all gateways as a global admin user, this field can be left blank. | -| multicast_group_id | [string](#string) | | Multicast-group ID (UUID) to filter gateways on. | - - - - - - - - -### ListGatewaysResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| total_count | [uint32](#uint32) | | Total number of gateways. | -| result | [GatewayListItem](#api-GatewayListItem) | repeated | Result-set. | - - - - - - - - -### UpdateGatewayRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| gateway | [Gateway](#api-Gateway) | | Gateway object. | - - - - - - - - - - -### GatewayState - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NEVER_SEEN | 0 | The gateway has never sent any stats. | -| ONLINE | 1 | Online. | -| OFFLINE | 2 | Offline. | - - - - - - - - - -### GatewayService -GatewayService is the service providing API methods for managing gateways. - -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| Create | [CreateGatewayRequest](#api-CreateGatewayRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Create creates the given gateway. | -| Get | [GetGatewayRequest](#api-GetGatewayRequest) | [GetGatewayResponse](#api-GetGatewayResponse) | Get returns the gateway for the given Gateway ID. | -| Update | [UpdateGatewayRequest](#api-UpdateGatewayRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update updates the given gateway. | -| Delete | [DeleteGatewayRequest](#api-DeleteGatewayRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete deletes the gateway matching the given Gateway ID. | -| List | [ListGatewaysRequest](#api-ListGatewaysRequest) | [ListGatewaysResponse](#api-ListGatewaysResponse) | Get the list of gateways. | -| GenerateClientCertificate | [GenerateGatewayClientCertificateRequest](#api-GenerateGatewayClientCertificateRequest) | [GenerateGatewayClientCertificateResponse](#api-GenerateGatewayClientCertificateResponse) | Generate client-certificate for the gateway. | -| GetMetrics | [GetGatewayMetricsRequest](#api-GetGatewayMetricsRequest) | [GetGatewayMetricsResponse](#api-GetGatewayMetricsResponse) | GetMetrics returns the gateway metrics. | - - - - - - -

Top

- -## api/multicast_group.proto - - - - - -### AddDeviceToMulticastGroupRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| multicast_group_id | [string](#string) | | Multicast group ID. | -| dev_eui | [string](#string) | | Device EUI (HEX encoded). | - - - - - - - - -### AddGatewayToMulticastGroupRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| multicast_group_id | [string](#string) | | Multicast group ID. | -| gateway_id | [string](#string) | | Gateway ID (HEX encoded). | - - - - - - - - -### CreateMulticastGroupRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| multicast_group | [MulticastGroup](#api-MulticastGroup) | | Multicast group to create. | - - - - - - - - -### CreateMulticastGroupResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | ID of created multicast group (UUID). | - - - - - - - - -### DeleteMulticastGroupRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Multicast group iD. | - - - - - - - - -### EnqueueMulticastGroupQueueItemRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| queue_item | [MulticastGroupQueueItem](#api-MulticastGroupQueueItem) | | Multicast queue-item to enqueue. | - - - - - - - - -### EnqueueMulticastGroupQueueItemResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| f_cnt | [uint32](#uint32) | | Frame-counter of the enqueued payload. | - - - - - - - - -### FlushMulticastGroupQueueRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| multicast_group_id | [string](#string) | | Multicast group ID. | - - - - - - - - -### GetMulticastGroupRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Multicast group ID. | - - - - - - - - -### GetMulticastGroupResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| multicast_group | [MulticastGroup](#api-MulticastGroup) | | Multicast group object. | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | - - - - - - - - -### ListMulticastGroupQueueRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| multicast_group_id | [string](#string) | | Multicast group ID. | - - - - - - - - -### ListMulticastGroupQueueResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| items | [MulticastGroupQueueItem](#api-MulticastGroupQueueItem) | repeated | | - - - - - - - - -### ListMulticastGroupsRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| limit | [uint32](#uint32) | | Max number of multicast groups to return in the result-set. | -| offset | [uint32](#uint32) | | Offset in the result-set (for pagination). | -| search | [string](#string) | | If set, the given string will be used to search on name. | -| application_id | [string](#string) | | Application ID to list the multicast groups for. | - - - - - - - - -### ListMulticastGroupsResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| total_count | [uint32](#uint32) | | Total number of multicast groups. | -| result | [MulticastGroupListItem](#api-MulticastGroupListItem) | repeated | Result-test. | - - - - - - - - -### MulticastGroup - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | ID (UUID). This will be generated automatically on create. | -| name | [string](#string) | | Name. | -| application_id | [string](#string) | | Application ID. After creation, this can not be updated. | -| region | [common.Region](#common-Region) | | Region. | -| mc_addr | [string](#string) | | Multicast address (HEX encoded DevAddr). | -| mc_nwk_s_key | [string](#string) | | Multicast network session key (HEX encoded AES128 key). | -| mc_app_s_key | [string](#string) | | Multicast application session key (HEX encoded AES128 key). | -| f_cnt | [uint32](#uint32) | | Frame-counter. | -| group_type | [MulticastGroupType](#api-MulticastGroupType) | | Multicast group type. | -| dr | [uint32](#uint32) | | Data-rate. | -| frequency | [uint32](#uint32) | | Frequency (Hz). | -| class_b_ping_slot_period | [uint32](#uint32) | | Ping-slot period (only for Class-B). Deprecated: use class_b_ping_slot_nb_k. | -| class_b_ping_slot_nb_k | [uint32](#uint32) | | Class-B ping-slots per beacon period (only for Class-B). Valid options are: 0 - 7; - -The actual number of ping-slots per beacon period equals to 2^k. | -| class_c_scheduling_type | [MulticastGroupSchedulingType](#api-MulticastGroupSchedulingType) | | Scheduling type (only for Class-C). | - - - - - - - - -### MulticastGroupListItem - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | ID. | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | -| name | [string](#string) | | Name. | -| region | [common.Region](#common-Region) | | Region. | -| group_type | [MulticastGroupType](#api-MulticastGroupType) | | Multicast group type. | - - - - - - - - -### MulticastGroupQueueItem - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| multicast_group_id | [string](#string) | | Multicast group ID. | -| f_cnt | [uint32](#uint32) | | Downlink frame-counter. This will be automatically set on enqueue. | -| f_port | [uint32](#uint32) | | FPort (must be > 0). | -| data | [bytes](#bytes) | | Payload. | - - - - - - - - -### RemoveDeviceFromMulticastGroupRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| multicast_group_id | [string](#string) | | Multicast group ID. | -| dev_eui | [string](#string) | | Device EUI (HEX encoded). | - - - - - - - - -### RemoveGatewayFromMulticastGroupRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| multicast_group_id | [string](#string) | | Multicast group ID. | -| gateway_id | [string](#string) | | Gateway ID (HEX encoded). | - - - - - - - - -### UpdateMulticastGroupRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| multicast_group | [MulticastGroup](#api-MulticastGroup) | | Multicast group object to update. | - - - - - - - - - - -### MulticastGroupSchedulingType - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| DELAY | 0 | Delay. If multicast downlinks must be sent through multiple gateways, then these will be sent one by one with a delay between each gateway. | -| GPS_TIME | 1 | Time. If multicast downlinks must be sent through multiple gateways, then these will be sent simultaneously using GPS time synchronization. Note that this does require GPS time-synchronized LoRa gateways. | - - - - - -### MulticastGroupType - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| CLASS_C | 0 | Class C. | -| CLASS_B | 1 | Class-B. | - - - - - - - - - -### MulticastGroupService -MulticastGroupService is the service managing multicast-groups. - -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| Create | [CreateMulticastGroupRequest](#api-CreateMulticastGroupRequest) | [CreateMulticastGroupResponse](#api-CreateMulticastGroupResponse) | Create the given multicast group. | -| Get | [GetMulticastGroupRequest](#api-GetMulticastGroupRequest) | [GetMulticastGroupResponse](#api-GetMulticastGroupResponse) | Get returns the multicast group for the given ID. | -| Update | [UpdateMulticastGroupRequest](#api-UpdateMulticastGroupRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update the given multicast group. | -| Delete | [DeleteMulticastGroupRequest](#api-DeleteMulticastGroupRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete the multicast-group with the given ID. | -| List | [ListMulticastGroupsRequest](#api-ListMulticastGroupsRequest) | [ListMulticastGroupsResponse](#api-ListMulticastGroupsResponse) | List the available multicast groups. | -| AddDevice | [AddDeviceToMulticastGroupRequest](#api-AddDeviceToMulticastGroupRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Add a device to the multicast group. | -| RemoveDevice | [RemoveDeviceFromMulticastGroupRequest](#api-RemoveDeviceFromMulticastGroupRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Remove a device from the multicast group. | -| AddGateway | [AddGatewayToMulticastGroupRequest](#api-AddGatewayToMulticastGroupRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Add a gateway to the multicast group. | -| RemoveGateway | [RemoveGatewayFromMulticastGroupRequest](#api-RemoveGatewayFromMulticastGroupRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Remove a gateway from the multicast group. | -| Enqueue | [EnqueueMulticastGroupQueueItemRequest](#api-EnqueueMulticastGroupQueueItemRequest) | [EnqueueMulticastGroupQueueItemResponse](#api-EnqueueMulticastGroupQueueItemResponse) | Add the given item to the multicast group queue. | -| FlushQueue | [FlushMulticastGroupQueueRequest](#api-FlushMulticastGroupQueueRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Flush the queue for the given multicast group. | -| ListQueue | [ListMulticastGroupQueueRequest](#api-ListMulticastGroupQueueRequest) | [ListMulticastGroupQueueResponse](#api-ListMulticastGroupQueueResponse) | List the items in the multicast group queue. | - - - - - - -

Top

- -## api/relay.proto - - - - - -### AddRelayDeviceRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| relay_dev_eui | [string](#string) | | Relay DevEUI (EUI64). | -| device_dev_eui | [string](#string) | | Device DevEUI (EUI64). | - - - - - - - - -### ListRelayDevicesRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| limit | [uint32](#uint32) | | Max number of multicast groups to return in the result-set. | -| offset | [uint32](#uint32) | | Offset in the result-set (for pagination). | -| relay_dev_eui | [string](#string) | | Relay DevEUI (EUI64). | - - - - - - - - -### ListRelayDevicesResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| total_count | [uint32](#uint32) | | Total number of devices. | -| result | [RelayDeviceListItem](#api-RelayDeviceListItem) | repeated | Result-set. | - - - - - - - - -### ListRelaysRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| limit | [uint32](#uint32) | | Max number of devices to return in the result-set. | -| offset | [uint32](#uint32) | | Offset in the result-set (for pagination). | -| application_id | [string](#string) | | Application ID (UUID). | - - - - - - - - -### ListRelaysResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| total_count | [uint32](#uint32) | | Total number of relays. | -| result | [RelayListItem](#api-RelayListItem) | repeated | Result-set. | - - - - - - - - -### RelayDeviceListItem - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | DevEUI (EUI64). | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| name | [string](#string) | | Device name. | - - - - - - - - -### RelayListItem - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| dev_eui | [string](#string) | | DevEUI (EUI64). | -| name | [string](#string) | | Name. | - - - - - - - - -### RemoveRelayDeviceRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| relay_dev_eui | [string](#string) | | Relay DevEUI (EUI64). | -| device_dev_eui | [string](#string) | | Device DevEUI (EUI64). | - - - - - - - - - - - - - - -### RelayService -RelayService is the service providing API methos for managing relays. - -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| List | [ListRelaysRequest](#api-ListRelaysRequest) | [ListRelaysResponse](#api-ListRelaysResponse) | List lists the relays for the given application id. | -| AddDevice | [AddRelayDeviceRequest](#api-AddRelayDeviceRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | AddDevice adds the given device to the relay. | -| RemoveDevice | [RemoveRelayDeviceRequest](#api-RemoveRelayDeviceRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | RemoveDevice removes the given device from the relay. | -| ListDevices | [ListRelayDevicesRequest](#api-ListRelayDevicesRequest) | [ListRelayDevicesResponse](#api-ListRelayDevicesResponse) | ListDevices lists the devices for the given relay. | - - - - - - -

Top

- -## api/tenant.proto - - - - - -### AddTenantUserRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| tenant_user | [TenantUser](#api-TenantUser) | | Tenant user object. | - - - - - - - - -### CreateTenantRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| tenant | [Tenant](#api-Tenant) | | Tenant object to create. | - - - - - - - - -### CreateTenantResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Tenant ID. | - - - - - - - - -### DeleteTenantRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Tenant ID. | - - - - - - - - -### DeleteTenantUserRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| tenant_id | [string](#string) | | Tenant ID (UUID). | -| user_id | [string](#string) | | User ID (UUID). | - - - - - - - - -### GetTenantRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Tenant ID. | - - - - - - - - -### GetTenantResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| tenant | [Tenant](#api-Tenant) | | Tenant object. | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | - - - - - - - - -### GetTenantUserRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| tenant_id | [string](#string) | | Tenant ID (UUID). | -| user_id | [string](#string) | | User ID (UUID). | - - - - - - - - -### GetTenantUserResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| tenant_user | [TenantUser](#api-TenantUser) | | Tenant user object. | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | - - - - - - - - -### ListTenantUsersRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| tenant_id | [string](#string) | | Tenant ID (UUID). | -| limit | [uint32](#uint32) | | Max number of tenants to return in the result-set. | -| offset | [uint32](#uint32) | | Offset in the result-set (for pagination). | - - - - - - - - -### ListTenantUsersResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| total_count | [uint32](#uint32) | | Total number of tenants. | -| result | [TenantUserListItem](#api-TenantUserListItem) | repeated | Result-set. | - - - - - - - - -### ListTenantsRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| limit | [uint32](#uint32) | | Max number of tenants to return in the result-set. | -| offset | [uint32](#uint32) | | Offset in the result-set (for pagination). | -| search | [string](#string) | | If set, the given string will be used to search on name. | -| user_id | [string](#string) | | If set, filters the result set to the tenants of the user. Only global API keys are able to filter by this field. | - - - - - - - - -### ListTenantsResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| total_count | [uint32](#uint32) | | Total number of tenants. | -| result | [TenantListItem](#api-TenantListItem) | repeated | Result-set. | - - - - - - - - -### Tenant - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Tenant ID (UUID). Note: this value will be automatically generated on create. | -| name | [string](#string) | | Tenant name, | -| description | [string](#string) | | Tenant description. | -| can_have_gateways | [bool](#bool) | | Can the tenant create and "own" Gateways? | -| max_gateway_count | [uint32](#uint32) | | Max. gateway count for tenant. When set to 0, the tenant can have unlimited gateways. | -| max_device_count | [uint32](#uint32) | | Max. device count for tenant. When set to 0, the tenant can have unlimited devices. | -| private_gateways_up | [bool](#bool) | | Private gateways (uplink). If enabled, then uplink messages will not be shared with other tenants. | -| private_gateways_down | [bool](#bool) | | Private gateways (downlink). If enabled, then other tenants will not be able to schedule downlink messages through the gateways of this tenant. For example, in case you do want to share uplinks with other tenants (private_gateways_up=false), but you want to prevent other tenants from using gateway airtime. | -| tags | [Tenant.TagsEntry](#api-Tenant-TagsEntry) | repeated | Tags (user defined). These tags can be used to add additional information to the tenant. These tags are NOT exposed in the integration events. | - - - - - - - - -### Tenant.TagsEntry - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [string](#string) | | | - - - - - - - - -### TenantListItem - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | Tenant ID (UUID). | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | -| name | [string](#string) | | Tenant name. | -| can_have_gateways | [bool](#bool) | | Can the tenant create and "own" Gateways? | -| private_gateways_up | [bool](#bool) | | Private gateways (uplink). | -| private_gateways_down | [bool](#bool) | | Private gateways (downlink). | -| max_gateway_count | [uint32](#uint32) | | Max gateway count. 0 = unlimited. | -| max_device_count | [uint32](#uint32) | | Max device count. 0 = unlimited. | - - - - - - - - -### TenantUser - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| tenant_id | [string](#string) | | Tenant ID (UUID). | -| user_id | [string](#string) | | User ID (UUID). | -| is_admin | [bool](#bool) | | User is admin within the context of the tenant. There is no need to set the is_device_admin and is_gateway_admin flags. | -| is_device_admin | [bool](#bool) | | User is able to modify device related resources (applications, device-profiles, devices, multicast-groups). | -| is_gateway_admin | [bool](#bool) | | User is able to modify gateways. | -| email | [string](#string) | | Email (only used on get and when adding a user to a tenant). | - - - - - - - - -### TenantUserListItem - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| tenant_id | [string](#string) | | Tenant ID (UUID). | -| user_id | [string](#string) | | User ID (UUID). | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | -| email | [string](#string) | | Email. | -| is_admin | [bool](#bool) | | User is admin within the context of the tenant. There is no need to set the is_device_admin and is_gateway_admin flags. | -| is_device_admin | [bool](#bool) | | User is able to modify device related resources (applications, device-profiles, devices, multicast-groups). | -| is_gateway_admin | [bool](#bool) | | User is able to modify gateways. | - - - - - - - - -### UpdateTenantRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| tenant | [Tenant](#api-Tenant) | | Tenant object. | - - - - - - - - -### UpdateTenantUserRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| tenant_user | [TenantUser](#api-TenantUser) | | Tenant user object. | - - - - - - - - - - - - - - -### TenantService -TenantService is the service providing API methods for managing tenants. - -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| Create | [CreateTenantRequest](#api-CreateTenantRequest) | [CreateTenantResponse](#api-CreateTenantResponse) | Create a new tenant. | -| Get | [GetTenantRequest](#api-GetTenantRequest) | [GetTenantResponse](#api-GetTenantResponse) | Get the tenant for the given ID. | -| Update | [UpdateTenantRequest](#api-UpdateTenantRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update the given tenant. | -| Delete | [DeleteTenantRequest](#api-DeleteTenantRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete the tenant with the given ID. | -| List | [ListTenantsRequest](#api-ListTenantsRequest) | [ListTenantsResponse](#api-ListTenantsResponse) | Get the list of tenants. | -| AddUser | [AddTenantUserRequest](#api-AddTenantUserRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Add an user to the tenant. Note: the user must already exist. | -| GetUser | [GetTenantUserRequest](#api-GetTenantUserRequest) | [GetTenantUserResponse](#api-GetTenantUserResponse) | Get the the tenant user for the given tenant and user IDs. | -| UpdateUser | [UpdateTenantUserRequest](#api-UpdateTenantUserRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update the given tenant user. | -| DeleteUser | [DeleteTenantUserRequest](#api-DeleteTenantUserRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete the given tenant user. | -| ListUsers | [ListTenantUsersRequest](#api-ListTenantUsersRequest) | [ListTenantUsersResponse](#api-ListTenantUsersResponse) | Get the list of tenant users. | - - - - - - -

Top

- -## api/user.proto - - - - - -### CreateUserRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| user | [User](#api-User) | | User object to create. | -| password | [string](#string) | | Password to set for the user. | -| tenants | [UserTenant](#api-UserTenant) | repeated | Add the user to the following tenants. | - - - - - - - - -### CreateUserResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | User ID. | - - - - - - - - -### DeleteUserRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | User ID. | - - - - - - - - -### GetUserRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | User ID. | - - - - - - - - -### GetUserResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| user | [User](#api-User) | | User object. | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | - - - - - - - - -### ListUsersRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| limit | [uint32](#uint32) | | Max number of tenants to return in the result-set. | -| offset | [uint32](#uint32) | | Offset in the result-set (for pagination). | - - - - - - - - -### ListUsersResponse - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| total_count | [uint32](#uint32) | | Total number of users. | -| result | [UserListItem](#api-UserListItem) | repeated | Result-set. | - - - - - - - - -### UpdateUserPasswordRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| user_id | [string](#string) | | User ID. | -| password | [string](#string) | | Password to set. | - - - - - - - - -### UpdateUserRequest - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| user | [User](#api-User) | | User object. | - - - - - - - - -### User - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | User ID (UUID). Will be set automatically on create. | -| is_admin | [bool](#bool) | | Set to true to make the user a global administrator. | -| is_active | [bool](#bool) | | Set to false to disable the user. | -| email | [string](#string) | | E-mail of the user. | -| note | [string](#string) | | Optional note to store with the user. | - - - - - - - - -### UserListItem - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| id | [string](#string) | | User ID (UUID). | -| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Created at timestamp. | -| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Last update timestamp. | -| email | [string](#string) | | Email of the user. | -| is_admin | [bool](#bool) | | Set to true to make the user a global administrator. | -| is_active | [bool](#bool) | | Set to false to disable the user. | - - - - - - - - -### UserTenant - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| tenant_id | [string](#string) | | Tenant ID. | -| is_admin | [bool](#bool) | | User is admin within the context of the tenant. There is no need to set the is_device_admin and is_gateway_admin flags. | -| is_device_admin | [bool](#bool) | | User is able to modify device related resources (applications, device-profiles, devices, multicast-groups). | -| is_gateway_admin | [bool](#bool) | | User is able to modify gateways. | - - - - - - - - - - - - - - -### UserService -UserService is the service providing API methods for managing users. - -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| Create | [CreateUserRequest](#api-CreateUserRequest) | [CreateUserResponse](#api-CreateUserResponse) | Create a new user. | -| Get | [GetUserRequest](#api-GetUserRequest) | [GetUserResponse](#api-GetUserResponse) | Get the user for the given ID. | -| Update | [UpdateUserRequest](#api-UpdateUserRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update the given user. | -| Delete | [DeleteUserRequest](#api-DeleteUserRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete the user with the given ID. | -| List | [ListUsersRequest](#api-ListUsersRequest) | [ListUsersResponse](#api-ListUsersResponse) | Get the list of users. | -| UpdatePassword | [UpdateUserPasswordRequest](#api-UpdateUserPasswordRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Update the password for the given user. | - - - - - -## Scalar Value Types - -| .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby | -| ----------- | ----- | --- | ---- | ------ | -- | -- | --- | ---- | -| double | | double | double | float | float64 | double | float | Float | -| float | | float | float | float | float32 | float | float | Float | -| int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | -| int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum | -| uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) | -| uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) | -| sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | -| sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum | -| fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) | -| fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum | -| sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) | -| sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum | -| bool | | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass | -| string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) | -| bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) | - diff --git a/api/python/.gitignore b/api/python/.gitignore new file mode 100644 index 00000000..8241a642 --- /dev/null +++ b/api/python/.gitignore @@ -0,0 +1,7 @@ +/src/*.egg-info/ +/src/build/ +/src/dist/ +/src/chirpstack_api/**/*_pb2.py +/src/chirpstack_api/**/*_pb2.pyi +/src/chirpstack_api/**/*_pb2_grpc.py +/src/chirpstack_api/**/*_pb2_grpc.pyi diff --git a/api/python/src/chirpstack_api/api/application_pb2.py b/api/python/src/chirpstack_api/api/application_pb2.py deleted file mode 100644 index 1a23c71b..00000000 --- a/api/python/src/chirpstack_api/api/application_pb2.py +++ /dev/null @@ -1,292 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: chirpstack-api/api/application.proto -# Protobuf Python Version: 4.25.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$chirpstack-api/api/application.proto\x12\x03\x61pi\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xa6\x01\n\x0b\x41pplication\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x11\n\ttenant_id\x18\x04 \x01(\t\x12(\n\x04tags\x18\x05 \x03(\x0b\x32\x1a.api.Application.TagsEntry\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa4\x01\n\x13\x41pplicationListItem\x12\n\n\x02id\x18\x01 \x01(\t\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\"A\n\x18\x43reateApplicationRequest\x12%\n\x0b\x61pplication\x18\x01 \x01(\x0b\x32\x10.api.Application\"\'\n\x19\x43reateApplicationResponse\x12\n\n\x02id\x18\x01 \x01(\t\"#\n\x15GetApplicationRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\xb9\x01\n\x16GetApplicationResponse\x12%\n\x0b\x61pplication\x18\x01 \x01(\x0b\x32\x10.api.Application\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10measurement_keys\x18\x04 \x03(\t\"A\n\x18UpdateApplicationRequest\x12%\n\x0b\x61pplication\x18\x01 \x01(\x0b\x32\x10.api.Application\"&\n\x18\x44\x65leteApplicationRequest\x12\n\n\x02id\x18\x01 \x01(\t\"[\n\x17ListApplicationsRequest\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\r\x12\x0e\n\x06search\x18\x03 \x01(\t\x12\x11\n\ttenant_id\x18\x04 \x01(\t\"Y\n\x18ListApplicationsResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12(\n\x06result\x18\x02 \x03(\x0b\x32\x18.api.ApplicationListItem\"1\n\x17ListIntegrationsRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"9\n\x13IntegrationListItem\x12\"\n\x04kind\x18\x01 \x01(\x0e\x32\x14.api.IntegrationKind\"Y\n\x18ListIntegrationsResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12(\n\x06result\x18\x02 \x03(\x0b\x32\x18.api.IntegrationListItem\"\xca\x01\n\x0fHttpIntegration\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\x12\x32\n\x07headers\x18\x02 \x03(\x0b\x32!.api.HttpIntegration.HeadersEntry\x12\x1f\n\x08\x65ncoding\x18\x03 \x01(\x0e\x32\r.api.Encoding\x12\x1a\n\x12\x65vent_endpoint_url\x18\x04 \x01(\t\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"I\n\x1c\x43reateHttpIntegrationRequest\x12)\n\x0bintegration\x18\x01 \x01(\x0b\x32\x14.api.HttpIntegration\"3\n\x19GetHttpIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"G\n\x1aGetHttpIntegrationResponse\x12)\n\x0bintegration\x18\x01 \x01(\x0b\x32\x14.api.HttpIntegration\"I\n\x1cUpdateHttpIntegrationRequest\x12)\n\x0bintegration\x18\x01 \x01(\x0b\x32\x14.api.HttpIntegration\"6\n\x1c\x44\x65leteHttpIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"\x95\x02\n\x13InfluxDbIntegration\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x02 \x01(\t\x12\n\n\x02\x64\x62\x18\x03 \x01(\t\x12\x10\n\x08username\x18\x04 \x01(\t\x12\x10\n\x08password\x18\x05 \x01(\t\x12\x1d\n\x15retention_policy_name\x18\x06 \x01(\t\x12)\n\tprecision\x18\x07 \x01(\x0e\x32\x16.api.InfluxDbPrecision\x12%\n\x07version\x18\x08 \x01(\x0e\x32\x14.api.InfluxDbVersion\x12\r\n\x05token\x18\t \x01(\t\x12\x14\n\x0corganization\x18\n \x01(\t\x12\x0e\n\x06\x62ucket\x18\x0b \x01(\t\"Q\n CreateInfluxDbIntegrationRequest\x12-\n\x0bintegration\x18\x01 \x01(\x0b\x32\x18.api.InfluxDbIntegration\"7\n\x1dGetInfluxDbIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"O\n\x1eGetInfluxDbIntegrationResponse\x12-\n\x0bintegration\x18\x01 \x01(\x0b\x32\x18.api.InfluxDbIntegration\"Q\n UpdateInfluxDbIntegrationRequest\x12-\n\x0bintegration\x18\x01 \x01(\x0b\x32\x18.api.InfluxDbIntegration\":\n DeleteInfluxDbIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"@\n\x16ThingsBoardIntegration\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\x12\x0e\n\x06server\x18\x02 \x01(\t\"W\n#CreateThingsBoardIntegrationRequest\x12\x30\n\x0bintegration\x18\x01 \x01(\x0b\x32\x1b.api.ThingsBoardIntegration\":\n GetThingsBoardIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"U\n!GetThingsBoardIntegrationResponse\x12\x30\n\x0bintegration\x18\x01 \x01(\x0b\x32\x1b.api.ThingsBoardIntegration\"W\n#UpdateThingsBoardIntegrationRequest\x12\x30\n\x0bintegration\x18\x01 \x01(\x0b\x32\x1b.api.ThingsBoardIntegration\"=\n#DeleteThingsBoardIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"@\n\x14MyDevicesIntegration\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x02 \x01(\t\"S\n!CreateMyDevicesIntegrationRequest\x12.\n\x0bintegration\x18\x01 \x01(\x0b\x32\x19.api.MyDevicesIntegration\"8\n\x1eGetMyDevicesIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"Q\n\x1fGetMyDevicesIntegrationResponse\x12.\n\x0bintegration\x18\x01 \x01(\x0b\x32\x19.api.MyDevicesIntegration\"S\n!UpdateMyDevicesIntegrationRequest\x12.\n\x0bintegration\x18\x01 \x01(\x0b\x32\x19.api.MyDevicesIntegration\";\n!DeleteMyDevicesIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"z\n\x14LoraCloudIntegration\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\x12J\n\x1amodem_geolocation_services\x18\x02 \x01(\x0b\x32&.api.LoraCloudModemGeolocationServices\"\xd5\x03\n!LoraCloudModemGeolocationServices\x12\r\n\x05token\x18\x01 \x01(\t\x12\x15\n\rmodem_enabled\x18\x02 \x01(\x08\x12\x17\n\x0f\x66orward_f_ports\x18\x10 \x03(\r\x12\x18\n\x10gnss_use_rx_time\x18\x05 \x01(\x08\x12!\n\x19gnss_use_gateway_location\x18\x11 \x01(\x08\x12\x11\n\tparse_tlv\x18\x06 \x01(\x08\x12\x1e\n\x16geolocation_buffer_ttl\x18\x07 \x01(\r\x12#\n\x1bgeolocation_min_buffer_size\x18\x08 \x01(\r\x12\x18\n\x10geolocation_tdoa\x18\t \x01(\x08\x12\x18\n\x10geolocation_rssi\x18\n \x01(\x08\x12\x18\n\x10geolocation_gnss\x18\x0b \x01(\x08\x12&\n\x1egeolocation_gnss_payload_field\x18\x0c \x01(\t\x12$\n\x1cgeolocation_gnss_use_rx_time\x18\r \x01(\x08\x12\x18\n\x10geolocation_wifi\x18\x0e \x01(\x08\x12&\n\x1egeolocation_wifi_payload_field\x18\x0f \x01(\t\"S\n!CreateLoraCloudIntegrationRequest\x12.\n\x0bintegration\x18\x01 \x01(\x0b\x32\x19.api.LoraCloudIntegration\"8\n\x1eGetLoraCloudIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"Q\n\x1fGetLoraCloudIntegrationResponse\x12.\n\x0bintegration\x18\x01 \x01(\x0b\x32\x19.api.LoraCloudIntegration\"S\n!UpdateLoraCloudIntegrationRequest\x12.\n\x0bintegration\x18\x01 \x01(\x0b\x32\x19.api.LoraCloudIntegration\";\n!DeleteLoraCloudIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"\x91\x01\n\x14GcpPubSubIntegration\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\x12\x1f\n\x08\x65ncoding\x18\x02 \x01(\x0e\x32\r.api.Encoding\x12\x18\n\x10\x63redentials_file\x18\x03 \x01(\t\x12\x12\n\nproject_id\x18\x04 \x01(\t\x12\x12\n\ntopic_name\x18\x05 \x01(\t\"S\n!CreateGcpPubSubIntegrationRequest\x12.\n\x0bintegration\x18\x01 \x01(\x0b\x32\x19.api.GcpPubSubIntegration\"8\n\x1eGetGcpPubSubIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"Q\n\x1fGetGcpPubSubIntegrationResponse\x12.\n\x0bintegration\x18\x01 \x01(\x0b\x32\x19.api.GcpPubSubIntegration\"S\n!UpdateGcpPubSubIntegrationRequest\x12.\n\x0bintegration\x18\x01 \x01(\x0b\x32\x19.api.GcpPubSubIntegration\";\n!DeleteGcpPubSubIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"\xa1\x01\n\x11\x41wsSnsIntegration\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\x12\x1f\n\x08\x65ncoding\x18\x02 \x01(\x0e\x32\r.api.Encoding\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x15\n\raccess_key_id\x18\x04 \x01(\t\x12\x19\n\x11secret_access_key\x18\x05 \x01(\t\x12\x11\n\ttopic_arn\x18\x06 \x01(\t\"M\n\x1e\x43reateAwsSnsIntegrationRequest\x12+\n\x0bintegration\x18\x01 \x01(\x0b\x32\x16.api.AwsSnsIntegration\"5\n\x1bGetAwsSnsIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"K\n\x1cGetAwsSnsIntegrationResponse\x12+\n\x0bintegration\x18\x01 \x01(\x0b\x32\x16.api.AwsSnsIntegration\"M\n\x1eUpdateAwsSnsIntegrationRequest\x12+\n\x0bintegration\x18\x01 \x01(\x0b\x32\x16.api.AwsSnsIntegration\"8\n\x1e\x44\x65leteAwsSnsIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"\x86\x01\n\x1a\x41zureServiceBusIntegration\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\x12\x1f\n\x08\x65ncoding\x18\x02 \x01(\x0e\x32\r.api.Encoding\x12\x19\n\x11\x63onnection_string\x18\x03 \x01(\t\x12\x14\n\x0cpublish_name\x18\x04 \x01(\t\"_\n\'CreateAzureServiceBusIntegrationRequest\x12\x34\n\x0bintegration\x18\x01 \x01(\x0b\x32\x1f.api.AzureServiceBusIntegration\">\n$GetAzureServiceBusIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"]\n%GetAzureServiceBusIntegrationResponse\x12\x34\n\x0bintegration\x18\x01 \x01(\x0b\x32\x1f.api.AzureServiceBusIntegration\"_\n\'UpdateAzureServiceBusIntegrationRequest\x12\x34\n\x0bintegration\x18\x01 \x01(\x0b\x32\x1f.api.AzureServiceBusIntegration\"A\n\'DeleteAzureServiceBusIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"O\n\x16PilotThingsIntegration\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\x12\x0e\n\x06server\x18\x02 \x01(\t\x12\r\n\x05token\x18\x03 \x01(\t\"W\n#CreatePilotThingsIntegrationRequest\x12\x30\n\x0bintegration\x18\x01 \x01(\x0b\x32\x1b.api.PilotThingsIntegration\":\n GetPilotThingsIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"U\n!GetPilotThingsIntegrationResponse\x12\x30\n\x0bintegration\x18\x01 \x01(\x0b\x32\x1b.api.PilotThingsIntegration\"W\n#UpdatePilotThingsIntegrationRequest\x12\x30\n\x0bintegration\x18\x01 \x01(\x0b\x32\x1b.api.PilotThingsIntegration\"=\n#DeletePilotThingsIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"|\n\x10IftttIntegration\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\x12\x15\n\ruplink_values\x18\x03 \x03(\t\x12\x16\n\x0e\x61rbitrary_json\x18\x04 \x01(\x08\x12\x14\n\x0c\x65vent_prefix\x18\x05 \x01(\t\"K\n\x1d\x43reateIftttIntegrationRequest\x12*\n\x0bintegration\x18\x01 \x01(\x0b\x32\x15.api.IftttIntegration\"4\n\x1aGetIftttIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"I\n\x1bGetIftttIntegrationResponse\x12*\n\x0bintegration\x18\x01 \x01(\x0b\x32\x15.api.IftttIntegration\"K\n\x1dUpdateIftttIntegrationRequest\x12*\n\x0bintegration\x18\x01 \x01(\x0b\x32\x15.api.IftttIntegration\"7\n\x1d\x44\x65leteIftttIntegrationRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"I\n/GenerateMqttIntegrationClientCertificateRequest\x12\x16\n\x0e\x61pplication_id\x18\x01 \x01(\t\"\x96\x01\n0GenerateMqttIntegrationClientCertificateResponse\x12\x10\n\x08tls_cert\x18\x01 \x01(\t\x12\x0f\n\x07tls_key\x18\x02 \x01(\t\x12\x0f\n\x07\x63\x61_cert\x18\x03 \x01(\t\x12.\n\nexpires_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp*\"\n\x08\x45ncoding\x12\x08\n\x04JSON\x10\x00\x12\x0c\n\x08PROTOBUF\x10\x01*\xbf\x01\n\x0fIntegrationKind\x12\x08\n\x04HTTP\x10\x00\x12\r\n\tINFLUX_DB\x10\x01\x12\x10\n\x0cTHINGS_BOARD\x10\x02\x12\x0e\n\nMY_DEVICES\x10\x03\x12\x0e\n\nLORA_CLOUD\x10\x04\x12\x0f\n\x0bGCP_PUB_SUB\x10\x05\x12\x0b\n\x07\x41WS_SNS\x10\x06\x12\x15\n\x11\x41ZURE_SERVICE_BUS\x10\x07\x12\x10\n\x0cPILOT_THINGS\x10\x08\x12\x0f\n\x0bMQTT_GLOBAL\x10\t\x12\t\n\x05IFTTT\x10\n*?\n\x11InfluxDbPrecision\x12\x06\n\x02NS\x10\x00\x12\x05\n\x01U\x10\x01\x12\x06\n\x02MS\x10\x02\x12\x05\n\x01S\x10\x03\x12\x05\n\x01M\x10\x04\x12\x05\n\x01H\x10\x05*1\n\x0fInfluxDbVersion\x12\x0e\n\nINFLUXDB_1\x10\x00\x12\x0e\n\nINFLUXDB_2\x10\x01\x32\xb8<\n\x12\x41pplicationService\x12\x65\n\x06\x43reate\x12\x1d.api.CreateApplicationRequest\x1a\x1e.api.CreateApplicationResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\"\x11/api/applications:\x01*\x12^\n\x03Get\x12\x1a.api.GetApplicationRequest\x1a\x1b.api.GetApplicationResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/api/applications/{id}\x12n\n\x06Update\x12\x1d.api.UpdateApplicationRequest\x1a\x16.google.protobuf.Empty\"-\x82\xd3\xe4\x93\x02\'\x1a\"/api/applications/{application.id}:\x01*\x12_\n\x06\x44\x65lete\x12\x1d.api.DeleteApplicationRequest\x1a\x16.google.protobuf.Empty\"\x1e\x82\xd3\xe4\x93\x02\x18*\x16/api/applications/{id}\x12^\n\x04List\x12\x1c.api.ListApplicationsRequest\x1a\x1d.api.ListApplicationsResponse\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/api/applications\x12\x88\x01\n\x10ListIntegrations\x12\x1c.api.ListIntegrationsRequest\x1a\x1d.api.ListIntegrationsResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//api/applications/{application_id}/integrations\x12\x9f\x01\n\x15\x43reateHttpIntegration\x12!.api.CreateHttpIntegrationRequest\x1a\x16.google.protobuf.Empty\"K\x82\xd3\xe4\x93\x02\x45\"@/api/applications/{integration.application_id}/integrations/http:\x01*\x12\x93\x01\n\x12GetHttpIntegration\x12\x1e.api.GetHttpIntegrationRequest\x1a\x1f.api.GetHttpIntegrationResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/api/applications/{application_id}/integrations/http\x12\x9f\x01\n\x15UpdateHttpIntegration\x12!.api.UpdateHttpIntegrationRequest\x1a\x16.google.protobuf.Empty\"K\x82\xd3\xe4\x93\x02\x45\x1a@/api/applications/{integration.application_id}/integrations/http:\x01*\x12\x90\x01\n\x15\x44\x65leteHttpIntegration\x12!.api.DeleteHttpIntegrationRequest\x1a\x16.google.protobuf.Empty\"<\x82\xd3\xe4\x93\x02\x36*4/api/applications/{application_id}/integrations/http\x12\xab\x01\n\x19\x43reateInfluxDbIntegration\x12%.api.CreateInfluxDbIntegrationRequest\x1a\x16.google.protobuf.Empty\"O\x82\xd3\xe4\x93\x02I\"D/api/applications/{integration.application_id}/integrations/influxdb:\x01*\x12\xa3\x01\n\x16GetInfluxDbIntegration\x12\".api.GetInfluxDbIntegrationRequest\x1a#.api.GetInfluxDbIntegrationResponse\"@\x82\xd3\xe4\x93\x02:\x12\x38/api/applications/{application_id}/integrations/influxdb\x12\xab\x01\n\x19UpdateInfluxDbIntegration\x12%.api.UpdateInfluxDbIntegrationRequest\x1a\x16.google.protobuf.Empty\"O\x82\xd3\xe4\x93\x02I\x1a\x44/api/applications/{integration.application_id}/integrations/influxdb:\x01*\x12\x9c\x01\n\x19\x44\x65leteInfluxDbIntegration\x12%.api.DeleteInfluxDbIntegrationRequest\x1a\x16.google.protobuf.Empty\"@\x82\xd3\xe4\x93\x02:*8/api/applications/{application_id}/integrations/influxdb\x12\xb4\x01\n\x1c\x43reateThingsBoardIntegration\x12(.api.CreateThingsBoardIntegrationRequest\x1a\x16.google.protobuf.Empty\"R\x82\xd3\xe4\x93\x02L\"G/api/applications/{integration.application_id}/integrations/thingsboard:\x01*\x12\xaf\x01\n\x19GetThingsBoardIntegration\x12%.api.GetThingsBoardIntegrationRequest\x1a&.api.GetThingsBoardIntegrationResponse\"C\x82\xd3\xe4\x93\x02=\x12;/api/applications/{application_id}/integrations/thingsboard\x12\xb4\x01\n\x1cUpdateThingsBoardIntegration\x12(.api.UpdateThingsBoardIntegrationRequest\x1a\x16.google.protobuf.Empty\"R\x82\xd3\xe4\x93\x02L\x1aG/api/applications/{integration.application_id}/integrations/thingsboard:\x01*\x12\xa5\x01\n\x1c\x44\x65leteThingsBoardIntegration\x12(.api.DeleteThingsBoardIntegrationRequest\x1a\x16.google.protobuf.Empty\"C\x82\xd3\xe4\x93\x02=*;/api/applications/{application_id}/integrations/thingsboard\x12\xae\x01\n\x1a\x43reateMyDevicesIntegration\x12&.api.CreateMyDevicesIntegrationRequest\x1a\x16.google.protobuf.Empty\"P\x82\xd3\xe4\x93\x02J\"E/api/applications/{integration.application_id}/integrations/mydevices:\x01*\x12\xa7\x01\n\x17GetMyDevicesIntegration\x12#.api.GetMyDevicesIntegrationRequest\x1a$.api.GetMyDevicesIntegrationResponse\"A\x82\xd3\xe4\x93\x02;\x12\x39/api/applications/{application_id}/integrations/mydevices\x12\xae\x01\n\x1aUpdateMyDevicesIntegration\x12&.api.UpdateMyDevicesIntegrationRequest\x1a\x16.google.protobuf.Empty\"P\x82\xd3\xe4\x93\x02J\x1a\x45/api/applications/{integration.application_id}/integrations/mydevices:\x01*\x12\x9f\x01\n\x1a\x44\x65leteMyDevicesIntegration\x12&.api.DeleteMyDevicesIntegrationRequest\x1a\x16.google.protobuf.Empty\"A\x82\xd3\xe4\x93\x02;*9/api/applications/{application_id}/integrations/mydevices\x12\xae\x01\n\x1a\x43reateLoraCloudIntegration\x12&.api.CreateLoraCloudIntegrationRequest\x1a\x16.google.protobuf.Empty\"P\x82\xd3\xe4\x93\x02J\"E/api/applications/{integration.application_id}/integrations/loracloud:\x01*\x12\xa7\x01\n\x17GetLoraCloudIntegration\x12#.api.GetLoraCloudIntegrationRequest\x1a$.api.GetLoraCloudIntegrationResponse\"A\x82\xd3\xe4\x93\x02;\x12\x39/api/applications/{application_id}/integrations/loracloud\x12\xae\x01\n\x1aUpdateLoraCloudIntegration\x12&.api.UpdateLoraCloudIntegrationRequest\x1a\x16.google.protobuf.Empty\"P\x82\xd3\xe4\x93\x02J\x1a\x45/api/applications/{integration.application_id}/integrations/loracloud:\x01*\x12\x9f\x01\n\x1a\x44\x65leteLoraCloudIntegration\x12&.api.DeleteLoraCloudIntegrationRequest\x1a\x16.google.protobuf.Empty\"A\x82\xd3\xe4\x93\x02;*9/api/applications/{application_id}/integrations/loracloud\x12\xb0\x01\n\x1a\x43reateGcpPubSubIntegration\x12&.api.CreateGcpPubSubIntegrationRequest\x1a\x16.google.protobuf.Empty\"R\x82\xd3\xe4\x93\x02L\"G/api/applications/{integration.application_id}/integrations/gcp-pub-sub:\x01*\x12\xa9\x01\n\x17GetGcpPubSubIntegration\x12#.api.GetGcpPubSubIntegrationRequest\x1a$.api.GetGcpPubSubIntegrationResponse\"C\x82\xd3\xe4\x93\x02=\x12;/api/applications/{application_id}/integrations/gcp-pub-sub\x12\xb0\x01\n\x1aUpdateGcpPubSubIntegration\x12&.api.UpdateGcpPubSubIntegrationRequest\x1a\x16.google.protobuf.Empty\"R\x82\xd3\xe4\x93\x02L\x1aG/api/applications/{integration.application_id}/integrations/gcp-pub-sub:\x01*\x12\xa1\x01\n\x1a\x44\x65leteGcpPubSubIntegration\x12&.api.DeleteGcpPubSubIntegrationRequest\x1a\x16.google.protobuf.Empty\"C\x82\xd3\xe4\x93\x02=*;/api/applications/{application_id}/integrations/gcp-pub-sub\x12\xa6\x01\n\x17\x43reateAwsSnsIntegration\x12#.api.CreateAwsSnsIntegrationRequest\x1a\x16.google.protobuf.Empty\"N\x82\xd3\xe4\x93\x02H\"C/api/applications/{integration.application_id}/integrations/aws-sns:\x01*\x12\x9c\x01\n\x14GetAwsSnsIntegration\x12 .api.GetAwsSnsIntegrationRequest\x1a!.api.GetAwsSnsIntegrationResponse\"?\x82\xd3\xe4\x93\x02\x39\x12\x37/api/applications/{application_id}/integrations/aws-sns\x12\xa6\x01\n\x17UpdateAwsSnsIntegration\x12#.api.UpdateAwsSnsIntegrationRequest\x1a\x16.google.protobuf.Empty\"N\x82\xd3\xe4\x93\x02H\x1a\x43/api/applications/{integration.application_id}/integrations/aws-sns:\x01*\x12\x97\x01\n\x17\x44\x65leteAwsSnsIntegration\x12#.api.DeleteAwsSnsIntegrationRequest\x1a\x16.google.protobuf.Empty\"?\x82\xd3\xe4\x93\x02\x39*7/api/applications/{application_id}/integrations/aws-sns\x12\xc2\x01\n CreateAzureServiceBusIntegration\x12,.api.CreateAzureServiceBusIntegrationRequest\x1a\x16.google.protobuf.Empty\"X\x82\xd3\xe4\x93\x02R\"M/api/applications/{integration.application_id}/integrations/azure-service-bus:\x01*\x12\xc1\x01\n\x1dGetAzureServiceBusIntegration\x12).api.GetAzureServiceBusIntegrationRequest\x1a*.api.GetAzureServiceBusIntegrationResponse\"I\x82\xd3\xe4\x93\x02\x43\x12\x41/api/applications/{application_id}/integrations/azure-service-bus\x12\xc2\x01\n UpdateAzureServiceBusIntegration\x12,.api.UpdateAzureServiceBusIntegrationRequest\x1a\x16.google.protobuf.Empty\"X\x82\xd3\xe4\x93\x02R\x1aM/api/applications/{integration.application_id}/integrations/azure-service-bus:\x01*\x12\xb3\x01\n DeleteAzureServiceBusIntegration\x12,.api.DeleteAzureServiceBusIntegrationRequest\x1a\x16.google.protobuf.Empty\"I\x82\xd3\xe4\x93\x02\x43*A/api/applications/{application_id}/integrations/azure-service-bus\x12\xb5\x01\n\x1c\x43reatePilotThingsIntegration\x12(.api.CreatePilotThingsIntegrationRequest\x1a\x16.google.protobuf.Empty\"S\x82\xd3\xe4\x93\x02M\"H/api/applications/{integration.application_id}/integrations/pilot-things:\x01*\x12\xb0\x01\n\x19GetPilotThingsIntegration\x12%.api.GetPilotThingsIntegrationRequest\x1a&.api.GetPilotThingsIntegrationResponse\"D\x82\xd3\xe4\x93\x02>\x12*\022* None: ... - ID_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - id: str - name: str - description: str - tenant_id: str - tags: _containers.ScalarMap[str, str] - def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., tenant_id: _Optional[str] = ..., tags: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class ApplicationListItem(_message.Message): - __slots__ = ("id", "created_at", "updated_at", "name", "description") - ID_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - id: str - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - name: str - description: str - def __init__(self, id: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., name: _Optional[str] = ..., description: _Optional[str] = ...) -> None: ... - -class CreateApplicationRequest(_message.Message): - __slots__ = ("application",) - APPLICATION_FIELD_NUMBER: _ClassVar[int] - application: Application - def __init__(self, application: _Optional[_Union[Application, _Mapping]] = ...) -> None: ... - -class CreateApplicationResponse(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class GetApplicationRequest(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class GetApplicationResponse(_message.Message): - __slots__ = ("application", "created_at", "updated_at", "measurement_keys") - APPLICATION_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - MEASUREMENT_KEYS_FIELD_NUMBER: _ClassVar[int] - application: Application - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - measurement_keys: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, application: _Optional[_Union[Application, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., measurement_keys: _Optional[_Iterable[str]] = ...) -> None: ... - -class UpdateApplicationRequest(_message.Message): - __slots__ = ("application",) - APPLICATION_FIELD_NUMBER: _ClassVar[int] - application: Application - def __init__(self, application: _Optional[_Union[Application, _Mapping]] = ...) -> None: ... - -class DeleteApplicationRequest(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class ListApplicationsRequest(_message.Message): - __slots__ = ("limit", "offset", "search", "tenant_id") - LIMIT_FIELD_NUMBER: _ClassVar[int] - OFFSET_FIELD_NUMBER: _ClassVar[int] - SEARCH_FIELD_NUMBER: _ClassVar[int] - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - limit: int - offset: int - search: str - tenant_id: str - def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., search: _Optional[str] = ..., tenant_id: _Optional[str] = ...) -> None: ... - -class ListApplicationsResponse(_message.Message): - __slots__ = ("total_count", "result") - TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int] - RESULT_FIELD_NUMBER: _ClassVar[int] - total_count: int - result: _containers.RepeatedCompositeFieldContainer[ApplicationListItem] - def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[ApplicationListItem, _Mapping]]] = ...) -> None: ... - -class ListIntegrationsRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class IntegrationListItem(_message.Message): - __slots__ = ("kind",) - KIND_FIELD_NUMBER: _ClassVar[int] - kind: IntegrationKind - def __init__(self, kind: _Optional[_Union[IntegrationKind, str]] = ...) -> None: ... - -class ListIntegrationsResponse(_message.Message): - __slots__ = ("total_count", "result") - TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int] - RESULT_FIELD_NUMBER: _ClassVar[int] - total_count: int - result: _containers.RepeatedCompositeFieldContainer[IntegrationListItem] - def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[IntegrationListItem, _Mapping]]] = ...) -> None: ... - -class HttpIntegration(_message.Message): - __slots__ = ("application_id", "headers", "encoding", "event_endpoint_url") - class HeadersEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - HEADERS_FIELD_NUMBER: _ClassVar[int] - ENCODING_FIELD_NUMBER: _ClassVar[int] - EVENT_ENDPOINT_URL_FIELD_NUMBER: _ClassVar[int] - application_id: str - headers: _containers.ScalarMap[str, str] - encoding: Encoding - event_endpoint_url: str - def __init__(self, application_id: _Optional[str] = ..., headers: _Optional[_Mapping[str, str]] = ..., encoding: _Optional[_Union[Encoding, str]] = ..., event_endpoint_url: _Optional[str] = ...) -> None: ... - -class CreateHttpIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: HttpIntegration - def __init__(self, integration: _Optional[_Union[HttpIntegration, _Mapping]] = ...) -> None: ... - -class GetHttpIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class GetHttpIntegrationResponse(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: HttpIntegration - def __init__(self, integration: _Optional[_Union[HttpIntegration, _Mapping]] = ...) -> None: ... - -class UpdateHttpIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: HttpIntegration - def __init__(self, integration: _Optional[_Union[HttpIntegration, _Mapping]] = ...) -> None: ... - -class DeleteHttpIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class InfluxDbIntegration(_message.Message): - __slots__ = ("application_id", "endpoint", "db", "username", "password", "retention_policy_name", "precision", "version", "token", "organization", "bucket") - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - ENDPOINT_FIELD_NUMBER: _ClassVar[int] - DB_FIELD_NUMBER: _ClassVar[int] - USERNAME_FIELD_NUMBER: _ClassVar[int] - PASSWORD_FIELD_NUMBER: _ClassVar[int] - RETENTION_POLICY_NAME_FIELD_NUMBER: _ClassVar[int] - PRECISION_FIELD_NUMBER: _ClassVar[int] - VERSION_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - ORGANIZATION_FIELD_NUMBER: _ClassVar[int] - BUCKET_FIELD_NUMBER: _ClassVar[int] - application_id: str - endpoint: str - db: str - username: str - password: str - retention_policy_name: str - precision: InfluxDbPrecision - version: InfluxDbVersion - token: str - organization: str - bucket: str - def __init__(self, application_id: _Optional[str] = ..., endpoint: _Optional[str] = ..., db: _Optional[str] = ..., username: _Optional[str] = ..., password: _Optional[str] = ..., retention_policy_name: _Optional[str] = ..., precision: _Optional[_Union[InfluxDbPrecision, str]] = ..., version: _Optional[_Union[InfluxDbVersion, str]] = ..., token: _Optional[str] = ..., organization: _Optional[str] = ..., bucket: _Optional[str] = ...) -> None: ... - -class CreateInfluxDbIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: InfluxDbIntegration - def __init__(self, integration: _Optional[_Union[InfluxDbIntegration, _Mapping]] = ...) -> None: ... - -class GetInfluxDbIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class GetInfluxDbIntegrationResponse(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: InfluxDbIntegration - def __init__(self, integration: _Optional[_Union[InfluxDbIntegration, _Mapping]] = ...) -> None: ... - -class UpdateInfluxDbIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: InfluxDbIntegration - def __init__(self, integration: _Optional[_Union[InfluxDbIntegration, _Mapping]] = ...) -> None: ... - -class DeleteInfluxDbIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class ThingsBoardIntegration(_message.Message): - __slots__ = ("application_id", "server") - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - SERVER_FIELD_NUMBER: _ClassVar[int] - application_id: str - server: str - def __init__(self, application_id: _Optional[str] = ..., server: _Optional[str] = ...) -> None: ... - -class CreateThingsBoardIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: ThingsBoardIntegration - def __init__(self, integration: _Optional[_Union[ThingsBoardIntegration, _Mapping]] = ...) -> None: ... - -class GetThingsBoardIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class GetThingsBoardIntegrationResponse(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: ThingsBoardIntegration - def __init__(self, integration: _Optional[_Union[ThingsBoardIntegration, _Mapping]] = ...) -> None: ... - -class UpdateThingsBoardIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: ThingsBoardIntegration - def __init__(self, integration: _Optional[_Union[ThingsBoardIntegration, _Mapping]] = ...) -> None: ... - -class DeleteThingsBoardIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class MyDevicesIntegration(_message.Message): - __slots__ = ("application_id", "endpoint") - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - ENDPOINT_FIELD_NUMBER: _ClassVar[int] - application_id: str - endpoint: str - def __init__(self, application_id: _Optional[str] = ..., endpoint: _Optional[str] = ...) -> None: ... - -class CreateMyDevicesIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: MyDevicesIntegration - def __init__(self, integration: _Optional[_Union[MyDevicesIntegration, _Mapping]] = ...) -> None: ... - -class GetMyDevicesIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class GetMyDevicesIntegrationResponse(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: MyDevicesIntegration - def __init__(self, integration: _Optional[_Union[MyDevicesIntegration, _Mapping]] = ...) -> None: ... - -class UpdateMyDevicesIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: MyDevicesIntegration - def __init__(self, integration: _Optional[_Union[MyDevicesIntegration, _Mapping]] = ...) -> None: ... - -class DeleteMyDevicesIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class LoraCloudIntegration(_message.Message): - __slots__ = ("application_id", "modem_geolocation_services") - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - MODEM_GEOLOCATION_SERVICES_FIELD_NUMBER: _ClassVar[int] - application_id: str - modem_geolocation_services: LoraCloudModemGeolocationServices - def __init__(self, application_id: _Optional[str] = ..., modem_geolocation_services: _Optional[_Union[LoraCloudModemGeolocationServices, _Mapping]] = ...) -> None: ... - -class LoraCloudModemGeolocationServices(_message.Message): - __slots__ = ("token", "modem_enabled", "forward_f_ports", "gnss_use_rx_time", "gnss_use_gateway_location", "parse_tlv", "geolocation_buffer_ttl", "geolocation_min_buffer_size", "geolocation_tdoa", "geolocation_rssi", "geolocation_gnss", "geolocation_gnss_payload_field", "geolocation_gnss_use_rx_time", "geolocation_wifi", "geolocation_wifi_payload_field") - TOKEN_FIELD_NUMBER: _ClassVar[int] - MODEM_ENABLED_FIELD_NUMBER: _ClassVar[int] - FORWARD_F_PORTS_FIELD_NUMBER: _ClassVar[int] - GNSS_USE_RX_TIME_FIELD_NUMBER: _ClassVar[int] - GNSS_USE_GATEWAY_LOCATION_FIELD_NUMBER: _ClassVar[int] - PARSE_TLV_FIELD_NUMBER: _ClassVar[int] - GEOLOCATION_BUFFER_TTL_FIELD_NUMBER: _ClassVar[int] - GEOLOCATION_MIN_BUFFER_SIZE_FIELD_NUMBER: _ClassVar[int] - GEOLOCATION_TDOA_FIELD_NUMBER: _ClassVar[int] - GEOLOCATION_RSSI_FIELD_NUMBER: _ClassVar[int] - GEOLOCATION_GNSS_FIELD_NUMBER: _ClassVar[int] - GEOLOCATION_GNSS_PAYLOAD_FIELD_FIELD_NUMBER: _ClassVar[int] - GEOLOCATION_GNSS_USE_RX_TIME_FIELD_NUMBER: _ClassVar[int] - GEOLOCATION_WIFI_FIELD_NUMBER: _ClassVar[int] - GEOLOCATION_WIFI_PAYLOAD_FIELD_FIELD_NUMBER: _ClassVar[int] - token: str - modem_enabled: bool - forward_f_ports: _containers.RepeatedScalarFieldContainer[int] - gnss_use_rx_time: bool - gnss_use_gateway_location: bool - parse_tlv: bool - geolocation_buffer_ttl: int - geolocation_min_buffer_size: int - geolocation_tdoa: bool - geolocation_rssi: bool - geolocation_gnss: bool - geolocation_gnss_payload_field: str - geolocation_gnss_use_rx_time: bool - geolocation_wifi: bool - geolocation_wifi_payload_field: str - def __init__(self, token: _Optional[str] = ..., modem_enabled: bool = ..., forward_f_ports: _Optional[_Iterable[int]] = ..., gnss_use_rx_time: bool = ..., gnss_use_gateway_location: bool = ..., parse_tlv: bool = ..., geolocation_buffer_ttl: _Optional[int] = ..., geolocation_min_buffer_size: _Optional[int] = ..., geolocation_tdoa: bool = ..., geolocation_rssi: bool = ..., geolocation_gnss: bool = ..., geolocation_gnss_payload_field: _Optional[str] = ..., geolocation_gnss_use_rx_time: bool = ..., geolocation_wifi: bool = ..., geolocation_wifi_payload_field: _Optional[str] = ...) -> None: ... - -class CreateLoraCloudIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: LoraCloudIntegration - def __init__(self, integration: _Optional[_Union[LoraCloudIntegration, _Mapping]] = ...) -> None: ... - -class GetLoraCloudIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class GetLoraCloudIntegrationResponse(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: LoraCloudIntegration - def __init__(self, integration: _Optional[_Union[LoraCloudIntegration, _Mapping]] = ...) -> None: ... - -class UpdateLoraCloudIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: LoraCloudIntegration - def __init__(self, integration: _Optional[_Union[LoraCloudIntegration, _Mapping]] = ...) -> None: ... - -class DeleteLoraCloudIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class GcpPubSubIntegration(_message.Message): - __slots__ = ("application_id", "encoding", "credentials_file", "project_id", "topic_name") - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - ENCODING_FIELD_NUMBER: _ClassVar[int] - CREDENTIALS_FILE_FIELD_NUMBER: _ClassVar[int] - PROJECT_ID_FIELD_NUMBER: _ClassVar[int] - TOPIC_NAME_FIELD_NUMBER: _ClassVar[int] - application_id: str - encoding: Encoding - credentials_file: str - project_id: str - topic_name: str - def __init__(self, application_id: _Optional[str] = ..., encoding: _Optional[_Union[Encoding, str]] = ..., credentials_file: _Optional[str] = ..., project_id: _Optional[str] = ..., topic_name: _Optional[str] = ...) -> None: ... - -class CreateGcpPubSubIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: GcpPubSubIntegration - def __init__(self, integration: _Optional[_Union[GcpPubSubIntegration, _Mapping]] = ...) -> None: ... - -class GetGcpPubSubIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class GetGcpPubSubIntegrationResponse(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: GcpPubSubIntegration - def __init__(self, integration: _Optional[_Union[GcpPubSubIntegration, _Mapping]] = ...) -> None: ... - -class UpdateGcpPubSubIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: GcpPubSubIntegration - def __init__(self, integration: _Optional[_Union[GcpPubSubIntegration, _Mapping]] = ...) -> None: ... - -class DeleteGcpPubSubIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class AwsSnsIntegration(_message.Message): - __slots__ = ("application_id", "encoding", "region", "access_key_id", "secret_access_key", "topic_arn") - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - ENCODING_FIELD_NUMBER: _ClassVar[int] - REGION_FIELD_NUMBER: _ClassVar[int] - ACCESS_KEY_ID_FIELD_NUMBER: _ClassVar[int] - SECRET_ACCESS_KEY_FIELD_NUMBER: _ClassVar[int] - TOPIC_ARN_FIELD_NUMBER: _ClassVar[int] - application_id: str - encoding: Encoding - region: str - access_key_id: str - secret_access_key: str - topic_arn: str - def __init__(self, application_id: _Optional[str] = ..., encoding: _Optional[_Union[Encoding, str]] = ..., region: _Optional[str] = ..., access_key_id: _Optional[str] = ..., secret_access_key: _Optional[str] = ..., topic_arn: _Optional[str] = ...) -> None: ... - -class CreateAwsSnsIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: AwsSnsIntegration - def __init__(self, integration: _Optional[_Union[AwsSnsIntegration, _Mapping]] = ...) -> None: ... - -class GetAwsSnsIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class GetAwsSnsIntegrationResponse(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: AwsSnsIntegration - def __init__(self, integration: _Optional[_Union[AwsSnsIntegration, _Mapping]] = ...) -> None: ... - -class UpdateAwsSnsIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: AwsSnsIntegration - def __init__(self, integration: _Optional[_Union[AwsSnsIntegration, _Mapping]] = ...) -> None: ... - -class DeleteAwsSnsIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class AzureServiceBusIntegration(_message.Message): - __slots__ = ("application_id", "encoding", "connection_string", "publish_name") - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - ENCODING_FIELD_NUMBER: _ClassVar[int] - CONNECTION_STRING_FIELD_NUMBER: _ClassVar[int] - PUBLISH_NAME_FIELD_NUMBER: _ClassVar[int] - application_id: str - encoding: Encoding - connection_string: str - publish_name: str - def __init__(self, application_id: _Optional[str] = ..., encoding: _Optional[_Union[Encoding, str]] = ..., connection_string: _Optional[str] = ..., publish_name: _Optional[str] = ...) -> None: ... - -class CreateAzureServiceBusIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: AzureServiceBusIntegration - def __init__(self, integration: _Optional[_Union[AzureServiceBusIntegration, _Mapping]] = ...) -> None: ... - -class GetAzureServiceBusIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class GetAzureServiceBusIntegrationResponse(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: AzureServiceBusIntegration - def __init__(self, integration: _Optional[_Union[AzureServiceBusIntegration, _Mapping]] = ...) -> None: ... - -class UpdateAzureServiceBusIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: AzureServiceBusIntegration - def __init__(self, integration: _Optional[_Union[AzureServiceBusIntegration, _Mapping]] = ...) -> None: ... - -class DeleteAzureServiceBusIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class PilotThingsIntegration(_message.Message): - __slots__ = ("application_id", "server", "token") - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - SERVER_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - application_id: str - server: str - token: str - def __init__(self, application_id: _Optional[str] = ..., server: _Optional[str] = ..., token: _Optional[str] = ...) -> None: ... - -class CreatePilotThingsIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: PilotThingsIntegration - def __init__(self, integration: _Optional[_Union[PilotThingsIntegration, _Mapping]] = ...) -> None: ... - -class GetPilotThingsIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class GetPilotThingsIntegrationResponse(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: PilotThingsIntegration - def __init__(self, integration: _Optional[_Union[PilotThingsIntegration, _Mapping]] = ...) -> None: ... - -class UpdatePilotThingsIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: PilotThingsIntegration - def __init__(self, integration: _Optional[_Union[PilotThingsIntegration, _Mapping]] = ...) -> None: ... - -class DeletePilotThingsIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class IftttIntegration(_message.Message): - __slots__ = ("application_id", "key", "uplink_values", "arbitrary_json", "event_prefix") - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - KEY_FIELD_NUMBER: _ClassVar[int] - UPLINK_VALUES_FIELD_NUMBER: _ClassVar[int] - ARBITRARY_JSON_FIELD_NUMBER: _ClassVar[int] - EVENT_PREFIX_FIELD_NUMBER: _ClassVar[int] - application_id: str - key: str - uplink_values: _containers.RepeatedScalarFieldContainer[str] - arbitrary_json: bool - event_prefix: str - def __init__(self, application_id: _Optional[str] = ..., key: _Optional[str] = ..., uplink_values: _Optional[_Iterable[str]] = ..., arbitrary_json: bool = ..., event_prefix: _Optional[str] = ...) -> None: ... - -class CreateIftttIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: IftttIntegration - def __init__(self, integration: _Optional[_Union[IftttIntegration, _Mapping]] = ...) -> None: ... - -class GetIftttIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class GetIftttIntegrationResponse(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: IftttIntegration - def __init__(self, integration: _Optional[_Union[IftttIntegration, _Mapping]] = ...) -> None: ... - -class UpdateIftttIntegrationRequest(_message.Message): - __slots__ = ("integration",) - INTEGRATION_FIELD_NUMBER: _ClassVar[int] - integration: IftttIntegration - def __init__(self, integration: _Optional[_Union[IftttIntegration, _Mapping]] = ...) -> None: ... - -class DeleteIftttIntegrationRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class GenerateMqttIntegrationClientCertificateRequest(_message.Message): - __slots__ = ("application_id",) - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - application_id: str - def __init__(self, application_id: _Optional[str] = ...) -> None: ... - -class GenerateMqttIntegrationClientCertificateResponse(_message.Message): - __slots__ = ("tls_cert", "tls_key", "ca_cert", "expires_at") - TLS_CERT_FIELD_NUMBER: _ClassVar[int] - TLS_KEY_FIELD_NUMBER: _ClassVar[int] - CA_CERT_FIELD_NUMBER: _ClassVar[int] - EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] - tls_cert: str - tls_key: str - ca_cert: str - expires_at: _timestamp_pb2.Timestamp - def __init__(self, tls_cert: _Optional[str] = ..., tls_key: _Optional[str] = ..., ca_cert: _Optional[str] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... diff --git a/api/python/src/chirpstack_api/api/application_pb2_grpc.py b/api/python/src/chirpstack_api/api/application_pb2_grpc.py deleted file mode 100644 index 1ebaa20a..00000000 --- a/api/python/src/chirpstack_api/api/application_pb2_grpc.py +++ /dev/null @@ -1,1638 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from chirpstack_api.api import application_pb2 as chirpstack__api_dot_api_dot_application__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 - - -class ApplicationServiceStub(object): - """ApplicationService is the service providing API methods for managing - applications. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Create = channel.unary_unary( - '/api.ApplicationService/Create', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.CreateApplicationRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_application__pb2.CreateApplicationResponse.FromString, - ) - self.Get = channel.unary_unary( - '/api.ApplicationService/Get', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.GetApplicationRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetApplicationResponse.FromString, - ) - self.Update = channel.unary_unary( - '/api.ApplicationService/Update', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.UpdateApplicationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.Delete = channel.unary_unary( - '/api.ApplicationService/Delete', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.DeleteApplicationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.List = channel.unary_unary( - '/api.ApplicationService/List', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.ListApplicationsRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_application__pb2.ListApplicationsResponse.FromString, - ) - self.ListIntegrations = channel.unary_unary( - '/api.ApplicationService/ListIntegrations', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.ListIntegrationsRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_application__pb2.ListIntegrationsResponse.FromString, - ) - self.CreateHttpIntegration = channel.unary_unary( - '/api.ApplicationService/CreateHttpIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.CreateHttpIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.GetHttpIntegration = channel.unary_unary( - '/api.ApplicationService/GetHttpIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.GetHttpIntegrationRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetHttpIntegrationResponse.FromString, - ) - self.UpdateHttpIntegration = channel.unary_unary( - '/api.ApplicationService/UpdateHttpIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.UpdateHttpIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.DeleteHttpIntegration = channel.unary_unary( - '/api.ApplicationService/DeleteHttpIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.DeleteHttpIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.CreateInfluxDbIntegration = channel.unary_unary( - '/api.ApplicationService/CreateInfluxDbIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.CreateInfluxDbIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.GetInfluxDbIntegration = channel.unary_unary( - '/api.ApplicationService/GetInfluxDbIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.GetInfluxDbIntegrationRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetInfluxDbIntegrationResponse.FromString, - ) - self.UpdateInfluxDbIntegration = channel.unary_unary( - '/api.ApplicationService/UpdateInfluxDbIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.UpdateInfluxDbIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.DeleteInfluxDbIntegration = channel.unary_unary( - '/api.ApplicationService/DeleteInfluxDbIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.DeleteInfluxDbIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.CreateThingsBoardIntegration = channel.unary_unary( - '/api.ApplicationService/CreateThingsBoardIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.CreateThingsBoardIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.GetThingsBoardIntegration = channel.unary_unary( - '/api.ApplicationService/GetThingsBoardIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.GetThingsBoardIntegrationRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetThingsBoardIntegrationResponse.FromString, - ) - self.UpdateThingsBoardIntegration = channel.unary_unary( - '/api.ApplicationService/UpdateThingsBoardIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.UpdateThingsBoardIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.DeleteThingsBoardIntegration = channel.unary_unary( - '/api.ApplicationService/DeleteThingsBoardIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.DeleteThingsBoardIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.CreateMyDevicesIntegration = channel.unary_unary( - '/api.ApplicationService/CreateMyDevicesIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.CreateMyDevicesIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.GetMyDevicesIntegration = channel.unary_unary( - '/api.ApplicationService/GetMyDevicesIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.GetMyDevicesIntegrationRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetMyDevicesIntegrationResponse.FromString, - ) - self.UpdateMyDevicesIntegration = channel.unary_unary( - '/api.ApplicationService/UpdateMyDevicesIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.UpdateMyDevicesIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.DeleteMyDevicesIntegration = channel.unary_unary( - '/api.ApplicationService/DeleteMyDevicesIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.DeleteMyDevicesIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.CreateLoraCloudIntegration = channel.unary_unary( - '/api.ApplicationService/CreateLoraCloudIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.CreateLoraCloudIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.GetLoraCloudIntegration = channel.unary_unary( - '/api.ApplicationService/GetLoraCloudIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.GetLoraCloudIntegrationRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetLoraCloudIntegrationResponse.FromString, - ) - self.UpdateLoraCloudIntegration = channel.unary_unary( - '/api.ApplicationService/UpdateLoraCloudIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.UpdateLoraCloudIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.DeleteLoraCloudIntegration = channel.unary_unary( - '/api.ApplicationService/DeleteLoraCloudIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.DeleteLoraCloudIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.CreateGcpPubSubIntegration = channel.unary_unary( - '/api.ApplicationService/CreateGcpPubSubIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.CreateGcpPubSubIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.GetGcpPubSubIntegration = channel.unary_unary( - '/api.ApplicationService/GetGcpPubSubIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.GetGcpPubSubIntegrationRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetGcpPubSubIntegrationResponse.FromString, - ) - self.UpdateGcpPubSubIntegration = channel.unary_unary( - '/api.ApplicationService/UpdateGcpPubSubIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.UpdateGcpPubSubIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.DeleteGcpPubSubIntegration = channel.unary_unary( - '/api.ApplicationService/DeleteGcpPubSubIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.DeleteGcpPubSubIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.CreateAwsSnsIntegration = channel.unary_unary( - '/api.ApplicationService/CreateAwsSnsIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.CreateAwsSnsIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.GetAwsSnsIntegration = channel.unary_unary( - '/api.ApplicationService/GetAwsSnsIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.GetAwsSnsIntegrationRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetAwsSnsIntegrationResponse.FromString, - ) - self.UpdateAwsSnsIntegration = channel.unary_unary( - '/api.ApplicationService/UpdateAwsSnsIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.UpdateAwsSnsIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.DeleteAwsSnsIntegration = channel.unary_unary( - '/api.ApplicationService/DeleteAwsSnsIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.DeleteAwsSnsIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.CreateAzureServiceBusIntegration = channel.unary_unary( - '/api.ApplicationService/CreateAzureServiceBusIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.CreateAzureServiceBusIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.GetAzureServiceBusIntegration = channel.unary_unary( - '/api.ApplicationService/GetAzureServiceBusIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.GetAzureServiceBusIntegrationRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetAzureServiceBusIntegrationResponse.FromString, - ) - self.UpdateAzureServiceBusIntegration = channel.unary_unary( - '/api.ApplicationService/UpdateAzureServiceBusIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.UpdateAzureServiceBusIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.DeleteAzureServiceBusIntegration = channel.unary_unary( - '/api.ApplicationService/DeleteAzureServiceBusIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.DeleteAzureServiceBusIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.CreatePilotThingsIntegration = channel.unary_unary( - '/api.ApplicationService/CreatePilotThingsIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.CreatePilotThingsIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.GetPilotThingsIntegration = channel.unary_unary( - '/api.ApplicationService/GetPilotThingsIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.GetPilotThingsIntegrationRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetPilotThingsIntegrationResponse.FromString, - ) - self.UpdatePilotThingsIntegration = channel.unary_unary( - '/api.ApplicationService/UpdatePilotThingsIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.UpdatePilotThingsIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.DeletePilotThingsIntegration = channel.unary_unary( - '/api.ApplicationService/DeletePilotThingsIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.DeletePilotThingsIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.CreateIftttIntegration = channel.unary_unary( - '/api.ApplicationService/CreateIftttIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.CreateIftttIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.GetIftttIntegration = channel.unary_unary( - '/api.ApplicationService/GetIftttIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.GetIftttIntegrationRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetIftttIntegrationResponse.FromString, - ) - self.UpdateIftttIntegration = channel.unary_unary( - '/api.ApplicationService/UpdateIftttIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.UpdateIftttIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.DeleteIftttIntegration = channel.unary_unary( - '/api.ApplicationService/DeleteIftttIntegration', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.DeleteIftttIntegrationRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.GenerateMqttIntegrationClientCertificate = channel.unary_unary( - '/api.ApplicationService/GenerateMqttIntegrationClientCertificate', - request_serializer=chirpstack__api_dot_api_dot_application__pb2.GenerateMqttIntegrationClientCertificateRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_application__pb2.GenerateMqttIntegrationClientCertificateResponse.FromString, - ) - - -class ApplicationServiceServicer(object): - """ApplicationService is the service providing API methods for managing - applications. - """ - - def Create(self, request, context): - """Create creates the given application. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Get(self, request, context): - """Get the application for the given ID. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Update(self, request, context): - """Update updates the given application. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Delete(self, request, context): - """Delete the application for the given ID. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def List(self, request, context): - """Get the list of applications. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListIntegrations(self, request, context): - """List all configured integrations. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateHttpIntegration(self, request, context): - """Create HTTP integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetHttpIntegration(self, request, context): - """Get the configured HTTP integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateHttpIntegration(self, request, context): - """Update the HTTP integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteHttpIntegration(self, request, context): - """Delete the HTTP integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateInfluxDbIntegration(self, request, context): - """Create InfluxDb integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetInfluxDbIntegration(self, request, context): - """Get InfluxDb integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateInfluxDbIntegration(self, request, context): - """Update InfluxDb integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteInfluxDbIntegration(self, request, context): - """Delete InfluxDb integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateThingsBoardIntegration(self, request, context): - """Create ThingsBoard integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetThingsBoardIntegration(self, request, context): - """Get ThingsBoard integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateThingsBoardIntegration(self, request, context): - """Update ThingsBoard integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteThingsBoardIntegration(self, request, context): - """Delete ThingsBoard integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateMyDevicesIntegration(self, request, context): - """Create myDevices integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetMyDevicesIntegration(self, request, context): - """Get myDevices integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateMyDevicesIntegration(self, request, context): - """Update myDevices integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteMyDevicesIntegration(self, request, context): - """Delete myDevices integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateLoraCloudIntegration(self, request, context): - """Create LoRaCloud integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetLoraCloudIntegration(self, request, context): - """Get LoRaCloud integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateLoraCloudIntegration(self, request, context): - """Update LoRaCloud integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteLoraCloudIntegration(self, request, context): - """Delete LoRaCloud integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateGcpPubSubIntegration(self, request, context): - """Create GCP Pub/Sub integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetGcpPubSubIntegration(self, request, context): - """Get GCP Pub/Sub integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateGcpPubSubIntegration(self, request, context): - """Update GCP Pub/Sub integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteGcpPubSubIntegration(self, request, context): - """Delete GCP Pub/Sub integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateAwsSnsIntegration(self, request, context): - """Create AWS SNS integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAwsSnsIntegration(self, request, context): - """Get AWS SNS integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateAwsSnsIntegration(self, request, context): - """Update AWS SNS integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteAwsSnsIntegration(self, request, context): - """Delete AWS SNS integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateAzureServiceBusIntegration(self, request, context): - """Create Azure Service-Bus integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAzureServiceBusIntegration(self, request, context): - """Get Azure Service-Bus integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateAzureServiceBusIntegration(self, request, context): - """Update Azure Service-Bus integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteAzureServiceBusIntegration(self, request, context): - """Delete Azure Service-Bus integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreatePilotThingsIntegration(self, request, context): - """Create Pilot Things integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetPilotThingsIntegration(self, request, context): - """Get Pilot Things integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdatePilotThingsIntegration(self, request, context): - """Update Pilot Things integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeletePilotThingsIntegration(self, request, context): - """Delete Pilot Things integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateIftttIntegration(self, request, context): - """Create IFTTT integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetIftttIntegration(self, request, context): - """Get IFTTT integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateIftttIntegration(self, request, context): - """Update IFTTT integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteIftttIntegration(self, request, context): - """Delete IFTTT integration. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GenerateMqttIntegrationClientCertificate(self, request, context): - """Generates application ID specific client-certificate. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ApplicationServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Create': grpc.unary_unary_rpc_method_handler( - servicer.Create, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.CreateApplicationRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_application__pb2.CreateApplicationResponse.SerializeToString, - ), - 'Get': grpc.unary_unary_rpc_method_handler( - servicer.Get, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetApplicationRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_application__pb2.GetApplicationResponse.SerializeToString, - ), - 'Update': grpc.unary_unary_rpc_method_handler( - servicer.Update, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.UpdateApplicationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'Delete': grpc.unary_unary_rpc_method_handler( - servicer.Delete, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.DeleteApplicationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'List': grpc.unary_unary_rpc_method_handler( - servicer.List, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.ListApplicationsRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_application__pb2.ListApplicationsResponse.SerializeToString, - ), - 'ListIntegrations': grpc.unary_unary_rpc_method_handler( - servicer.ListIntegrations, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.ListIntegrationsRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_application__pb2.ListIntegrationsResponse.SerializeToString, - ), - 'CreateHttpIntegration': grpc.unary_unary_rpc_method_handler( - servicer.CreateHttpIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.CreateHttpIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetHttpIntegration': grpc.unary_unary_rpc_method_handler( - servicer.GetHttpIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetHttpIntegrationRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_application__pb2.GetHttpIntegrationResponse.SerializeToString, - ), - 'UpdateHttpIntegration': grpc.unary_unary_rpc_method_handler( - servicer.UpdateHttpIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.UpdateHttpIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'DeleteHttpIntegration': grpc.unary_unary_rpc_method_handler( - servicer.DeleteHttpIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.DeleteHttpIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateInfluxDbIntegration': grpc.unary_unary_rpc_method_handler( - servicer.CreateInfluxDbIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.CreateInfluxDbIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetInfluxDbIntegration': grpc.unary_unary_rpc_method_handler( - servicer.GetInfluxDbIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetInfluxDbIntegrationRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_application__pb2.GetInfluxDbIntegrationResponse.SerializeToString, - ), - 'UpdateInfluxDbIntegration': grpc.unary_unary_rpc_method_handler( - servicer.UpdateInfluxDbIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.UpdateInfluxDbIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'DeleteInfluxDbIntegration': grpc.unary_unary_rpc_method_handler( - servicer.DeleteInfluxDbIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.DeleteInfluxDbIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateThingsBoardIntegration': grpc.unary_unary_rpc_method_handler( - servicer.CreateThingsBoardIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.CreateThingsBoardIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetThingsBoardIntegration': grpc.unary_unary_rpc_method_handler( - servicer.GetThingsBoardIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetThingsBoardIntegrationRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_application__pb2.GetThingsBoardIntegrationResponse.SerializeToString, - ), - 'UpdateThingsBoardIntegration': grpc.unary_unary_rpc_method_handler( - servicer.UpdateThingsBoardIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.UpdateThingsBoardIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'DeleteThingsBoardIntegration': grpc.unary_unary_rpc_method_handler( - servicer.DeleteThingsBoardIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.DeleteThingsBoardIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateMyDevicesIntegration': grpc.unary_unary_rpc_method_handler( - servicer.CreateMyDevicesIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.CreateMyDevicesIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetMyDevicesIntegration': grpc.unary_unary_rpc_method_handler( - servicer.GetMyDevicesIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetMyDevicesIntegrationRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_application__pb2.GetMyDevicesIntegrationResponse.SerializeToString, - ), - 'UpdateMyDevicesIntegration': grpc.unary_unary_rpc_method_handler( - servicer.UpdateMyDevicesIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.UpdateMyDevicesIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'DeleteMyDevicesIntegration': grpc.unary_unary_rpc_method_handler( - servicer.DeleteMyDevicesIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.DeleteMyDevicesIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateLoraCloudIntegration': grpc.unary_unary_rpc_method_handler( - servicer.CreateLoraCloudIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.CreateLoraCloudIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetLoraCloudIntegration': grpc.unary_unary_rpc_method_handler( - servicer.GetLoraCloudIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetLoraCloudIntegrationRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_application__pb2.GetLoraCloudIntegrationResponse.SerializeToString, - ), - 'UpdateLoraCloudIntegration': grpc.unary_unary_rpc_method_handler( - servicer.UpdateLoraCloudIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.UpdateLoraCloudIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'DeleteLoraCloudIntegration': grpc.unary_unary_rpc_method_handler( - servicer.DeleteLoraCloudIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.DeleteLoraCloudIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateGcpPubSubIntegration': grpc.unary_unary_rpc_method_handler( - servicer.CreateGcpPubSubIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.CreateGcpPubSubIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetGcpPubSubIntegration': grpc.unary_unary_rpc_method_handler( - servicer.GetGcpPubSubIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetGcpPubSubIntegrationRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_application__pb2.GetGcpPubSubIntegrationResponse.SerializeToString, - ), - 'UpdateGcpPubSubIntegration': grpc.unary_unary_rpc_method_handler( - servicer.UpdateGcpPubSubIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.UpdateGcpPubSubIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'DeleteGcpPubSubIntegration': grpc.unary_unary_rpc_method_handler( - servicer.DeleteGcpPubSubIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.DeleteGcpPubSubIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateAwsSnsIntegration': grpc.unary_unary_rpc_method_handler( - servicer.CreateAwsSnsIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.CreateAwsSnsIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetAwsSnsIntegration': grpc.unary_unary_rpc_method_handler( - servicer.GetAwsSnsIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetAwsSnsIntegrationRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_application__pb2.GetAwsSnsIntegrationResponse.SerializeToString, - ), - 'UpdateAwsSnsIntegration': grpc.unary_unary_rpc_method_handler( - servicer.UpdateAwsSnsIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.UpdateAwsSnsIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'DeleteAwsSnsIntegration': grpc.unary_unary_rpc_method_handler( - servicer.DeleteAwsSnsIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.DeleteAwsSnsIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateAzureServiceBusIntegration': grpc.unary_unary_rpc_method_handler( - servicer.CreateAzureServiceBusIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.CreateAzureServiceBusIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetAzureServiceBusIntegration': grpc.unary_unary_rpc_method_handler( - servicer.GetAzureServiceBusIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetAzureServiceBusIntegrationRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_application__pb2.GetAzureServiceBusIntegrationResponse.SerializeToString, - ), - 'UpdateAzureServiceBusIntegration': grpc.unary_unary_rpc_method_handler( - servicer.UpdateAzureServiceBusIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.UpdateAzureServiceBusIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'DeleteAzureServiceBusIntegration': grpc.unary_unary_rpc_method_handler( - servicer.DeleteAzureServiceBusIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.DeleteAzureServiceBusIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreatePilotThingsIntegration': grpc.unary_unary_rpc_method_handler( - servicer.CreatePilotThingsIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.CreatePilotThingsIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetPilotThingsIntegration': grpc.unary_unary_rpc_method_handler( - servicer.GetPilotThingsIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetPilotThingsIntegrationRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_application__pb2.GetPilotThingsIntegrationResponse.SerializeToString, - ), - 'UpdatePilotThingsIntegration': grpc.unary_unary_rpc_method_handler( - servicer.UpdatePilotThingsIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.UpdatePilotThingsIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'DeletePilotThingsIntegration': grpc.unary_unary_rpc_method_handler( - servicer.DeletePilotThingsIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.DeletePilotThingsIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'CreateIftttIntegration': grpc.unary_unary_rpc_method_handler( - servicer.CreateIftttIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.CreateIftttIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetIftttIntegration': grpc.unary_unary_rpc_method_handler( - servicer.GetIftttIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.GetIftttIntegrationRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_application__pb2.GetIftttIntegrationResponse.SerializeToString, - ), - 'UpdateIftttIntegration': grpc.unary_unary_rpc_method_handler( - servicer.UpdateIftttIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.UpdateIftttIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'DeleteIftttIntegration': grpc.unary_unary_rpc_method_handler( - servicer.DeleteIftttIntegration, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.DeleteIftttIntegrationRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GenerateMqttIntegrationClientCertificate': grpc.unary_unary_rpc_method_handler( - servicer.GenerateMqttIntegrationClientCertificate, - request_deserializer=chirpstack__api_dot_api_dot_application__pb2.GenerateMqttIntegrationClientCertificateRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_application__pb2.GenerateMqttIntegrationClientCertificateResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'api.ApplicationService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class ApplicationService(object): - """ApplicationService is the service providing API methods for managing - applications. - """ - - @staticmethod - def Create(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/Create', - chirpstack__api_dot_api_dot_application__pb2.CreateApplicationRequest.SerializeToString, - chirpstack__api_dot_api_dot_application__pb2.CreateApplicationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Get(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/Get', - chirpstack__api_dot_api_dot_application__pb2.GetApplicationRequest.SerializeToString, - chirpstack__api_dot_api_dot_application__pb2.GetApplicationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Update(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/Update', - chirpstack__api_dot_api_dot_application__pb2.UpdateApplicationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Delete(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/Delete', - chirpstack__api_dot_api_dot_application__pb2.DeleteApplicationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def List(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/List', - chirpstack__api_dot_api_dot_application__pb2.ListApplicationsRequest.SerializeToString, - chirpstack__api_dot_api_dot_application__pb2.ListApplicationsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListIntegrations(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/ListIntegrations', - chirpstack__api_dot_api_dot_application__pb2.ListIntegrationsRequest.SerializeToString, - chirpstack__api_dot_api_dot_application__pb2.ListIntegrationsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateHttpIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/CreateHttpIntegration', - chirpstack__api_dot_api_dot_application__pb2.CreateHttpIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetHttpIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/GetHttpIntegration', - chirpstack__api_dot_api_dot_application__pb2.GetHttpIntegrationRequest.SerializeToString, - chirpstack__api_dot_api_dot_application__pb2.GetHttpIntegrationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateHttpIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/UpdateHttpIntegration', - chirpstack__api_dot_api_dot_application__pb2.UpdateHttpIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteHttpIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/DeleteHttpIntegration', - chirpstack__api_dot_api_dot_application__pb2.DeleteHttpIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateInfluxDbIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/CreateInfluxDbIntegration', - chirpstack__api_dot_api_dot_application__pb2.CreateInfluxDbIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetInfluxDbIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/GetInfluxDbIntegration', - chirpstack__api_dot_api_dot_application__pb2.GetInfluxDbIntegrationRequest.SerializeToString, - chirpstack__api_dot_api_dot_application__pb2.GetInfluxDbIntegrationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateInfluxDbIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/UpdateInfluxDbIntegration', - chirpstack__api_dot_api_dot_application__pb2.UpdateInfluxDbIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteInfluxDbIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/DeleteInfluxDbIntegration', - chirpstack__api_dot_api_dot_application__pb2.DeleteInfluxDbIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateThingsBoardIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/CreateThingsBoardIntegration', - chirpstack__api_dot_api_dot_application__pb2.CreateThingsBoardIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetThingsBoardIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/GetThingsBoardIntegration', - chirpstack__api_dot_api_dot_application__pb2.GetThingsBoardIntegrationRequest.SerializeToString, - chirpstack__api_dot_api_dot_application__pb2.GetThingsBoardIntegrationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateThingsBoardIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/UpdateThingsBoardIntegration', - chirpstack__api_dot_api_dot_application__pb2.UpdateThingsBoardIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteThingsBoardIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/DeleteThingsBoardIntegration', - chirpstack__api_dot_api_dot_application__pb2.DeleteThingsBoardIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateMyDevicesIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/CreateMyDevicesIntegration', - chirpstack__api_dot_api_dot_application__pb2.CreateMyDevicesIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetMyDevicesIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/GetMyDevicesIntegration', - chirpstack__api_dot_api_dot_application__pb2.GetMyDevicesIntegrationRequest.SerializeToString, - chirpstack__api_dot_api_dot_application__pb2.GetMyDevicesIntegrationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateMyDevicesIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/UpdateMyDevicesIntegration', - chirpstack__api_dot_api_dot_application__pb2.UpdateMyDevicesIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteMyDevicesIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/DeleteMyDevicesIntegration', - chirpstack__api_dot_api_dot_application__pb2.DeleteMyDevicesIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateLoraCloudIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/CreateLoraCloudIntegration', - chirpstack__api_dot_api_dot_application__pb2.CreateLoraCloudIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetLoraCloudIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/GetLoraCloudIntegration', - chirpstack__api_dot_api_dot_application__pb2.GetLoraCloudIntegrationRequest.SerializeToString, - chirpstack__api_dot_api_dot_application__pb2.GetLoraCloudIntegrationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateLoraCloudIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/UpdateLoraCloudIntegration', - chirpstack__api_dot_api_dot_application__pb2.UpdateLoraCloudIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteLoraCloudIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/DeleteLoraCloudIntegration', - chirpstack__api_dot_api_dot_application__pb2.DeleteLoraCloudIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateGcpPubSubIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/CreateGcpPubSubIntegration', - chirpstack__api_dot_api_dot_application__pb2.CreateGcpPubSubIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetGcpPubSubIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/GetGcpPubSubIntegration', - chirpstack__api_dot_api_dot_application__pb2.GetGcpPubSubIntegrationRequest.SerializeToString, - chirpstack__api_dot_api_dot_application__pb2.GetGcpPubSubIntegrationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateGcpPubSubIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/UpdateGcpPubSubIntegration', - chirpstack__api_dot_api_dot_application__pb2.UpdateGcpPubSubIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteGcpPubSubIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/DeleteGcpPubSubIntegration', - chirpstack__api_dot_api_dot_application__pb2.DeleteGcpPubSubIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateAwsSnsIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/CreateAwsSnsIntegration', - chirpstack__api_dot_api_dot_application__pb2.CreateAwsSnsIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAwsSnsIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/GetAwsSnsIntegration', - chirpstack__api_dot_api_dot_application__pb2.GetAwsSnsIntegrationRequest.SerializeToString, - chirpstack__api_dot_api_dot_application__pb2.GetAwsSnsIntegrationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateAwsSnsIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/UpdateAwsSnsIntegration', - chirpstack__api_dot_api_dot_application__pb2.UpdateAwsSnsIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteAwsSnsIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/DeleteAwsSnsIntegration', - chirpstack__api_dot_api_dot_application__pb2.DeleteAwsSnsIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateAzureServiceBusIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/CreateAzureServiceBusIntegration', - chirpstack__api_dot_api_dot_application__pb2.CreateAzureServiceBusIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAzureServiceBusIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/GetAzureServiceBusIntegration', - chirpstack__api_dot_api_dot_application__pb2.GetAzureServiceBusIntegrationRequest.SerializeToString, - chirpstack__api_dot_api_dot_application__pb2.GetAzureServiceBusIntegrationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateAzureServiceBusIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/UpdateAzureServiceBusIntegration', - chirpstack__api_dot_api_dot_application__pb2.UpdateAzureServiceBusIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteAzureServiceBusIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/DeleteAzureServiceBusIntegration', - chirpstack__api_dot_api_dot_application__pb2.DeleteAzureServiceBusIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreatePilotThingsIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/CreatePilotThingsIntegration', - chirpstack__api_dot_api_dot_application__pb2.CreatePilotThingsIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetPilotThingsIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/GetPilotThingsIntegration', - chirpstack__api_dot_api_dot_application__pb2.GetPilotThingsIntegrationRequest.SerializeToString, - chirpstack__api_dot_api_dot_application__pb2.GetPilotThingsIntegrationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdatePilotThingsIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/UpdatePilotThingsIntegration', - chirpstack__api_dot_api_dot_application__pb2.UpdatePilotThingsIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeletePilotThingsIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/DeletePilotThingsIntegration', - chirpstack__api_dot_api_dot_application__pb2.DeletePilotThingsIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateIftttIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/CreateIftttIntegration', - chirpstack__api_dot_api_dot_application__pb2.CreateIftttIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetIftttIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/GetIftttIntegration', - chirpstack__api_dot_api_dot_application__pb2.GetIftttIntegrationRequest.SerializeToString, - chirpstack__api_dot_api_dot_application__pb2.GetIftttIntegrationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateIftttIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/UpdateIftttIntegration', - chirpstack__api_dot_api_dot_application__pb2.UpdateIftttIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteIftttIntegration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/DeleteIftttIntegration', - chirpstack__api_dot_api_dot_application__pb2.DeleteIftttIntegrationRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GenerateMqttIntegrationClientCertificate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.ApplicationService/GenerateMqttIntegrationClientCertificate', - chirpstack__api_dot_api_dot_application__pb2.GenerateMqttIntegrationClientCertificateRequest.SerializeToString, - chirpstack__api_dot_api_dot_application__pb2.GenerateMqttIntegrationClientCertificateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/api/python/src/chirpstack_api/api/device_pb2.py b/api/python/src/chirpstack_api/api/device_pb2.py deleted file mode 100644 index e5619a7e..00000000 --- a/api/python/src/chirpstack_api/api/device_pb2.py +++ /dev/null @@ -1,162 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: chirpstack-api/api/device.proto -# Protobuf Python Version: 4.25.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63hirpstack-api/api/device.proto\x12\x03\x61pi\x1a\"chirpstack-api/common/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xe2\x02\n\x06\x44\x65vice\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x16\n\x0e\x61pplication_id\x18\x04 \x01(\t\x12\x19\n\x11\x64\x65vice_profile_id\x18\x05 \x01(\t\x12\x17\n\x0fskip_fcnt_check\x18\x06 \x01(\x08\x12\x13\n\x0bis_disabled\x18\x07 \x01(\x08\x12-\n\tvariables\x18\x08 \x03(\x0b\x32\x1a.api.Device.VariablesEntry\x12#\n\x04tags\x18\t \x03(\x0b\x32\x15.api.Device.TagsEntry\x12\x10\n\x08join_eui\x18\n \x01(\t\x1a\x30\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"T\n\x0c\x44\x65viceStatus\x12\x0e\n\x06margin\x18\x01 \x01(\x05\x12\x1d\n\x15\x65xternal_power_source\x18\x02 \x01(\x08\x12\x15\n\rbattery_level\x18\x03 \x01(\x02\"\xb8\x02\n\x0e\x44\x65viceListItem\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0clast_seen_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x19\n\x11\x64\x65vice_profile_id\x18\x07 \x01(\t\x12\x1b\n\x13\x64\x65vice_profile_name\x18\x08 \x01(\t\x12(\n\rdevice_status\x18\t \x01(\x0b\x32\x11.api.DeviceStatus\"?\n\nDeviceKeys\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\x12\x0f\n\x07nwk_key\x18\x02 \x01(\t\x12\x0f\n\x07\x61pp_key\x18\x03 \x01(\t\"2\n\x13\x43reateDeviceRequest\x12\x1b\n\x06\x64\x65vice\x18\x01 \x01(\x0b\x32\x0b.api.Device\"#\n\x10GetDeviceRequest\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\"\x98\x02\n\x11GetDeviceResponse\x12\x1b\n\x06\x64\x65vice\x18\x01 \x01(\x0b\x32\x0b.api.Device\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0clast_seen_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12(\n\rdevice_status\x18\x05 \x01(\x0b\x32\x11.api.DeviceStatus\x12*\n\rclass_enabled\x18\x06 \x01(\x0e\x32\x13.common.DeviceClass\"2\n\x13UpdateDeviceRequest\x12\x1b\n\x06\x64\x65vice\x18\x01 \x01(\x0b\x32\x0b.api.Device\"&\n\x13\x44\x65leteDeviceRequest\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\"w\n\x12ListDevicesRequest\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\r\x12\x0e\n\x06search\x18\x03 \x01(\t\x12\x16\n\x0e\x61pplication_id\x18\x04 \x01(\t\x12\x1a\n\x12multicast_group_id\x18\x05 \x01(\t\"O\n\x13ListDevicesResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12#\n\x06result\x18\x02 \x03(\x0b\x32\x13.api.DeviceListItem\"?\n\x17\x43reateDeviceKeysRequest\x12$\n\x0b\x64\x65vice_keys\x18\x01 \x01(\x0b\x32\x0f.api.DeviceKeys\"\'\n\x14GetDeviceKeysRequest\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\"\x9d\x01\n\x15GetDeviceKeysResponse\x12$\n\x0b\x64\x65vice_keys\x18\x01 \x01(\x0b\x32\x0f.api.DeviceKeys\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"?\n\x17UpdateDeviceKeysRequest\x12$\n\x0b\x64\x65vice_keys\x18\x01 \x01(\x0b\x32\x0f.api.DeviceKeys\"*\n\x17\x44\x65leteDeviceKeysRequest\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\"\xcf\x01\n\x10\x44\x65viceActivation\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\x12\x10\n\x08\x64\x65v_addr\x18\x02 \x01(\t\x12\x11\n\tapp_s_key\x18\x03 \x01(\t\x12\x15\n\rnwk_s_enc_key\x18\x04 \x01(\t\x12\x17\n\x0fs_nwk_s_int_key\x18\x08 \x01(\t\x12\x17\n\x0f\x66_nwk_s_int_key\x18\t \x01(\t\x12\x10\n\x08\x66_cnt_up\x18\x05 \x01(\r\x12\x14\n\x0cn_f_cnt_down\x18\x06 \x01(\r\x12\x14\n\x0c\x61_f_cnt_down\x18\n \x01(\r\"I\n\x15\x41\x63tivateDeviceRequest\x12\x30\n\x11\x64\x65vice_activation\x18\x01 \x01(\x0b\x32\x15.api.DeviceActivation\"*\n\x17\x44\x65\x61\x63tivateDeviceRequest\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\"-\n\x1aGetDeviceActivationRequest\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\"\x87\x01\n\x1bGetDeviceActivationResponse\x12\x30\n\x11\x64\x65vice_activation\x18\x01 \x01(\x0b\x32\x15.api.DeviceActivation\x12\x36\n\x13join_server_context\x18\x02 \x01(\x0b\x32\x19.common.JoinServerContext\"*\n\x17GetRandomDevAddrRequest\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\",\n\x18GetRandomDevAddrResponse\x12\x10\n\x08\x64\x65v_addr\x18\x01 \x01(\t\"\xa8\x01\n\x17GetDeviceMetricsRequest\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\x12)\n\x05start\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03\x65nd\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12(\n\x0b\x61ggregation\x18\x04 \x01(\x0e\x32\x13.common.Aggregation\"\x93\x02\n\x18GetDeviceMetricsResponse\x12;\n\x07metrics\x18\x01 \x03(\x0b\x32*.api.GetDeviceMetricsResponse.MetricsEntry\x12\x39\n\x06states\x18\x02 \x03(\x0b\x32).api.GetDeviceMetricsResponse.StatesEntry\x1a>\n\x0cMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1d\n\x05value\x18\x02 \x01(\x0b\x32\x0e.common.Metric:\x02\x38\x01\x1a?\n\x0bStatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1f\n\x05value\x18\x02 \x01(\x0b\x32\x10.api.DeviceState:\x02\x38\x01\"*\n\x0b\x44\x65viceState\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\t\"\xac\x01\n\x1bGetDeviceLinkMetricsRequest\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\x12)\n\x05start\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03\x65nd\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12(\n\x0b\x61ggregation\x18\x04 \x01(\x0e\x32\x13.common.Aggregation\"\xfb\x01\n\x1cGetDeviceLinkMetricsResponse\x12\"\n\nrx_packets\x18\x01 \x01(\x0b\x32\x0e.common.Metric\x12\x1f\n\x07gw_rssi\x18\x02 \x01(\x0b\x32\x0e.common.Metric\x12\x1e\n\x06gw_snr\x18\x03 \x01(\x0b\x32\x0e.common.Metric\x12+\n\x13rx_packets_per_freq\x18\x04 \x01(\x0b\x32\x0e.common.Metric\x12)\n\x11rx_packets_per_dr\x18\x05 \x01(\x0b\x32\x0e.common.Metric\x12\x1e\n\x06\x65rrors\x18\x06 \x01(\x0b\x32\x0e.common.Metric\"\xc6\x01\n\x0f\x44\x65viceQueueItem\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x65v_eui\x18\x02 \x01(\t\x12\x11\n\tconfirmed\x18\x03 \x01(\x08\x12\x0e\n\x06\x66_port\x18\x04 \x01(\r\x12\x0c\n\x04\x64\x61ta\x18\x05 \x01(\x0c\x12\'\n\x06object\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x12\n\nis_pending\x18\x07 \x01(\x08\x12\x12\n\nf_cnt_down\x18\x08 \x01(\r\x12\x14\n\x0cis_encrypted\x18\t \x01(\x08\"I\n\x1d\x45nqueueDeviceQueueItemRequest\x12(\n\nqueue_item\x18\x01 \x01(\x0b\x32\x14.api.DeviceQueueItem\",\n\x1e\x45nqueueDeviceQueueItemResponse\x12\n\n\x02id\x18\x01 \x01(\t\"*\n\x17\x46lushDeviceQueueRequest\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\"A\n\x1aGetDeviceQueueItemsRequest\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\x12\x12\n\ncount_only\x18\x02 \x01(\x08\"X\n\x1bGetDeviceQueueItemsResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12$\n\x06result\x18\x02 \x03(\x0b\x32\x14.api.DeviceQueueItem\"(\n\x15\x46lushDevNoncesRequest\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\"/\n\x1cGetDeviceNextFCntDownRequest\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\"3\n\x1dGetDeviceNextFCntDownResponse\x12\x12\n\nf_cnt_down\x18\x01 \x01(\r2\xe2\x11\n\rDeviceService\x12S\n\x06\x43reate\x12\x18.api.CreateDeviceRequest\x1a\x16.google.protobuf.Empty\"\x17\x82\xd3\xe4\x93\x02\x11\"\x0c/api/devices:\x01*\x12T\n\x03Get\x12\x15.api.GetDeviceRequest\x1a\x16.api.GetDeviceResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/api/devices/{dev_eui}\x12\x64\n\x06Update\x12\x18.api.UpdateDeviceRequest\x1a\x16.google.protobuf.Empty\"(\x82\xd3\xe4\x93\x02\"\x1a\x1d/api/devices/{device.dev_eui}:\x01*\x12Z\n\x06\x44\x65lete\x12\x18.api.DeleteDeviceRequest\x1a\x16.google.protobuf.Empty\"\x1e\x82\xd3\xe4\x93\x02\x18*\x16/api/devices/{dev_eui}\x12O\n\x04List\x12\x17.api.ListDevicesRequest\x1a\x18.api.ListDevicesResponse\"\x14\x82\xd3\xe4\x93\x02\x0e\x12\x0c/api/devices\x12v\n\nCreateKeys\x12\x1c.api.CreateDeviceKeysRequest\x1a\x16.google.protobuf.Empty\"2\x82\xd3\xe4\x93\x02,\"\'/api/devices/{device_keys.dev_eui}/keys:\x01*\x12\x65\n\x07GetKeys\x12\x19.api.GetDeviceKeysRequest\x1a\x1a.api.GetDeviceKeysResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/devices/{dev_eui}/keys\x12v\n\nUpdateKeys\x12\x1c.api.UpdateDeviceKeysRequest\x1a\x16.google.protobuf.Empty\"2\x82\xd3\xe4\x93\x02,\x1a\'/api/devices/{device_keys.dev_eui}/keys:\x01*\x12g\n\nDeleteKeys\x12\x1c.api.DeleteDeviceKeysRequest\x1a\x16.google.protobuf.Empty\"#\x82\xd3\xe4\x93\x02\x1d*\x1b/api/devices/{dev_eui}/keys\x12o\n\x0e\x46lushDevNonces\x12\x1a.api.FlushDevNoncesRequest\x1a\x16.google.protobuf.Empty\")\x82\xd3\xe4\x93\x02#*!/api/devices/{dev_eui}/dev-nonces\x12|\n\x08\x41\x63tivate\x12\x1a.api.ActivateDeviceRequest\x1a\x16.google.protobuf.Empty\"<\x82\xd3\xe4\x93\x02\x36\"1/api/devices/{device_activation.dev_eui}/activate:\x01*\x12m\n\nDeactivate\x12\x1c.api.DeactivateDeviceRequest\x1a\x16.google.protobuf.Empty\")\x82\xd3\xe4\x93\x02#*!/api/devices/{dev_eui}/activation\x12}\n\rGetActivation\x12\x1f.api.GetDeviceActivationRequest\x1a .api.GetDeviceActivationResponse\")\x82\xd3\xe4\x93\x02#\x12!/api/devices/{dev_eui}/activation\x12\x83\x01\n\x10GetRandomDevAddr\x12\x1c.api.GetRandomDevAddrRequest\x1a\x1d.api.GetRandomDevAddrResponse\"2\x82\xd3\xe4\x93\x02,\"*/api/devices/{dev_eui}/get-random-dev-addr\x12q\n\nGetMetrics\x12\x1c.api.GetDeviceMetricsRequest\x1a\x1d.api.GetDeviceMetricsResponse\"&\x82\xd3\xe4\x93\x02 \x12\x1e/api/devices/{dev_eui}/metrics\x12\x82\x01\n\x0eGetLinkMetrics\x12 .api.GetDeviceLinkMetricsRequest\x1a!.api.GetDeviceLinkMetricsResponse\"+\x82\xd3\xe4\x93\x02%\x12#/api/devices/{dev_eui}/link-metrics\x12\x86\x01\n\x07\x45nqueue\x12\".api.EnqueueDeviceQueueItemRequest\x1a#.api.EnqueueDeviceQueueItemResponse\"2\x82\xd3\xe4\x93\x02,\"\'/api/devices/{queue_item.dev_eui}/queue:\x01*\x12h\n\nFlushQueue\x12\x1c.api.FlushDeviceQueueRequest\x1a\x16.google.protobuf.Empty\"$\x82\xd3\xe4\x93\x02\x1e*\x1c/api/devices/{dev_eui}/queue\x12s\n\x08GetQueue\x12\x1f.api.GetDeviceQueueItemsRequest\x1a .api.GetDeviceQueueItemsResponse\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/api/devices/{dev_eui}/queue\x12\x8f\x01\n\x0fGetNextFCntDown\x12!.api.GetDeviceNextFCntDownRequest\x1a\".api.GetDeviceNextFCntDownResponse\"5\x82\xd3\xe4\x93\x02/\"*/api/devices/{dev_eui}/get-next-f-cnt-down:\x01*Bc\n\x11io.chirpstack.apiB\x0b\x44\x65viceProtoP\x01Z.github.com/chirpstack/chirpstack/api/go/v4/api\xaa\x02\x0e\x43hirpstack.Apib\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.api.device_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\021io.chirpstack.apiB\013DeviceProtoP\001Z.github.com/chirpstack/chirpstack/api/go/v4/api\252\002\016Chirpstack.Api' - _globals['_DEVICE_VARIABLESENTRY']._options = None - _globals['_DEVICE_VARIABLESENTRY']._serialized_options = b'8\001' - _globals['_DEVICE_TAGSENTRY']._options = None - _globals['_DEVICE_TAGSENTRY']._serialized_options = b'8\001' - _globals['_GETDEVICEMETRICSRESPONSE_METRICSENTRY']._options = None - _globals['_GETDEVICEMETRICSRESPONSE_METRICSENTRY']._serialized_options = b'8\001' - _globals['_GETDEVICEMETRICSRESPONSE_STATESENTRY']._options = None - _globals['_GETDEVICEMETRICSRESPONSE_STATESENTRY']._serialized_options = b'8\001' - _globals['_DEVICESERVICE'].methods_by_name['Create']._options = None - _globals['_DEVICESERVICE'].methods_by_name['Create']._serialized_options = b'\202\323\344\223\002\021\"\014/api/devices:\001*' - _globals['_DEVICESERVICE'].methods_by_name['Get']._options = None - _globals['_DEVICESERVICE'].methods_by_name['Get']._serialized_options = b'\202\323\344\223\002\030\022\026/api/devices/{dev_eui}' - _globals['_DEVICESERVICE'].methods_by_name['Update']._options = None - _globals['_DEVICESERVICE'].methods_by_name['Update']._serialized_options = b'\202\323\344\223\002\"\032\035/api/devices/{device.dev_eui}:\001*' - _globals['_DEVICESERVICE'].methods_by_name['Delete']._options = None - _globals['_DEVICESERVICE'].methods_by_name['Delete']._serialized_options = b'\202\323\344\223\002\030*\026/api/devices/{dev_eui}' - _globals['_DEVICESERVICE'].methods_by_name['List']._options = None - _globals['_DEVICESERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002\016\022\014/api/devices' - _globals['_DEVICESERVICE'].methods_by_name['CreateKeys']._options = None - _globals['_DEVICESERVICE'].methods_by_name['CreateKeys']._serialized_options = b'\202\323\344\223\002,\"\'/api/devices/{device_keys.dev_eui}/keys:\001*' - _globals['_DEVICESERVICE'].methods_by_name['GetKeys']._options = None - _globals['_DEVICESERVICE'].methods_by_name['GetKeys']._serialized_options = b'\202\323\344\223\002\035\022\033/api/devices/{dev_eui}/keys' - _globals['_DEVICESERVICE'].methods_by_name['UpdateKeys']._options = None - _globals['_DEVICESERVICE'].methods_by_name['UpdateKeys']._serialized_options = b'\202\323\344\223\002,\032\'/api/devices/{device_keys.dev_eui}/keys:\001*' - _globals['_DEVICESERVICE'].methods_by_name['DeleteKeys']._options = None - _globals['_DEVICESERVICE'].methods_by_name['DeleteKeys']._serialized_options = b'\202\323\344\223\002\035*\033/api/devices/{dev_eui}/keys' - _globals['_DEVICESERVICE'].methods_by_name['FlushDevNonces']._options = None - _globals['_DEVICESERVICE'].methods_by_name['FlushDevNonces']._serialized_options = b'\202\323\344\223\002#*!/api/devices/{dev_eui}/dev-nonces' - _globals['_DEVICESERVICE'].methods_by_name['Activate']._options = None - _globals['_DEVICESERVICE'].methods_by_name['Activate']._serialized_options = b'\202\323\344\223\0026\"1/api/devices/{device_activation.dev_eui}/activate:\001*' - _globals['_DEVICESERVICE'].methods_by_name['Deactivate']._options = None - _globals['_DEVICESERVICE'].methods_by_name['Deactivate']._serialized_options = b'\202\323\344\223\002#*!/api/devices/{dev_eui}/activation' - _globals['_DEVICESERVICE'].methods_by_name['GetActivation']._options = None - _globals['_DEVICESERVICE'].methods_by_name['GetActivation']._serialized_options = b'\202\323\344\223\002#\022!/api/devices/{dev_eui}/activation' - _globals['_DEVICESERVICE'].methods_by_name['GetRandomDevAddr']._options = None - _globals['_DEVICESERVICE'].methods_by_name['GetRandomDevAddr']._serialized_options = b'\202\323\344\223\002,\"*/api/devices/{dev_eui}/get-random-dev-addr' - _globals['_DEVICESERVICE'].methods_by_name['GetMetrics']._options = None - _globals['_DEVICESERVICE'].methods_by_name['GetMetrics']._serialized_options = b'\202\323\344\223\002 \022\036/api/devices/{dev_eui}/metrics' - _globals['_DEVICESERVICE'].methods_by_name['GetLinkMetrics']._options = None - _globals['_DEVICESERVICE'].methods_by_name['GetLinkMetrics']._serialized_options = b'\202\323\344\223\002%\022#/api/devices/{dev_eui}/link-metrics' - _globals['_DEVICESERVICE'].methods_by_name['Enqueue']._options = None - _globals['_DEVICESERVICE'].methods_by_name['Enqueue']._serialized_options = b'\202\323\344\223\002,\"\'/api/devices/{queue_item.dev_eui}/queue:\001*' - _globals['_DEVICESERVICE'].methods_by_name['FlushQueue']._options = None - _globals['_DEVICESERVICE'].methods_by_name['FlushQueue']._serialized_options = b'\202\323\344\223\002\036*\034/api/devices/{dev_eui}/queue' - _globals['_DEVICESERVICE'].methods_by_name['GetQueue']._options = None - _globals['_DEVICESERVICE'].methods_by_name['GetQueue']._serialized_options = b'\202\323\344\223\002\036\022\034/api/devices/{dev_eui}/queue' - _globals['_DEVICESERVICE'].methods_by_name['GetNextFCntDown']._options = None - _globals['_DEVICESERVICE'].methods_by_name['GetNextFCntDown']._serialized_options = b'\202\323\344\223\002/\"*/api/devices/{dev_eui}/get-next-f-cnt-down:\001*' - _globals['_DEVICE']._serialized_start=199 - _globals['_DEVICE']._serialized_end=553 - _globals['_DEVICE_VARIABLESENTRY']._serialized_start=460 - _globals['_DEVICE_VARIABLESENTRY']._serialized_end=508 - _globals['_DEVICE_TAGSENTRY']._serialized_start=510 - _globals['_DEVICE_TAGSENTRY']._serialized_end=553 - _globals['_DEVICESTATUS']._serialized_start=555 - _globals['_DEVICESTATUS']._serialized_end=639 - _globals['_DEVICELISTITEM']._serialized_start=642 - _globals['_DEVICELISTITEM']._serialized_end=954 - _globals['_DEVICEKEYS']._serialized_start=956 - _globals['_DEVICEKEYS']._serialized_end=1019 - _globals['_CREATEDEVICEREQUEST']._serialized_start=1021 - _globals['_CREATEDEVICEREQUEST']._serialized_end=1071 - _globals['_GETDEVICEREQUEST']._serialized_start=1073 - _globals['_GETDEVICEREQUEST']._serialized_end=1108 - _globals['_GETDEVICERESPONSE']._serialized_start=1111 - _globals['_GETDEVICERESPONSE']._serialized_end=1391 - _globals['_UPDATEDEVICEREQUEST']._serialized_start=1393 - _globals['_UPDATEDEVICEREQUEST']._serialized_end=1443 - _globals['_DELETEDEVICEREQUEST']._serialized_start=1445 - _globals['_DELETEDEVICEREQUEST']._serialized_end=1483 - _globals['_LISTDEVICESREQUEST']._serialized_start=1485 - _globals['_LISTDEVICESREQUEST']._serialized_end=1604 - _globals['_LISTDEVICESRESPONSE']._serialized_start=1606 - _globals['_LISTDEVICESRESPONSE']._serialized_end=1685 - _globals['_CREATEDEVICEKEYSREQUEST']._serialized_start=1687 - _globals['_CREATEDEVICEKEYSREQUEST']._serialized_end=1750 - _globals['_GETDEVICEKEYSREQUEST']._serialized_start=1752 - _globals['_GETDEVICEKEYSREQUEST']._serialized_end=1791 - _globals['_GETDEVICEKEYSRESPONSE']._serialized_start=1794 - _globals['_GETDEVICEKEYSRESPONSE']._serialized_end=1951 - _globals['_UPDATEDEVICEKEYSREQUEST']._serialized_start=1953 - _globals['_UPDATEDEVICEKEYSREQUEST']._serialized_end=2016 - _globals['_DELETEDEVICEKEYSREQUEST']._serialized_start=2018 - _globals['_DELETEDEVICEKEYSREQUEST']._serialized_end=2060 - _globals['_DEVICEACTIVATION']._serialized_start=2063 - _globals['_DEVICEACTIVATION']._serialized_end=2270 - _globals['_ACTIVATEDEVICEREQUEST']._serialized_start=2272 - _globals['_ACTIVATEDEVICEREQUEST']._serialized_end=2345 - _globals['_DEACTIVATEDEVICEREQUEST']._serialized_start=2347 - _globals['_DEACTIVATEDEVICEREQUEST']._serialized_end=2389 - _globals['_GETDEVICEACTIVATIONREQUEST']._serialized_start=2391 - _globals['_GETDEVICEACTIVATIONREQUEST']._serialized_end=2436 - _globals['_GETDEVICEACTIVATIONRESPONSE']._serialized_start=2439 - _globals['_GETDEVICEACTIVATIONRESPONSE']._serialized_end=2574 - _globals['_GETRANDOMDEVADDRREQUEST']._serialized_start=2576 - _globals['_GETRANDOMDEVADDRREQUEST']._serialized_end=2618 - _globals['_GETRANDOMDEVADDRRESPONSE']._serialized_start=2620 - _globals['_GETRANDOMDEVADDRRESPONSE']._serialized_end=2664 - _globals['_GETDEVICEMETRICSREQUEST']._serialized_start=2667 - _globals['_GETDEVICEMETRICSREQUEST']._serialized_end=2835 - _globals['_GETDEVICEMETRICSRESPONSE']._serialized_start=2838 - _globals['_GETDEVICEMETRICSRESPONSE']._serialized_end=3113 - _globals['_GETDEVICEMETRICSRESPONSE_METRICSENTRY']._serialized_start=2986 - _globals['_GETDEVICEMETRICSRESPONSE_METRICSENTRY']._serialized_end=3048 - _globals['_GETDEVICEMETRICSRESPONSE_STATESENTRY']._serialized_start=3050 - _globals['_GETDEVICEMETRICSRESPONSE_STATESENTRY']._serialized_end=3113 - _globals['_DEVICESTATE']._serialized_start=3115 - _globals['_DEVICESTATE']._serialized_end=3157 - _globals['_GETDEVICELINKMETRICSREQUEST']._serialized_start=3160 - _globals['_GETDEVICELINKMETRICSREQUEST']._serialized_end=3332 - _globals['_GETDEVICELINKMETRICSRESPONSE']._serialized_start=3335 - _globals['_GETDEVICELINKMETRICSRESPONSE']._serialized_end=3586 - _globals['_DEVICEQUEUEITEM']._serialized_start=3589 - _globals['_DEVICEQUEUEITEM']._serialized_end=3787 - _globals['_ENQUEUEDEVICEQUEUEITEMREQUEST']._serialized_start=3789 - _globals['_ENQUEUEDEVICEQUEUEITEMREQUEST']._serialized_end=3862 - _globals['_ENQUEUEDEVICEQUEUEITEMRESPONSE']._serialized_start=3864 - _globals['_ENQUEUEDEVICEQUEUEITEMRESPONSE']._serialized_end=3908 - _globals['_FLUSHDEVICEQUEUEREQUEST']._serialized_start=3910 - _globals['_FLUSHDEVICEQUEUEREQUEST']._serialized_end=3952 - _globals['_GETDEVICEQUEUEITEMSREQUEST']._serialized_start=3954 - _globals['_GETDEVICEQUEUEITEMSREQUEST']._serialized_end=4019 - _globals['_GETDEVICEQUEUEITEMSRESPONSE']._serialized_start=4021 - _globals['_GETDEVICEQUEUEITEMSRESPONSE']._serialized_end=4109 - _globals['_FLUSHDEVNONCESREQUEST']._serialized_start=4111 - _globals['_FLUSHDEVNONCESREQUEST']._serialized_end=4151 - _globals['_GETDEVICENEXTFCNTDOWNREQUEST']._serialized_start=4153 - _globals['_GETDEVICENEXTFCNTDOWNREQUEST']._serialized_end=4200 - _globals['_GETDEVICENEXTFCNTDOWNRESPONSE']._serialized_start=4202 - _globals['_GETDEVICENEXTFCNTDOWNRESPONSE']._serialized_end=4253 - _globals['_DEVICESERVICE']._serialized_start=4256 - _globals['_DEVICESERVICE']._serialized_end=6530 -# @@protoc_insertion_point(module_scope) diff --git a/api/python/src/chirpstack_api/api/device_pb2.pyi b/api/python/src/chirpstack_api/api/device_pb2.pyi deleted file mode 100644 index 1316b960..00000000 --- a/api/python/src/chirpstack_api/api/device_pb2.pyi +++ /dev/null @@ -1,391 +0,0 @@ -from chirpstack_api.common import common_pb2 as _common_pb2 -from google.api import annotations_pb2 as _annotations_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import struct_pb2 as _struct_pb2 -from google.protobuf import empty_pb2 as _empty_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class Device(_message.Message): - __slots__ = ("dev_eui", "name", "description", "application_id", "device_profile_id", "skip_fcnt_check", "is_disabled", "variables", "tags", "join_eui") - class VariablesEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - class TagsEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - DEVICE_PROFILE_ID_FIELD_NUMBER: _ClassVar[int] - SKIP_FCNT_CHECK_FIELD_NUMBER: _ClassVar[int] - IS_DISABLED_FIELD_NUMBER: _ClassVar[int] - VARIABLES_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - JOIN_EUI_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - name: str - description: str - application_id: str - device_profile_id: str - skip_fcnt_check: bool - is_disabled: bool - variables: _containers.ScalarMap[str, str] - tags: _containers.ScalarMap[str, str] - join_eui: str - def __init__(self, dev_eui: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., application_id: _Optional[str] = ..., device_profile_id: _Optional[str] = ..., skip_fcnt_check: bool = ..., is_disabled: bool = ..., variables: _Optional[_Mapping[str, str]] = ..., tags: _Optional[_Mapping[str, str]] = ..., join_eui: _Optional[str] = ...) -> None: ... - -class DeviceStatus(_message.Message): - __slots__ = ("margin", "external_power_source", "battery_level") - MARGIN_FIELD_NUMBER: _ClassVar[int] - EXTERNAL_POWER_SOURCE_FIELD_NUMBER: _ClassVar[int] - BATTERY_LEVEL_FIELD_NUMBER: _ClassVar[int] - margin: int - external_power_source: bool - battery_level: float - def __init__(self, margin: _Optional[int] = ..., external_power_source: bool = ..., battery_level: _Optional[float] = ...) -> None: ... - -class DeviceListItem(_message.Message): - __slots__ = ("dev_eui", "created_at", "updated_at", "last_seen_at", "name", "description", "device_profile_id", "device_profile_name", "device_status") - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - LAST_SEEN_AT_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - DEVICE_PROFILE_ID_FIELD_NUMBER: _ClassVar[int] - DEVICE_PROFILE_NAME_FIELD_NUMBER: _ClassVar[int] - DEVICE_STATUS_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - last_seen_at: _timestamp_pb2.Timestamp - name: str - description: str - device_profile_id: str - device_profile_name: str - device_status: DeviceStatus - def __init__(self, dev_eui: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., last_seen_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., device_profile_id: _Optional[str] = ..., device_profile_name: _Optional[str] = ..., device_status: _Optional[_Union[DeviceStatus, _Mapping]] = ...) -> None: ... - -class DeviceKeys(_message.Message): - __slots__ = ("dev_eui", "nwk_key", "app_key") - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - NWK_KEY_FIELD_NUMBER: _ClassVar[int] - APP_KEY_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - nwk_key: str - app_key: str - def __init__(self, dev_eui: _Optional[str] = ..., nwk_key: _Optional[str] = ..., app_key: _Optional[str] = ...) -> None: ... - -class CreateDeviceRequest(_message.Message): - __slots__ = ("device",) - DEVICE_FIELD_NUMBER: _ClassVar[int] - device: Device - def __init__(self, device: _Optional[_Union[Device, _Mapping]] = ...) -> None: ... - -class GetDeviceRequest(_message.Message): - __slots__ = ("dev_eui",) - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - def __init__(self, dev_eui: _Optional[str] = ...) -> None: ... - -class GetDeviceResponse(_message.Message): - __slots__ = ("device", "created_at", "updated_at", "last_seen_at", "device_status", "class_enabled") - DEVICE_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - LAST_SEEN_AT_FIELD_NUMBER: _ClassVar[int] - DEVICE_STATUS_FIELD_NUMBER: _ClassVar[int] - CLASS_ENABLED_FIELD_NUMBER: _ClassVar[int] - device: Device - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - last_seen_at: _timestamp_pb2.Timestamp - device_status: DeviceStatus - class_enabled: _common_pb2.DeviceClass - def __init__(self, device: _Optional[_Union[Device, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., last_seen_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., device_status: _Optional[_Union[DeviceStatus, _Mapping]] = ..., class_enabled: _Optional[_Union[_common_pb2.DeviceClass, str]] = ...) -> None: ... - -class UpdateDeviceRequest(_message.Message): - __slots__ = ("device",) - DEVICE_FIELD_NUMBER: _ClassVar[int] - device: Device - def __init__(self, device: _Optional[_Union[Device, _Mapping]] = ...) -> None: ... - -class DeleteDeviceRequest(_message.Message): - __slots__ = ("dev_eui",) - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - def __init__(self, dev_eui: _Optional[str] = ...) -> None: ... - -class ListDevicesRequest(_message.Message): - __slots__ = ("limit", "offset", "search", "application_id", "multicast_group_id") - LIMIT_FIELD_NUMBER: _ClassVar[int] - OFFSET_FIELD_NUMBER: _ClassVar[int] - SEARCH_FIELD_NUMBER: _ClassVar[int] - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int] - limit: int - offset: int - search: str - application_id: str - multicast_group_id: str - def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., search: _Optional[str] = ..., application_id: _Optional[str] = ..., multicast_group_id: _Optional[str] = ...) -> None: ... - -class ListDevicesResponse(_message.Message): - __slots__ = ("total_count", "result") - TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int] - RESULT_FIELD_NUMBER: _ClassVar[int] - total_count: int - result: _containers.RepeatedCompositeFieldContainer[DeviceListItem] - def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[DeviceListItem, _Mapping]]] = ...) -> None: ... - -class CreateDeviceKeysRequest(_message.Message): - __slots__ = ("device_keys",) - DEVICE_KEYS_FIELD_NUMBER: _ClassVar[int] - device_keys: DeviceKeys - def __init__(self, device_keys: _Optional[_Union[DeviceKeys, _Mapping]] = ...) -> None: ... - -class GetDeviceKeysRequest(_message.Message): - __slots__ = ("dev_eui",) - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - def __init__(self, dev_eui: _Optional[str] = ...) -> None: ... - -class GetDeviceKeysResponse(_message.Message): - __slots__ = ("device_keys", "created_at", "updated_at") - DEVICE_KEYS_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - device_keys: DeviceKeys - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - def __init__(self, device_keys: _Optional[_Union[DeviceKeys, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class UpdateDeviceKeysRequest(_message.Message): - __slots__ = ("device_keys",) - DEVICE_KEYS_FIELD_NUMBER: _ClassVar[int] - device_keys: DeviceKeys - def __init__(self, device_keys: _Optional[_Union[DeviceKeys, _Mapping]] = ...) -> None: ... - -class DeleteDeviceKeysRequest(_message.Message): - __slots__ = ("dev_eui",) - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - def __init__(self, dev_eui: _Optional[str] = ...) -> None: ... - -class DeviceActivation(_message.Message): - __slots__ = ("dev_eui", "dev_addr", "app_s_key", "nwk_s_enc_key", "s_nwk_s_int_key", "f_nwk_s_int_key", "f_cnt_up", "n_f_cnt_down", "a_f_cnt_down") - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - DEV_ADDR_FIELD_NUMBER: _ClassVar[int] - APP_S_KEY_FIELD_NUMBER: _ClassVar[int] - NWK_S_ENC_KEY_FIELD_NUMBER: _ClassVar[int] - S_NWK_S_INT_KEY_FIELD_NUMBER: _ClassVar[int] - F_NWK_S_INT_KEY_FIELD_NUMBER: _ClassVar[int] - F_CNT_UP_FIELD_NUMBER: _ClassVar[int] - N_F_CNT_DOWN_FIELD_NUMBER: _ClassVar[int] - A_F_CNT_DOWN_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - dev_addr: str - app_s_key: str - nwk_s_enc_key: str - s_nwk_s_int_key: str - f_nwk_s_int_key: str - f_cnt_up: int - n_f_cnt_down: int - a_f_cnt_down: int - def __init__(self, dev_eui: _Optional[str] = ..., dev_addr: _Optional[str] = ..., app_s_key: _Optional[str] = ..., nwk_s_enc_key: _Optional[str] = ..., s_nwk_s_int_key: _Optional[str] = ..., f_nwk_s_int_key: _Optional[str] = ..., f_cnt_up: _Optional[int] = ..., n_f_cnt_down: _Optional[int] = ..., a_f_cnt_down: _Optional[int] = ...) -> None: ... - -class ActivateDeviceRequest(_message.Message): - __slots__ = ("device_activation",) - DEVICE_ACTIVATION_FIELD_NUMBER: _ClassVar[int] - device_activation: DeviceActivation - def __init__(self, device_activation: _Optional[_Union[DeviceActivation, _Mapping]] = ...) -> None: ... - -class DeactivateDeviceRequest(_message.Message): - __slots__ = ("dev_eui",) - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - def __init__(self, dev_eui: _Optional[str] = ...) -> None: ... - -class GetDeviceActivationRequest(_message.Message): - __slots__ = ("dev_eui",) - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - def __init__(self, dev_eui: _Optional[str] = ...) -> None: ... - -class GetDeviceActivationResponse(_message.Message): - __slots__ = ("device_activation", "join_server_context") - DEVICE_ACTIVATION_FIELD_NUMBER: _ClassVar[int] - JOIN_SERVER_CONTEXT_FIELD_NUMBER: _ClassVar[int] - device_activation: DeviceActivation - join_server_context: _common_pb2.JoinServerContext - def __init__(self, device_activation: _Optional[_Union[DeviceActivation, _Mapping]] = ..., join_server_context: _Optional[_Union[_common_pb2.JoinServerContext, _Mapping]] = ...) -> None: ... - -class GetRandomDevAddrRequest(_message.Message): - __slots__ = ("dev_eui",) - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - def __init__(self, dev_eui: _Optional[str] = ...) -> None: ... - -class GetRandomDevAddrResponse(_message.Message): - __slots__ = ("dev_addr",) - DEV_ADDR_FIELD_NUMBER: _ClassVar[int] - dev_addr: str - def __init__(self, dev_addr: _Optional[str] = ...) -> None: ... - -class GetDeviceMetricsRequest(_message.Message): - __slots__ = ("dev_eui", "start", "end", "aggregation") - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - START_FIELD_NUMBER: _ClassVar[int] - END_FIELD_NUMBER: _ClassVar[int] - AGGREGATION_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - start: _timestamp_pb2.Timestamp - end: _timestamp_pb2.Timestamp - aggregation: _common_pb2.Aggregation - def __init__(self, dev_eui: _Optional[str] = ..., start: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., aggregation: _Optional[_Union[_common_pb2.Aggregation, str]] = ...) -> None: ... - -class GetDeviceMetricsResponse(_message.Message): - __slots__ = ("metrics", "states") - class MetricsEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: _common_pb2.Metric - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ...) -> None: ... - class StatesEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: DeviceState - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[DeviceState, _Mapping]] = ...) -> None: ... - METRICS_FIELD_NUMBER: _ClassVar[int] - STATES_FIELD_NUMBER: _ClassVar[int] - metrics: _containers.MessageMap[str, _common_pb2.Metric] - states: _containers.MessageMap[str, DeviceState] - def __init__(self, metrics: _Optional[_Mapping[str, _common_pb2.Metric]] = ..., states: _Optional[_Mapping[str, DeviceState]] = ...) -> None: ... - -class DeviceState(_message.Message): - __slots__ = ("name", "value") - NAME_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - name: str - value: str - def __init__(self, name: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - -class GetDeviceLinkMetricsRequest(_message.Message): - __slots__ = ("dev_eui", "start", "end", "aggregation") - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - START_FIELD_NUMBER: _ClassVar[int] - END_FIELD_NUMBER: _ClassVar[int] - AGGREGATION_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - start: _timestamp_pb2.Timestamp - end: _timestamp_pb2.Timestamp - aggregation: _common_pb2.Aggregation - def __init__(self, dev_eui: _Optional[str] = ..., start: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., aggregation: _Optional[_Union[_common_pb2.Aggregation, str]] = ...) -> None: ... - -class GetDeviceLinkMetricsResponse(_message.Message): - __slots__ = ("rx_packets", "gw_rssi", "gw_snr", "rx_packets_per_freq", "rx_packets_per_dr", "errors") - RX_PACKETS_FIELD_NUMBER: _ClassVar[int] - GW_RSSI_FIELD_NUMBER: _ClassVar[int] - GW_SNR_FIELD_NUMBER: _ClassVar[int] - RX_PACKETS_PER_FREQ_FIELD_NUMBER: _ClassVar[int] - RX_PACKETS_PER_DR_FIELD_NUMBER: _ClassVar[int] - ERRORS_FIELD_NUMBER: _ClassVar[int] - rx_packets: _common_pb2.Metric - gw_rssi: _common_pb2.Metric - gw_snr: _common_pb2.Metric - rx_packets_per_freq: _common_pb2.Metric - rx_packets_per_dr: _common_pb2.Metric - errors: _common_pb2.Metric - def __init__(self, rx_packets: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., gw_rssi: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., gw_snr: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., rx_packets_per_freq: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., rx_packets_per_dr: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., errors: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ...) -> None: ... - -class DeviceQueueItem(_message.Message): - __slots__ = ("id", "dev_eui", "confirmed", "f_port", "data", "object", "is_pending", "f_cnt_down", "is_encrypted") - ID_FIELD_NUMBER: _ClassVar[int] - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - CONFIRMED_FIELD_NUMBER: _ClassVar[int] - F_PORT_FIELD_NUMBER: _ClassVar[int] - DATA_FIELD_NUMBER: _ClassVar[int] - OBJECT_FIELD_NUMBER: _ClassVar[int] - IS_PENDING_FIELD_NUMBER: _ClassVar[int] - F_CNT_DOWN_FIELD_NUMBER: _ClassVar[int] - IS_ENCRYPTED_FIELD_NUMBER: _ClassVar[int] - id: str - dev_eui: str - confirmed: bool - f_port: int - data: bytes - object: _struct_pb2.Struct - is_pending: bool - f_cnt_down: int - is_encrypted: bool - def __init__(self, id: _Optional[str] = ..., dev_eui: _Optional[str] = ..., confirmed: bool = ..., f_port: _Optional[int] = ..., data: _Optional[bytes] = ..., object: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., is_pending: bool = ..., f_cnt_down: _Optional[int] = ..., is_encrypted: bool = ...) -> None: ... - -class EnqueueDeviceQueueItemRequest(_message.Message): - __slots__ = ("queue_item",) - QUEUE_ITEM_FIELD_NUMBER: _ClassVar[int] - queue_item: DeviceQueueItem - def __init__(self, queue_item: _Optional[_Union[DeviceQueueItem, _Mapping]] = ...) -> None: ... - -class EnqueueDeviceQueueItemResponse(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class FlushDeviceQueueRequest(_message.Message): - __slots__ = ("dev_eui",) - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - def __init__(self, dev_eui: _Optional[str] = ...) -> None: ... - -class GetDeviceQueueItemsRequest(_message.Message): - __slots__ = ("dev_eui", "count_only") - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - COUNT_ONLY_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - count_only: bool - def __init__(self, dev_eui: _Optional[str] = ..., count_only: bool = ...) -> None: ... - -class GetDeviceQueueItemsResponse(_message.Message): - __slots__ = ("total_count", "result") - TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int] - RESULT_FIELD_NUMBER: _ClassVar[int] - total_count: int - result: _containers.RepeatedCompositeFieldContainer[DeviceQueueItem] - def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[DeviceQueueItem, _Mapping]]] = ...) -> None: ... - -class FlushDevNoncesRequest(_message.Message): - __slots__ = ("dev_eui",) - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - def __init__(self, dev_eui: _Optional[str] = ...) -> None: ... - -class GetDeviceNextFCntDownRequest(_message.Message): - __slots__ = ("dev_eui",) - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - def __init__(self, dev_eui: _Optional[str] = ...) -> None: ... - -class GetDeviceNextFCntDownResponse(_message.Message): - __slots__ = ("f_cnt_down",) - F_CNT_DOWN_FIELD_NUMBER: _ClassVar[int] - f_cnt_down: int - def __init__(self, f_cnt_down: _Optional[int] = ...) -> None: ... diff --git a/api/python/src/chirpstack_api/api/device_pb2_grpc.py b/api/python/src/chirpstack_api/api/device_pb2_grpc.py deleted file mode 100644 index c2c04ae4..00000000 --- a/api/python/src/chirpstack_api/api/device_pb2_grpc.py +++ /dev/null @@ -1,725 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from chirpstack_api.api import device_pb2 as chirpstack__api_dot_api_dot_device__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 - - -class DeviceServiceStub(object): - """DeviceService is the service providing API methods for managing devices. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Create = channel.unary_unary( - '/api.DeviceService/Create', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.CreateDeviceRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.Get = channel.unary_unary( - '/api.DeviceService/Get', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceResponse.FromString, - ) - self.Update = channel.unary_unary( - '/api.DeviceService/Update', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.UpdateDeviceRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.Delete = channel.unary_unary( - '/api.DeviceService/Delete', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.DeleteDeviceRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.List = channel.unary_unary( - '/api.DeviceService/List', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.ListDevicesRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_device__pb2.ListDevicesResponse.FromString, - ) - self.CreateKeys = channel.unary_unary( - '/api.DeviceService/CreateKeys', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.CreateDeviceKeysRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.GetKeys = channel.unary_unary( - '/api.DeviceService/GetKeys', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceKeysRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceKeysResponse.FromString, - ) - self.UpdateKeys = channel.unary_unary( - '/api.DeviceService/UpdateKeys', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.UpdateDeviceKeysRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.DeleteKeys = channel.unary_unary( - '/api.DeviceService/DeleteKeys', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.DeleteDeviceKeysRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.FlushDevNonces = channel.unary_unary( - '/api.DeviceService/FlushDevNonces', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.FlushDevNoncesRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.Activate = channel.unary_unary( - '/api.DeviceService/Activate', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.ActivateDeviceRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.Deactivate = channel.unary_unary( - '/api.DeviceService/Deactivate', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.DeactivateDeviceRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.GetActivation = channel.unary_unary( - '/api.DeviceService/GetActivation', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceActivationRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceActivationResponse.FromString, - ) - self.GetRandomDevAddr = channel.unary_unary( - '/api.DeviceService/GetRandomDevAddr', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.GetRandomDevAddrRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetRandomDevAddrResponse.FromString, - ) - self.GetMetrics = channel.unary_unary( - '/api.DeviceService/GetMetrics', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceMetricsRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceMetricsResponse.FromString, - ) - self.GetLinkMetrics = channel.unary_unary( - '/api.DeviceService/GetLinkMetrics', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceLinkMetricsRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceLinkMetricsResponse.FromString, - ) - self.Enqueue = channel.unary_unary( - '/api.DeviceService/Enqueue', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.EnqueueDeviceQueueItemRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_device__pb2.EnqueueDeviceQueueItemResponse.FromString, - ) - self.FlushQueue = channel.unary_unary( - '/api.DeviceService/FlushQueue', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.FlushDeviceQueueRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.GetQueue = channel.unary_unary( - '/api.DeviceService/GetQueue', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceQueueItemsRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceQueueItemsResponse.FromString, - ) - self.GetNextFCntDown = channel.unary_unary( - '/api.DeviceService/GetNextFCntDown', - request_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceNextFCntDownRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceNextFCntDownResponse.FromString, - ) - - -class DeviceServiceServicer(object): - """DeviceService is the service providing API methods for managing devices. - """ - - def Create(self, request, context): - """Create the given device. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Get(self, request, context): - """Get returns the device for the given DevEUI. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Update(self, request, context): - """Update the given device. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Delete(self, request, context): - """Delete the device with the given DevEUI. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def List(self, request, context): - """Get the list of devices. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateKeys(self, request, context): - """Create the given device-keys. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetKeys(self, request, context): - """Get the device-keys for the given DevEUI. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateKeys(self, request, context): - """Update the given device-keys. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteKeys(self, request, context): - """Delete the device-keys for the given DevEUI. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FlushDevNonces(self, request, context): - """FlushDevNonces flushes the OTAA device nonces. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Activate(self, request, context): - """Activate (re)activates the device with the given parameters (for ABP or for - importing OTAA activations). - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Deactivate(self, request, context): - """Deactivate de-activates the device. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetActivation(self, request, context): - """GetActivation returns the current activation details of the device (OTAA or - ABP). - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetRandomDevAddr(self, request, context): - """GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into - account. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetMetrics(self, request, context): - """GetMetrics returns the device metrics. - Note that this requires a device-profile with codec and measurements - configured. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetLinkMetrics(self, request, context): - """GetLinkMetrics returns the device link metrics. - This includes uplinks, downlinks, RSSI, SNR, etc... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Enqueue(self, request, context): - """Enqueue adds the given item to the downlink queue. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FlushQueue(self, request, context): - """FlushQueue flushes the downlink device-queue. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetQueue(self, request, context): - """GetQueue returns the downlink device-queue. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetNextFCntDown(self, request, context): - """GetNextFCntDown returns the next FCntDown to use for enqueing encrypted - downlinks. The difference with the DeviceActivation f_cont_down is that - this method takes potential existing queue-items into account. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_DeviceServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Create': grpc.unary_unary_rpc_method_handler( - servicer.Create, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.CreateDeviceRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'Get': grpc.unary_unary_rpc_method_handler( - servicer.Get, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceResponse.SerializeToString, - ), - 'Update': grpc.unary_unary_rpc_method_handler( - servicer.Update, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.UpdateDeviceRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'Delete': grpc.unary_unary_rpc_method_handler( - servicer.Delete, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.DeleteDeviceRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'List': grpc.unary_unary_rpc_method_handler( - servicer.List, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.ListDevicesRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_device__pb2.ListDevicesResponse.SerializeToString, - ), - 'CreateKeys': grpc.unary_unary_rpc_method_handler( - servicer.CreateKeys, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.CreateDeviceKeysRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetKeys': grpc.unary_unary_rpc_method_handler( - servicer.GetKeys, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceKeysRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceKeysResponse.SerializeToString, - ), - 'UpdateKeys': grpc.unary_unary_rpc_method_handler( - servicer.UpdateKeys, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.UpdateDeviceKeysRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'DeleteKeys': grpc.unary_unary_rpc_method_handler( - servicer.DeleteKeys, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.DeleteDeviceKeysRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'FlushDevNonces': grpc.unary_unary_rpc_method_handler( - servicer.FlushDevNonces, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.FlushDevNoncesRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'Activate': grpc.unary_unary_rpc_method_handler( - servicer.Activate, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.ActivateDeviceRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'Deactivate': grpc.unary_unary_rpc_method_handler( - servicer.Deactivate, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.DeactivateDeviceRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetActivation': grpc.unary_unary_rpc_method_handler( - servicer.GetActivation, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceActivationRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceActivationResponse.SerializeToString, - ), - 'GetRandomDevAddr': grpc.unary_unary_rpc_method_handler( - servicer.GetRandomDevAddr, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetRandomDevAddrRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_device__pb2.GetRandomDevAddrResponse.SerializeToString, - ), - 'GetMetrics': grpc.unary_unary_rpc_method_handler( - servicer.GetMetrics, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceMetricsRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceMetricsResponse.SerializeToString, - ), - 'GetLinkMetrics': grpc.unary_unary_rpc_method_handler( - servicer.GetLinkMetrics, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceLinkMetricsRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceLinkMetricsResponse.SerializeToString, - ), - 'Enqueue': grpc.unary_unary_rpc_method_handler( - servicer.Enqueue, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.EnqueueDeviceQueueItemRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_device__pb2.EnqueueDeviceQueueItemResponse.SerializeToString, - ), - 'FlushQueue': grpc.unary_unary_rpc_method_handler( - servicer.FlushQueue, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.FlushDeviceQueueRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetQueue': grpc.unary_unary_rpc_method_handler( - servicer.GetQueue, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceQueueItemsRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceQueueItemsResponse.SerializeToString, - ), - 'GetNextFCntDown': grpc.unary_unary_rpc_method_handler( - servicer.GetNextFCntDown, - request_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceNextFCntDownRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceNextFCntDownResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'api.DeviceService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class DeviceService(object): - """DeviceService is the service providing API methods for managing devices. - """ - - @staticmethod - def Create(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/Create', - chirpstack__api_dot_api_dot_device__pb2.CreateDeviceRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Get(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/Get', - chirpstack__api_dot_api_dot_device__pb2.GetDeviceRequest.SerializeToString, - chirpstack__api_dot_api_dot_device__pb2.GetDeviceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Update(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/Update', - chirpstack__api_dot_api_dot_device__pb2.UpdateDeviceRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Delete(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/Delete', - chirpstack__api_dot_api_dot_device__pb2.DeleteDeviceRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def List(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/List', - chirpstack__api_dot_api_dot_device__pb2.ListDevicesRequest.SerializeToString, - chirpstack__api_dot_api_dot_device__pb2.ListDevicesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateKeys(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/CreateKeys', - chirpstack__api_dot_api_dot_device__pb2.CreateDeviceKeysRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetKeys(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/GetKeys', - chirpstack__api_dot_api_dot_device__pb2.GetDeviceKeysRequest.SerializeToString, - chirpstack__api_dot_api_dot_device__pb2.GetDeviceKeysResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateKeys(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/UpdateKeys', - chirpstack__api_dot_api_dot_device__pb2.UpdateDeviceKeysRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteKeys(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/DeleteKeys', - chirpstack__api_dot_api_dot_device__pb2.DeleteDeviceKeysRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FlushDevNonces(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/FlushDevNonces', - chirpstack__api_dot_api_dot_device__pb2.FlushDevNoncesRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Activate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/Activate', - chirpstack__api_dot_api_dot_device__pb2.ActivateDeviceRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Deactivate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/Deactivate', - chirpstack__api_dot_api_dot_device__pb2.DeactivateDeviceRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetActivation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/GetActivation', - chirpstack__api_dot_api_dot_device__pb2.GetDeviceActivationRequest.SerializeToString, - chirpstack__api_dot_api_dot_device__pb2.GetDeviceActivationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetRandomDevAddr(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/GetRandomDevAddr', - chirpstack__api_dot_api_dot_device__pb2.GetRandomDevAddrRequest.SerializeToString, - chirpstack__api_dot_api_dot_device__pb2.GetRandomDevAddrResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetMetrics(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/GetMetrics', - chirpstack__api_dot_api_dot_device__pb2.GetDeviceMetricsRequest.SerializeToString, - chirpstack__api_dot_api_dot_device__pb2.GetDeviceMetricsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetLinkMetrics(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/GetLinkMetrics', - chirpstack__api_dot_api_dot_device__pb2.GetDeviceLinkMetricsRequest.SerializeToString, - chirpstack__api_dot_api_dot_device__pb2.GetDeviceLinkMetricsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Enqueue(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/Enqueue', - chirpstack__api_dot_api_dot_device__pb2.EnqueueDeviceQueueItemRequest.SerializeToString, - chirpstack__api_dot_api_dot_device__pb2.EnqueueDeviceQueueItemResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FlushQueue(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/FlushQueue', - chirpstack__api_dot_api_dot_device__pb2.FlushDeviceQueueRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetQueue(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/GetQueue', - chirpstack__api_dot_api_dot_device__pb2.GetDeviceQueueItemsRequest.SerializeToString, - chirpstack__api_dot_api_dot_device__pb2.GetDeviceQueueItemsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetNextFCntDown(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceService/GetNextFCntDown', - chirpstack__api_dot_api_dot_device__pb2.GetDeviceNextFCntDownRequest.SerializeToString, - chirpstack__api_dot_api_dot_device__pb2.GetDeviceNextFCntDownResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/api/python/src/chirpstack_api/api/device_profile_pb2.py b/api/python/src/chirpstack_api/api/device_profile_pb2.py deleted file mode 100644 index 4c8c73f7..00000000 --- a/api/python/src/chirpstack_api/api/device_profile_pb2.py +++ /dev/null @@ -1,87 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: chirpstack-api/api/device_profile.proto -# Protobuf Python Version: 4.25.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 -from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'chirpstack-api/api/device_profile.proto\x12\x03\x61pi\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\"chirpstack-api/common/common.proto\"\xdf\x0e\n\rDeviceProfile\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\ttenant_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x1a \x01(\t\x12\x1e\n\x06region\x18\x04 \x01(\x0e\x32\x0e.common.Region\x12\'\n\x0bmac_version\x18\x05 \x01(\x0e\x32\x12.common.MacVersion\x12\x36\n\x13reg_params_revision\x18\x06 \x01(\x0e\x32\x19.common.RegParamsRevision\x12\x18\n\x10\x61\x64r_algorithm_id\x18\x07 \x01(\t\x12\x30\n\x15payload_codec_runtime\x18\x08 \x01(\x0e\x32\x11.api.CodecRuntime\x12\x1c\n\x14payload_codec_script\x18\t \x01(\t\x12\x1f\n\x17\x66lush_queue_on_activate\x18\n \x01(\x08\x12\x17\n\x0fuplink_interval\x18\x0b \x01(\r\x12\"\n\x1a\x64\x65vice_status_req_interval\x18\x0c \x01(\r\x12\x15\n\rsupports_otaa\x18\r \x01(\x08\x12\x18\n\x10supports_class_b\x18\x0e \x01(\x08\x12\x18\n\x10supports_class_c\x18\x0f \x01(\x08\x12\x17\n\x0f\x63lass_b_timeout\x18\x10 \x01(\r\x12\x1e\n\x16\x63lass_b_ping_slot_nb_k\x18\x11 \x01(\r\x12\x1c\n\x14\x63lass_b_ping_slot_dr\x18\x12 \x01(\r\x12\x1e\n\x16\x63lass_b_ping_slot_freq\x18\x13 \x01(\r\x12\x17\n\x0f\x63lass_c_timeout\x18\x14 \x01(\r\x12\x15\n\rabp_rx1_delay\x18\x15 \x01(\r\x12\x19\n\x11\x61\x62p_rx1_dr_offset\x18\x16 \x01(\r\x12\x12\n\nabp_rx2_dr\x18\x17 \x01(\r\x12\x14\n\x0c\x61\x62p_rx2_freq\x18\x18 \x01(\r\x12*\n\x04tags\x18\x19 \x03(\x0b\x32\x1c.api.DeviceProfile.TagsEntry\x12:\n\x0cmeasurements\x18\x1b \x03(\x0b\x32$.api.DeviceProfile.MeasurementsEntry\x12 \n\x18\x61uto_detect_measurements\x18\x1c \x01(\x08\x12\x18\n\x10region_config_id\x18\x1d \x01(\t\x12\x10\n\x08is_relay\x18\x1e \x01(\x08\x12\x13\n\x0bis_relay_ed\x18\x1f \x01(\x08\x12\x1b\n\x13relay_ed_relay_only\x18 \x01(\x08\x12\x15\n\rrelay_enabled\x18! \x01(\x08\x12\x32\n\x15relay_cad_periodicity\x18\" \x01(\x0e\x32\x13.api.CadPeriodicity\x12#\n\x1brelay_default_channel_index\x18# \x01(\r\x12!\n\x19relay_second_channel_freq\x18$ \x01(\r\x12\x1f\n\x17relay_second_channel_dr\x18% \x01(\r\x12?\n\x1frelay_second_channel_ack_offset\x18& \x01(\x0e\x32\x16.api.SecondChAckOffset\x12:\n\x18relay_ed_activation_mode\x18\' \x01(\x0e\x32\x18.api.RelayModeActivation\x12#\n\x1brelay_ed_smart_enable_level\x18( \x01(\r\x12\x19\n\x11relay_ed_back_off\x18) \x01(\r\x12)\n!relay_ed_uplink_limit_bucket_size\x18* \x01(\r\x12)\n!relay_ed_uplink_limit_reload_rate\x18+ \x01(\r\x12(\n relay_join_req_limit_reload_rate\x18, \x01(\r\x12&\n\x1erelay_notify_limit_reload_rate\x18- \x01(\r\x12-\n%relay_global_uplink_limit_reload_rate\x18. \x01(\r\x12\'\n\x1frelay_overall_limit_reload_rate\x18/ \x01(\r\x12(\n relay_join_req_limit_bucket_size\x18\x30 \x01(\r\x12&\n\x1erelay_notify_limit_bucket_size\x18\x31 \x01(\r\x12-\n%relay_global_uplink_limit_bucket_size\x18\x32 \x01(\r\x12\'\n\x1frelay_overall_limit_bucket_size\x18\x33 \x01(\r\x12\x15\n\rallow_roaming\x18\x34 \x01(\x08\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x45\n\x11MeasurementsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1f\n\x05value\x18\x02 \x01(\x0b\x32\x10.api.Measurement:\x02\x38\x01\"?\n\x0bMeasurement\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\"\n\x04kind\x18\x03 \x01(\x0e\x32\x14.api.MeasurementKind\"\xdd\x02\n\x15\x44\x65viceProfileListItem\x12\n\n\x02id\x18\x01 \x01(\t\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x1e\n\x06region\x18\x05 \x01(\x0e\x32\x0e.common.Region\x12\'\n\x0bmac_version\x18\x06 \x01(\x0e\x32\x12.common.MacVersion\x12\x36\n\x13reg_params_revision\x18\x07 \x01(\x0e\x32\x19.common.RegParamsRevision\x12\x15\n\rsupports_otaa\x18\x08 \x01(\x08\x12\x18\n\x10supports_class_b\x18\t \x01(\x08\x12\x18\n\x10supports_class_c\x18\n \x01(\x08\"H\n\x1a\x43reateDeviceProfileRequest\x12*\n\x0e\x64\x65vice_profile\x18\x01 \x01(\x0b\x32\x12.api.DeviceProfile\")\n\x1b\x43reateDeviceProfileResponse\x12\n\n\x02id\x18\x01 \x01(\t\"%\n\x17GetDeviceProfileRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\xa6\x01\n\x18GetDeviceProfileResponse\x12*\n\x0e\x64\x65vice_profile\x18\x01 \x01(\x0b\x32\x12.api.DeviceProfile\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"H\n\x1aUpdateDeviceProfileRequest\x12*\n\x0e\x64\x65vice_profile\x18\x01 \x01(\x0b\x32\x12.api.DeviceProfile\"(\n\x1a\x44\x65leteDeviceProfileRequest\x12\n\n\x02id\x18\x01 \x01(\t\"]\n\x19ListDeviceProfilesRequest\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\r\x12\x0e\n\x06search\x18\x03 \x01(\t\x12\x11\n\ttenant_id\x18\x04 \x01(\t\"]\n\x1aListDeviceProfilesResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12*\n\x06result\x18\x02 \x03(\x0b\x32\x1a.api.DeviceProfileListItem\"h\n&ListDeviceProfileAdrAlgorithmsResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12)\n\x06result\x18\x02 \x03(\x0b\x32\x19.api.AdrAlgorithmListItem\"0\n\x14\x41\x64rAlgorithmListItem\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t*1\n\x0c\x43odecRuntime\x12\x08\n\x04NONE\x10\x00\x12\x0f\n\x0b\x43\x41YENNE_LPP\x10\x01\x12\x06\n\x02JS\x10\x02*P\n\x0fMeasurementKind\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07\x43OUNTER\x10\x01\x12\x0c\n\x08\x41\x42SOLUTE\x10\x02\x12\t\n\x05GAUGE\x10\x03\x12\n\n\x06STRING\x10\x04*U\n\x0e\x43\x61\x64Periodicity\x12\t\n\x05SEC_1\x10\x00\x12\n\n\x06MS_500\x10\x01\x12\n\n\x06MS_250\x10\x02\x12\n\n\x06MS_100\x10\x03\x12\t\n\x05MS_50\x10\x04\x12\t\n\x05MS_20\x10\x05*a\n\x11SecondChAckOffset\x12\t\n\x05KHZ_0\x10\x00\x12\x0b\n\x07KHZ_200\x10\x01\x12\x0b\n\x07KHZ_400\x10\x02\x12\x0b\n\x07KHZ_800\x10\x03\x12\x0c\n\x08KHZ_1600\x10\x04\x12\x0c\n\x08KHZ_3200\x10\x05*l\n\x13RelayModeActivation\x12\x16\n\x12\x44ISABLE_RELAY_MODE\x10\x00\x12\x15\n\x11\x45NABLE_RELAY_MODE\x10\x01\x12\x0b\n\x07\x44YNAMIC\x10\x02\x12\x19\n\x15\x45ND_DEVICE_CONTROLLED\x10\x03\x32\xb8\x05\n\x14\x44\x65viceProfileService\x12l\n\x06\x43reate\x12\x1f.api.CreateDeviceProfileRequest\x1a .api.CreateDeviceProfileResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\"\x14/api/device-profiles:\x01*\x12\x65\n\x03Get\x12\x1c.api.GetDeviceProfileRequest\x1a\x1d.api.GetDeviceProfileResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/api/device-profiles/{id}\x12v\n\x06Update\x12\x1f.api.UpdateDeviceProfileRequest\x1a\x16.google.protobuf.Empty\"3\x82\xd3\xe4\x93\x02-\x1a(/api/device-profiles/{device_profile.id}:\x01*\x12\x64\n\x06\x44\x65lete\x12\x1f.api.DeleteDeviceProfileRequest\x1a\x16.google.protobuf.Empty\"!\x82\xd3\xe4\x93\x02\x1b*\x19/api/device-profiles/{id}\x12\x65\n\x04List\x12\x1e.api.ListDeviceProfilesRequest\x1a\x1f.api.ListDeviceProfilesResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/api/device-profiles\x12\x85\x01\n\x11ListAdrAlgorithms\x12\x16.google.protobuf.Empty\x1a+.api.ListDeviceProfileAdrAlgorithmsResponse\"+\x82\xd3\xe4\x93\x02%\x12#/api/device-profiles/adr-algorithmsBj\n\x11io.chirpstack.apiB\x12\x44\x65viceProfileProtoP\x01Z.github.com/chirpstack/chirpstack/api/go/v4/api\xaa\x02\x0e\x43hirpstack.Apib\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.api.device_profile_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\021io.chirpstack.apiB\022DeviceProfileProtoP\001Z.github.com/chirpstack/chirpstack/api/go/v4/api\252\002\016Chirpstack.Api' - _globals['_DEVICEPROFILE_TAGSENTRY']._options = None - _globals['_DEVICEPROFILE_TAGSENTRY']._serialized_options = b'8\001' - _globals['_DEVICEPROFILE_MEASUREMENTSENTRY']._options = None - _globals['_DEVICEPROFILE_MEASUREMENTSENTRY']._serialized_options = b'8\001' - _globals['_DEVICEPROFILESERVICE'].methods_by_name['Create']._options = None - _globals['_DEVICEPROFILESERVICE'].methods_by_name['Create']._serialized_options = b'\202\323\344\223\002\031\"\024/api/device-profiles:\001*' - _globals['_DEVICEPROFILESERVICE'].methods_by_name['Get']._options = None - _globals['_DEVICEPROFILESERVICE'].methods_by_name['Get']._serialized_options = b'\202\323\344\223\002\033\022\031/api/device-profiles/{id}' - _globals['_DEVICEPROFILESERVICE'].methods_by_name['Update']._options = None - _globals['_DEVICEPROFILESERVICE'].methods_by_name['Update']._serialized_options = b'\202\323\344\223\002-\032(/api/device-profiles/{device_profile.id}:\001*' - _globals['_DEVICEPROFILESERVICE'].methods_by_name['Delete']._options = None - _globals['_DEVICEPROFILESERVICE'].methods_by_name['Delete']._serialized_options = b'\202\323\344\223\002\033*\031/api/device-profiles/{id}' - _globals['_DEVICEPROFILESERVICE'].methods_by_name['List']._options = None - _globals['_DEVICEPROFILESERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002\026\022\024/api/device-profiles' - _globals['_DEVICEPROFILESERVICE'].methods_by_name['ListAdrAlgorithms']._options = None - _globals['_DEVICEPROFILESERVICE'].methods_by_name['ListAdrAlgorithms']._serialized_options = b'\202\323\344\223\002%\022#/api/device-profiles/adr-algorithms' - _globals['_CODECRUNTIME']._serialized_start=3270 - _globals['_CODECRUNTIME']._serialized_end=3319 - _globals['_MEASUREMENTKIND']._serialized_start=3321 - _globals['_MEASUREMENTKIND']._serialized_end=3401 - _globals['_CADPERIODICITY']._serialized_start=3403 - _globals['_CADPERIODICITY']._serialized_end=3488 - _globals['_SECONDCHACKOFFSET']._serialized_start=3490 - _globals['_SECONDCHACKOFFSET']._serialized_end=3587 - _globals['_RELAYMODEACTIVATION']._serialized_start=3589 - _globals['_RELAYMODEACTIVATION']._serialized_end=3697 - _globals['_DEVICEPROFILE']._serialized_start=177 - _globals['_DEVICEPROFILE']._serialized_end=2064 - _globals['_DEVICEPROFILE_TAGSENTRY']._serialized_start=1950 - _globals['_DEVICEPROFILE_TAGSENTRY']._serialized_end=1993 - _globals['_DEVICEPROFILE_MEASUREMENTSENTRY']._serialized_start=1995 - _globals['_DEVICEPROFILE_MEASUREMENTSENTRY']._serialized_end=2064 - _globals['_MEASUREMENT']._serialized_start=2066 - _globals['_MEASUREMENT']._serialized_end=2129 - _globals['_DEVICEPROFILELISTITEM']._serialized_start=2132 - _globals['_DEVICEPROFILELISTITEM']._serialized_end=2481 - _globals['_CREATEDEVICEPROFILEREQUEST']._serialized_start=2483 - _globals['_CREATEDEVICEPROFILEREQUEST']._serialized_end=2555 - _globals['_CREATEDEVICEPROFILERESPONSE']._serialized_start=2557 - _globals['_CREATEDEVICEPROFILERESPONSE']._serialized_end=2598 - _globals['_GETDEVICEPROFILEREQUEST']._serialized_start=2600 - _globals['_GETDEVICEPROFILEREQUEST']._serialized_end=2637 - _globals['_GETDEVICEPROFILERESPONSE']._serialized_start=2640 - _globals['_GETDEVICEPROFILERESPONSE']._serialized_end=2806 - _globals['_UPDATEDEVICEPROFILEREQUEST']._serialized_start=2808 - _globals['_UPDATEDEVICEPROFILEREQUEST']._serialized_end=2880 - _globals['_DELETEDEVICEPROFILEREQUEST']._serialized_start=2882 - _globals['_DELETEDEVICEPROFILEREQUEST']._serialized_end=2922 - _globals['_LISTDEVICEPROFILESREQUEST']._serialized_start=2924 - _globals['_LISTDEVICEPROFILESREQUEST']._serialized_end=3017 - _globals['_LISTDEVICEPROFILESRESPONSE']._serialized_start=3019 - _globals['_LISTDEVICEPROFILESRESPONSE']._serialized_end=3112 - _globals['_LISTDEVICEPROFILEADRALGORITHMSRESPONSE']._serialized_start=3114 - _globals['_LISTDEVICEPROFILEADRALGORITHMSRESPONSE']._serialized_end=3218 - _globals['_ADRALGORITHMLISTITEM']._serialized_start=3220 - _globals['_ADRALGORITHMLISTITEM']._serialized_end=3268 - _globals['_DEVICEPROFILESERVICE']._serialized_start=3700 - _globals['_DEVICEPROFILESERVICE']._serialized_end=4396 -# @@protoc_insertion_point(module_scope) diff --git a/api/python/src/chirpstack_api/api/device_profile_pb2.pyi b/api/python/src/chirpstack_api/api/device_profile_pb2.pyi deleted file mode 100644 index 25f62cd1..00000000 --- a/api/python/src/chirpstack_api/api/device_profile_pb2.pyi +++ /dev/null @@ -1,304 +0,0 @@ -from google.api import annotations_pb2 as _annotations_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import empty_pb2 as _empty_pb2 -from chirpstack_api.common import common_pb2 as _common_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class CodecRuntime(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - NONE: _ClassVar[CodecRuntime] - CAYENNE_LPP: _ClassVar[CodecRuntime] - JS: _ClassVar[CodecRuntime] - -class MeasurementKind(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - UNKNOWN: _ClassVar[MeasurementKind] - COUNTER: _ClassVar[MeasurementKind] - ABSOLUTE: _ClassVar[MeasurementKind] - GAUGE: _ClassVar[MeasurementKind] - STRING: _ClassVar[MeasurementKind] - -class CadPeriodicity(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - SEC_1: _ClassVar[CadPeriodicity] - MS_500: _ClassVar[CadPeriodicity] - MS_250: _ClassVar[CadPeriodicity] - MS_100: _ClassVar[CadPeriodicity] - MS_50: _ClassVar[CadPeriodicity] - MS_20: _ClassVar[CadPeriodicity] - -class SecondChAckOffset(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - KHZ_0: _ClassVar[SecondChAckOffset] - KHZ_200: _ClassVar[SecondChAckOffset] - KHZ_400: _ClassVar[SecondChAckOffset] - KHZ_800: _ClassVar[SecondChAckOffset] - KHZ_1600: _ClassVar[SecondChAckOffset] - KHZ_3200: _ClassVar[SecondChAckOffset] - -class RelayModeActivation(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - DISABLE_RELAY_MODE: _ClassVar[RelayModeActivation] - ENABLE_RELAY_MODE: _ClassVar[RelayModeActivation] - DYNAMIC: _ClassVar[RelayModeActivation] - END_DEVICE_CONTROLLED: _ClassVar[RelayModeActivation] -NONE: CodecRuntime -CAYENNE_LPP: CodecRuntime -JS: CodecRuntime -UNKNOWN: MeasurementKind -COUNTER: MeasurementKind -ABSOLUTE: MeasurementKind -GAUGE: MeasurementKind -STRING: MeasurementKind -SEC_1: CadPeriodicity -MS_500: CadPeriodicity -MS_250: CadPeriodicity -MS_100: CadPeriodicity -MS_50: CadPeriodicity -MS_20: CadPeriodicity -KHZ_0: SecondChAckOffset -KHZ_200: SecondChAckOffset -KHZ_400: SecondChAckOffset -KHZ_800: SecondChAckOffset -KHZ_1600: SecondChAckOffset -KHZ_3200: SecondChAckOffset -DISABLE_RELAY_MODE: RelayModeActivation -ENABLE_RELAY_MODE: RelayModeActivation -DYNAMIC: RelayModeActivation -END_DEVICE_CONTROLLED: RelayModeActivation - -class DeviceProfile(_message.Message): - __slots__ = ("id", "tenant_id", "name", "description", "region", "mac_version", "reg_params_revision", "adr_algorithm_id", "payload_codec_runtime", "payload_codec_script", "flush_queue_on_activate", "uplink_interval", "device_status_req_interval", "supports_otaa", "supports_class_b", "supports_class_c", "class_b_timeout", "class_b_ping_slot_nb_k", "class_b_ping_slot_dr", "class_b_ping_slot_freq", "class_c_timeout", "abp_rx1_delay", "abp_rx1_dr_offset", "abp_rx2_dr", "abp_rx2_freq", "tags", "measurements", "auto_detect_measurements", "region_config_id", "is_relay", "is_relay_ed", "relay_ed_relay_only", "relay_enabled", "relay_cad_periodicity", "relay_default_channel_index", "relay_second_channel_freq", "relay_second_channel_dr", "relay_second_channel_ack_offset", "relay_ed_activation_mode", "relay_ed_smart_enable_level", "relay_ed_back_off", "relay_ed_uplink_limit_bucket_size", "relay_ed_uplink_limit_reload_rate", "relay_join_req_limit_reload_rate", "relay_notify_limit_reload_rate", "relay_global_uplink_limit_reload_rate", "relay_overall_limit_reload_rate", "relay_join_req_limit_bucket_size", "relay_notify_limit_bucket_size", "relay_global_uplink_limit_bucket_size", "relay_overall_limit_bucket_size", "allow_roaming") - class TagsEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - class MeasurementsEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: Measurement - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Measurement, _Mapping]] = ...) -> None: ... - ID_FIELD_NUMBER: _ClassVar[int] - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - REGION_FIELD_NUMBER: _ClassVar[int] - MAC_VERSION_FIELD_NUMBER: _ClassVar[int] - REG_PARAMS_REVISION_FIELD_NUMBER: _ClassVar[int] - ADR_ALGORITHM_ID_FIELD_NUMBER: _ClassVar[int] - PAYLOAD_CODEC_RUNTIME_FIELD_NUMBER: _ClassVar[int] - PAYLOAD_CODEC_SCRIPT_FIELD_NUMBER: _ClassVar[int] - FLUSH_QUEUE_ON_ACTIVATE_FIELD_NUMBER: _ClassVar[int] - UPLINK_INTERVAL_FIELD_NUMBER: _ClassVar[int] - DEVICE_STATUS_REQ_INTERVAL_FIELD_NUMBER: _ClassVar[int] - SUPPORTS_OTAA_FIELD_NUMBER: _ClassVar[int] - SUPPORTS_CLASS_B_FIELD_NUMBER: _ClassVar[int] - SUPPORTS_CLASS_C_FIELD_NUMBER: _ClassVar[int] - CLASS_B_TIMEOUT_FIELD_NUMBER: _ClassVar[int] - CLASS_B_PING_SLOT_NB_K_FIELD_NUMBER: _ClassVar[int] - CLASS_B_PING_SLOT_DR_FIELD_NUMBER: _ClassVar[int] - CLASS_B_PING_SLOT_FREQ_FIELD_NUMBER: _ClassVar[int] - CLASS_C_TIMEOUT_FIELD_NUMBER: _ClassVar[int] - ABP_RX1_DELAY_FIELD_NUMBER: _ClassVar[int] - ABP_RX1_DR_OFFSET_FIELD_NUMBER: _ClassVar[int] - ABP_RX2_DR_FIELD_NUMBER: _ClassVar[int] - ABP_RX2_FREQ_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - MEASUREMENTS_FIELD_NUMBER: _ClassVar[int] - AUTO_DETECT_MEASUREMENTS_FIELD_NUMBER: _ClassVar[int] - REGION_CONFIG_ID_FIELD_NUMBER: _ClassVar[int] - IS_RELAY_FIELD_NUMBER: _ClassVar[int] - IS_RELAY_ED_FIELD_NUMBER: _ClassVar[int] - RELAY_ED_RELAY_ONLY_FIELD_NUMBER: _ClassVar[int] - RELAY_ENABLED_FIELD_NUMBER: _ClassVar[int] - RELAY_CAD_PERIODICITY_FIELD_NUMBER: _ClassVar[int] - RELAY_DEFAULT_CHANNEL_INDEX_FIELD_NUMBER: _ClassVar[int] - RELAY_SECOND_CHANNEL_FREQ_FIELD_NUMBER: _ClassVar[int] - RELAY_SECOND_CHANNEL_DR_FIELD_NUMBER: _ClassVar[int] - RELAY_SECOND_CHANNEL_ACK_OFFSET_FIELD_NUMBER: _ClassVar[int] - RELAY_ED_ACTIVATION_MODE_FIELD_NUMBER: _ClassVar[int] - RELAY_ED_SMART_ENABLE_LEVEL_FIELD_NUMBER: _ClassVar[int] - RELAY_ED_BACK_OFF_FIELD_NUMBER: _ClassVar[int] - RELAY_ED_UPLINK_LIMIT_BUCKET_SIZE_FIELD_NUMBER: _ClassVar[int] - RELAY_ED_UPLINK_LIMIT_RELOAD_RATE_FIELD_NUMBER: _ClassVar[int] - RELAY_JOIN_REQ_LIMIT_RELOAD_RATE_FIELD_NUMBER: _ClassVar[int] - RELAY_NOTIFY_LIMIT_RELOAD_RATE_FIELD_NUMBER: _ClassVar[int] - RELAY_GLOBAL_UPLINK_LIMIT_RELOAD_RATE_FIELD_NUMBER: _ClassVar[int] - RELAY_OVERALL_LIMIT_RELOAD_RATE_FIELD_NUMBER: _ClassVar[int] - RELAY_JOIN_REQ_LIMIT_BUCKET_SIZE_FIELD_NUMBER: _ClassVar[int] - RELAY_NOTIFY_LIMIT_BUCKET_SIZE_FIELD_NUMBER: _ClassVar[int] - RELAY_GLOBAL_UPLINK_LIMIT_BUCKET_SIZE_FIELD_NUMBER: _ClassVar[int] - RELAY_OVERALL_LIMIT_BUCKET_SIZE_FIELD_NUMBER: _ClassVar[int] - ALLOW_ROAMING_FIELD_NUMBER: _ClassVar[int] - id: str - tenant_id: str - name: str - description: str - region: _common_pb2.Region - mac_version: _common_pb2.MacVersion - reg_params_revision: _common_pb2.RegParamsRevision - adr_algorithm_id: str - payload_codec_runtime: CodecRuntime - payload_codec_script: str - flush_queue_on_activate: bool - uplink_interval: int - device_status_req_interval: int - supports_otaa: bool - supports_class_b: bool - supports_class_c: bool - class_b_timeout: int - class_b_ping_slot_nb_k: int - class_b_ping_slot_dr: int - class_b_ping_slot_freq: int - class_c_timeout: int - abp_rx1_delay: int - abp_rx1_dr_offset: int - abp_rx2_dr: int - abp_rx2_freq: int - tags: _containers.ScalarMap[str, str] - measurements: _containers.MessageMap[str, Measurement] - auto_detect_measurements: bool - region_config_id: str - is_relay: bool - is_relay_ed: bool - relay_ed_relay_only: bool - relay_enabled: bool - relay_cad_periodicity: CadPeriodicity - relay_default_channel_index: int - relay_second_channel_freq: int - relay_second_channel_dr: int - relay_second_channel_ack_offset: SecondChAckOffset - relay_ed_activation_mode: RelayModeActivation - relay_ed_smart_enable_level: int - relay_ed_back_off: int - relay_ed_uplink_limit_bucket_size: int - relay_ed_uplink_limit_reload_rate: int - relay_join_req_limit_reload_rate: int - relay_notify_limit_reload_rate: int - relay_global_uplink_limit_reload_rate: int - relay_overall_limit_reload_rate: int - relay_join_req_limit_bucket_size: int - relay_notify_limit_bucket_size: int - relay_global_uplink_limit_bucket_size: int - relay_overall_limit_bucket_size: int - allow_roaming: bool - def __init__(self, id: _Optional[str] = ..., tenant_id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., region: _Optional[_Union[_common_pb2.Region, str]] = ..., mac_version: _Optional[_Union[_common_pb2.MacVersion, str]] = ..., reg_params_revision: _Optional[_Union[_common_pb2.RegParamsRevision, str]] = ..., adr_algorithm_id: _Optional[str] = ..., payload_codec_runtime: _Optional[_Union[CodecRuntime, str]] = ..., payload_codec_script: _Optional[str] = ..., flush_queue_on_activate: bool = ..., uplink_interval: _Optional[int] = ..., device_status_req_interval: _Optional[int] = ..., supports_otaa: bool = ..., supports_class_b: bool = ..., supports_class_c: bool = ..., class_b_timeout: _Optional[int] = ..., class_b_ping_slot_nb_k: _Optional[int] = ..., class_b_ping_slot_dr: _Optional[int] = ..., class_b_ping_slot_freq: _Optional[int] = ..., class_c_timeout: _Optional[int] = ..., abp_rx1_delay: _Optional[int] = ..., abp_rx1_dr_offset: _Optional[int] = ..., abp_rx2_dr: _Optional[int] = ..., abp_rx2_freq: _Optional[int] = ..., tags: _Optional[_Mapping[str, str]] = ..., measurements: _Optional[_Mapping[str, Measurement]] = ..., auto_detect_measurements: bool = ..., region_config_id: _Optional[str] = ..., is_relay: bool = ..., is_relay_ed: bool = ..., relay_ed_relay_only: bool = ..., relay_enabled: bool = ..., relay_cad_periodicity: _Optional[_Union[CadPeriodicity, str]] = ..., relay_default_channel_index: _Optional[int] = ..., relay_second_channel_freq: _Optional[int] = ..., relay_second_channel_dr: _Optional[int] = ..., relay_second_channel_ack_offset: _Optional[_Union[SecondChAckOffset, str]] = ..., relay_ed_activation_mode: _Optional[_Union[RelayModeActivation, str]] = ..., relay_ed_smart_enable_level: _Optional[int] = ..., relay_ed_back_off: _Optional[int] = ..., relay_ed_uplink_limit_bucket_size: _Optional[int] = ..., relay_ed_uplink_limit_reload_rate: _Optional[int] = ..., relay_join_req_limit_reload_rate: _Optional[int] = ..., relay_notify_limit_reload_rate: _Optional[int] = ..., relay_global_uplink_limit_reload_rate: _Optional[int] = ..., relay_overall_limit_reload_rate: _Optional[int] = ..., relay_join_req_limit_bucket_size: _Optional[int] = ..., relay_notify_limit_bucket_size: _Optional[int] = ..., relay_global_uplink_limit_bucket_size: _Optional[int] = ..., relay_overall_limit_bucket_size: _Optional[int] = ..., allow_roaming: bool = ...) -> None: ... - -class Measurement(_message.Message): - __slots__ = ("name", "kind") - NAME_FIELD_NUMBER: _ClassVar[int] - KIND_FIELD_NUMBER: _ClassVar[int] - name: str - kind: MeasurementKind - def __init__(self, name: _Optional[str] = ..., kind: _Optional[_Union[MeasurementKind, str]] = ...) -> None: ... - -class DeviceProfileListItem(_message.Message): - __slots__ = ("id", "created_at", "updated_at", "name", "region", "mac_version", "reg_params_revision", "supports_otaa", "supports_class_b", "supports_class_c") - ID_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - REGION_FIELD_NUMBER: _ClassVar[int] - MAC_VERSION_FIELD_NUMBER: _ClassVar[int] - REG_PARAMS_REVISION_FIELD_NUMBER: _ClassVar[int] - SUPPORTS_OTAA_FIELD_NUMBER: _ClassVar[int] - SUPPORTS_CLASS_B_FIELD_NUMBER: _ClassVar[int] - SUPPORTS_CLASS_C_FIELD_NUMBER: _ClassVar[int] - id: str - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - name: str - region: _common_pb2.Region - mac_version: _common_pb2.MacVersion - reg_params_revision: _common_pb2.RegParamsRevision - supports_otaa: bool - supports_class_b: bool - supports_class_c: bool - def __init__(self, id: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., name: _Optional[str] = ..., region: _Optional[_Union[_common_pb2.Region, str]] = ..., mac_version: _Optional[_Union[_common_pb2.MacVersion, str]] = ..., reg_params_revision: _Optional[_Union[_common_pb2.RegParamsRevision, str]] = ..., supports_otaa: bool = ..., supports_class_b: bool = ..., supports_class_c: bool = ...) -> None: ... - -class CreateDeviceProfileRequest(_message.Message): - __slots__ = ("device_profile",) - DEVICE_PROFILE_FIELD_NUMBER: _ClassVar[int] - device_profile: DeviceProfile - def __init__(self, device_profile: _Optional[_Union[DeviceProfile, _Mapping]] = ...) -> None: ... - -class CreateDeviceProfileResponse(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class GetDeviceProfileRequest(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class GetDeviceProfileResponse(_message.Message): - __slots__ = ("device_profile", "created_at", "updated_at") - DEVICE_PROFILE_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - device_profile: DeviceProfile - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - def __init__(self, device_profile: _Optional[_Union[DeviceProfile, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class UpdateDeviceProfileRequest(_message.Message): - __slots__ = ("device_profile",) - DEVICE_PROFILE_FIELD_NUMBER: _ClassVar[int] - device_profile: DeviceProfile - def __init__(self, device_profile: _Optional[_Union[DeviceProfile, _Mapping]] = ...) -> None: ... - -class DeleteDeviceProfileRequest(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class ListDeviceProfilesRequest(_message.Message): - __slots__ = ("limit", "offset", "search", "tenant_id") - LIMIT_FIELD_NUMBER: _ClassVar[int] - OFFSET_FIELD_NUMBER: _ClassVar[int] - SEARCH_FIELD_NUMBER: _ClassVar[int] - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - limit: int - offset: int - search: str - tenant_id: str - def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., search: _Optional[str] = ..., tenant_id: _Optional[str] = ...) -> None: ... - -class ListDeviceProfilesResponse(_message.Message): - __slots__ = ("total_count", "result") - TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int] - RESULT_FIELD_NUMBER: _ClassVar[int] - total_count: int - result: _containers.RepeatedCompositeFieldContainer[DeviceProfileListItem] - def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[DeviceProfileListItem, _Mapping]]] = ...) -> None: ... - -class ListDeviceProfileAdrAlgorithmsResponse(_message.Message): - __slots__ = ("total_count", "result") - TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int] - RESULT_FIELD_NUMBER: _ClassVar[int] - total_count: int - result: _containers.RepeatedCompositeFieldContainer[AdrAlgorithmListItem] - def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[AdrAlgorithmListItem, _Mapping]]] = ...) -> None: ... - -class AdrAlgorithmListItem(_message.Message): - __slots__ = ("id", "name") - ID_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - id: str - name: str - def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ... diff --git a/api/python/src/chirpstack_api/api/device_profile_pb2_grpc.py b/api/python/src/chirpstack_api/api/device_profile_pb2_grpc.py deleted file mode 100644 index 986c4157..00000000 --- a/api/python/src/chirpstack_api/api/device_profile_pb2_grpc.py +++ /dev/null @@ -1,244 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from chirpstack_api.api import device_profile_pb2 as chirpstack__api_dot_api_dot_device__profile__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 - - -class DeviceProfileServiceStub(object): - """DeviceProfileService is the service providing API methods for managing - device-profiles. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Create = channel.unary_unary( - '/api.DeviceProfileService/Create', - request_serializer=chirpstack__api_dot_api_dot_device__profile__pb2.CreateDeviceProfileRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_device__profile__pb2.CreateDeviceProfileResponse.FromString, - ) - self.Get = channel.unary_unary( - '/api.DeviceProfileService/Get', - request_serializer=chirpstack__api_dot_api_dot_device__profile__pb2.GetDeviceProfileRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_device__profile__pb2.GetDeviceProfileResponse.FromString, - ) - self.Update = channel.unary_unary( - '/api.DeviceProfileService/Update', - request_serializer=chirpstack__api_dot_api_dot_device__profile__pb2.UpdateDeviceProfileRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.Delete = channel.unary_unary( - '/api.DeviceProfileService/Delete', - request_serializer=chirpstack__api_dot_api_dot_device__profile__pb2.DeleteDeviceProfileRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.List = channel.unary_unary( - '/api.DeviceProfileService/List', - request_serializer=chirpstack__api_dot_api_dot_device__profile__pb2.ListDeviceProfilesRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_device__profile__pb2.ListDeviceProfilesResponse.FromString, - ) - self.ListAdrAlgorithms = channel.unary_unary( - '/api.DeviceProfileService/ListAdrAlgorithms', - request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_device__profile__pb2.ListDeviceProfileAdrAlgorithmsResponse.FromString, - ) - - -class DeviceProfileServiceServicer(object): - """DeviceProfileService is the service providing API methods for managing - device-profiles. - """ - - def Create(self, request, context): - """Create the given device-profile. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Get(self, request, context): - """Get the device-profile for the given ID. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Update(self, request, context): - """Update the given device-profile. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Delete(self, request, context): - """Delete the device-profile with the given ID. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def List(self, request, context): - """List the available device-profiles. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListAdrAlgorithms(self, request, context): - """List available ADR algorithms. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_DeviceProfileServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Create': grpc.unary_unary_rpc_method_handler( - servicer.Create, - request_deserializer=chirpstack__api_dot_api_dot_device__profile__pb2.CreateDeviceProfileRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_device__profile__pb2.CreateDeviceProfileResponse.SerializeToString, - ), - 'Get': grpc.unary_unary_rpc_method_handler( - servicer.Get, - request_deserializer=chirpstack__api_dot_api_dot_device__profile__pb2.GetDeviceProfileRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_device__profile__pb2.GetDeviceProfileResponse.SerializeToString, - ), - 'Update': grpc.unary_unary_rpc_method_handler( - servicer.Update, - request_deserializer=chirpstack__api_dot_api_dot_device__profile__pb2.UpdateDeviceProfileRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'Delete': grpc.unary_unary_rpc_method_handler( - servicer.Delete, - request_deserializer=chirpstack__api_dot_api_dot_device__profile__pb2.DeleteDeviceProfileRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'List': grpc.unary_unary_rpc_method_handler( - servicer.List, - request_deserializer=chirpstack__api_dot_api_dot_device__profile__pb2.ListDeviceProfilesRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_device__profile__pb2.ListDeviceProfilesResponse.SerializeToString, - ), - 'ListAdrAlgorithms': grpc.unary_unary_rpc_method_handler( - servicer.ListAdrAlgorithms, - request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - response_serializer=chirpstack__api_dot_api_dot_device__profile__pb2.ListDeviceProfileAdrAlgorithmsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'api.DeviceProfileService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class DeviceProfileService(object): - """DeviceProfileService is the service providing API methods for managing - device-profiles. - """ - - @staticmethod - def Create(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceProfileService/Create', - chirpstack__api_dot_api_dot_device__profile__pb2.CreateDeviceProfileRequest.SerializeToString, - chirpstack__api_dot_api_dot_device__profile__pb2.CreateDeviceProfileResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Get(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceProfileService/Get', - chirpstack__api_dot_api_dot_device__profile__pb2.GetDeviceProfileRequest.SerializeToString, - chirpstack__api_dot_api_dot_device__profile__pb2.GetDeviceProfileResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Update(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceProfileService/Update', - chirpstack__api_dot_api_dot_device__profile__pb2.UpdateDeviceProfileRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Delete(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceProfileService/Delete', - chirpstack__api_dot_api_dot_device__profile__pb2.DeleteDeviceProfileRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def List(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceProfileService/List', - chirpstack__api_dot_api_dot_device__profile__pb2.ListDeviceProfilesRequest.SerializeToString, - chirpstack__api_dot_api_dot_device__profile__pb2.ListDeviceProfilesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListAdrAlgorithms(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceProfileService/ListAdrAlgorithms', - google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - chirpstack__api_dot_api_dot_device__profile__pb2.ListDeviceProfileAdrAlgorithmsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/api/python/src/chirpstack_api/api/device_profile_template_pb2.py b/api/python/src/chirpstack_api/api/device_profile_template_pb2.py deleted file mode 100644 index 7c4aa076..00000000 --- a/api/python/src/chirpstack_api/api/device_profile_template_pb2.py +++ /dev/null @@ -1,68 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: chirpstack-api/api/device_profile_template.proto -# Protobuf Python Version: 4.25.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 -from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2 -from chirpstack_api.api import device_profile_pb2 as chirpstack__api_dot_api_dot_device__profile__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0chirpstack-api/api/device_profile_template.proto\x12\x03\x61pi\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\"chirpstack-api/common/common.proto\x1a\'chirpstack-api/api/device_profile.proto\"\xf6\x07\n\x15\x44\x65viceProfileTemplate\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x0e\n\x06vendor\x18\x04 \x01(\t\x12\x10\n\x08\x66irmware\x18\x05 \x01(\t\x12\x1e\n\x06region\x18\x06 \x01(\x0e\x32\x0e.common.Region\x12\'\n\x0bmac_version\x18\x07 \x01(\x0e\x32\x12.common.MacVersion\x12\x36\n\x13reg_params_revision\x18\x08 \x01(\x0e\x32\x19.common.RegParamsRevision\x12\x18\n\x10\x61\x64r_algorithm_id\x18\t \x01(\t\x12\x30\n\x15payload_codec_runtime\x18\n \x01(\x0e\x32\x11.api.CodecRuntime\x12\x1c\n\x14payload_codec_script\x18\x0b \x01(\t\x12\x1f\n\x17\x66lush_queue_on_activate\x18\x0c \x01(\x08\x12\x17\n\x0fuplink_interval\x18\r \x01(\r\x12\"\n\x1a\x64\x65vice_status_req_interval\x18\x0e \x01(\r\x12\x15\n\rsupports_otaa\x18\x0f \x01(\x08\x12\x18\n\x10supports_class_b\x18\x10 \x01(\x08\x12\x18\n\x10supports_class_c\x18\x11 \x01(\x08\x12\x17\n\x0f\x63lass_b_timeout\x18\x12 \x01(\r\x12\x1e\n\x16\x63lass_b_ping_slot_nb_k\x18\x13 \x01(\r\x12\x1c\n\x14\x63lass_b_ping_slot_dr\x18\x14 \x01(\r\x12\x1e\n\x16\x63lass_b_ping_slot_freq\x18\x15 \x01(\r\x12\x17\n\x0f\x63lass_c_timeout\x18\x16 \x01(\r\x12\x15\n\rabp_rx1_delay\x18\x17 \x01(\r\x12\x19\n\x11\x61\x62p_rx1_dr_offset\x18\x18 \x01(\r\x12\x12\n\nabp_rx2_dr\x18\x19 \x01(\r\x12\x14\n\x0c\x61\x62p_rx2_freq\x18\x1a \x01(\r\x12\x32\n\x04tags\x18\x1b \x03(\x0b\x32$.api.DeviceProfileTemplate.TagsEntry\x12\x42\n\x0cmeasurements\x18\x1c \x03(\x0b\x32,.api.DeviceProfileTemplate.MeasurementsEntry\x12 \n\x18\x61uto_detect_measurements\x18\x1d \x01(\x08\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x45\n\x11MeasurementsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1f\n\x05value\x18\x02 \x01(\x0b\x32\x10.api.Measurement:\x02\x38\x01\"\x87\x03\n\x1d\x44\x65viceProfileTemplateListItem\x12\n\n\x02id\x18\x01 \x01(\t\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x0e\n\x06vendor\x18\x05 \x01(\t\x12\x10\n\x08\x66irmware\x18\x06 \x01(\t\x12\x1e\n\x06region\x18\x07 \x01(\x0e\x32\x0e.common.Region\x12\'\n\x0bmac_version\x18\x08 \x01(\x0e\x32\x12.common.MacVersion\x12\x36\n\x13reg_params_revision\x18\t \x01(\x0e\x32\x19.common.RegParamsRevision\x12\x15\n\rsupports_otaa\x18\n \x01(\x08\x12\x18\n\x10supports_class_b\x18\x0b \x01(\x08\x12\x18\n\x10supports_class_c\x18\x0c \x01(\x08\"a\n\"CreateDeviceProfileTemplateRequest\x12;\n\x17\x64\x65vice_profile_template\x18\x01 \x01(\x0b\x32\x1a.api.DeviceProfileTemplate\"-\n\x1fGetDeviceProfileTemplateRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\xbf\x01\n GetDeviceProfileTemplateResponse\x12;\n\x17\x64\x65vice_profile_template\x18\x01 \x01(\x0b\x32\x1a.api.DeviceProfileTemplate\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"a\n\"UpdateDeviceProfileTemplateRequest\x12;\n\x17\x64\x65vice_profile_template\x18\x01 \x01(\x0b\x32\x1a.api.DeviceProfileTemplate\"0\n\"DeleteDeviceProfileTemplateRequest\x12\n\n\x02id\x18\x01 \x01(\t\"B\n!ListDeviceProfileTemplatesRequest\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\r\"m\n\"ListDeviceProfileTemplatesResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12\x32\n\x06result\x18\x02 \x03(\x0b\x32\".api.DeviceProfileTemplateListItem2\x9d\x05\n\x1c\x44\x65viceProfileTemplateService\x12s\n\x06\x43reate\x12\'.api.CreateDeviceProfileTemplateRequest\x1a\x16.google.protobuf.Empty\"(\x82\xd3\xe4\x93\x02\"\"\x1d/api/device-profile-templates:\x01*\x12~\n\x03Get\x12$.api.GetDeviceProfileTemplateRequest\x1a%.api.GetDeviceProfileTemplateResponse\"*\x82\xd3\xe4\x93\x02$\x12\"/api/device-profile-templates/{id}\x12\x90\x01\n\x06Update\x12\'.api.UpdateDeviceProfileTemplateRequest\x1a\x16.google.protobuf.Empty\"E\x82\xd3\xe4\x93\x02?\x1a:/api/device-profile-templates/{device_profile_template.id}:\x01*\x12u\n\x06\x44\x65lete\x12\'.api.DeleteDeviceProfileTemplateRequest\x1a\x16.google.protobuf.Empty\"*\x82\xd3\xe4\x93\x02$*\"/api/device-profile-templates/{id}\x12~\n\x04List\x12&.api.ListDeviceProfileTemplatesRequest\x1a\'.api.ListDeviceProfileTemplatesResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/api/device-profile-templatesBr\n\x11io.chirpstack.apiB\x1a\x44\x65viceProfileTemplateProtoP\x01Z.github.com/chirpstack/chirpstack/api/go/v4/api\xaa\x02\x0e\x43hirpstack.Apib\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.api.device_profile_template_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\021io.chirpstack.apiB\032DeviceProfileTemplateProtoP\001Z.github.com/chirpstack/chirpstack/api/go/v4/api\252\002\016Chirpstack.Api' - _globals['_DEVICEPROFILETEMPLATE_TAGSENTRY']._options = None - _globals['_DEVICEPROFILETEMPLATE_TAGSENTRY']._serialized_options = b'8\001' - _globals['_DEVICEPROFILETEMPLATE_MEASUREMENTSENTRY']._options = None - _globals['_DEVICEPROFILETEMPLATE_MEASUREMENTSENTRY']._serialized_options = b'8\001' - _globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['Create']._options = None - _globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['Create']._serialized_options = b'\202\323\344\223\002\"\"\035/api/device-profile-templates:\001*' - _globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['Get']._options = None - _globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['Get']._serialized_options = b'\202\323\344\223\002$\022\"/api/device-profile-templates/{id}' - _globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['Update']._options = None - _globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['Update']._serialized_options = b'\202\323\344\223\002?\032:/api/device-profile-templates/{device_profile_template.id}:\001*' - _globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['Delete']._options = None - _globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['Delete']._serialized_options = b'\202\323\344\223\002$*\"/api/device-profile-templates/{id}' - _globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['List']._options = None - _globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002\037\022\035/api/device-profile-templates' - _globals['_DEVICEPROFILETEMPLATE']._serialized_start=227 - _globals['_DEVICEPROFILETEMPLATE']._serialized_end=1241 - _globals['_DEVICEPROFILETEMPLATE_TAGSENTRY']._serialized_start=1127 - _globals['_DEVICEPROFILETEMPLATE_TAGSENTRY']._serialized_end=1170 - _globals['_DEVICEPROFILETEMPLATE_MEASUREMENTSENTRY']._serialized_start=1172 - _globals['_DEVICEPROFILETEMPLATE_MEASUREMENTSENTRY']._serialized_end=1241 - _globals['_DEVICEPROFILETEMPLATELISTITEM']._serialized_start=1244 - _globals['_DEVICEPROFILETEMPLATELISTITEM']._serialized_end=1635 - _globals['_CREATEDEVICEPROFILETEMPLATEREQUEST']._serialized_start=1637 - _globals['_CREATEDEVICEPROFILETEMPLATEREQUEST']._serialized_end=1734 - _globals['_GETDEVICEPROFILETEMPLATEREQUEST']._serialized_start=1736 - _globals['_GETDEVICEPROFILETEMPLATEREQUEST']._serialized_end=1781 - _globals['_GETDEVICEPROFILETEMPLATERESPONSE']._serialized_start=1784 - _globals['_GETDEVICEPROFILETEMPLATERESPONSE']._serialized_end=1975 - _globals['_UPDATEDEVICEPROFILETEMPLATEREQUEST']._serialized_start=1977 - _globals['_UPDATEDEVICEPROFILETEMPLATEREQUEST']._serialized_end=2074 - _globals['_DELETEDEVICEPROFILETEMPLATEREQUEST']._serialized_start=2076 - _globals['_DELETEDEVICEPROFILETEMPLATEREQUEST']._serialized_end=2124 - _globals['_LISTDEVICEPROFILETEMPLATESREQUEST']._serialized_start=2126 - _globals['_LISTDEVICEPROFILETEMPLATESREQUEST']._serialized_end=2192 - _globals['_LISTDEVICEPROFILETEMPLATESRESPONSE']._serialized_start=2194 - _globals['_LISTDEVICEPROFILETEMPLATESRESPONSE']._serialized_end=2303 - _globals['_DEVICEPROFILETEMPLATESERVICE']._serialized_start=2306 - _globals['_DEVICEPROFILETEMPLATESERVICE']._serialized_end=2975 -# @@protoc_insertion_point(module_scope) diff --git a/api/python/src/chirpstack_api/api/device_profile_template_pb2.pyi b/api/python/src/chirpstack_api/api/device_profile_template_pb2.pyi deleted file mode 100644 index fdb6d05e..00000000 --- a/api/python/src/chirpstack_api/api/device_profile_template_pb2.pyi +++ /dev/null @@ -1,165 +0,0 @@ -from google.api import annotations_pb2 as _annotations_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import empty_pb2 as _empty_pb2 -from chirpstack_api.common import common_pb2 as _common_pb2 -from chirpstack_api.api import device_profile_pb2 as _device_profile_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class DeviceProfileTemplate(_message.Message): - __slots__ = ("id", "name", "description", "vendor", "firmware", "region", "mac_version", "reg_params_revision", "adr_algorithm_id", "payload_codec_runtime", "payload_codec_script", "flush_queue_on_activate", "uplink_interval", "device_status_req_interval", "supports_otaa", "supports_class_b", "supports_class_c", "class_b_timeout", "class_b_ping_slot_nb_k", "class_b_ping_slot_dr", "class_b_ping_slot_freq", "class_c_timeout", "abp_rx1_delay", "abp_rx1_dr_offset", "abp_rx2_dr", "abp_rx2_freq", "tags", "measurements", "auto_detect_measurements") - class TagsEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - class MeasurementsEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: _device_profile_pb2.Measurement - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_device_profile_pb2.Measurement, _Mapping]] = ...) -> None: ... - ID_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - VENDOR_FIELD_NUMBER: _ClassVar[int] - FIRMWARE_FIELD_NUMBER: _ClassVar[int] - REGION_FIELD_NUMBER: _ClassVar[int] - MAC_VERSION_FIELD_NUMBER: _ClassVar[int] - REG_PARAMS_REVISION_FIELD_NUMBER: _ClassVar[int] - ADR_ALGORITHM_ID_FIELD_NUMBER: _ClassVar[int] - PAYLOAD_CODEC_RUNTIME_FIELD_NUMBER: _ClassVar[int] - PAYLOAD_CODEC_SCRIPT_FIELD_NUMBER: _ClassVar[int] - FLUSH_QUEUE_ON_ACTIVATE_FIELD_NUMBER: _ClassVar[int] - UPLINK_INTERVAL_FIELD_NUMBER: _ClassVar[int] - DEVICE_STATUS_REQ_INTERVAL_FIELD_NUMBER: _ClassVar[int] - SUPPORTS_OTAA_FIELD_NUMBER: _ClassVar[int] - SUPPORTS_CLASS_B_FIELD_NUMBER: _ClassVar[int] - SUPPORTS_CLASS_C_FIELD_NUMBER: _ClassVar[int] - CLASS_B_TIMEOUT_FIELD_NUMBER: _ClassVar[int] - CLASS_B_PING_SLOT_NB_K_FIELD_NUMBER: _ClassVar[int] - CLASS_B_PING_SLOT_DR_FIELD_NUMBER: _ClassVar[int] - CLASS_B_PING_SLOT_FREQ_FIELD_NUMBER: _ClassVar[int] - CLASS_C_TIMEOUT_FIELD_NUMBER: _ClassVar[int] - ABP_RX1_DELAY_FIELD_NUMBER: _ClassVar[int] - ABP_RX1_DR_OFFSET_FIELD_NUMBER: _ClassVar[int] - ABP_RX2_DR_FIELD_NUMBER: _ClassVar[int] - ABP_RX2_FREQ_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - MEASUREMENTS_FIELD_NUMBER: _ClassVar[int] - AUTO_DETECT_MEASUREMENTS_FIELD_NUMBER: _ClassVar[int] - id: str - name: str - description: str - vendor: str - firmware: str - region: _common_pb2.Region - mac_version: _common_pb2.MacVersion - reg_params_revision: _common_pb2.RegParamsRevision - adr_algorithm_id: str - payload_codec_runtime: _device_profile_pb2.CodecRuntime - payload_codec_script: str - flush_queue_on_activate: bool - uplink_interval: int - device_status_req_interval: int - supports_otaa: bool - supports_class_b: bool - supports_class_c: bool - class_b_timeout: int - class_b_ping_slot_nb_k: int - class_b_ping_slot_dr: int - class_b_ping_slot_freq: int - class_c_timeout: int - abp_rx1_delay: int - abp_rx1_dr_offset: int - abp_rx2_dr: int - abp_rx2_freq: int - tags: _containers.ScalarMap[str, str] - measurements: _containers.MessageMap[str, _device_profile_pb2.Measurement] - auto_detect_measurements: bool - def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., vendor: _Optional[str] = ..., firmware: _Optional[str] = ..., region: _Optional[_Union[_common_pb2.Region, str]] = ..., mac_version: _Optional[_Union[_common_pb2.MacVersion, str]] = ..., reg_params_revision: _Optional[_Union[_common_pb2.RegParamsRevision, str]] = ..., adr_algorithm_id: _Optional[str] = ..., payload_codec_runtime: _Optional[_Union[_device_profile_pb2.CodecRuntime, str]] = ..., payload_codec_script: _Optional[str] = ..., flush_queue_on_activate: bool = ..., uplink_interval: _Optional[int] = ..., device_status_req_interval: _Optional[int] = ..., supports_otaa: bool = ..., supports_class_b: bool = ..., supports_class_c: bool = ..., class_b_timeout: _Optional[int] = ..., class_b_ping_slot_nb_k: _Optional[int] = ..., class_b_ping_slot_dr: _Optional[int] = ..., class_b_ping_slot_freq: _Optional[int] = ..., class_c_timeout: _Optional[int] = ..., abp_rx1_delay: _Optional[int] = ..., abp_rx1_dr_offset: _Optional[int] = ..., abp_rx2_dr: _Optional[int] = ..., abp_rx2_freq: _Optional[int] = ..., tags: _Optional[_Mapping[str, str]] = ..., measurements: _Optional[_Mapping[str, _device_profile_pb2.Measurement]] = ..., auto_detect_measurements: bool = ...) -> None: ... - -class DeviceProfileTemplateListItem(_message.Message): - __slots__ = ("id", "created_at", "updated_at", "name", "vendor", "firmware", "region", "mac_version", "reg_params_revision", "supports_otaa", "supports_class_b", "supports_class_c") - ID_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - VENDOR_FIELD_NUMBER: _ClassVar[int] - FIRMWARE_FIELD_NUMBER: _ClassVar[int] - REGION_FIELD_NUMBER: _ClassVar[int] - MAC_VERSION_FIELD_NUMBER: _ClassVar[int] - REG_PARAMS_REVISION_FIELD_NUMBER: _ClassVar[int] - SUPPORTS_OTAA_FIELD_NUMBER: _ClassVar[int] - SUPPORTS_CLASS_B_FIELD_NUMBER: _ClassVar[int] - SUPPORTS_CLASS_C_FIELD_NUMBER: _ClassVar[int] - id: str - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - name: str - vendor: str - firmware: str - region: _common_pb2.Region - mac_version: _common_pb2.MacVersion - reg_params_revision: _common_pb2.RegParamsRevision - supports_otaa: bool - supports_class_b: bool - supports_class_c: bool - def __init__(self, id: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., name: _Optional[str] = ..., vendor: _Optional[str] = ..., firmware: _Optional[str] = ..., region: _Optional[_Union[_common_pb2.Region, str]] = ..., mac_version: _Optional[_Union[_common_pb2.MacVersion, str]] = ..., reg_params_revision: _Optional[_Union[_common_pb2.RegParamsRevision, str]] = ..., supports_otaa: bool = ..., supports_class_b: bool = ..., supports_class_c: bool = ...) -> None: ... - -class CreateDeviceProfileTemplateRequest(_message.Message): - __slots__ = ("device_profile_template",) - DEVICE_PROFILE_TEMPLATE_FIELD_NUMBER: _ClassVar[int] - device_profile_template: DeviceProfileTemplate - def __init__(self, device_profile_template: _Optional[_Union[DeviceProfileTemplate, _Mapping]] = ...) -> None: ... - -class GetDeviceProfileTemplateRequest(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class GetDeviceProfileTemplateResponse(_message.Message): - __slots__ = ("device_profile_template", "created_at", "updated_at") - DEVICE_PROFILE_TEMPLATE_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - device_profile_template: DeviceProfileTemplate - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - def __init__(self, device_profile_template: _Optional[_Union[DeviceProfileTemplate, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class UpdateDeviceProfileTemplateRequest(_message.Message): - __slots__ = ("device_profile_template",) - DEVICE_PROFILE_TEMPLATE_FIELD_NUMBER: _ClassVar[int] - device_profile_template: DeviceProfileTemplate - def __init__(self, device_profile_template: _Optional[_Union[DeviceProfileTemplate, _Mapping]] = ...) -> None: ... - -class DeleteDeviceProfileTemplateRequest(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class ListDeviceProfileTemplatesRequest(_message.Message): - __slots__ = ("limit", "offset") - LIMIT_FIELD_NUMBER: _ClassVar[int] - OFFSET_FIELD_NUMBER: _ClassVar[int] - limit: int - offset: int - def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ...) -> None: ... - -class ListDeviceProfileTemplatesResponse(_message.Message): - __slots__ = ("total_count", "result") - TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int] - RESULT_FIELD_NUMBER: _ClassVar[int] - total_count: int - result: _containers.RepeatedCompositeFieldContainer[DeviceProfileTemplateListItem] - def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[DeviceProfileTemplateListItem, _Mapping]]] = ...) -> None: ... diff --git a/api/python/src/chirpstack_api/api/device_profile_template_pb2_grpc.py b/api/python/src/chirpstack_api/api/device_profile_template_pb2_grpc.py deleted file mode 100644 index ceaeef1e..00000000 --- a/api/python/src/chirpstack_api/api/device_profile_template_pb2_grpc.py +++ /dev/null @@ -1,207 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from chirpstack_api.api import device_profile_template_pb2 as chirpstack__api_dot_api_dot_device__profile__template__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 - - -class DeviceProfileTemplateServiceStub(object): - """DeviceProfileTemplateService is the service providing API methods for managing device-profile templates. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Create = channel.unary_unary( - '/api.DeviceProfileTemplateService/Create', - request_serializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.CreateDeviceProfileTemplateRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.Get = channel.unary_unary( - '/api.DeviceProfileTemplateService/Get', - request_serializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.GetDeviceProfileTemplateRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.GetDeviceProfileTemplateResponse.FromString, - ) - self.Update = channel.unary_unary( - '/api.DeviceProfileTemplateService/Update', - request_serializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.UpdateDeviceProfileTemplateRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.Delete = channel.unary_unary( - '/api.DeviceProfileTemplateService/Delete', - request_serializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.DeleteDeviceProfileTemplateRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.List = channel.unary_unary( - '/api.DeviceProfileTemplateService/List', - request_serializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.ListDeviceProfileTemplatesRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.ListDeviceProfileTemplatesResponse.FromString, - ) - - -class DeviceProfileTemplateServiceServicer(object): - """DeviceProfileTemplateService is the service providing API methods for managing device-profile templates. - """ - - def Create(self, request, context): - """Create the given device-profile template. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Get(self, request, context): - """Get the device-profile template for the given ID. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Update(self, request, context): - """Update the given device-profile template. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Delete(self, request, context): - """Delete the device-profile template with the given ID. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def List(self, request, context): - """List the available device-profile templates. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_DeviceProfileTemplateServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Create': grpc.unary_unary_rpc_method_handler( - servicer.Create, - request_deserializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.CreateDeviceProfileTemplateRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'Get': grpc.unary_unary_rpc_method_handler( - servicer.Get, - request_deserializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.GetDeviceProfileTemplateRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.GetDeviceProfileTemplateResponse.SerializeToString, - ), - 'Update': grpc.unary_unary_rpc_method_handler( - servicer.Update, - request_deserializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.UpdateDeviceProfileTemplateRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'Delete': grpc.unary_unary_rpc_method_handler( - servicer.Delete, - request_deserializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.DeleteDeviceProfileTemplateRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'List': grpc.unary_unary_rpc_method_handler( - servicer.List, - request_deserializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.ListDeviceProfileTemplatesRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.ListDeviceProfileTemplatesResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'api.DeviceProfileTemplateService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class DeviceProfileTemplateService(object): - """DeviceProfileTemplateService is the service providing API methods for managing device-profile templates. - """ - - @staticmethod - def Create(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceProfileTemplateService/Create', - chirpstack__api_dot_api_dot_device__profile__template__pb2.CreateDeviceProfileTemplateRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Get(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceProfileTemplateService/Get', - chirpstack__api_dot_api_dot_device__profile__template__pb2.GetDeviceProfileTemplateRequest.SerializeToString, - chirpstack__api_dot_api_dot_device__profile__template__pb2.GetDeviceProfileTemplateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Update(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceProfileTemplateService/Update', - chirpstack__api_dot_api_dot_device__profile__template__pb2.UpdateDeviceProfileTemplateRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Delete(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceProfileTemplateService/Delete', - chirpstack__api_dot_api_dot_device__profile__template__pb2.DeleteDeviceProfileTemplateRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def List(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.DeviceProfileTemplateService/List', - chirpstack__api_dot_api_dot_device__profile__template__pb2.ListDeviceProfileTemplatesRequest.SerializeToString, - chirpstack__api_dot_api_dot_device__profile__template__pb2.ListDeviceProfileTemplatesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/api/python/src/chirpstack_api/api/frame_log_pb2.py b/api/python/src/chirpstack_api/api/frame_log_pb2.py deleted file mode 100644 index 084b22c8..00000000 --- a/api/python/src/chirpstack_api/api/frame_log_pb2.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: chirpstack-api/api/frame_log.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2 -from chirpstack_api.gw import gw_pb2 as chirpstack__api_dot_gw_dot_gw__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"chirpstack-api/api/frame_log.proto\x12\x03\x61pi\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\"chirpstack-api/common/common.proto\x1a\x1a\x63hirpstack-api/gw/gw.proto\"\x90\x02\n\x0eUplinkFrameLog\x12\x13\n\x0bphy_payload\x18\x01 \x01(\x0c\x12!\n\x07tx_info\x18\x02 \x01(\x0b\x32\x10.gw.UplinkTxInfo\x12!\n\x07rx_info\x18\x03 \x03(\x0b\x32\x10.gw.UplinkRxInfo\x12\x1d\n\x06m_type\x18\x04 \x01(\x0e\x32\r.common.MType\x12\x10\n\x08\x64\x65v_addr\x18\x05 \x01(\t\x12\x0f\n\x07\x64\x65v_eui\x18\x06 \x01(\t\x12(\n\x04time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10plaintext_f_opts\x18\x08 \x01(\x08\x12\x1d\n\x15plaintext_frm_payload\x18\t \x01(\x08\"\x9a\x02\n\x10\x44ownlinkFrameLog\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bphy_payload\x18\x02 \x01(\x0c\x12#\n\x07tx_info\x18\x03 \x01(\x0b\x32\x12.gw.DownlinkTxInfo\x12\x13\n\x0b\x64ownlink_id\x18\x04 \x01(\r\x12\x12\n\ngateway_id\x18\x05 \x01(\t\x12\x1d\n\x06m_type\x18\x06 \x01(\x0e\x32\r.common.MType\x12\x10\n\x08\x64\x65v_addr\x18\x07 \x01(\t\x12\x0f\n\x07\x64\x65v_eui\x18\x08 \x01(\t\x12\x18\n\x10plaintext_f_opts\x18\t \x01(\x08\x12\x1d\n\x15plaintext_frm_payload\x18\n \x01(\x08\x42\x65\n\x11io.chirpstack.apiB\rFrameLogProtoP\x01Z.github.com/chirpstack/chirpstack/api/go/v4/api\xaa\x02\x0e\x43hirpstack.Apib\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.api.frame_log_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021io.chirpstack.apiB\rFrameLogProtoP\001Z.github.com/chirpstack/chirpstack/api/go/v4/api\252\002\016Chirpstack.Api' - _globals['_UPLINKFRAMELOG']._serialized_start=141 - _globals['_UPLINKFRAMELOG']._serialized_end=413 - _globals['_DOWNLINKFRAMELOG']._serialized_start=416 - _globals['_DOWNLINKFRAMELOG']._serialized_end=698 -# @@protoc_insertion_point(module_scope) diff --git a/api/python/src/chirpstack_api/api/frame_log_pb2.pyi b/api/python/src/chirpstack_api/api/frame_log_pb2.pyi deleted file mode 100644 index 02dbdefa..00000000 --- a/api/python/src/chirpstack_api/api/frame_log_pb2.pyi +++ /dev/null @@ -1,55 +0,0 @@ -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from chirpstack_api.common import common_pb2 as _common_pb2 -from chirpstack_api.gw import gw_pb2 as _gw_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class UplinkFrameLog(_message.Message): - __slots__ = ["phy_payload", "tx_info", "rx_info", "m_type", "dev_addr", "dev_eui", "time", "plaintext_f_opts", "plaintext_frm_payload"] - PHY_PAYLOAD_FIELD_NUMBER: _ClassVar[int] - TX_INFO_FIELD_NUMBER: _ClassVar[int] - RX_INFO_FIELD_NUMBER: _ClassVar[int] - M_TYPE_FIELD_NUMBER: _ClassVar[int] - DEV_ADDR_FIELD_NUMBER: _ClassVar[int] - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - TIME_FIELD_NUMBER: _ClassVar[int] - PLAINTEXT_F_OPTS_FIELD_NUMBER: _ClassVar[int] - PLAINTEXT_FRM_PAYLOAD_FIELD_NUMBER: _ClassVar[int] - phy_payload: bytes - tx_info: _gw_pb2.UplinkTxInfo - rx_info: _containers.RepeatedCompositeFieldContainer[_gw_pb2.UplinkRxInfo] - m_type: _common_pb2.MType - dev_addr: str - dev_eui: str - time: _timestamp_pb2.Timestamp - plaintext_f_opts: bool - plaintext_frm_payload: bool - def __init__(self, phy_payload: _Optional[bytes] = ..., tx_info: _Optional[_Union[_gw_pb2.UplinkTxInfo, _Mapping]] = ..., rx_info: _Optional[_Iterable[_Union[_gw_pb2.UplinkRxInfo, _Mapping]]] = ..., m_type: _Optional[_Union[_common_pb2.MType, str]] = ..., dev_addr: _Optional[str] = ..., dev_eui: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., plaintext_f_opts: bool = ..., plaintext_frm_payload: bool = ...) -> None: ... - -class DownlinkFrameLog(_message.Message): - __slots__ = ["time", "phy_payload", "tx_info", "downlink_id", "gateway_id", "m_type", "dev_addr", "dev_eui", "plaintext_f_opts", "plaintext_frm_payload"] - TIME_FIELD_NUMBER: _ClassVar[int] - PHY_PAYLOAD_FIELD_NUMBER: _ClassVar[int] - TX_INFO_FIELD_NUMBER: _ClassVar[int] - DOWNLINK_ID_FIELD_NUMBER: _ClassVar[int] - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - M_TYPE_FIELD_NUMBER: _ClassVar[int] - DEV_ADDR_FIELD_NUMBER: _ClassVar[int] - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - PLAINTEXT_F_OPTS_FIELD_NUMBER: _ClassVar[int] - PLAINTEXT_FRM_PAYLOAD_FIELD_NUMBER: _ClassVar[int] - time: _timestamp_pb2.Timestamp - phy_payload: bytes - tx_info: _gw_pb2.DownlinkTxInfo - downlink_id: int - gateway_id: str - m_type: _common_pb2.MType - dev_addr: str - dev_eui: str - plaintext_f_opts: bool - plaintext_frm_payload: bool - def __init__(self, time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., phy_payload: _Optional[bytes] = ..., tx_info: _Optional[_Union[_gw_pb2.DownlinkTxInfo, _Mapping]] = ..., downlink_id: _Optional[int] = ..., gateway_id: _Optional[str] = ..., m_type: _Optional[_Union[_common_pb2.MType, str]] = ..., dev_addr: _Optional[str] = ..., dev_eui: _Optional[str] = ..., plaintext_f_opts: bool = ..., plaintext_frm_payload: bool = ...) -> None: ... diff --git a/api/python/src/chirpstack_api/api/frame_log_pb2_grpc.py b/api/python/src/chirpstack_api/api/frame_log_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/api/python/src/chirpstack_api/api/frame_log_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/api/python/src/chirpstack_api/api/gateway_pb2.py b/api/python/src/chirpstack_api/api/gateway_pb2.py deleted file mode 100644 index dfb6e177..00000000 --- a/api/python/src/chirpstack_api/api/gateway_pb2.py +++ /dev/null @@ -1,85 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: chirpstack-api/api/gateway.proto -# Protobuf Python Version: 4.25.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 -from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n chirpstack-api/api/gateway.proto\x12\x03\x61pi\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\"chirpstack-api/common/common.proto\"\xc1\x02\n\x07Gateway\x12\x12\n\ngateway_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\"\n\x08location\x18\x04 \x01(\x0b\x32\x10.common.Location\x12\x11\n\ttenant_id\x18\x05 \x01(\t\x12$\n\x04tags\x18\x06 \x03(\x0b\x32\x16.api.Gateway.TagsEntry\x12,\n\x08metadata\x18\x07 \x03(\x0b\x32\x1a.api.Gateway.MetadataEntry\x12\x16\n\x0estats_interval\x18\x08 \x01(\r\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa0\x03\n\x0fGatewayListItem\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x12\n\ngateway_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\"\n\x08location\x18\x05 \x01(\x0b\x32\x10.common.Location\x12\x38\n\nproperties\x18\x06 \x03(\x0b\x32$.api.GatewayListItem.PropertiesEntry\x12.\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0clast_seen_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12 \n\x05state\x18\n \x01(\x0e\x32\x11.api.GatewayState\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"5\n\x14\x43reateGatewayRequest\x12\x1d\n\x07gateway\x18\x01 \x01(\x0b\x32\x0c.api.Gateway\"\'\n\x11GetGatewayRequest\x12\x12\n\ngateway_id\x18\x01 \x01(\t\"\xc5\x01\n\x12GetGatewayResponse\x12\x1d\n\x07gateway\x18\x01 \x01(\x0b\x32\x0c.api.Gateway\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0clast_seen_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"5\n\x14UpdateGatewayRequest\x12\x1d\n\x07gateway\x18\x01 \x01(\x0b\x32\x0c.api.Gateway\"*\n\x14\x44\x65leteGatewayRequest\x12\x12\n\ngateway_id\x18\x01 \x01(\t\"s\n\x13ListGatewaysRequest\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\r\x12\x0e\n\x06search\x18\x03 \x01(\t\x12\x11\n\ttenant_id\x18\x04 \x01(\t\x12\x1a\n\x12multicast_group_id\x18\x05 \x01(\t\"Q\n\x14ListGatewaysResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12$\n\x06result\x18\x02 \x03(\x0b\x32\x14.api.GatewayListItem\"=\n\'GenerateGatewayClientCertificateRequest\x12\x12\n\ngateway_id\x18\x01 \x01(\t\"\x8e\x01\n(GenerateGatewayClientCertificateResponse\x12\x10\n\x08tls_cert\x18\x01 \x01(\t\x12\x0f\n\x07tls_key\x18\x02 \x01(\t\x12\x0f\n\x07\x63\x61_cert\x18\x03 \x01(\t\x12.\n\nexpires_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xac\x01\n\x18GetGatewayMetricsRequest\x12\x12\n\ngateway_id\x18\x01 \x01(\t\x12)\n\x05start\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03\x65nd\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12(\n\x0b\x61ggregation\x18\x04 \x01(\x0e\x32\x13.common.Aggregation\"\xc2\x02\n\x19GetGatewayMetricsResponse\x12\"\n\nrx_packets\x18\x01 \x01(\x0b\x32\x0e.common.Metric\x12\"\n\ntx_packets\x18\x02 \x01(\x0b\x32\x0e.common.Metric\x12+\n\x13tx_packets_per_freq\x18\x03 \x01(\x0b\x32\x0e.common.Metric\x12+\n\x13rx_packets_per_freq\x18\x04 \x01(\x0b\x32\x0e.common.Metric\x12)\n\x11tx_packets_per_dr\x18\x05 \x01(\x0b\x32\x0e.common.Metric\x12)\n\x11rx_packets_per_dr\x18\x06 \x01(\x0b\x32\x0e.common.Metric\x12-\n\x15tx_packets_per_status\x18\x07 \x01(\x0b\x32\x0e.common.Metric*7\n\x0cGatewayState\x12\x0e\n\nNEVER_SEEN\x10\x00\x12\n\n\x06ONLINE\x10\x01\x12\x0b\n\x07OFFLINE\x10\x02\x32\x91\x06\n\x0eGatewayService\x12U\n\x06\x43reate\x12\x19.api.CreateGatewayRequest\x1a\x16.google.protobuf.Empty\"\x18\x82\xd3\xe4\x93\x02\x12\"\r/api/gateways:\x01*\x12Z\n\x03Get\x12\x16.api.GetGatewayRequest\x1a\x17.api.GetGatewayResponse\"\"\x82\xd3\xe4\x93\x02\x1c\x12\x1a/api/gateways/{gateway_id}\x12j\n\x06Update\x12\x19.api.UpdateGatewayRequest\x1a\x16.google.protobuf.Empty\"-\x82\xd3\xe4\x93\x02\'\x1a\"/api/gateways/{gateway.gateway_id}:\x01*\x12_\n\x06\x44\x65lete\x12\x19.api.DeleteGatewayRequest\x1a\x16.google.protobuf.Empty\"\"\x82\xd3\xe4\x93\x02\x1c*\x1a/api/gateways/{gateway_id}\x12R\n\x04List\x12\x18.api.ListGatewaysRequest\x1a\x19.api.ListGatewaysResponse\"\x15\x82\xd3\xe4\x93\x02\x0f\x12\r/api/gateways\x12\xb1\x01\n\x19GenerateClientCertificate\x12,.api.GenerateGatewayClientCertificateRequest\x1a-.api.GenerateGatewayClientCertificateResponse\"7\x82\xd3\xe4\x93\x02\x31\"//api/gateways/{gateway_id}/generate-certificate\x12w\n\nGetMetrics\x12\x1d.api.GetGatewayMetricsRequest\x1a\x1e.api.GetGatewayMetricsResponse\"*\x82\xd3\xe4\x93\x02$\x12\"/api/gateways/{gateway_id}/metricsBd\n\x11io.chirpstack.apiB\x0cGatewayProtoP\x01Z.github.com/chirpstack/chirpstack/api/go/v4/api\xaa\x02\x0e\x43hirpstack.Apib\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.api.gateway_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\021io.chirpstack.apiB\014GatewayProtoP\001Z.github.com/chirpstack/chirpstack/api/go/v4/api\252\002\016Chirpstack.Api' - _globals['_GATEWAY_TAGSENTRY']._options = None - _globals['_GATEWAY_TAGSENTRY']._serialized_options = b'8\001' - _globals['_GATEWAY_METADATAENTRY']._options = None - _globals['_GATEWAY_METADATAENTRY']._serialized_options = b'8\001' - _globals['_GATEWAYLISTITEM_PROPERTIESENTRY']._options = None - _globals['_GATEWAYLISTITEM_PROPERTIESENTRY']._serialized_options = b'8\001' - _globals['_GATEWAYSERVICE'].methods_by_name['Create']._options = None - _globals['_GATEWAYSERVICE'].methods_by_name['Create']._serialized_options = b'\202\323\344\223\002\022\"\r/api/gateways:\001*' - _globals['_GATEWAYSERVICE'].methods_by_name['Get']._options = None - _globals['_GATEWAYSERVICE'].methods_by_name['Get']._serialized_options = b'\202\323\344\223\002\034\022\032/api/gateways/{gateway_id}' - _globals['_GATEWAYSERVICE'].methods_by_name['Update']._options = None - _globals['_GATEWAYSERVICE'].methods_by_name['Update']._serialized_options = b'\202\323\344\223\002\'\032\"/api/gateways/{gateway.gateway_id}:\001*' - _globals['_GATEWAYSERVICE'].methods_by_name['Delete']._options = None - _globals['_GATEWAYSERVICE'].methods_by_name['Delete']._serialized_options = b'\202\323\344\223\002\034*\032/api/gateways/{gateway_id}' - _globals['_GATEWAYSERVICE'].methods_by_name['List']._options = None - _globals['_GATEWAYSERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002\017\022\r/api/gateways' - _globals['_GATEWAYSERVICE'].methods_by_name['GenerateClientCertificate']._options = None - _globals['_GATEWAYSERVICE'].methods_by_name['GenerateClientCertificate']._serialized_options = b'\202\323\344\223\0021\"//api/gateways/{gateway_id}/generate-certificate' - _globals['_GATEWAYSERVICE'].methods_by_name['GetMetrics']._options = None - _globals['_GATEWAYSERVICE'].methods_by_name['GetMetrics']._serialized_options = b'\202\323\344\223\002$\022\"/api/gateways/{gateway_id}/metrics' - _globals['_GATEWAYSTATE']._serialized_start=2215 - _globals['_GATEWAYSTATE']._serialized_end=2270 - _globals['_GATEWAY']._serialized_start=170 - _globals['_GATEWAY']._serialized_end=491 - _globals['_GATEWAY_TAGSENTRY']._serialized_start=399 - _globals['_GATEWAY_TAGSENTRY']._serialized_end=442 - _globals['_GATEWAY_METADATAENTRY']._serialized_start=444 - _globals['_GATEWAY_METADATAENTRY']._serialized_end=491 - _globals['_GATEWAYLISTITEM']._serialized_start=494 - _globals['_GATEWAYLISTITEM']._serialized_end=910 - _globals['_GATEWAYLISTITEM_PROPERTIESENTRY']._serialized_start=861 - _globals['_GATEWAYLISTITEM_PROPERTIESENTRY']._serialized_end=910 - _globals['_CREATEGATEWAYREQUEST']._serialized_start=912 - _globals['_CREATEGATEWAYREQUEST']._serialized_end=965 - _globals['_GETGATEWAYREQUEST']._serialized_start=967 - _globals['_GETGATEWAYREQUEST']._serialized_end=1006 - _globals['_GETGATEWAYRESPONSE']._serialized_start=1009 - _globals['_GETGATEWAYRESPONSE']._serialized_end=1206 - _globals['_UPDATEGATEWAYREQUEST']._serialized_start=1208 - _globals['_UPDATEGATEWAYREQUEST']._serialized_end=1261 - _globals['_DELETEGATEWAYREQUEST']._serialized_start=1263 - _globals['_DELETEGATEWAYREQUEST']._serialized_end=1305 - _globals['_LISTGATEWAYSREQUEST']._serialized_start=1307 - _globals['_LISTGATEWAYSREQUEST']._serialized_end=1422 - _globals['_LISTGATEWAYSRESPONSE']._serialized_start=1424 - _globals['_LISTGATEWAYSRESPONSE']._serialized_end=1505 - _globals['_GENERATEGATEWAYCLIENTCERTIFICATEREQUEST']._serialized_start=1507 - _globals['_GENERATEGATEWAYCLIENTCERTIFICATEREQUEST']._serialized_end=1568 - _globals['_GENERATEGATEWAYCLIENTCERTIFICATERESPONSE']._serialized_start=1571 - _globals['_GENERATEGATEWAYCLIENTCERTIFICATERESPONSE']._serialized_end=1713 - _globals['_GETGATEWAYMETRICSREQUEST']._serialized_start=1716 - _globals['_GETGATEWAYMETRICSREQUEST']._serialized_end=1888 - _globals['_GETGATEWAYMETRICSRESPONSE']._serialized_start=1891 - _globals['_GETGATEWAYMETRICSRESPONSE']._serialized_end=2213 - _globals['_GATEWAYSERVICE']._serialized_start=2273 - _globals['_GATEWAYSERVICE']._serialized_end=3058 -# @@protoc_insertion_point(module_scope) diff --git a/api/python/src/chirpstack_api/api/gateway_pb2.pyi b/api/python/src/chirpstack_api/api/gateway_pb2.pyi deleted file mode 100644 index f36b13db..00000000 --- a/api/python/src/chirpstack_api/api/gateway_pb2.pyi +++ /dev/null @@ -1,191 +0,0 @@ -from google.api import annotations_pb2 as _annotations_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import empty_pb2 as _empty_pb2 -from chirpstack_api.common import common_pb2 as _common_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class GatewayState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - NEVER_SEEN: _ClassVar[GatewayState] - ONLINE: _ClassVar[GatewayState] - OFFLINE: _ClassVar[GatewayState] -NEVER_SEEN: GatewayState -ONLINE: GatewayState -OFFLINE: GatewayState - -class Gateway(_message.Message): - __slots__ = ("gateway_id", "name", "description", "location", "tenant_id", "tags", "metadata", "stats_interval") - class TagsEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - class MetadataEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - LOCATION_FIELD_NUMBER: _ClassVar[int] - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - STATS_INTERVAL_FIELD_NUMBER: _ClassVar[int] - gateway_id: str - name: str - description: str - location: _common_pb2.Location - tenant_id: str - tags: _containers.ScalarMap[str, str] - metadata: _containers.ScalarMap[str, str] - stats_interval: int - def __init__(self, gateway_id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., location: _Optional[_Union[_common_pb2.Location, _Mapping]] = ..., tenant_id: _Optional[str] = ..., tags: _Optional[_Mapping[str, str]] = ..., metadata: _Optional[_Mapping[str, str]] = ..., stats_interval: _Optional[int] = ...) -> None: ... - -class GatewayListItem(_message.Message): - __slots__ = ("tenant_id", "gateway_id", "name", "description", "location", "properties", "created_at", "updated_at", "last_seen_at", "state") - class PropertiesEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - LOCATION_FIELD_NUMBER: _ClassVar[int] - PROPERTIES_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - LAST_SEEN_AT_FIELD_NUMBER: _ClassVar[int] - STATE_FIELD_NUMBER: _ClassVar[int] - tenant_id: str - gateway_id: str - name: str - description: str - location: _common_pb2.Location - properties: _containers.ScalarMap[str, str] - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - last_seen_at: _timestamp_pb2.Timestamp - state: GatewayState - def __init__(self, tenant_id: _Optional[str] = ..., gateway_id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., location: _Optional[_Union[_common_pb2.Location, _Mapping]] = ..., properties: _Optional[_Mapping[str, str]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., last_seen_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., state: _Optional[_Union[GatewayState, str]] = ...) -> None: ... - -class CreateGatewayRequest(_message.Message): - __slots__ = ("gateway",) - GATEWAY_FIELD_NUMBER: _ClassVar[int] - gateway: Gateway - def __init__(self, gateway: _Optional[_Union[Gateway, _Mapping]] = ...) -> None: ... - -class GetGatewayRequest(_message.Message): - __slots__ = ("gateway_id",) - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - gateway_id: str - def __init__(self, gateway_id: _Optional[str] = ...) -> None: ... - -class GetGatewayResponse(_message.Message): - __slots__ = ("gateway", "created_at", "updated_at", "last_seen_at") - GATEWAY_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - LAST_SEEN_AT_FIELD_NUMBER: _ClassVar[int] - gateway: Gateway - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - last_seen_at: _timestamp_pb2.Timestamp - def __init__(self, gateway: _Optional[_Union[Gateway, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., last_seen_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class UpdateGatewayRequest(_message.Message): - __slots__ = ("gateway",) - GATEWAY_FIELD_NUMBER: _ClassVar[int] - gateway: Gateway - def __init__(self, gateway: _Optional[_Union[Gateway, _Mapping]] = ...) -> None: ... - -class DeleteGatewayRequest(_message.Message): - __slots__ = ("gateway_id",) - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - gateway_id: str - def __init__(self, gateway_id: _Optional[str] = ...) -> None: ... - -class ListGatewaysRequest(_message.Message): - __slots__ = ("limit", "offset", "search", "tenant_id", "multicast_group_id") - LIMIT_FIELD_NUMBER: _ClassVar[int] - OFFSET_FIELD_NUMBER: _ClassVar[int] - SEARCH_FIELD_NUMBER: _ClassVar[int] - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int] - limit: int - offset: int - search: str - tenant_id: str - multicast_group_id: str - def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., search: _Optional[str] = ..., tenant_id: _Optional[str] = ..., multicast_group_id: _Optional[str] = ...) -> None: ... - -class ListGatewaysResponse(_message.Message): - __slots__ = ("total_count", "result") - TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int] - RESULT_FIELD_NUMBER: _ClassVar[int] - total_count: int - result: _containers.RepeatedCompositeFieldContainer[GatewayListItem] - def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[GatewayListItem, _Mapping]]] = ...) -> None: ... - -class GenerateGatewayClientCertificateRequest(_message.Message): - __slots__ = ("gateway_id",) - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - gateway_id: str - def __init__(self, gateway_id: _Optional[str] = ...) -> None: ... - -class GenerateGatewayClientCertificateResponse(_message.Message): - __slots__ = ("tls_cert", "tls_key", "ca_cert", "expires_at") - TLS_CERT_FIELD_NUMBER: _ClassVar[int] - TLS_KEY_FIELD_NUMBER: _ClassVar[int] - CA_CERT_FIELD_NUMBER: _ClassVar[int] - EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] - tls_cert: str - tls_key: str - ca_cert: str - expires_at: _timestamp_pb2.Timestamp - def __init__(self, tls_cert: _Optional[str] = ..., tls_key: _Optional[str] = ..., ca_cert: _Optional[str] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class GetGatewayMetricsRequest(_message.Message): - __slots__ = ("gateway_id", "start", "end", "aggregation") - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - START_FIELD_NUMBER: _ClassVar[int] - END_FIELD_NUMBER: _ClassVar[int] - AGGREGATION_FIELD_NUMBER: _ClassVar[int] - gateway_id: str - start: _timestamp_pb2.Timestamp - end: _timestamp_pb2.Timestamp - aggregation: _common_pb2.Aggregation - def __init__(self, gateway_id: _Optional[str] = ..., start: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., aggregation: _Optional[_Union[_common_pb2.Aggregation, str]] = ...) -> None: ... - -class GetGatewayMetricsResponse(_message.Message): - __slots__ = ("rx_packets", "tx_packets", "tx_packets_per_freq", "rx_packets_per_freq", "tx_packets_per_dr", "rx_packets_per_dr", "tx_packets_per_status") - RX_PACKETS_FIELD_NUMBER: _ClassVar[int] - TX_PACKETS_FIELD_NUMBER: _ClassVar[int] - TX_PACKETS_PER_FREQ_FIELD_NUMBER: _ClassVar[int] - RX_PACKETS_PER_FREQ_FIELD_NUMBER: _ClassVar[int] - TX_PACKETS_PER_DR_FIELD_NUMBER: _ClassVar[int] - RX_PACKETS_PER_DR_FIELD_NUMBER: _ClassVar[int] - TX_PACKETS_PER_STATUS_FIELD_NUMBER: _ClassVar[int] - rx_packets: _common_pb2.Metric - tx_packets: _common_pb2.Metric - tx_packets_per_freq: _common_pb2.Metric - rx_packets_per_freq: _common_pb2.Metric - tx_packets_per_dr: _common_pb2.Metric - rx_packets_per_dr: _common_pb2.Metric - tx_packets_per_status: _common_pb2.Metric - def __init__(self, rx_packets: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., tx_packets: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., tx_packets_per_freq: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., rx_packets_per_freq: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., tx_packets_per_dr: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., rx_packets_per_dr: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., tx_packets_per_status: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ...) -> None: ... diff --git a/api/python/src/chirpstack_api/api/gateway_pb2_grpc.py b/api/python/src/chirpstack_api/api/gateway_pb2_grpc.py deleted file mode 100644 index 8332a7f6..00000000 --- a/api/python/src/chirpstack_api/api/gateway_pb2_grpc.py +++ /dev/null @@ -1,275 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from chirpstack_api.api import gateway_pb2 as chirpstack__api_dot_api_dot_gateway__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 - - -class GatewayServiceStub(object): - """GatewayService is the service providing API methods for managing gateways. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Create = channel.unary_unary( - '/api.GatewayService/Create', - request_serializer=chirpstack__api_dot_api_dot_gateway__pb2.CreateGatewayRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.Get = channel.unary_unary( - '/api.GatewayService/Get', - request_serializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayResponse.FromString, - ) - self.Update = channel.unary_unary( - '/api.GatewayService/Update', - request_serializer=chirpstack__api_dot_api_dot_gateway__pb2.UpdateGatewayRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.Delete = channel.unary_unary( - '/api.GatewayService/Delete', - request_serializer=chirpstack__api_dot_api_dot_gateway__pb2.DeleteGatewayRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.List = channel.unary_unary( - '/api.GatewayService/List', - request_serializer=chirpstack__api_dot_api_dot_gateway__pb2.ListGatewaysRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.ListGatewaysResponse.FromString, - ) - self.GenerateClientCertificate = channel.unary_unary( - '/api.GatewayService/GenerateClientCertificate', - request_serializer=chirpstack__api_dot_api_dot_gateway__pb2.GenerateGatewayClientCertificateRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.GenerateGatewayClientCertificateResponse.FromString, - ) - self.GetMetrics = channel.unary_unary( - '/api.GatewayService/GetMetrics', - request_serializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayMetricsRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayMetricsResponse.FromString, - ) - - -class GatewayServiceServicer(object): - """GatewayService is the service providing API methods for managing gateways. - """ - - def Create(self, request, context): - """Create creates the given gateway. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Get(self, request, context): - """Get returns the gateway for the given Gateway ID. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Update(self, request, context): - """Update updates the given gateway. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Delete(self, request, context): - """Delete deletes the gateway matching the given Gateway ID. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def List(self, request, context): - """Get the list of gateways. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GenerateClientCertificate(self, request, context): - """Generate client-certificate for the gateway. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetMetrics(self, request, context): - """GetMetrics returns the gateway metrics. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_GatewayServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Create': grpc.unary_unary_rpc_method_handler( - servicer.Create, - request_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.CreateGatewayRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'Get': grpc.unary_unary_rpc_method_handler( - servicer.Get, - request_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayResponse.SerializeToString, - ), - 'Update': grpc.unary_unary_rpc_method_handler( - servicer.Update, - request_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.UpdateGatewayRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'Delete': grpc.unary_unary_rpc_method_handler( - servicer.Delete, - request_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.DeleteGatewayRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'List': grpc.unary_unary_rpc_method_handler( - servicer.List, - request_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.ListGatewaysRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_gateway__pb2.ListGatewaysResponse.SerializeToString, - ), - 'GenerateClientCertificate': grpc.unary_unary_rpc_method_handler( - servicer.GenerateClientCertificate, - request_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.GenerateGatewayClientCertificateRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_gateway__pb2.GenerateGatewayClientCertificateResponse.SerializeToString, - ), - 'GetMetrics': grpc.unary_unary_rpc_method_handler( - servicer.GetMetrics, - request_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayMetricsRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayMetricsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'api.GatewayService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class GatewayService(object): - """GatewayService is the service providing API methods for managing gateways. - """ - - @staticmethod - def Create(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.GatewayService/Create', - chirpstack__api_dot_api_dot_gateway__pb2.CreateGatewayRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Get(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.GatewayService/Get', - chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayRequest.SerializeToString, - chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Update(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.GatewayService/Update', - chirpstack__api_dot_api_dot_gateway__pb2.UpdateGatewayRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Delete(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.GatewayService/Delete', - chirpstack__api_dot_api_dot_gateway__pb2.DeleteGatewayRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def List(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.GatewayService/List', - chirpstack__api_dot_api_dot_gateway__pb2.ListGatewaysRequest.SerializeToString, - chirpstack__api_dot_api_dot_gateway__pb2.ListGatewaysResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GenerateClientCertificate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.GatewayService/GenerateClientCertificate', - chirpstack__api_dot_api_dot_gateway__pb2.GenerateGatewayClientCertificateRequest.SerializeToString, - chirpstack__api_dot_api_dot_gateway__pb2.GenerateGatewayClientCertificateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetMetrics(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.GatewayService/GetMetrics', - chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayMetricsRequest.SerializeToString, - chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayMetricsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/api/python/src/chirpstack_api/api/internal_pb2.py b/api/python/src/chirpstack_api/api/internal_pb2.py deleted file mode 100644 index ec0dbf6d..00000000 --- a/api/python/src/chirpstack_api/api/internal_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: chirpstack-api/api/internal.proto -# Protobuf Python Version: 4.25.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 -from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2 -from chirpstack_api.api import user_pb2 as chirpstack__api_dot_api_dot_user__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!chirpstack-api/api/internal.proto\x12\x03\x61pi\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\"chirpstack-api/common/common.proto\x1a\x1d\x63hirpstack-api/api/user.proto\"G\n\x06\x41piKey\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08is_admin\x18\x03 \x01(\x08\x12\x11\n\ttenant_id\x18\x04 \x01(\t\"3\n\x13\x43reateApiKeyRequest\x12\x1c\n\x07\x61pi_key\x18\x01 \x01(\x0b\x32\x0b.api.ApiKey\"1\n\x14\x43reateApiKeyResponse\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05token\x18\x02 \x01(\t\"!\n\x13\x44\x65leteApiKeyRequest\x12\n\n\x02id\x18\x01 \x01(\t\"X\n\x12ListApiKeysRequest\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\r\x12\x10\n\x08is_admin\x18\x03 \x01(\x08\x12\x11\n\ttenant_id\x18\x04 \x01(\t\"G\n\x13ListApiKeysResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12\x1b\n\x06result\x18\x02 \x03(\x0b\x32\x0b.api.ApiKey\"\xc8\x01\n\x0eUserTenantLink\x12.\n\ncreated_at\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\ttenant_id\x18\x03 \x01(\t\x12\x10\n\x08is_admin\x18\x04 \x01(\x08\x12\x17\n\x0fis_device_admin\x18\x05 \x01(\x08\x12\x18\n\x10is_gateway_admin\x18\x06 \x01(\x08\"/\n\x0cLoginRequest\x12\r\n\x05\x65mail\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\"\x1c\n\rLoginResponse\x12\x0b\n\x03jwt\x18\x01 \x01(\t\"P\n\x0fProfileResponse\x12\x17\n\x04user\x18\x01 \x01(\x0b\x32\t.api.User\x12$\n\x07tenants\x18\x03 \x03(\x0b\x32\x13.api.UserTenantLink\"D\n\x13GlobalSearchRequest\x12\x0e\n\x06search\x18\x01 \x01(\t\x12\r\n\x05limit\x18\x02 \x01(\x03\x12\x0e\n\x06offset\x18\x03 \x01(\x03\"?\n\x14GlobalSearchResponse\x12\'\n\x06result\x18\x01 \x03(\x0b\x32\x17.api.GlobalSearchResult\"\xe2\x01\n\x12GlobalSearchResult\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x11\n\ttenant_id\x18\x03 \x01(\t\x12\x13\n\x0btenant_name\x18\x04 \x01(\t\x12\x16\n\x0e\x61pplication_id\x18\x05 \x01(\t\x12\x18\n\x10\x61pplication_name\x18\x06 \x01(\t\x12\x16\n\x0e\x64\x65vice_dev_eui\x18\x07 \x01(\t\x12\x13\n\x0b\x64\x65vice_name\x18\x08 \x01(\t\x12\x12\n\ngateway_id\x18\t \x01(\t\x12\x14\n\x0cgateway_name\x18\n \x01(\t\"[\n\x10SettingsResponse\x12*\n\x0eopenid_connect\x18\x01 \x01(\x0b\x32\x12.api.OpenIdConnect\x12\x1b\n\x06oauth2\x18\x02 \x01(\x0b\x32\x0b.api.OAuth2\"t\n\rOpenIdConnect\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x11\n\tlogin_url\x18\x02 \x01(\t\x12\x13\n\x0blogin_label\x18\x03 \x01(\t\x12\x12\n\nlogout_url\x18\x04 \x01(\t\x12\x16\n\x0elogin_redirect\x18\x05 \x01(\x08\"m\n\x06OAuth2\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x11\n\tlogin_url\x18\x02 \x01(\t\x12\x13\n\x0blogin_label\x18\x03 \x01(\t\x12\x12\n\nlogout_url\x18\x04 \x01(\t\x12\x16\n\x0elogin_redirect\x18\x05 \x01(\x08\"8\n\x19OpenIdConnectLoginRequest\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12\r\n\x05state\x18\x02 \x01(\t\"+\n\x1aOpenIdConnectLoginResponse\x12\r\n\x05token\x18\x01 \x01(\t\"1\n\x12OAuth2LoginRequest\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12\r\n\x05state\x18\x02 \x01(\t\"$\n\x13OAuth2LoginResponse\x12\r\n\x05token\x18\x01 \x01(\t\"-\n\x18GetDevicesSummaryRequest\x12\x11\n\ttenant_id\x18\x01 \x01(\t\"\xd2\x01\n\x19GetDevicesSummaryResponse\x12\x14\n\x0c\x61\x63tive_count\x18\x01 \x01(\r\x12\x16\n\x0einactive_count\x18\x02 \x01(\r\x12=\n\x08\x64r_count\x18\x03 \x03(\x0b\x32+.api.GetDevicesSummaryResponse.DrCountEntry\x12\x18\n\x10never_seen_count\x18\x04 \x01(\r\x1a.\n\x0c\x44rCountEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12\r\n\x05value\x18\x02 \x01(\r:\x02\x38\x01\".\n\x19GetGatewaysSummaryRequest\x12\x11\n\ttenant_id\x18\x01 \x01(\t\"c\n\x1aGetGatewaysSummaryResponse\x12\x14\n\x0conline_count\x18\x01 \x01(\r\x12\x15\n\roffline_count\x18\x02 \x01(\r\x12\x18\n\x10never_seen_count\x18\x03 \x01(\r\"\xc7\x01\n\x07LogItem\x12\n\n\x02id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x0c\n\x04\x62ody\x18\x04 \x01(\t\x12\x30\n\nproperties\x18\x05 \x03(\x0b\x32\x1c.api.LogItem.PropertiesEntry\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"0\n\x1aStreamGatewayFramesRequest\x12\x12\n\ngateway_id\x18\x01 \x01(\t\",\n\x19StreamDeviceFramesRequest\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\",\n\x19StreamDeviceEventsRequest\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\";\n\x13ListRegionsResponse\x12$\n\x07regions\x18\x01 \x03(\x0b\x32\x13.api.RegionListItem\"Q\n\x0eRegionListItem\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1e\n\x06region\x18\x02 \x01(\x0e\x32\x0e.common.Region\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\"\x1e\n\x10GetRegionRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\xa8\x02\n\x11GetRegionResponse\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1e\n\x06region\x18\x02 \x01(\x0e\x32\x0e.common.Region\x12\x11\n\tuser_info\x18\x03 \x01(\t\x12+\n\x0fuplink_channels\x18\x04 \x03(\x0b\x32\x12.api.RegionChannel\x12\x11\n\trx1_delay\x18\x05 \x01(\r\x12\x15\n\rrx1_dr_offset\x18\x06 \x01(\r\x12\x0e\n\x06rx2_dr\x18\x07 \x01(\r\x12\x15\n\rrx2_frequency\x18\x08 \x01(\r\x12\x1c\n\x14\x63lass_b_ping_slot_dr\x18\t \x01(\r\x12#\n\x1b\x63lass_b_ping_slot_frequency\x18\n \x01(\r\x12\x13\n\x0b\x64\x65scription\x18\x0b \x01(\t\"B\n\rRegionChannel\x12\x11\n\tfrequency\x18\x01 \x01(\r\x12\x0e\n\x06\x64r_min\x18\x02 \x01(\r\x12\x0e\n\x06\x64r_max\x18\x03 \x01(\r\"%\n\x12GetVersionResponse\x12\x0f\n\x07version\x18\x01 \x01(\t2\xb9\t\n\x0fInternalService\x12\x30\n\x05Login\x12\x11.api.LoginRequest\x1a\x12.api.LoginResponse\"\x00\x12\x39\n\x07Profile\x12\x16.google.protobuf.Empty\x1a\x14.api.ProfileResponse\"\x00\x12\x45\n\x0cGlobalSearch\x12\x18.api.GlobalSearchRequest\x1a\x19.api.GlobalSearchResponse\"\x00\x12\x45\n\x0c\x43reateApiKey\x12\x18.api.CreateApiKeyRequest\x1a\x19.api.CreateApiKeyResponse\"\x00\x12\x42\n\x0c\x44\x65leteApiKey\x12\x18.api.DeleteApiKeyRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x42\n\x0bListApiKeys\x12\x17.api.ListApiKeysRequest\x1a\x18.api.ListApiKeysResponse\"\x00\x12;\n\x08Settings\x12\x16.google.protobuf.Empty\x1a\x15.api.SettingsResponse\"\x00\x12W\n\x12OpenIdConnectLogin\x12\x1e.api.OpenIdConnectLoginRequest\x1a\x1f.api.OpenIdConnectLoginResponse\"\x00\x12\x42\n\x0bOAuth2Login\x12\x17.api.OAuth2LoginRequest\x1a\x18.api.OAuth2LoginResponse\"\x00\x12T\n\x11GetDevicesSummary\x12\x1d.api.GetDevicesSummaryRequest\x1a\x1e.api.GetDevicesSummaryResponse\"\x00\x12W\n\x12GetGatewaysSummary\x12\x1e.api.GetGatewaysSummaryRequest\x1a\x1f.api.GetGatewaysSummaryResponse\"\x00\x12H\n\x13StreamGatewayFrames\x12\x1f.api.StreamGatewayFramesRequest\x1a\x0c.api.LogItem\"\x00\x30\x01\x12\x46\n\x12StreamDeviceFrames\x12\x1e.api.StreamDeviceFramesRequest\x1a\x0c.api.LogItem\"\x00\x30\x01\x12\x46\n\x12StreamDeviceEvents\x12\x1e.api.StreamDeviceEventsRequest\x1a\x0c.api.LogItem\"\x00\x30\x01\x12\x41\n\x0bListRegions\x12\x16.google.protobuf.Empty\x1a\x18.api.ListRegionsResponse\"\x00\x12<\n\tGetRegion\x12\x15.api.GetRegionRequest\x1a\x16.api.GetRegionResponse\"\x00\x12?\n\nGetVersion\x12\x16.google.protobuf.Empty\x1a\x17.api.GetVersionResponse\"\x00\x42\x65\n\x11io.chirpstack.apiB\rInternalProtoP\x01Z.github.com/chirpstack/chirpstack/api/go/v4/api\xaa\x02\x0e\x43hirpstack.Apib\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.api.internal_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\021io.chirpstack.apiB\rInternalProtoP\001Z.github.com/chirpstack/chirpstack/api/go/v4/api\252\002\016Chirpstack.Api' - _globals['_GETDEVICESSUMMARYRESPONSE_DRCOUNTENTRY']._options = None - _globals['_GETDEVICESSUMMARYRESPONSE_DRCOUNTENTRY']._serialized_options = b'8\001' - _globals['_LOGITEM_PROPERTIESENTRY']._options = None - _globals['_LOGITEM_PROPERTIESENTRY']._serialized_options = b'8\001' - _globals['_APIKEY']._serialized_start=171 - _globals['_APIKEY']._serialized_end=242 - _globals['_CREATEAPIKEYREQUEST']._serialized_start=244 - _globals['_CREATEAPIKEYREQUEST']._serialized_end=295 - _globals['_CREATEAPIKEYRESPONSE']._serialized_start=297 - _globals['_CREATEAPIKEYRESPONSE']._serialized_end=346 - _globals['_DELETEAPIKEYREQUEST']._serialized_start=348 - _globals['_DELETEAPIKEYREQUEST']._serialized_end=381 - _globals['_LISTAPIKEYSREQUEST']._serialized_start=383 - _globals['_LISTAPIKEYSREQUEST']._serialized_end=471 - _globals['_LISTAPIKEYSRESPONSE']._serialized_start=473 - _globals['_LISTAPIKEYSRESPONSE']._serialized_end=544 - _globals['_USERTENANTLINK']._serialized_start=547 - _globals['_USERTENANTLINK']._serialized_end=747 - _globals['_LOGINREQUEST']._serialized_start=749 - _globals['_LOGINREQUEST']._serialized_end=796 - _globals['_LOGINRESPONSE']._serialized_start=798 - _globals['_LOGINRESPONSE']._serialized_end=826 - _globals['_PROFILERESPONSE']._serialized_start=828 - _globals['_PROFILERESPONSE']._serialized_end=908 - _globals['_GLOBALSEARCHREQUEST']._serialized_start=910 - _globals['_GLOBALSEARCHREQUEST']._serialized_end=978 - _globals['_GLOBALSEARCHRESPONSE']._serialized_start=980 - _globals['_GLOBALSEARCHRESPONSE']._serialized_end=1043 - _globals['_GLOBALSEARCHRESULT']._serialized_start=1046 - _globals['_GLOBALSEARCHRESULT']._serialized_end=1272 - _globals['_SETTINGSRESPONSE']._serialized_start=1274 - _globals['_SETTINGSRESPONSE']._serialized_end=1365 - _globals['_OPENIDCONNECT']._serialized_start=1367 - _globals['_OPENIDCONNECT']._serialized_end=1483 - _globals['_OAUTH2']._serialized_start=1485 - _globals['_OAUTH2']._serialized_end=1594 - _globals['_OPENIDCONNECTLOGINREQUEST']._serialized_start=1596 - _globals['_OPENIDCONNECTLOGINREQUEST']._serialized_end=1652 - _globals['_OPENIDCONNECTLOGINRESPONSE']._serialized_start=1654 - _globals['_OPENIDCONNECTLOGINRESPONSE']._serialized_end=1697 - _globals['_OAUTH2LOGINREQUEST']._serialized_start=1699 - _globals['_OAUTH2LOGINREQUEST']._serialized_end=1748 - _globals['_OAUTH2LOGINRESPONSE']._serialized_start=1750 - _globals['_OAUTH2LOGINRESPONSE']._serialized_end=1786 - _globals['_GETDEVICESSUMMARYREQUEST']._serialized_start=1788 - _globals['_GETDEVICESSUMMARYREQUEST']._serialized_end=1833 - _globals['_GETDEVICESSUMMARYRESPONSE']._serialized_start=1836 - _globals['_GETDEVICESSUMMARYRESPONSE']._serialized_end=2046 - _globals['_GETDEVICESSUMMARYRESPONSE_DRCOUNTENTRY']._serialized_start=2000 - _globals['_GETDEVICESSUMMARYRESPONSE_DRCOUNTENTRY']._serialized_end=2046 - _globals['_GETGATEWAYSSUMMARYREQUEST']._serialized_start=2048 - _globals['_GETGATEWAYSSUMMARYREQUEST']._serialized_end=2094 - _globals['_GETGATEWAYSSUMMARYRESPONSE']._serialized_start=2096 - _globals['_GETGATEWAYSSUMMARYRESPONSE']._serialized_end=2195 - _globals['_LOGITEM']._serialized_start=2198 - _globals['_LOGITEM']._serialized_end=2397 - _globals['_LOGITEM_PROPERTIESENTRY']._serialized_start=2348 - _globals['_LOGITEM_PROPERTIESENTRY']._serialized_end=2397 - _globals['_STREAMGATEWAYFRAMESREQUEST']._serialized_start=2399 - _globals['_STREAMGATEWAYFRAMESREQUEST']._serialized_end=2447 - _globals['_STREAMDEVICEFRAMESREQUEST']._serialized_start=2449 - _globals['_STREAMDEVICEFRAMESREQUEST']._serialized_end=2493 - _globals['_STREAMDEVICEEVENTSREQUEST']._serialized_start=2495 - _globals['_STREAMDEVICEEVENTSREQUEST']._serialized_end=2539 - _globals['_LISTREGIONSRESPONSE']._serialized_start=2541 - _globals['_LISTREGIONSRESPONSE']._serialized_end=2600 - _globals['_REGIONLISTITEM']._serialized_start=2602 - _globals['_REGIONLISTITEM']._serialized_end=2683 - _globals['_GETREGIONREQUEST']._serialized_start=2685 - _globals['_GETREGIONREQUEST']._serialized_end=2715 - _globals['_GETREGIONRESPONSE']._serialized_start=2718 - _globals['_GETREGIONRESPONSE']._serialized_end=3014 - _globals['_REGIONCHANNEL']._serialized_start=3016 - _globals['_REGIONCHANNEL']._serialized_end=3082 - _globals['_GETVERSIONRESPONSE']._serialized_start=3084 - _globals['_GETVERSIONRESPONSE']._serialized_end=3121 - _globals['_INTERNALSERVICE']._serialized_start=3124 - _globals['_INTERNALSERVICE']._serialized_end=4333 -# @@protoc_insertion_point(module_scope) diff --git a/api/python/src/chirpstack_api/api/internal_pb2.pyi b/api/python/src/chirpstack_api/api/internal_pb2.pyi deleted file mode 100644 index 576de429..00000000 --- a/api/python/src/chirpstack_api/api/internal_pb2.pyi +++ /dev/null @@ -1,348 +0,0 @@ -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import empty_pb2 as _empty_pb2 -from chirpstack_api.common import common_pb2 as _common_pb2 -from chirpstack_api.api import user_pb2 as _user_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ApiKey(_message.Message): - __slots__ = ("id", "name", "is_admin", "tenant_id") - ID_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - IS_ADMIN_FIELD_NUMBER: _ClassVar[int] - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - id: str - name: str - is_admin: bool - tenant_id: str - def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., is_admin: bool = ..., tenant_id: _Optional[str] = ...) -> None: ... - -class CreateApiKeyRequest(_message.Message): - __slots__ = ("api_key",) - API_KEY_FIELD_NUMBER: _ClassVar[int] - api_key: ApiKey - def __init__(self, api_key: _Optional[_Union[ApiKey, _Mapping]] = ...) -> None: ... - -class CreateApiKeyResponse(_message.Message): - __slots__ = ("id", "token") - ID_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - id: str - token: str - def __init__(self, id: _Optional[str] = ..., token: _Optional[str] = ...) -> None: ... - -class DeleteApiKeyRequest(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class ListApiKeysRequest(_message.Message): - __slots__ = ("limit", "offset", "is_admin", "tenant_id") - LIMIT_FIELD_NUMBER: _ClassVar[int] - OFFSET_FIELD_NUMBER: _ClassVar[int] - IS_ADMIN_FIELD_NUMBER: _ClassVar[int] - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - limit: int - offset: int - is_admin: bool - tenant_id: str - def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., is_admin: bool = ..., tenant_id: _Optional[str] = ...) -> None: ... - -class ListApiKeysResponse(_message.Message): - __slots__ = ("total_count", "result") - TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int] - RESULT_FIELD_NUMBER: _ClassVar[int] - total_count: int - result: _containers.RepeatedCompositeFieldContainer[ApiKey] - def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[ApiKey, _Mapping]]] = ...) -> None: ... - -class UserTenantLink(_message.Message): - __slots__ = ("created_at", "updated_at", "tenant_id", "is_admin", "is_device_admin", "is_gateway_admin") - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - IS_ADMIN_FIELD_NUMBER: _ClassVar[int] - IS_DEVICE_ADMIN_FIELD_NUMBER: _ClassVar[int] - IS_GATEWAY_ADMIN_FIELD_NUMBER: _ClassVar[int] - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - tenant_id: str - is_admin: bool - is_device_admin: bool - is_gateway_admin: bool - def __init__(self, created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., tenant_id: _Optional[str] = ..., is_admin: bool = ..., is_device_admin: bool = ..., is_gateway_admin: bool = ...) -> None: ... - -class LoginRequest(_message.Message): - __slots__ = ("email", "password") - EMAIL_FIELD_NUMBER: _ClassVar[int] - PASSWORD_FIELD_NUMBER: _ClassVar[int] - email: str - password: str - def __init__(self, email: _Optional[str] = ..., password: _Optional[str] = ...) -> None: ... - -class LoginResponse(_message.Message): - __slots__ = ("jwt",) - JWT_FIELD_NUMBER: _ClassVar[int] - jwt: str - def __init__(self, jwt: _Optional[str] = ...) -> None: ... - -class ProfileResponse(_message.Message): - __slots__ = ("user", "tenants") - USER_FIELD_NUMBER: _ClassVar[int] - TENANTS_FIELD_NUMBER: _ClassVar[int] - user: _user_pb2.User - tenants: _containers.RepeatedCompositeFieldContainer[UserTenantLink] - def __init__(self, user: _Optional[_Union[_user_pb2.User, _Mapping]] = ..., tenants: _Optional[_Iterable[_Union[UserTenantLink, _Mapping]]] = ...) -> None: ... - -class GlobalSearchRequest(_message.Message): - __slots__ = ("search", "limit", "offset") - SEARCH_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - OFFSET_FIELD_NUMBER: _ClassVar[int] - search: str - limit: int - offset: int - def __init__(self, search: _Optional[str] = ..., limit: _Optional[int] = ..., offset: _Optional[int] = ...) -> None: ... - -class GlobalSearchResponse(_message.Message): - __slots__ = ("result",) - RESULT_FIELD_NUMBER: _ClassVar[int] - result: _containers.RepeatedCompositeFieldContainer[GlobalSearchResult] - def __init__(self, result: _Optional[_Iterable[_Union[GlobalSearchResult, _Mapping]]] = ...) -> None: ... - -class GlobalSearchResult(_message.Message): - __slots__ = ("kind", "score", "tenant_id", "tenant_name", "application_id", "application_name", "device_dev_eui", "device_name", "gateway_id", "gateway_name") - KIND_FIELD_NUMBER: _ClassVar[int] - SCORE_FIELD_NUMBER: _ClassVar[int] - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - TENANT_NAME_FIELD_NUMBER: _ClassVar[int] - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - APPLICATION_NAME_FIELD_NUMBER: _ClassVar[int] - DEVICE_DEV_EUI_FIELD_NUMBER: _ClassVar[int] - DEVICE_NAME_FIELD_NUMBER: _ClassVar[int] - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - GATEWAY_NAME_FIELD_NUMBER: _ClassVar[int] - kind: str - score: float - tenant_id: str - tenant_name: str - application_id: str - application_name: str - device_dev_eui: str - device_name: str - gateway_id: str - gateway_name: str - def __init__(self, kind: _Optional[str] = ..., score: _Optional[float] = ..., tenant_id: _Optional[str] = ..., tenant_name: _Optional[str] = ..., application_id: _Optional[str] = ..., application_name: _Optional[str] = ..., device_dev_eui: _Optional[str] = ..., device_name: _Optional[str] = ..., gateway_id: _Optional[str] = ..., gateway_name: _Optional[str] = ...) -> None: ... - -class SettingsResponse(_message.Message): - __slots__ = ("openid_connect", "oauth2") - OPENID_CONNECT_FIELD_NUMBER: _ClassVar[int] - OAUTH2_FIELD_NUMBER: _ClassVar[int] - openid_connect: OpenIdConnect - oauth2: OAuth2 - def __init__(self, openid_connect: _Optional[_Union[OpenIdConnect, _Mapping]] = ..., oauth2: _Optional[_Union[OAuth2, _Mapping]] = ...) -> None: ... - -class OpenIdConnect(_message.Message): - __slots__ = ("enabled", "login_url", "login_label", "logout_url", "login_redirect") - ENABLED_FIELD_NUMBER: _ClassVar[int] - LOGIN_URL_FIELD_NUMBER: _ClassVar[int] - LOGIN_LABEL_FIELD_NUMBER: _ClassVar[int] - LOGOUT_URL_FIELD_NUMBER: _ClassVar[int] - LOGIN_REDIRECT_FIELD_NUMBER: _ClassVar[int] - enabled: bool - login_url: str - login_label: str - logout_url: str - login_redirect: bool - def __init__(self, enabled: bool = ..., login_url: _Optional[str] = ..., login_label: _Optional[str] = ..., logout_url: _Optional[str] = ..., login_redirect: bool = ...) -> None: ... - -class OAuth2(_message.Message): - __slots__ = ("enabled", "login_url", "login_label", "logout_url", "login_redirect") - ENABLED_FIELD_NUMBER: _ClassVar[int] - LOGIN_URL_FIELD_NUMBER: _ClassVar[int] - LOGIN_LABEL_FIELD_NUMBER: _ClassVar[int] - LOGOUT_URL_FIELD_NUMBER: _ClassVar[int] - LOGIN_REDIRECT_FIELD_NUMBER: _ClassVar[int] - enabled: bool - login_url: str - login_label: str - logout_url: str - login_redirect: bool - def __init__(self, enabled: bool = ..., login_url: _Optional[str] = ..., login_label: _Optional[str] = ..., logout_url: _Optional[str] = ..., login_redirect: bool = ...) -> None: ... - -class OpenIdConnectLoginRequest(_message.Message): - __slots__ = ("code", "state") - CODE_FIELD_NUMBER: _ClassVar[int] - STATE_FIELD_NUMBER: _ClassVar[int] - code: str - state: str - def __init__(self, code: _Optional[str] = ..., state: _Optional[str] = ...) -> None: ... - -class OpenIdConnectLoginResponse(_message.Message): - __slots__ = ("token",) - TOKEN_FIELD_NUMBER: _ClassVar[int] - token: str - def __init__(self, token: _Optional[str] = ...) -> None: ... - -class OAuth2LoginRequest(_message.Message): - __slots__ = ("code", "state") - CODE_FIELD_NUMBER: _ClassVar[int] - STATE_FIELD_NUMBER: _ClassVar[int] - code: str - state: str - def __init__(self, code: _Optional[str] = ..., state: _Optional[str] = ...) -> None: ... - -class OAuth2LoginResponse(_message.Message): - __slots__ = ("token",) - TOKEN_FIELD_NUMBER: _ClassVar[int] - token: str - def __init__(self, token: _Optional[str] = ...) -> None: ... - -class GetDevicesSummaryRequest(_message.Message): - __slots__ = ("tenant_id",) - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - tenant_id: str - def __init__(self, tenant_id: _Optional[str] = ...) -> None: ... - -class GetDevicesSummaryResponse(_message.Message): - __slots__ = ("active_count", "inactive_count", "dr_count", "never_seen_count") - class DrCountEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: int - value: int - def __init__(self, key: _Optional[int] = ..., value: _Optional[int] = ...) -> None: ... - ACTIVE_COUNT_FIELD_NUMBER: _ClassVar[int] - INACTIVE_COUNT_FIELD_NUMBER: _ClassVar[int] - DR_COUNT_FIELD_NUMBER: _ClassVar[int] - NEVER_SEEN_COUNT_FIELD_NUMBER: _ClassVar[int] - active_count: int - inactive_count: int - dr_count: _containers.ScalarMap[int, int] - never_seen_count: int - def __init__(self, active_count: _Optional[int] = ..., inactive_count: _Optional[int] = ..., dr_count: _Optional[_Mapping[int, int]] = ..., never_seen_count: _Optional[int] = ...) -> None: ... - -class GetGatewaysSummaryRequest(_message.Message): - __slots__ = ("tenant_id",) - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - tenant_id: str - def __init__(self, tenant_id: _Optional[str] = ...) -> None: ... - -class GetGatewaysSummaryResponse(_message.Message): - __slots__ = ("online_count", "offline_count", "never_seen_count") - ONLINE_COUNT_FIELD_NUMBER: _ClassVar[int] - OFFLINE_COUNT_FIELD_NUMBER: _ClassVar[int] - NEVER_SEEN_COUNT_FIELD_NUMBER: _ClassVar[int] - online_count: int - offline_count: int - never_seen_count: int - def __init__(self, online_count: _Optional[int] = ..., offline_count: _Optional[int] = ..., never_seen_count: _Optional[int] = ...) -> None: ... - -class LogItem(_message.Message): - __slots__ = ("id", "time", "description", "body", "properties") - class PropertiesEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - ID_FIELD_NUMBER: _ClassVar[int] - TIME_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - BODY_FIELD_NUMBER: _ClassVar[int] - PROPERTIES_FIELD_NUMBER: _ClassVar[int] - id: str - time: _timestamp_pb2.Timestamp - description: str - body: str - properties: _containers.ScalarMap[str, str] - def __init__(self, id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., description: _Optional[str] = ..., body: _Optional[str] = ..., properties: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class StreamGatewayFramesRequest(_message.Message): - __slots__ = ("gateway_id",) - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - gateway_id: str - def __init__(self, gateway_id: _Optional[str] = ...) -> None: ... - -class StreamDeviceFramesRequest(_message.Message): - __slots__ = ("dev_eui",) - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - def __init__(self, dev_eui: _Optional[str] = ...) -> None: ... - -class StreamDeviceEventsRequest(_message.Message): - __slots__ = ("dev_eui",) - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - def __init__(self, dev_eui: _Optional[str] = ...) -> None: ... - -class ListRegionsResponse(_message.Message): - __slots__ = ("regions",) - REGIONS_FIELD_NUMBER: _ClassVar[int] - regions: _containers.RepeatedCompositeFieldContainer[RegionListItem] - def __init__(self, regions: _Optional[_Iterable[_Union[RegionListItem, _Mapping]]] = ...) -> None: ... - -class RegionListItem(_message.Message): - __slots__ = ("id", "region", "description") - ID_FIELD_NUMBER: _ClassVar[int] - REGION_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - id: str - region: _common_pb2.Region - description: str - def __init__(self, id: _Optional[str] = ..., region: _Optional[_Union[_common_pb2.Region, str]] = ..., description: _Optional[str] = ...) -> None: ... - -class GetRegionRequest(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class GetRegionResponse(_message.Message): - __slots__ = ("id", "region", "user_info", "uplink_channels", "rx1_delay", "rx1_dr_offset", "rx2_dr", "rx2_frequency", "class_b_ping_slot_dr", "class_b_ping_slot_frequency", "description") - ID_FIELD_NUMBER: _ClassVar[int] - REGION_FIELD_NUMBER: _ClassVar[int] - USER_INFO_FIELD_NUMBER: _ClassVar[int] - UPLINK_CHANNELS_FIELD_NUMBER: _ClassVar[int] - RX1_DELAY_FIELD_NUMBER: _ClassVar[int] - RX1_DR_OFFSET_FIELD_NUMBER: _ClassVar[int] - RX2_DR_FIELD_NUMBER: _ClassVar[int] - RX2_FREQUENCY_FIELD_NUMBER: _ClassVar[int] - CLASS_B_PING_SLOT_DR_FIELD_NUMBER: _ClassVar[int] - CLASS_B_PING_SLOT_FREQUENCY_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - id: str - region: _common_pb2.Region - user_info: str - uplink_channels: _containers.RepeatedCompositeFieldContainer[RegionChannel] - rx1_delay: int - rx1_dr_offset: int - rx2_dr: int - rx2_frequency: int - class_b_ping_slot_dr: int - class_b_ping_slot_frequency: int - description: str - def __init__(self, id: _Optional[str] = ..., region: _Optional[_Union[_common_pb2.Region, str]] = ..., user_info: _Optional[str] = ..., uplink_channels: _Optional[_Iterable[_Union[RegionChannel, _Mapping]]] = ..., rx1_delay: _Optional[int] = ..., rx1_dr_offset: _Optional[int] = ..., rx2_dr: _Optional[int] = ..., rx2_frequency: _Optional[int] = ..., class_b_ping_slot_dr: _Optional[int] = ..., class_b_ping_slot_frequency: _Optional[int] = ..., description: _Optional[str] = ...) -> None: ... - -class RegionChannel(_message.Message): - __slots__ = ("frequency", "dr_min", "dr_max") - FREQUENCY_FIELD_NUMBER: _ClassVar[int] - DR_MIN_FIELD_NUMBER: _ClassVar[int] - DR_MAX_FIELD_NUMBER: _ClassVar[int] - frequency: int - dr_min: int - dr_max: int - def __init__(self, frequency: _Optional[int] = ..., dr_min: _Optional[int] = ..., dr_max: _Optional[int] = ...) -> None: ... - -class GetVersionResponse(_message.Message): - __slots__ = ("version",) - VERSION_FIELD_NUMBER: _ClassVar[int] - version: str - def __init__(self, version: _Optional[str] = ...) -> None: ... diff --git a/api/python/src/chirpstack_api/api/internal_pb2_grpc.py b/api/python/src/chirpstack_api/api/internal_pb2_grpc.py deleted file mode 100644 index a84a2ddb..00000000 --- a/api/python/src/chirpstack_api/api/internal_pb2_grpc.py +++ /dev/null @@ -1,615 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from chirpstack_api.api import internal_pb2 as chirpstack__api_dot_api_dot_internal__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 - - -class InternalServiceStub(object): - """InternalService is the service providing API endpoints for internal usage. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Login = channel.unary_unary( - '/api.InternalService/Login', - request_serializer=chirpstack__api_dot_api_dot_internal__pb2.LoginRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.LoginResponse.FromString, - ) - self.Profile = channel.unary_unary( - '/api.InternalService/Profile', - request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.ProfileResponse.FromString, - ) - self.GlobalSearch = channel.unary_unary( - '/api.InternalService/GlobalSearch', - request_serializer=chirpstack__api_dot_api_dot_internal__pb2.GlobalSearchRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.GlobalSearchResponse.FromString, - ) - self.CreateApiKey = channel.unary_unary( - '/api.InternalService/CreateApiKey', - request_serializer=chirpstack__api_dot_api_dot_internal__pb2.CreateApiKeyRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.CreateApiKeyResponse.FromString, - ) - self.DeleteApiKey = channel.unary_unary( - '/api.InternalService/DeleteApiKey', - request_serializer=chirpstack__api_dot_api_dot_internal__pb2.DeleteApiKeyRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.ListApiKeys = channel.unary_unary( - '/api.InternalService/ListApiKeys', - request_serializer=chirpstack__api_dot_api_dot_internal__pb2.ListApiKeysRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.ListApiKeysResponse.FromString, - ) - self.Settings = channel.unary_unary( - '/api.InternalService/Settings', - request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.SettingsResponse.FromString, - ) - self.OpenIdConnectLogin = channel.unary_unary( - '/api.InternalService/OpenIdConnectLogin', - request_serializer=chirpstack__api_dot_api_dot_internal__pb2.OpenIdConnectLoginRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.OpenIdConnectLoginResponse.FromString, - ) - self.OAuth2Login = channel.unary_unary( - '/api.InternalService/OAuth2Login', - request_serializer=chirpstack__api_dot_api_dot_internal__pb2.OAuth2LoginRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.OAuth2LoginResponse.FromString, - ) - self.GetDevicesSummary = channel.unary_unary( - '/api.InternalService/GetDevicesSummary', - request_serializer=chirpstack__api_dot_api_dot_internal__pb2.GetDevicesSummaryRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.GetDevicesSummaryResponse.FromString, - ) - self.GetGatewaysSummary = channel.unary_unary( - '/api.InternalService/GetGatewaysSummary', - request_serializer=chirpstack__api_dot_api_dot_internal__pb2.GetGatewaysSummaryRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.GetGatewaysSummaryResponse.FromString, - ) - self.StreamGatewayFrames = channel.unary_stream( - '/api.InternalService/StreamGatewayFrames', - request_serializer=chirpstack__api_dot_api_dot_internal__pb2.StreamGatewayFramesRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.LogItem.FromString, - ) - self.StreamDeviceFrames = channel.unary_stream( - '/api.InternalService/StreamDeviceFrames', - request_serializer=chirpstack__api_dot_api_dot_internal__pb2.StreamDeviceFramesRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.LogItem.FromString, - ) - self.StreamDeviceEvents = channel.unary_stream( - '/api.InternalService/StreamDeviceEvents', - request_serializer=chirpstack__api_dot_api_dot_internal__pb2.StreamDeviceEventsRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.LogItem.FromString, - ) - self.ListRegions = channel.unary_unary( - '/api.InternalService/ListRegions', - request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.ListRegionsResponse.FromString, - ) - self.GetRegion = channel.unary_unary( - '/api.InternalService/GetRegion', - request_serializer=chirpstack__api_dot_api_dot_internal__pb2.GetRegionRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.GetRegionResponse.FromString, - ) - self.GetVersion = channel.unary_unary( - '/api.InternalService/GetVersion', - request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.GetVersionResponse.FromString, - ) - - -class InternalServiceServicer(object): - """InternalService is the service providing API endpoints for internal usage. - """ - - def Login(self, request, context): - """Log in a user - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Profile(self, request, context): - """Get the current user's profile - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GlobalSearch(self, request, context): - """Perform a global search. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateApiKey(self, request, context): - """CreateApiKey creates the given API key. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteApiKey(self, request, context): - """DeleteApiKey deletes the API key. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListApiKeys(self, request, context): - """ListApiKeys lists the available API keys. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Settings(self, request, context): - """Get the global settings. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def OpenIdConnectLogin(self, request, context): - """OpenId Connect login. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def OAuth2Login(self, request, context): - """OAuth2 login. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetDevicesSummary(self, request, context): - """GetDevicesSummary returns an aggregated summary of the devices. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetGatewaysSummary(self, request, context): - """GetGatewaysSummary returns an aggregated summary of the gateways. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def StreamGatewayFrames(self, request, context): - """Stream frame for the given Gateway ID. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def StreamDeviceFrames(self, request, context): - """Stream frames for the given Device EUI. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def StreamDeviceEvents(self, request, context): - """Stream events for the given Device EUI. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListRegions(self, request, context): - """ListRegions lists the available (configured) regions. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetRegion(self, request, context): - """GetRegion returns the region details for the given region. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetVersion(self, request, context): - """GetVersion returns the ChirpStack version. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_InternalServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Login': grpc.unary_unary_rpc_method_handler( - servicer.Login, - request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.LoginRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_internal__pb2.LoginResponse.SerializeToString, - ), - 'Profile': grpc.unary_unary_rpc_method_handler( - servicer.Profile, - request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - response_serializer=chirpstack__api_dot_api_dot_internal__pb2.ProfileResponse.SerializeToString, - ), - 'GlobalSearch': grpc.unary_unary_rpc_method_handler( - servicer.GlobalSearch, - request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.GlobalSearchRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_internal__pb2.GlobalSearchResponse.SerializeToString, - ), - 'CreateApiKey': grpc.unary_unary_rpc_method_handler( - servicer.CreateApiKey, - request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.CreateApiKeyRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_internal__pb2.CreateApiKeyResponse.SerializeToString, - ), - 'DeleteApiKey': grpc.unary_unary_rpc_method_handler( - servicer.DeleteApiKey, - request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.DeleteApiKeyRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListApiKeys': grpc.unary_unary_rpc_method_handler( - servicer.ListApiKeys, - request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.ListApiKeysRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_internal__pb2.ListApiKeysResponse.SerializeToString, - ), - 'Settings': grpc.unary_unary_rpc_method_handler( - servicer.Settings, - request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - response_serializer=chirpstack__api_dot_api_dot_internal__pb2.SettingsResponse.SerializeToString, - ), - 'OpenIdConnectLogin': grpc.unary_unary_rpc_method_handler( - servicer.OpenIdConnectLogin, - request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.OpenIdConnectLoginRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_internal__pb2.OpenIdConnectLoginResponse.SerializeToString, - ), - 'OAuth2Login': grpc.unary_unary_rpc_method_handler( - servicer.OAuth2Login, - request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.OAuth2LoginRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_internal__pb2.OAuth2LoginResponse.SerializeToString, - ), - 'GetDevicesSummary': grpc.unary_unary_rpc_method_handler( - servicer.GetDevicesSummary, - request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.GetDevicesSummaryRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_internal__pb2.GetDevicesSummaryResponse.SerializeToString, - ), - 'GetGatewaysSummary': grpc.unary_unary_rpc_method_handler( - servicer.GetGatewaysSummary, - request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.GetGatewaysSummaryRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_internal__pb2.GetGatewaysSummaryResponse.SerializeToString, - ), - 'StreamGatewayFrames': grpc.unary_stream_rpc_method_handler( - servicer.StreamGatewayFrames, - request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.StreamGatewayFramesRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_internal__pb2.LogItem.SerializeToString, - ), - 'StreamDeviceFrames': grpc.unary_stream_rpc_method_handler( - servicer.StreamDeviceFrames, - request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.StreamDeviceFramesRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_internal__pb2.LogItem.SerializeToString, - ), - 'StreamDeviceEvents': grpc.unary_stream_rpc_method_handler( - servicer.StreamDeviceEvents, - request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.StreamDeviceEventsRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_internal__pb2.LogItem.SerializeToString, - ), - 'ListRegions': grpc.unary_unary_rpc_method_handler( - servicer.ListRegions, - request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - response_serializer=chirpstack__api_dot_api_dot_internal__pb2.ListRegionsResponse.SerializeToString, - ), - 'GetRegion': grpc.unary_unary_rpc_method_handler( - servicer.GetRegion, - request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.GetRegionRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_internal__pb2.GetRegionResponse.SerializeToString, - ), - 'GetVersion': grpc.unary_unary_rpc_method_handler( - servicer.GetVersion, - request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - response_serializer=chirpstack__api_dot_api_dot_internal__pb2.GetVersionResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'api.InternalService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class InternalService(object): - """InternalService is the service providing API endpoints for internal usage. - """ - - @staticmethod - def Login(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.InternalService/Login', - chirpstack__api_dot_api_dot_internal__pb2.LoginRequest.SerializeToString, - chirpstack__api_dot_api_dot_internal__pb2.LoginResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Profile(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.InternalService/Profile', - google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - chirpstack__api_dot_api_dot_internal__pb2.ProfileResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GlobalSearch(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.InternalService/GlobalSearch', - chirpstack__api_dot_api_dot_internal__pb2.GlobalSearchRequest.SerializeToString, - chirpstack__api_dot_api_dot_internal__pb2.GlobalSearchResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateApiKey(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.InternalService/CreateApiKey', - chirpstack__api_dot_api_dot_internal__pb2.CreateApiKeyRequest.SerializeToString, - chirpstack__api_dot_api_dot_internal__pb2.CreateApiKeyResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteApiKey(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.InternalService/DeleteApiKey', - chirpstack__api_dot_api_dot_internal__pb2.DeleteApiKeyRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListApiKeys(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.InternalService/ListApiKeys', - chirpstack__api_dot_api_dot_internal__pb2.ListApiKeysRequest.SerializeToString, - chirpstack__api_dot_api_dot_internal__pb2.ListApiKeysResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Settings(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.InternalService/Settings', - google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - chirpstack__api_dot_api_dot_internal__pb2.SettingsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def OpenIdConnectLogin(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.InternalService/OpenIdConnectLogin', - chirpstack__api_dot_api_dot_internal__pb2.OpenIdConnectLoginRequest.SerializeToString, - chirpstack__api_dot_api_dot_internal__pb2.OpenIdConnectLoginResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def OAuth2Login(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.InternalService/OAuth2Login', - chirpstack__api_dot_api_dot_internal__pb2.OAuth2LoginRequest.SerializeToString, - chirpstack__api_dot_api_dot_internal__pb2.OAuth2LoginResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetDevicesSummary(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.InternalService/GetDevicesSummary', - chirpstack__api_dot_api_dot_internal__pb2.GetDevicesSummaryRequest.SerializeToString, - chirpstack__api_dot_api_dot_internal__pb2.GetDevicesSummaryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetGatewaysSummary(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.InternalService/GetGatewaysSummary', - chirpstack__api_dot_api_dot_internal__pb2.GetGatewaysSummaryRequest.SerializeToString, - chirpstack__api_dot_api_dot_internal__pb2.GetGatewaysSummaryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def StreamGatewayFrames(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/api.InternalService/StreamGatewayFrames', - chirpstack__api_dot_api_dot_internal__pb2.StreamGatewayFramesRequest.SerializeToString, - chirpstack__api_dot_api_dot_internal__pb2.LogItem.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def StreamDeviceFrames(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/api.InternalService/StreamDeviceFrames', - chirpstack__api_dot_api_dot_internal__pb2.StreamDeviceFramesRequest.SerializeToString, - chirpstack__api_dot_api_dot_internal__pb2.LogItem.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def StreamDeviceEvents(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/api.InternalService/StreamDeviceEvents', - chirpstack__api_dot_api_dot_internal__pb2.StreamDeviceEventsRequest.SerializeToString, - chirpstack__api_dot_api_dot_internal__pb2.LogItem.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListRegions(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.InternalService/ListRegions', - google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - chirpstack__api_dot_api_dot_internal__pb2.ListRegionsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetRegion(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.InternalService/GetRegion', - chirpstack__api_dot_api_dot_internal__pb2.GetRegionRequest.SerializeToString, - chirpstack__api_dot_api_dot_internal__pb2.GetRegionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetVersion(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.InternalService/GetVersion', - google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - chirpstack__api_dot_api_dot_internal__pb2.GetVersionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/api/python/src/chirpstack_api/api/multicast_group_pb2.py b/api/python/src/chirpstack_api/api/multicast_group_pb2.py deleted file mode 100644 index c2a16629..00000000 --- a/api/python/src/chirpstack_api/api/multicast_group_pb2.py +++ /dev/null @@ -1,99 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: chirpstack-api/api/multicast_group.proto -# Protobuf Python Version: 4.25.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 -from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(chirpstack-api/api/multicast_group.proto\x12\x03\x61pi\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\"chirpstack-api/common/common.proto\"\x80\x03\n\x0eMulticastGroup\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x16\n\x0e\x61pplication_id\x18\x03 \x01(\t\x12\x1e\n\x06region\x18\x04 \x01(\x0e\x32\x0e.common.Region\x12\x0f\n\x07mc_addr\x18\x05 \x01(\t\x12\x14\n\x0cmc_nwk_s_key\x18\x06 \x01(\t\x12\x14\n\x0cmc_app_s_key\x18\x07 \x01(\t\x12\r\n\x05\x66_cnt\x18\x08 \x01(\r\x12+\n\ngroup_type\x18\t \x01(\x0e\x32\x17.api.MulticastGroupType\x12\n\n\x02\x64r\x18\n \x01(\r\x12\x11\n\tfrequency\x18\x0b \x01(\r\x12 \n\x18\x63lass_b_ping_slot_period\x18\x0c \x01(\r\x12\x1e\n\x16\x63lass_b_ping_slot_nb_k\x18\x0e \x01(\r\x12\x42\n\x17\x63lass_c_scheduling_type\x18\r \x01(\x0e\x32!.api.MulticastGroupSchedulingType\"\xdf\x01\n\x16MulticastGroupListItem\x12\n\n\x02id\x18\x01 \x01(\t\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x1e\n\x06region\x18\x05 \x01(\x0e\x32\x0e.common.Region\x12+\n\ngroup_type\x18\x06 \x01(\x0e\x32\x17.api.MulticastGroupType\"K\n\x1b\x43reateMulticastGroupRequest\x12,\n\x0fmulticast_group\x18\x01 \x01(\x0b\x32\x13.api.MulticastGroup\"*\n\x1c\x43reateMulticastGroupResponse\x12\n\n\x02id\x18\x01 \x01(\t\"&\n\x18GetMulticastGroupRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\xa9\x01\n\x19GetMulticastGroupResponse\x12,\n\x0fmulticast_group\x18\x01 \x01(\x0b\x32\x13.api.MulticastGroup\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"K\n\x1bUpdateMulticastGroupRequest\x12,\n\x0fmulticast_group\x18\x01 \x01(\x0b\x32\x13.api.MulticastGroup\")\n\x1b\x44\x65leteMulticastGroupRequest\x12\n\n\x02id\x18\x01 \x01(\t\"c\n\x1aListMulticastGroupsRequest\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\r\x12\x0e\n\x06search\x18\x03 \x01(\t\x12\x16\n\x0e\x61pplication_id\x18\x04 \x01(\t\"_\n\x1bListMulticastGroupsResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12+\n\x06result\x18\x02 \x03(\x0b\x32\x1b.api.MulticastGroupListItem\"O\n AddDeviceToMulticastGroupRequest\x12\x1a\n\x12multicast_group_id\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x65v_eui\x18\x02 \x01(\t\"T\n%RemoveDeviceFromMulticastGroupRequest\x12\x1a\n\x12multicast_group_id\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x65v_eui\x18\x02 \x01(\t\"S\n!AddGatewayToMulticastGroupRequest\x12\x1a\n\x12multicast_group_id\x18\x01 \x01(\t\x12\x12\n\ngateway_id\x18\x02 \x01(\t\"X\n&RemoveGatewayFromMulticastGroupRequest\x12\x1a\n\x12multicast_group_id\x18\x01 \x01(\t\x12\x12\n\ngateway_id\x18\x02 \x01(\t\"b\n\x17MulticastGroupQueueItem\x12\x1a\n\x12multicast_group_id\x18\x01 \x01(\t\x12\r\n\x05\x66_cnt\x18\x02 \x01(\r\x12\x0e\n\x06\x66_port\x18\x03 \x01(\r\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\"Y\n%EnqueueMulticastGroupQueueItemRequest\x12\x30\n\nqueue_item\x18\x01 \x01(\x0b\x32\x1c.api.MulticastGroupQueueItem\"7\n&EnqueueMulticastGroupQueueItemResponse\x12\r\n\x05\x66_cnt\x18\x01 \x01(\r\"=\n\x1f\x46lushMulticastGroupQueueRequest\x12\x1a\n\x12multicast_group_id\x18\x01 \x01(\t\"<\n\x1eListMulticastGroupQueueRequest\x12\x1a\n\x12multicast_group_id\x18\x01 \x01(\t\"N\n\x1fListMulticastGroupQueueResponse\x12+\n\x05items\x18\x01 \x03(\x0b\x32\x1c.api.MulticastGroupQueueItem*.\n\x12MulticastGroupType\x12\x0b\n\x07\x43LASS_C\x10\x00\x12\x0b\n\x07\x43LASS_B\x10\x01*7\n\x1cMulticastGroupSchedulingType\x12\t\n\x05\x44\x45LAY\x10\x00\x12\x0c\n\x08GPS_TIME\x10\x01\x32\xdd\x0c\n\x15MulticastGroupService\x12o\n\x06\x43reate\x12 .api.CreateMulticastGroupRequest\x1a!.api.CreateMulticastGroupResponse\" \x82\xd3\xe4\x93\x02\x1a\"\x15/api/multicast-groups:\x01*\x12h\n\x03Get\x12\x1d.api.GetMulticastGroupRequest\x1a\x1e.api.GetMulticastGroupResponse\"\"\x82\xd3\xe4\x93\x02\x1c\x12\x1a/api/multicast-groups/{id}\x12y\n\x06Update\x12 .api.UpdateMulticastGroupRequest\x1a\x16.google.protobuf.Empty\"5\x82\xd3\xe4\x93\x02/\x1a*/api/multicast-groups/{multicast_group.id}:\x01*\x12\x66\n\x06\x44\x65lete\x12 .api.DeleteMulticastGroupRequest\x1a\x16.google.protobuf.Empty\"\"\x82\xd3\xe4\x93\x02\x1c*\x1a/api/multicast-groups/{id}\x12h\n\x04List\x12\x1f.api.ListMulticastGroupsRequest\x1a .api.ListMulticastGroupsResponse\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/api/multicast-groups\x12\x89\x01\n\tAddDevice\x12%.api.AddDeviceToMulticastGroupRequest\x1a\x16.google.protobuf.Empty\"=\x82\xd3\xe4\x93\x02\x37\"2/api/multicast-groups/{multicast_group_id}/devices:\x01*\x12\x98\x01\n\x0cRemoveDevice\x12*.api.RemoveDeviceFromMulticastGroupRequest\x1a\x16.google.protobuf.Empty\"D\x82\xd3\xe4\x93\x02>*\x82\xd3\xe4\x93\x02\x38\"3/api/multicast-groups/{multicast_group_id}/gateways:\x01*\x12\x9e\x01\n\rRemoveGateway\x12+.api.RemoveGatewayFromMulticastGroupRequest\x1a\x16.google.protobuf.Empty\"H\x82\xd3\xe4\x93\x02\x42*@/api/multicast-groups/{multicast_group_id}/gateways/{gateway_id}\x12\xaa\x01\n\x07\x45nqueue\x12*.api.EnqueueMulticastGroupQueueItemRequest\x1a+.api.EnqueueMulticastGroupQueueItemResponse\"F\x82\xd3\xe4\x93\x02@\";/api/multicast-groups/{queue_item.multicast_group_id}/queue:\x01*\x12\x84\x01\n\nFlushQueue\x12$.api.FlushMulticastGroupQueueRequest\x1a\x16.google.protobuf.Empty\"8\x82\xd3\xe4\x93\x02\x32*0/api/multicast-groups/{multicast_group_id}/queue\x12\x90\x01\n\tListQueue\x12#.api.ListMulticastGroupQueueRequest\x1a$.api.ListMulticastGroupQueueResponse\"8\x82\xd3\xe4\x93\x02\x32\x12\x30/api/multicast-groups/{multicast_group_id}/queueBk\n\x11io.chirpstack.apiB\x13MulticastGroupProtoP\x01Z.github.com/chirpstack/chirpstack/api/go/v4/api\xaa\x02\x0e\x43hirpstack.Apib\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.api.multicast_group_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\021io.chirpstack.apiB\023MulticastGroupProtoP\001Z.github.com/chirpstack/chirpstack/api/go/v4/api\252\002\016Chirpstack.Api' - _globals['_MULTICASTGROUPSERVICE'].methods_by_name['Create']._options = None - _globals['_MULTICASTGROUPSERVICE'].methods_by_name['Create']._serialized_options = b'\202\323\344\223\002\032\"\025/api/multicast-groups:\001*' - _globals['_MULTICASTGROUPSERVICE'].methods_by_name['Get']._options = None - _globals['_MULTICASTGROUPSERVICE'].methods_by_name['Get']._serialized_options = b'\202\323\344\223\002\034\022\032/api/multicast-groups/{id}' - _globals['_MULTICASTGROUPSERVICE'].methods_by_name['Update']._options = None - _globals['_MULTICASTGROUPSERVICE'].methods_by_name['Update']._serialized_options = b'\202\323\344\223\002/\032*/api/multicast-groups/{multicast_group.id}:\001*' - _globals['_MULTICASTGROUPSERVICE'].methods_by_name['Delete']._options = None - _globals['_MULTICASTGROUPSERVICE'].methods_by_name['Delete']._serialized_options = b'\202\323\344\223\002\034*\032/api/multicast-groups/{id}' - _globals['_MULTICASTGROUPSERVICE'].methods_by_name['List']._options = None - _globals['_MULTICASTGROUPSERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002\027\022\025/api/multicast-groups' - _globals['_MULTICASTGROUPSERVICE'].methods_by_name['AddDevice']._options = None - _globals['_MULTICASTGROUPSERVICE'].methods_by_name['AddDevice']._serialized_options = b'\202\323\344\223\0027\"2/api/multicast-groups/{multicast_group_id}/devices:\001*' - _globals['_MULTICASTGROUPSERVICE'].methods_by_name['RemoveDevice']._options = None - _globals['_MULTICASTGROUPSERVICE'].methods_by_name['RemoveDevice']._serialized_options = b'\202\323\344\223\002>* None: ... - -class MulticastGroupListItem(_message.Message): - __slots__ = ("id", "created_at", "updated_at", "name", "region", "group_type") - ID_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - REGION_FIELD_NUMBER: _ClassVar[int] - GROUP_TYPE_FIELD_NUMBER: _ClassVar[int] - id: str - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - name: str - region: _common_pb2.Region - group_type: MulticastGroupType - def __init__(self, id: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., name: _Optional[str] = ..., region: _Optional[_Union[_common_pb2.Region, str]] = ..., group_type: _Optional[_Union[MulticastGroupType, str]] = ...) -> None: ... - -class CreateMulticastGroupRequest(_message.Message): - __slots__ = ("multicast_group",) - MULTICAST_GROUP_FIELD_NUMBER: _ClassVar[int] - multicast_group: MulticastGroup - def __init__(self, multicast_group: _Optional[_Union[MulticastGroup, _Mapping]] = ...) -> None: ... - -class CreateMulticastGroupResponse(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class GetMulticastGroupRequest(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class GetMulticastGroupResponse(_message.Message): - __slots__ = ("multicast_group", "created_at", "updated_at") - MULTICAST_GROUP_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - multicast_group: MulticastGroup - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - def __init__(self, multicast_group: _Optional[_Union[MulticastGroup, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class UpdateMulticastGroupRequest(_message.Message): - __slots__ = ("multicast_group",) - MULTICAST_GROUP_FIELD_NUMBER: _ClassVar[int] - multicast_group: MulticastGroup - def __init__(self, multicast_group: _Optional[_Union[MulticastGroup, _Mapping]] = ...) -> None: ... - -class DeleteMulticastGroupRequest(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class ListMulticastGroupsRequest(_message.Message): - __slots__ = ("limit", "offset", "search", "application_id") - LIMIT_FIELD_NUMBER: _ClassVar[int] - OFFSET_FIELD_NUMBER: _ClassVar[int] - SEARCH_FIELD_NUMBER: _ClassVar[int] - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - limit: int - offset: int - search: str - application_id: str - def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., search: _Optional[str] = ..., application_id: _Optional[str] = ...) -> None: ... - -class ListMulticastGroupsResponse(_message.Message): - __slots__ = ("total_count", "result") - TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int] - RESULT_FIELD_NUMBER: _ClassVar[int] - total_count: int - result: _containers.RepeatedCompositeFieldContainer[MulticastGroupListItem] - def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[MulticastGroupListItem, _Mapping]]] = ...) -> None: ... - -class AddDeviceToMulticastGroupRequest(_message.Message): - __slots__ = ("multicast_group_id", "dev_eui") - MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int] - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - multicast_group_id: str - dev_eui: str - def __init__(self, multicast_group_id: _Optional[str] = ..., dev_eui: _Optional[str] = ...) -> None: ... - -class RemoveDeviceFromMulticastGroupRequest(_message.Message): - __slots__ = ("multicast_group_id", "dev_eui") - MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int] - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - multicast_group_id: str - dev_eui: str - def __init__(self, multicast_group_id: _Optional[str] = ..., dev_eui: _Optional[str] = ...) -> None: ... - -class AddGatewayToMulticastGroupRequest(_message.Message): - __slots__ = ("multicast_group_id", "gateway_id") - MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int] - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - multicast_group_id: str - gateway_id: str - def __init__(self, multicast_group_id: _Optional[str] = ..., gateway_id: _Optional[str] = ...) -> None: ... - -class RemoveGatewayFromMulticastGroupRequest(_message.Message): - __slots__ = ("multicast_group_id", "gateway_id") - MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int] - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - multicast_group_id: str - gateway_id: str - def __init__(self, multicast_group_id: _Optional[str] = ..., gateway_id: _Optional[str] = ...) -> None: ... - -class MulticastGroupQueueItem(_message.Message): - __slots__ = ("multicast_group_id", "f_cnt", "f_port", "data") - MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int] - F_CNT_FIELD_NUMBER: _ClassVar[int] - F_PORT_FIELD_NUMBER: _ClassVar[int] - DATA_FIELD_NUMBER: _ClassVar[int] - multicast_group_id: str - f_cnt: int - f_port: int - data: bytes - def __init__(self, multicast_group_id: _Optional[str] = ..., f_cnt: _Optional[int] = ..., f_port: _Optional[int] = ..., data: _Optional[bytes] = ...) -> None: ... - -class EnqueueMulticastGroupQueueItemRequest(_message.Message): - __slots__ = ("queue_item",) - QUEUE_ITEM_FIELD_NUMBER: _ClassVar[int] - queue_item: MulticastGroupQueueItem - def __init__(self, queue_item: _Optional[_Union[MulticastGroupQueueItem, _Mapping]] = ...) -> None: ... - -class EnqueueMulticastGroupQueueItemResponse(_message.Message): - __slots__ = ("f_cnt",) - F_CNT_FIELD_NUMBER: _ClassVar[int] - f_cnt: int - def __init__(self, f_cnt: _Optional[int] = ...) -> None: ... - -class FlushMulticastGroupQueueRequest(_message.Message): - __slots__ = ("multicast_group_id",) - MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int] - multicast_group_id: str - def __init__(self, multicast_group_id: _Optional[str] = ...) -> None: ... - -class ListMulticastGroupQueueRequest(_message.Message): - __slots__ = ("multicast_group_id",) - MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int] - multicast_group_id: str - def __init__(self, multicast_group_id: _Optional[str] = ...) -> None: ... - -class ListMulticastGroupQueueResponse(_message.Message): - __slots__ = ("items",) - ITEMS_FIELD_NUMBER: _ClassVar[int] - items: _containers.RepeatedCompositeFieldContainer[MulticastGroupQueueItem] - def __init__(self, items: _Optional[_Iterable[_Union[MulticastGroupQueueItem, _Mapping]]] = ...) -> None: ... diff --git a/api/python/src/chirpstack_api/api/multicast_group_pb2_grpc.py b/api/python/src/chirpstack_api/api/multicast_group_pb2_grpc.py deleted file mode 100644 index 11761801..00000000 --- a/api/python/src/chirpstack_api/api/multicast_group_pb2_grpc.py +++ /dev/null @@ -1,445 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from chirpstack_api.api import multicast_group_pb2 as chirpstack__api_dot_api_dot_multicast__group__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 - - -class MulticastGroupServiceStub(object): - """MulticastGroupService is the service managing multicast-groups. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Create = channel.unary_unary( - '/api.MulticastGroupService/Create', - request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.CreateMulticastGroupRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.CreateMulticastGroupResponse.FromString, - ) - self.Get = channel.unary_unary( - '/api.MulticastGroupService/Get', - request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.GetMulticastGroupRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.GetMulticastGroupResponse.FromString, - ) - self.Update = channel.unary_unary( - '/api.MulticastGroupService/Update', - request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.UpdateMulticastGroupRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.Delete = channel.unary_unary( - '/api.MulticastGroupService/Delete', - request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.DeleteMulticastGroupRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.List = channel.unary_unary( - '/api.MulticastGroupService/List', - request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupsRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupsResponse.FromString, - ) - self.AddDevice = channel.unary_unary( - '/api.MulticastGroupService/AddDevice', - request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.AddDeviceToMulticastGroupRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.RemoveDevice = channel.unary_unary( - '/api.MulticastGroupService/RemoveDevice', - request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.RemoveDeviceFromMulticastGroupRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.AddGateway = channel.unary_unary( - '/api.MulticastGroupService/AddGateway', - request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.AddGatewayToMulticastGroupRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.RemoveGateway = channel.unary_unary( - '/api.MulticastGroupService/RemoveGateway', - request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.RemoveGatewayFromMulticastGroupRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.Enqueue = channel.unary_unary( - '/api.MulticastGroupService/Enqueue', - request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.EnqueueMulticastGroupQueueItemRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.EnqueueMulticastGroupQueueItemResponse.FromString, - ) - self.FlushQueue = channel.unary_unary( - '/api.MulticastGroupService/FlushQueue', - request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.FlushMulticastGroupQueueRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.ListQueue = channel.unary_unary( - '/api.MulticastGroupService/ListQueue', - request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupQueueRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupQueueResponse.FromString, - ) - - -class MulticastGroupServiceServicer(object): - """MulticastGroupService is the service managing multicast-groups. - """ - - def Create(self, request, context): - """Create the given multicast group. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Get(self, request, context): - """Get returns the multicast group for the given ID. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Update(self, request, context): - """Update the given multicast group. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Delete(self, request, context): - """Delete the multicast-group with the given ID. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def List(self, request, context): - """List the available multicast groups. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AddDevice(self, request, context): - """Add a device to the multicast group. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RemoveDevice(self, request, context): - """Remove a device from the multicast group. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AddGateway(self, request, context): - """Add a gateway to the multicast group. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RemoveGateway(self, request, context): - """Remove a gateway from the multicast group. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Enqueue(self, request, context): - """Add the given item to the multicast group queue. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FlushQueue(self, request, context): - """Flush the queue for the given multicast group. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListQueue(self, request, context): - """List the items in the multicast group queue. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_MulticastGroupServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Create': grpc.unary_unary_rpc_method_handler( - servicer.Create, - request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.CreateMulticastGroupRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.CreateMulticastGroupResponse.SerializeToString, - ), - 'Get': grpc.unary_unary_rpc_method_handler( - servicer.Get, - request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.GetMulticastGroupRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.GetMulticastGroupResponse.SerializeToString, - ), - 'Update': grpc.unary_unary_rpc_method_handler( - servicer.Update, - request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.UpdateMulticastGroupRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'Delete': grpc.unary_unary_rpc_method_handler( - servicer.Delete, - request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.DeleteMulticastGroupRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'List': grpc.unary_unary_rpc_method_handler( - servicer.List, - request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupsRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupsResponse.SerializeToString, - ), - 'AddDevice': grpc.unary_unary_rpc_method_handler( - servicer.AddDevice, - request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.AddDeviceToMulticastGroupRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'RemoveDevice': grpc.unary_unary_rpc_method_handler( - servicer.RemoveDevice, - request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.RemoveDeviceFromMulticastGroupRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'AddGateway': grpc.unary_unary_rpc_method_handler( - servicer.AddGateway, - request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.AddGatewayToMulticastGroupRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'RemoveGateway': grpc.unary_unary_rpc_method_handler( - servicer.RemoveGateway, - request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.RemoveGatewayFromMulticastGroupRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'Enqueue': grpc.unary_unary_rpc_method_handler( - servicer.Enqueue, - request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.EnqueueMulticastGroupQueueItemRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.EnqueueMulticastGroupQueueItemResponse.SerializeToString, - ), - 'FlushQueue': grpc.unary_unary_rpc_method_handler( - servicer.FlushQueue, - request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.FlushMulticastGroupQueueRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListQueue': grpc.unary_unary_rpc_method_handler( - servicer.ListQueue, - request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupQueueRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupQueueResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'api.MulticastGroupService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class MulticastGroupService(object): - """MulticastGroupService is the service managing multicast-groups. - """ - - @staticmethod - def Create(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/Create', - chirpstack__api_dot_api_dot_multicast__group__pb2.CreateMulticastGroupRequest.SerializeToString, - chirpstack__api_dot_api_dot_multicast__group__pb2.CreateMulticastGroupResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Get(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/Get', - chirpstack__api_dot_api_dot_multicast__group__pb2.GetMulticastGroupRequest.SerializeToString, - chirpstack__api_dot_api_dot_multicast__group__pb2.GetMulticastGroupResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Update(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/Update', - chirpstack__api_dot_api_dot_multicast__group__pb2.UpdateMulticastGroupRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Delete(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/Delete', - chirpstack__api_dot_api_dot_multicast__group__pb2.DeleteMulticastGroupRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def List(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/List', - chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupsRequest.SerializeToString, - chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AddDevice(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/AddDevice', - chirpstack__api_dot_api_dot_multicast__group__pb2.AddDeviceToMulticastGroupRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RemoveDevice(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/RemoveDevice', - chirpstack__api_dot_api_dot_multicast__group__pb2.RemoveDeviceFromMulticastGroupRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AddGateway(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/AddGateway', - chirpstack__api_dot_api_dot_multicast__group__pb2.AddGatewayToMulticastGroupRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RemoveGateway(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/RemoveGateway', - chirpstack__api_dot_api_dot_multicast__group__pb2.RemoveGatewayFromMulticastGroupRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Enqueue(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/Enqueue', - chirpstack__api_dot_api_dot_multicast__group__pb2.EnqueueMulticastGroupQueueItemRequest.SerializeToString, - chirpstack__api_dot_api_dot_multicast__group__pb2.EnqueueMulticastGroupQueueItemResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FlushQueue(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/FlushQueue', - chirpstack__api_dot_api_dot_multicast__group__pb2.FlushMulticastGroupQueueRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListQueue(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/ListQueue', - chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupQueueRequest.SerializeToString, - chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupQueueResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/api/python/src/chirpstack_api/api/relay_pb2.py b/api/python/src/chirpstack_api/api/relay_pb2.py deleted file mode 100644 index e03974dd..00000000 --- a/api/python/src/chirpstack_api/api/relay_pb2.py +++ /dev/null @@ -1,54 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: chirpstack-api/api/relay.proto -# Protobuf Python Version: 4.25.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x63hirpstack-api/api/relay.proto\x12\x03\x61pi\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\".\n\rRelayListItem\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"J\n\x11ListRelaysRequest\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\r\x12\x16\n\x0e\x61pplication_id\x18\x03 \x01(\t\"M\n\x12ListRelaysResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12\"\n\x06result\x18\x02 \x03(\x0b\x32\x12.api.RelayListItem\"F\n\x15\x41\x64\x64RelayDeviceRequest\x12\x15\n\rrelay_dev_eui\x18\x01 \x01(\t\x12\x16\n\x0e\x64\x65vice_dev_eui\x18\x02 \x01(\t\"I\n\x18RemoveRelayDeviceRequest\x12\x15\n\rrelay_dev_eui\x18\x01 \x01(\t\x12\x16\n\x0e\x64\x65vice_dev_eui\x18\x02 \x01(\t\"O\n\x17ListRelayDevicesRequest\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\r\x12\x15\n\rrelay_dev_eui\x18\x03 \x01(\t\"d\n\x13RelayDeviceListItem\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x03 \x01(\t\"Y\n\x18ListRelayDevicesResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12(\n\x06result\x18\x02 \x03(\x0b\x32\x18.api.RelayDeviceListItem2\xc4\x03\n\x0cRelayService\x12L\n\x04List\x12\x16.api.ListRelaysRequest\x1a\x17.api.ListRelaysResponse\"\x13\x82\xd3\xe4\x93\x02\r\x12\x0b/api/relays\x12o\n\tAddDevice\x12\x1a.api.AddRelayDeviceRequest\x1a\x16.google.protobuf.Empty\".\x82\xd3\xe4\x93\x02(\"#/api/relays/{relay_dev_eui}/devices:\x01*\x12|\n\x0cRemoveDevice\x12\x1d.api.RemoveRelayDeviceRequest\x1a\x16.google.protobuf.Empty\"5\x82\xd3\xe4\x93\x02/*-/api/relays/{relay_dev_eui}/devices/{dev_eui}\x12w\n\x0bListDevices\x12\x1c.api.ListRelayDevicesRequest\x1a\x1d.api.ListRelayDevicesResponse\"+\x82\xd3\xe4\x93\x02%\x12#/api/relays/{relay_dev_eui}/devicesBb\n\x11io.chirpstack.apiB\nRelayProtoP\x01Z.github.com/chirpstack/chirpstack/api/go/v4/api\xaa\x02\x0e\x43hirpstack.Apib\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.api.relay_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\021io.chirpstack.apiB\nRelayProtoP\001Z.github.com/chirpstack/chirpstack/api/go/v4/api\252\002\016Chirpstack.Api' - _globals['_RELAYSERVICE'].methods_by_name['List']._options = None - _globals['_RELAYSERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002\r\022\013/api/relays' - _globals['_RELAYSERVICE'].methods_by_name['AddDevice']._options = None - _globals['_RELAYSERVICE'].methods_by_name['AddDevice']._serialized_options = b'\202\323\344\223\002(\"#/api/relays/{relay_dev_eui}/devices:\001*' - _globals['_RELAYSERVICE'].methods_by_name['RemoveDevice']._options = None - _globals['_RELAYSERVICE'].methods_by_name['RemoveDevice']._serialized_options = b'\202\323\344\223\002/*-/api/relays/{relay_dev_eui}/devices/{dev_eui}' - _globals['_RELAYSERVICE'].methods_by_name['ListDevices']._options = None - _globals['_RELAYSERVICE'].methods_by_name['ListDevices']._serialized_options = b'\202\323\344\223\002%\022#/api/relays/{relay_dev_eui}/devices' - _globals['_RELAYLISTITEM']._serialized_start=131 - _globals['_RELAYLISTITEM']._serialized_end=177 - _globals['_LISTRELAYSREQUEST']._serialized_start=179 - _globals['_LISTRELAYSREQUEST']._serialized_end=253 - _globals['_LISTRELAYSRESPONSE']._serialized_start=255 - _globals['_LISTRELAYSRESPONSE']._serialized_end=332 - _globals['_ADDRELAYDEVICEREQUEST']._serialized_start=334 - _globals['_ADDRELAYDEVICEREQUEST']._serialized_end=404 - _globals['_REMOVERELAYDEVICEREQUEST']._serialized_start=406 - _globals['_REMOVERELAYDEVICEREQUEST']._serialized_end=479 - _globals['_LISTRELAYDEVICESREQUEST']._serialized_start=481 - _globals['_LISTRELAYDEVICESREQUEST']._serialized_end=560 - _globals['_RELAYDEVICELISTITEM']._serialized_start=562 - _globals['_RELAYDEVICELISTITEM']._serialized_end=662 - _globals['_LISTRELAYDEVICESRESPONSE']._serialized_start=664 - _globals['_LISTRELAYDEVICESRESPONSE']._serialized_end=753 - _globals['_RELAYSERVICE']._serialized_start=756 - _globals['_RELAYSERVICE']._serialized_end=1208 -# @@protoc_insertion_point(module_scope) diff --git a/api/python/src/chirpstack_api/api/relay_pb2.pyi b/api/python/src/chirpstack_api/api/relay_pb2.pyi deleted file mode 100644 index e3248b80..00000000 --- a/api/python/src/chirpstack_api/api/relay_pb2.pyi +++ /dev/null @@ -1,79 +0,0 @@ -from google.api import annotations_pb2 as _annotations_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import empty_pb2 as _empty_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class RelayListItem(_message.Message): - __slots__ = ("dev_eui", "name") - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - name: str - def __init__(self, dev_eui: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ... - -class ListRelaysRequest(_message.Message): - __slots__ = ("limit", "offset", "application_id") - LIMIT_FIELD_NUMBER: _ClassVar[int] - OFFSET_FIELD_NUMBER: _ClassVar[int] - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - limit: int - offset: int - application_id: str - def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., application_id: _Optional[str] = ...) -> None: ... - -class ListRelaysResponse(_message.Message): - __slots__ = ("total_count", "result") - TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int] - RESULT_FIELD_NUMBER: _ClassVar[int] - total_count: int - result: _containers.RepeatedCompositeFieldContainer[RelayListItem] - def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[RelayListItem, _Mapping]]] = ...) -> None: ... - -class AddRelayDeviceRequest(_message.Message): - __slots__ = ("relay_dev_eui", "device_dev_eui") - RELAY_DEV_EUI_FIELD_NUMBER: _ClassVar[int] - DEVICE_DEV_EUI_FIELD_NUMBER: _ClassVar[int] - relay_dev_eui: str - device_dev_eui: str - def __init__(self, relay_dev_eui: _Optional[str] = ..., device_dev_eui: _Optional[str] = ...) -> None: ... - -class RemoveRelayDeviceRequest(_message.Message): - __slots__ = ("relay_dev_eui", "device_dev_eui") - RELAY_DEV_EUI_FIELD_NUMBER: _ClassVar[int] - DEVICE_DEV_EUI_FIELD_NUMBER: _ClassVar[int] - relay_dev_eui: str - device_dev_eui: str - def __init__(self, relay_dev_eui: _Optional[str] = ..., device_dev_eui: _Optional[str] = ...) -> None: ... - -class ListRelayDevicesRequest(_message.Message): - __slots__ = ("limit", "offset", "relay_dev_eui") - LIMIT_FIELD_NUMBER: _ClassVar[int] - OFFSET_FIELD_NUMBER: _ClassVar[int] - RELAY_DEV_EUI_FIELD_NUMBER: _ClassVar[int] - limit: int - offset: int - relay_dev_eui: str - def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., relay_dev_eui: _Optional[str] = ...) -> None: ... - -class RelayDeviceListItem(_message.Message): - __slots__ = ("dev_eui", "created_at", "name") - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - created_at: _timestamp_pb2.Timestamp - name: str - def __init__(self, dev_eui: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., name: _Optional[str] = ...) -> None: ... - -class ListRelayDevicesResponse(_message.Message): - __slots__ = ("total_count", "result") - TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int] - RESULT_FIELD_NUMBER: _ClassVar[int] - total_count: int - result: _containers.RepeatedCompositeFieldContainer[RelayDeviceListItem] - def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[RelayDeviceListItem, _Mapping]]] = ...) -> None: ... diff --git a/api/python/src/chirpstack_api/api/relay_pb2_grpc.py b/api/python/src/chirpstack_api/api/relay_pb2_grpc.py deleted file mode 100644 index 541ae77c..00000000 --- a/api/python/src/chirpstack_api/api/relay_pb2_grpc.py +++ /dev/null @@ -1,173 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from chirpstack_api.api import relay_pb2 as chirpstack__api_dot_api_dot_relay__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 - - -class RelayServiceStub(object): - """RelayService is the service providing API methos for managing relays. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.List = channel.unary_unary( - '/api.RelayService/List', - request_serializer=chirpstack__api_dot_api_dot_relay__pb2.ListRelaysRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_relay__pb2.ListRelaysResponse.FromString, - ) - self.AddDevice = channel.unary_unary( - '/api.RelayService/AddDevice', - request_serializer=chirpstack__api_dot_api_dot_relay__pb2.AddRelayDeviceRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.RemoveDevice = channel.unary_unary( - '/api.RelayService/RemoveDevice', - request_serializer=chirpstack__api_dot_api_dot_relay__pb2.RemoveRelayDeviceRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.ListDevices = channel.unary_unary( - '/api.RelayService/ListDevices', - request_serializer=chirpstack__api_dot_api_dot_relay__pb2.ListRelayDevicesRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_relay__pb2.ListRelayDevicesResponse.FromString, - ) - - -class RelayServiceServicer(object): - """RelayService is the service providing API methos for managing relays. - """ - - def List(self, request, context): - """List lists the relays for the given application id. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AddDevice(self, request, context): - """AddDevice adds the given device to the relay. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RemoveDevice(self, request, context): - """RemoveDevice removes the given device from the relay. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListDevices(self, request, context): - """ListDevices lists the devices for the given relay. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_RelayServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'List': grpc.unary_unary_rpc_method_handler( - servicer.List, - request_deserializer=chirpstack__api_dot_api_dot_relay__pb2.ListRelaysRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_relay__pb2.ListRelaysResponse.SerializeToString, - ), - 'AddDevice': grpc.unary_unary_rpc_method_handler( - servicer.AddDevice, - request_deserializer=chirpstack__api_dot_api_dot_relay__pb2.AddRelayDeviceRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'RemoveDevice': grpc.unary_unary_rpc_method_handler( - servicer.RemoveDevice, - request_deserializer=chirpstack__api_dot_api_dot_relay__pb2.RemoveRelayDeviceRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListDevices': grpc.unary_unary_rpc_method_handler( - servicer.ListDevices, - request_deserializer=chirpstack__api_dot_api_dot_relay__pb2.ListRelayDevicesRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_relay__pb2.ListRelayDevicesResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'api.RelayService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class RelayService(object): - """RelayService is the service providing API methos for managing relays. - """ - - @staticmethod - def List(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.RelayService/List', - chirpstack__api_dot_api_dot_relay__pb2.ListRelaysRequest.SerializeToString, - chirpstack__api_dot_api_dot_relay__pb2.ListRelaysResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AddDevice(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.RelayService/AddDevice', - chirpstack__api_dot_api_dot_relay__pb2.AddRelayDeviceRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RemoveDevice(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.RelayService/RemoveDevice', - chirpstack__api_dot_api_dot_relay__pb2.RemoveRelayDeviceRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListDevices(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.RelayService/ListDevices', - chirpstack__api_dot_api_dot_relay__pb2.ListRelayDevicesRequest.SerializeToString, - chirpstack__api_dot_api_dot_relay__pb2.ListRelayDevicesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/api/python/src/chirpstack_api/api/tenant_pb2.py b/api/python/src/chirpstack_api/api/tenant_pb2.py deleted file mode 100644 index 4e0d98fe..00000000 --- a/api/python/src/chirpstack_api/api/tenant_pb2.py +++ /dev/null @@ -1,92 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: chirpstack-api/api/tenant.proto -# Protobuf Python Version: 4.25.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63hirpstack-api/api/tenant.proto\x12\x03\x61pi\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x95\x02\n\x06Tenant\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x19\n\x11\x63\x61n_have_gateways\x18\x04 \x01(\x08\x12\x19\n\x11max_gateway_count\x18\x05 \x01(\r\x12\x18\n\x10max_device_count\x18\x06 \x01(\r\x12\x1b\n\x13private_gateways_up\x18\x07 \x01(\x08\x12\x1d\n\x15private_gateways_down\x18\x08 \x01(\x08\x12#\n\x04tags\x18\t \x03(\x0b\x32\x15.api.Tenant.TagsEntry\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x96\x02\n\x0eTenantListItem\x12\n\n\x02id\x18\x01 \x01(\t\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x19\n\x11\x63\x61n_have_gateways\x18\x05 \x01(\x08\x12\x1b\n\x13private_gateways_up\x18\x06 \x01(\x08\x12\x1d\n\x15private_gateways_down\x18\t \x01(\x08\x12\x19\n\x11max_gateway_count\x18\x07 \x01(\r\x12\x18\n\x10max_device_count\x18\x08 \x01(\r\"2\n\x13\x43reateTenantRequest\x12\x1b\n\x06tenant\x18\x01 \x01(\x0b\x32\x0b.api.Tenant\"\"\n\x14\x43reateTenantResponse\x12\n\n\x02id\x18\x01 \x01(\t\"\x1e\n\x10GetTenantRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\x90\x01\n\x11GetTenantResponse\x12\x1b\n\x06tenant\x18\x01 \x01(\x0b\x32\x0b.api.Tenant\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"2\n\x13UpdateTenantRequest\x12\x1b\n\x06tenant\x18\x01 \x01(\x0b\x32\x0b.api.Tenant\"!\n\x13\x44\x65leteTenantRequest\x12\n\n\x02id\x18\x01 \x01(\t\"T\n\x12ListTenantsRequest\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\r\x12\x0e\n\x06search\x18\x03 \x01(\t\x12\x0f\n\x07user_id\x18\x04 \x01(\t\"O\n\x13ListTenantsResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12#\n\x06result\x18\x02 \x03(\x0b\x32\x13.api.TenantListItem\"\x84\x01\n\nTenantUser\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\x12\x10\n\x08is_admin\x18\x03 \x01(\x08\x12\x17\n\x0fis_device_admin\x18\x04 \x01(\x08\x12\x18\n\x10is_gateway_admin\x18\x05 \x01(\x08\x12\r\n\x05\x65mail\x18\x06 \x01(\t\"\xec\x01\n\x12TenantUserListItem\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05\x65mail\x18\x05 \x01(\t\x12\x10\n\x08is_admin\x18\x06 \x01(\x08\x12\x17\n\x0fis_device_admin\x18\x07 \x01(\x08\x12\x18\n\x10is_gateway_admin\x18\x08 \x01(\x08\"<\n\x14\x41\x64\x64TenantUserRequest\x12$\n\x0btenant_user\x18\x01 \x01(\x0b\x32\x0f.api.TenantUser\":\n\x14GetTenantUserRequest\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\"\x9d\x01\n\x15GetTenantUserResponse\x12$\n\x0btenant_user\x18\x01 \x01(\x0b\x32\x0f.api.TenantUser\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"?\n\x17UpdateTenantUserRequest\x12$\n\x0btenant_user\x18\x01 \x01(\x0b\x32\x0f.api.TenantUser\"=\n\x17\x44\x65leteTenantUserRequest\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\"J\n\x16ListTenantUsersRequest\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\r\n\x05limit\x18\x02 \x01(\r\x12\x0e\n\x06offset\x18\x03 \x01(\r\"W\n\x17ListTenantUsersResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12\'\n\x06result\x18\x02 \x03(\x0b\x32\x17.api.TenantUserListItem2\xa2\x08\n\rTenantService\x12V\n\x06\x43reate\x12\x18.api.CreateTenantRequest\x1a\x19.api.CreateTenantResponse\"\x17\x82\xd3\xe4\x93\x02\x11\"\x0c/api/tenants:\x01*\x12O\n\x03Get\x12\x15.api.GetTenantRequest\x1a\x16.api.GetTenantResponse\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/api/tenants/{id}\x12_\n\x06Update\x12\x18.api.UpdateTenantRequest\x1a\x16.google.protobuf.Empty\"#\x82\xd3\xe4\x93\x02\x1d\x1a\x18/api/tenants/{tenant.id}:\x01*\x12U\n\x06\x44\x65lete\x12\x18.api.DeleteTenantRequest\x1a\x16.google.protobuf.Empty\"\x19\x82\xd3\xe4\x93\x02\x13*\x11/api/tenants/{id}\x12O\n\x04List\x12\x17.api.ListTenantsRequest\x1a\x18.api.ListTenantsResponse\"\x14\x82\xd3\xe4\x93\x02\x0e\x12\x0c/api/tenants\x12s\n\x07\x41\x64\x64User\x12\x19.api.AddTenantUserRequest\x1a\x16.google.protobuf.Empty\"5\x82\xd3\xe4\x93\x02/\"*/api/tenants/{tenant_user.tenant_id}/users:\x01*\x12r\n\x07GetUser\x12\x19.api.GetTenantUserRequest\x1a\x1a.api.GetTenantUserResponse\"0\x82\xd3\xe4\x93\x02*\x12(/api/tenants/{tenant_id}/users/{user_id}\x12\x8f\x01\n\nUpdateUser\x12\x1c.api.UpdateTenantUserRequest\x1a\x16.google.protobuf.Empty\"K\x82\xd3\xe4\x93\x02\x45\x1a@/api/tenants/{tenant_user.tenant_id}/users/{tenant_user.user_id}:\x01*\x12t\n\nDeleteUser\x12\x1c.api.DeleteTenantUserRequest\x1a\x16.google.protobuf.Empty\"0\x82\xd3\xe4\x93\x02**(/api/tenants/{tenant_id}/users/{user_id}\x12n\n\tListUsers\x12\x1b.api.ListTenantUsersRequest\x1a\x1c.api.ListTenantUsersResponse\"&\x82\xd3\xe4\x93\x02 \x12\x1e/api/tenants/{tenant_id}/usersBc\n\x11io.chirpstack.apiB\x0bTenantProtoP\x01Z.github.com/chirpstack/chirpstack/api/go/v4/api\xaa\x02\x0e\x43hirpstack.Apib\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.api.tenant_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\021io.chirpstack.apiB\013TenantProtoP\001Z.github.com/chirpstack/chirpstack/api/go/v4/api\252\002\016Chirpstack.Api' - _globals['_TENANT_TAGSENTRY']._options = None - _globals['_TENANT_TAGSENTRY']._serialized_options = b'8\001' - _globals['_TENANTSERVICE'].methods_by_name['Create']._options = None - _globals['_TENANTSERVICE'].methods_by_name['Create']._serialized_options = b'\202\323\344\223\002\021\"\014/api/tenants:\001*' - _globals['_TENANTSERVICE'].methods_by_name['Get']._options = None - _globals['_TENANTSERVICE'].methods_by_name['Get']._serialized_options = b'\202\323\344\223\002\023\022\021/api/tenants/{id}' - _globals['_TENANTSERVICE'].methods_by_name['Update']._options = None - _globals['_TENANTSERVICE'].methods_by_name['Update']._serialized_options = b'\202\323\344\223\002\035\032\030/api/tenants/{tenant.id}:\001*' - _globals['_TENANTSERVICE'].methods_by_name['Delete']._options = None - _globals['_TENANTSERVICE'].methods_by_name['Delete']._serialized_options = b'\202\323\344\223\002\023*\021/api/tenants/{id}' - _globals['_TENANTSERVICE'].methods_by_name['List']._options = None - _globals['_TENANTSERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002\016\022\014/api/tenants' - _globals['_TENANTSERVICE'].methods_by_name['AddUser']._options = None - _globals['_TENANTSERVICE'].methods_by_name['AddUser']._serialized_options = b'\202\323\344\223\002/\"*/api/tenants/{tenant_user.tenant_id}/users:\001*' - _globals['_TENANTSERVICE'].methods_by_name['GetUser']._options = None - _globals['_TENANTSERVICE'].methods_by_name['GetUser']._serialized_options = b'\202\323\344\223\002*\022(/api/tenants/{tenant_id}/users/{user_id}' - _globals['_TENANTSERVICE'].methods_by_name['UpdateUser']._options = None - _globals['_TENANTSERVICE'].methods_by_name['UpdateUser']._serialized_options = b'\202\323\344\223\002E\032@/api/tenants/{tenant_user.tenant_id}/users/{tenant_user.user_id}:\001*' - _globals['_TENANTSERVICE'].methods_by_name['DeleteUser']._options = None - _globals['_TENANTSERVICE'].methods_by_name['DeleteUser']._serialized_options = b'\202\323\344\223\002**(/api/tenants/{tenant_id}/users/{user_id}' - _globals['_TENANTSERVICE'].methods_by_name['ListUsers']._options = None - _globals['_TENANTSERVICE'].methods_by_name['ListUsers']._serialized_options = b'\202\323\344\223\002 \022\036/api/tenants/{tenant_id}/users' - _globals['_TENANT']._serialized_start=133 - _globals['_TENANT']._serialized_end=410 - _globals['_TENANT_TAGSENTRY']._serialized_start=367 - _globals['_TENANT_TAGSENTRY']._serialized_end=410 - _globals['_TENANTLISTITEM']._serialized_start=413 - _globals['_TENANTLISTITEM']._serialized_end=691 - _globals['_CREATETENANTREQUEST']._serialized_start=693 - _globals['_CREATETENANTREQUEST']._serialized_end=743 - _globals['_CREATETENANTRESPONSE']._serialized_start=745 - _globals['_CREATETENANTRESPONSE']._serialized_end=779 - _globals['_GETTENANTREQUEST']._serialized_start=781 - _globals['_GETTENANTREQUEST']._serialized_end=811 - _globals['_GETTENANTRESPONSE']._serialized_start=814 - _globals['_GETTENANTRESPONSE']._serialized_end=958 - _globals['_UPDATETENANTREQUEST']._serialized_start=960 - _globals['_UPDATETENANTREQUEST']._serialized_end=1010 - _globals['_DELETETENANTREQUEST']._serialized_start=1012 - _globals['_DELETETENANTREQUEST']._serialized_end=1045 - _globals['_LISTTENANTSREQUEST']._serialized_start=1047 - _globals['_LISTTENANTSREQUEST']._serialized_end=1131 - _globals['_LISTTENANTSRESPONSE']._serialized_start=1133 - _globals['_LISTTENANTSRESPONSE']._serialized_end=1212 - _globals['_TENANTUSER']._serialized_start=1215 - _globals['_TENANTUSER']._serialized_end=1347 - _globals['_TENANTUSERLISTITEM']._serialized_start=1350 - _globals['_TENANTUSERLISTITEM']._serialized_end=1586 - _globals['_ADDTENANTUSERREQUEST']._serialized_start=1588 - _globals['_ADDTENANTUSERREQUEST']._serialized_end=1648 - _globals['_GETTENANTUSERREQUEST']._serialized_start=1650 - _globals['_GETTENANTUSERREQUEST']._serialized_end=1708 - _globals['_GETTENANTUSERRESPONSE']._serialized_start=1711 - _globals['_GETTENANTUSERRESPONSE']._serialized_end=1868 - _globals['_UPDATETENANTUSERREQUEST']._serialized_start=1870 - _globals['_UPDATETENANTUSERREQUEST']._serialized_end=1933 - _globals['_DELETETENANTUSERREQUEST']._serialized_start=1935 - _globals['_DELETETENANTUSERREQUEST']._serialized_end=1996 - _globals['_LISTTENANTUSERSREQUEST']._serialized_start=1998 - _globals['_LISTTENANTUSERSREQUEST']._serialized_end=2072 - _globals['_LISTTENANTUSERSRESPONSE']._serialized_start=2074 - _globals['_LISTTENANTUSERSRESPONSE']._serialized_end=2161 - _globals['_TENANTSERVICE']._serialized_start=2164 - _globals['_TENANTSERVICE']._serialized_end=3222 -# @@protoc_insertion_point(module_scope) diff --git a/api/python/src/chirpstack_api/api/tenant_pb2.pyi b/api/python/src/chirpstack_api/api/tenant_pb2.pyi deleted file mode 100644 index 7b9adb06..00000000 --- a/api/python/src/chirpstack_api/api/tenant_pb2.pyi +++ /dev/null @@ -1,212 +0,0 @@ -from google.api import annotations_pb2 as _annotations_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import empty_pb2 as _empty_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class Tenant(_message.Message): - __slots__ = ("id", "name", "description", "can_have_gateways", "max_gateway_count", "max_device_count", "private_gateways_up", "private_gateways_down", "tags") - class TagsEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - ID_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - CAN_HAVE_GATEWAYS_FIELD_NUMBER: _ClassVar[int] - MAX_GATEWAY_COUNT_FIELD_NUMBER: _ClassVar[int] - MAX_DEVICE_COUNT_FIELD_NUMBER: _ClassVar[int] - PRIVATE_GATEWAYS_UP_FIELD_NUMBER: _ClassVar[int] - PRIVATE_GATEWAYS_DOWN_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - id: str - name: str - description: str - can_have_gateways: bool - max_gateway_count: int - max_device_count: int - private_gateways_up: bool - private_gateways_down: bool - tags: _containers.ScalarMap[str, str] - def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., can_have_gateways: bool = ..., max_gateway_count: _Optional[int] = ..., max_device_count: _Optional[int] = ..., private_gateways_up: bool = ..., private_gateways_down: bool = ..., tags: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class TenantListItem(_message.Message): - __slots__ = ("id", "created_at", "updated_at", "name", "can_have_gateways", "private_gateways_up", "private_gateways_down", "max_gateway_count", "max_device_count") - ID_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - CAN_HAVE_GATEWAYS_FIELD_NUMBER: _ClassVar[int] - PRIVATE_GATEWAYS_UP_FIELD_NUMBER: _ClassVar[int] - PRIVATE_GATEWAYS_DOWN_FIELD_NUMBER: _ClassVar[int] - MAX_GATEWAY_COUNT_FIELD_NUMBER: _ClassVar[int] - MAX_DEVICE_COUNT_FIELD_NUMBER: _ClassVar[int] - id: str - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - name: str - can_have_gateways: bool - private_gateways_up: bool - private_gateways_down: bool - max_gateway_count: int - max_device_count: int - def __init__(self, id: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., name: _Optional[str] = ..., can_have_gateways: bool = ..., private_gateways_up: bool = ..., private_gateways_down: bool = ..., max_gateway_count: _Optional[int] = ..., max_device_count: _Optional[int] = ...) -> None: ... - -class CreateTenantRequest(_message.Message): - __slots__ = ("tenant",) - TENANT_FIELD_NUMBER: _ClassVar[int] - tenant: Tenant - def __init__(self, tenant: _Optional[_Union[Tenant, _Mapping]] = ...) -> None: ... - -class CreateTenantResponse(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class GetTenantRequest(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class GetTenantResponse(_message.Message): - __slots__ = ("tenant", "created_at", "updated_at") - TENANT_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - tenant: Tenant - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - def __init__(self, tenant: _Optional[_Union[Tenant, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class UpdateTenantRequest(_message.Message): - __slots__ = ("tenant",) - TENANT_FIELD_NUMBER: _ClassVar[int] - tenant: Tenant - def __init__(self, tenant: _Optional[_Union[Tenant, _Mapping]] = ...) -> None: ... - -class DeleteTenantRequest(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class ListTenantsRequest(_message.Message): - __slots__ = ("limit", "offset", "search", "user_id") - LIMIT_FIELD_NUMBER: _ClassVar[int] - OFFSET_FIELD_NUMBER: _ClassVar[int] - SEARCH_FIELD_NUMBER: _ClassVar[int] - USER_ID_FIELD_NUMBER: _ClassVar[int] - limit: int - offset: int - search: str - user_id: str - def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., search: _Optional[str] = ..., user_id: _Optional[str] = ...) -> None: ... - -class ListTenantsResponse(_message.Message): - __slots__ = ("total_count", "result") - TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int] - RESULT_FIELD_NUMBER: _ClassVar[int] - total_count: int - result: _containers.RepeatedCompositeFieldContainer[TenantListItem] - def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[TenantListItem, _Mapping]]] = ...) -> None: ... - -class TenantUser(_message.Message): - __slots__ = ("tenant_id", "user_id", "is_admin", "is_device_admin", "is_gateway_admin", "email") - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - USER_ID_FIELD_NUMBER: _ClassVar[int] - IS_ADMIN_FIELD_NUMBER: _ClassVar[int] - IS_DEVICE_ADMIN_FIELD_NUMBER: _ClassVar[int] - IS_GATEWAY_ADMIN_FIELD_NUMBER: _ClassVar[int] - EMAIL_FIELD_NUMBER: _ClassVar[int] - tenant_id: str - user_id: str - is_admin: bool - is_device_admin: bool - is_gateway_admin: bool - email: str - def __init__(self, tenant_id: _Optional[str] = ..., user_id: _Optional[str] = ..., is_admin: bool = ..., is_device_admin: bool = ..., is_gateway_admin: bool = ..., email: _Optional[str] = ...) -> None: ... - -class TenantUserListItem(_message.Message): - __slots__ = ("tenant_id", "user_id", "created_at", "updated_at", "email", "is_admin", "is_device_admin", "is_gateway_admin") - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - USER_ID_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - EMAIL_FIELD_NUMBER: _ClassVar[int] - IS_ADMIN_FIELD_NUMBER: _ClassVar[int] - IS_DEVICE_ADMIN_FIELD_NUMBER: _ClassVar[int] - IS_GATEWAY_ADMIN_FIELD_NUMBER: _ClassVar[int] - tenant_id: str - user_id: str - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - email: str - is_admin: bool - is_device_admin: bool - is_gateway_admin: bool - def __init__(self, tenant_id: _Optional[str] = ..., user_id: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., email: _Optional[str] = ..., is_admin: bool = ..., is_device_admin: bool = ..., is_gateway_admin: bool = ...) -> None: ... - -class AddTenantUserRequest(_message.Message): - __slots__ = ("tenant_user",) - TENANT_USER_FIELD_NUMBER: _ClassVar[int] - tenant_user: TenantUser - def __init__(self, tenant_user: _Optional[_Union[TenantUser, _Mapping]] = ...) -> None: ... - -class GetTenantUserRequest(_message.Message): - __slots__ = ("tenant_id", "user_id") - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - USER_ID_FIELD_NUMBER: _ClassVar[int] - tenant_id: str - user_id: str - def __init__(self, tenant_id: _Optional[str] = ..., user_id: _Optional[str] = ...) -> None: ... - -class GetTenantUserResponse(_message.Message): - __slots__ = ("tenant_user", "created_at", "updated_at") - TENANT_USER_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - tenant_user: TenantUser - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - def __init__(self, tenant_user: _Optional[_Union[TenantUser, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class UpdateTenantUserRequest(_message.Message): - __slots__ = ("tenant_user",) - TENANT_USER_FIELD_NUMBER: _ClassVar[int] - tenant_user: TenantUser - def __init__(self, tenant_user: _Optional[_Union[TenantUser, _Mapping]] = ...) -> None: ... - -class DeleteTenantUserRequest(_message.Message): - __slots__ = ("tenant_id", "user_id") - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - USER_ID_FIELD_NUMBER: _ClassVar[int] - tenant_id: str - user_id: str - def __init__(self, tenant_id: _Optional[str] = ..., user_id: _Optional[str] = ...) -> None: ... - -class ListTenantUsersRequest(_message.Message): - __slots__ = ("tenant_id", "limit", "offset") - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - OFFSET_FIELD_NUMBER: _ClassVar[int] - tenant_id: str - limit: int - offset: int - def __init__(self, tenant_id: _Optional[str] = ..., limit: _Optional[int] = ..., offset: _Optional[int] = ...) -> None: ... - -class ListTenantUsersResponse(_message.Message): - __slots__ = ("total_count", "result") - TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int] - RESULT_FIELD_NUMBER: _ClassVar[int] - total_count: int - result: _containers.RepeatedCompositeFieldContainer[TenantUserListItem] - def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[TenantUserListItem, _Mapping]]] = ...) -> None: ... diff --git a/api/python/src/chirpstack_api/api/tenant_pb2_grpc.py b/api/python/src/chirpstack_api/api/tenant_pb2_grpc.py deleted file mode 100644 index 59bbb872..00000000 --- a/api/python/src/chirpstack_api/api/tenant_pb2_grpc.py +++ /dev/null @@ -1,378 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from chirpstack_api.api import tenant_pb2 as chirpstack__api_dot_api_dot_tenant__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 - - -class TenantServiceStub(object): - """TenantService is the service providing API methods for managing tenants. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Create = channel.unary_unary( - '/api.TenantService/Create', - request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.CreateTenantRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.CreateTenantResponse.FromString, - ) - self.Get = channel.unary_unary( - '/api.TenantService/Get', - request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.GetTenantRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.GetTenantResponse.FromString, - ) - self.Update = channel.unary_unary( - '/api.TenantService/Update', - request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.UpdateTenantRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.Delete = channel.unary_unary( - '/api.TenantService/Delete', - request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.DeleteTenantRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.List = channel.unary_unary( - '/api.TenantService/List', - request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.ListTenantsRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.ListTenantsResponse.FromString, - ) - self.AddUser = channel.unary_unary( - '/api.TenantService/AddUser', - request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.AddTenantUserRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.GetUser = channel.unary_unary( - '/api.TenantService/GetUser', - request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.GetTenantUserRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.GetTenantUserResponse.FromString, - ) - self.UpdateUser = channel.unary_unary( - '/api.TenantService/UpdateUser', - request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.UpdateTenantUserRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.DeleteUser = channel.unary_unary( - '/api.TenantService/DeleteUser', - request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.DeleteTenantUserRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.ListUsers = channel.unary_unary( - '/api.TenantService/ListUsers', - request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.ListTenantUsersRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.ListTenantUsersResponse.FromString, - ) - - -class TenantServiceServicer(object): - """TenantService is the service providing API methods for managing tenants. - """ - - def Create(self, request, context): - """Create a new tenant. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Get(self, request, context): - """Get the tenant for the given ID. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Update(self, request, context): - """Update the given tenant. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Delete(self, request, context): - """Delete the tenant with the given ID. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def List(self, request, context): - """Get the list of tenants. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AddUser(self, request, context): - """Add an user to the tenant. - Note: the user must already exist. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetUser(self, request, context): - """Get the the tenant user for the given tenant and user IDs. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateUser(self, request, context): - """Update the given tenant user. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteUser(self, request, context): - """Delete the given tenant user. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListUsers(self, request, context): - """Get the list of tenant users. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_TenantServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Create': grpc.unary_unary_rpc_method_handler( - servicer.Create, - request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.CreateTenantRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_tenant__pb2.CreateTenantResponse.SerializeToString, - ), - 'Get': grpc.unary_unary_rpc_method_handler( - servicer.Get, - request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.GetTenantRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_tenant__pb2.GetTenantResponse.SerializeToString, - ), - 'Update': grpc.unary_unary_rpc_method_handler( - servicer.Update, - request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.UpdateTenantRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'Delete': grpc.unary_unary_rpc_method_handler( - servicer.Delete, - request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.DeleteTenantRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'List': grpc.unary_unary_rpc_method_handler( - servicer.List, - request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.ListTenantsRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_tenant__pb2.ListTenantsResponse.SerializeToString, - ), - 'AddUser': grpc.unary_unary_rpc_method_handler( - servicer.AddUser, - request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.AddTenantUserRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetUser': grpc.unary_unary_rpc_method_handler( - servicer.GetUser, - request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.GetTenantUserRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_tenant__pb2.GetTenantUserResponse.SerializeToString, - ), - 'UpdateUser': grpc.unary_unary_rpc_method_handler( - servicer.UpdateUser, - request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.UpdateTenantUserRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'DeleteUser': grpc.unary_unary_rpc_method_handler( - servicer.DeleteUser, - request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.DeleteTenantUserRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListUsers': grpc.unary_unary_rpc_method_handler( - servicer.ListUsers, - request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.ListTenantUsersRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_tenant__pb2.ListTenantUsersResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'api.TenantService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class TenantService(object): - """TenantService is the service providing API methods for managing tenants. - """ - - @staticmethod - def Create(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.TenantService/Create', - chirpstack__api_dot_api_dot_tenant__pb2.CreateTenantRequest.SerializeToString, - chirpstack__api_dot_api_dot_tenant__pb2.CreateTenantResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Get(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.TenantService/Get', - chirpstack__api_dot_api_dot_tenant__pb2.GetTenantRequest.SerializeToString, - chirpstack__api_dot_api_dot_tenant__pb2.GetTenantResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Update(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.TenantService/Update', - chirpstack__api_dot_api_dot_tenant__pb2.UpdateTenantRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Delete(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.TenantService/Delete', - chirpstack__api_dot_api_dot_tenant__pb2.DeleteTenantRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def List(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.TenantService/List', - chirpstack__api_dot_api_dot_tenant__pb2.ListTenantsRequest.SerializeToString, - chirpstack__api_dot_api_dot_tenant__pb2.ListTenantsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AddUser(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.TenantService/AddUser', - chirpstack__api_dot_api_dot_tenant__pb2.AddTenantUserRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetUser(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.TenantService/GetUser', - chirpstack__api_dot_api_dot_tenant__pb2.GetTenantUserRequest.SerializeToString, - chirpstack__api_dot_api_dot_tenant__pb2.GetTenantUserResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateUser(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.TenantService/UpdateUser', - chirpstack__api_dot_api_dot_tenant__pb2.UpdateTenantUserRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteUser(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.TenantService/DeleteUser', - chirpstack__api_dot_api_dot_tenant__pb2.DeleteTenantUserRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListUsers(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.TenantService/ListUsers', - chirpstack__api_dot_api_dot_tenant__pb2.ListTenantUsersRequest.SerializeToString, - chirpstack__api_dot_api_dot_tenant__pb2.ListTenantUsersResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/api/python/src/chirpstack_api/api/user_pb2.py b/api/python/src/chirpstack_api/api/user_pb2.py deleted file mode 100644 index 4a483cec..00000000 --- a/api/python/src/chirpstack_api/api/user_pb2.py +++ /dev/null @@ -1,66 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: chirpstack-api/api/user.proto -# Protobuf Python Version: 4.25.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x63hirpstack-api/api/user.proto\x12\x03\x61pi\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\"T\n\x04User\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08is_admin\x18\x04 \x01(\x08\x12\x11\n\tis_active\x18\x05 \x01(\x08\x12\r\n\x05\x65mail\x18\x06 \x01(\t\x12\x0c\n\x04note\x18\x07 \x01(\t\"\xae\x01\n\x0cUserListItem\x12\n\n\x02id\x18\x01 \x01(\t\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05\x65mail\x18\x04 \x01(\t\x12\x10\n\x08is_admin\x18\x05 \x01(\x08\x12\x11\n\tis_active\x18\x06 \x01(\x08\"d\n\nUserTenant\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x10\n\x08is_admin\x18\x02 \x01(\x08\x12\x17\n\x0fis_device_admin\x18\x03 \x01(\x08\x12\x18\n\x10is_gateway_admin\x18\x04 \x01(\x08\"`\n\x11\x43reateUserRequest\x12\x17\n\x04user\x18\x01 \x01(\x0b\x32\t.api.User\x12\x10\n\x08password\x18\x02 \x01(\t\x12 \n\x07tenants\x18\x03 \x03(\x0b\x32\x0f.api.UserTenant\" \n\x12\x43reateUserResponse\x12\n\n\x02id\x18\x01 \x01(\t\"\x1c\n\x0eGetUserRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\x8a\x01\n\x0fGetUserResponse\x12\x17\n\x04user\x18\x01 \x01(\x0b\x32\t.api.User\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\",\n\x11UpdateUserRequest\x12\x17\n\x04user\x18\x01 \x01(\x0b\x32\t.api.User\"\x1f\n\x11\x44\x65leteUserRequest\x12\n\n\x02id\x18\x01 \x01(\t\"1\n\x10ListUsersRequest\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\r\"K\n\x11ListUsersResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12!\n\x06result\x18\x02 \x03(\x0b\x32\x11.api.UserListItem\">\n\x19UpdateUserPasswordRequest\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t2\x97\x04\n\x0bUserService\x12P\n\x06\x43reate\x12\x16.api.CreateUserRequest\x1a\x17.api.CreateUserResponse\"\x15\x82\xd3\xe4\x93\x02\x0f\"\n/api/users:\x01*\x12I\n\x03Get\x12\x13.api.GetUserRequest\x1a\x14.api.GetUserResponse\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/api/users/{id}\x12Y\n\x06Update\x12\x16.api.UpdateUserRequest\x1a\x16.google.protobuf.Empty\"\x1f\x82\xd3\xe4\x93\x02\x19\x1a\x14/api/users/{user.id}:\x01*\x12Q\n\x06\x44\x65lete\x12\x16.api.DeleteUserRequest\x1a\x16.google.protobuf.Empty\"\x17\x82\xd3\xe4\x93\x02\x11*\x0f/api/users/{id}\x12I\n\x04List\x12\x15.api.ListUsersRequest\x1a\x16.api.ListUsersResponse\"\x12\x82\xd3\xe4\x93\x02\x0c\x12\n/api/users\x12r\n\x0eUpdatePassword\x12\x1e.api.UpdateUserPasswordRequest\x1a\x16.google.protobuf.Empty\"(\x82\xd3\xe4\x93\x02\"\"\x1d/api/users/{user_id}/password:\x01*Ba\n\x11io.chirpstack.apiB\tUserProtoP\x01Z.github.com/chirpstack/chirpstack/api/go/v4/api\xaa\x02\x0e\x43hirpstack.Apib\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.api.user_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\021io.chirpstack.apiB\tUserProtoP\001Z.github.com/chirpstack/chirpstack/api/go/v4/api\252\002\016Chirpstack.Api' - _globals['_USERSERVICE'].methods_by_name['Create']._options = None - _globals['_USERSERVICE'].methods_by_name['Create']._serialized_options = b'\202\323\344\223\002\017\"\n/api/users:\001*' - _globals['_USERSERVICE'].methods_by_name['Get']._options = None - _globals['_USERSERVICE'].methods_by_name['Get']._serialized_options = b'\202\323\344\223\002\021\022\017/api/users/{id}' - _globals['_USERSERVICE'].methods_by_name['Update']._options = None - _globals['_USERSERVICE'].methods_by_name['Update']._serialized_options = b'\202\323\344\223\002\031\032\024/api/users/{user.id}:\001*' - _globals['_USERSERVICE'].methods_by_name['Delete']._options = None - _globals['_USERSERVICE'].methods_by_name['Delete']._serialized_options = b'\202\323\344\223\002\021*\017/api/users/{id}' - _globals['_USERSERVICE'].methods_by_name['List']._options = None - _globals['_USERSERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002\014\022\n/api/users' - _globals['_USERSERVICE'].methods_by_name['UpdatePassword']._options = None - _globals['_USERSERVICE'].methods_by_name['UpdatePassword']._serialized_options = b'\202\323\344\223\002\"\"\035/api/users/{user_id}/password:\001*' - _globals['_USER']._serialized_start=130 - _globals['_USER']._serialized_end=214 - _globals['_USERLISTITEM']._serialized_start=217 - _globals['_USERLISTITEM']._serialized_end=391 - _globals['_USERTENANT']._serialized_start=393 - _globals['_USERTENANT']._serialized_end=493 - _globals['_CREATEUSERREQUEST']._serialized_start=495 - _globals['_CREATEUSERREQUEST']._serialized_end=591 - _globals['_CREATEUSERRESPONSE']._serialized_start=593 - _globals['_CREATEUSERRESPONSE']._serialized_end=625 - _globals['_GETUSERREQUEST']._serialized_start=627 - _globals['_GETUSERREQUEST']._serialized_end=655 - _globals['_GETUSERRESPONSE']._serialized_start=658 - _globals['_GETUSERRESPONSE']._serialized_end=796 - _globals['_UPDATEUSERREQUEST']._serialized_start=798 - _globals['_UPDATEUSERREQUEST']._serialized_end=842 - _globals['_DELETEUSERREQUEST']._serialized_start=844 - _globals['_DELETEUSERREQUEST']._serialized_end=875 - _globals['_LISTUSERSREQUEST']._serialized_start=877 - _globals['_LISTUSERSREQUEST']._serialized_end=926 - _globals['_LISTUSERSRESPONSE']._serialized_start=928 - _globals['_LISTUSERSRESPONSE']._serialized_end=1003 - _globals['_UPDATEUSERPASSWORDREQUEST']._serialized_start=1005 - _globals['_UPDATEUSERPASSWORDREQUEST']._serialized_end=1067 - _globals['_USERSERVICE']._serialized_start=1070 - _globals['_USERSERVICE']._serialized_end=1605 -# @@protoc_insertion_point(module_scope) diff --git a/api/python/src/chirpstack_api/api/user_pb2.pyi b/api/python/src/chirpstack_api/api/user_pb2.pyi deleted file mode 100644 index 1648828f..00000000 --- a/api/python/src/chirpstack_api/api/user_pb2.pyi +++ /dev/null @@ -1,119 +0,0 @@ -from google.api import annotations_pb2 as _annotations_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import empty_pb2 as _empty_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class User(_message.Message): - __slots__ = ("id", "is_admin", "is_active", "email", "note") - ID_FIELD_NUMBER: _ClassVar[int] - IS_ADMIN_FIELD_NUMBER: _ClassVar[int] - IS_ACTIVE_FIELD_NUMBER: _ClassVar[int] - EMAIL_FIELD_NUMBER: _ClassVar[int] - NOTE_FIELD_NUMBER: _ClassVar[int] - id: str - is_admin: bool - is_active: bool - email: str - note: str - def __init__(self, id: _Optional[str] = ..., is_admin: bool = ..., is_active: bool = ..., email: _Optional[str] = ..., note: _Optional[str] = ...) -> None: ... - -class UserListItem(_message.Message): - __slots__ = ("id", "created_at", "updated_at", "email", "is_admin", "is_active") - ID_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - EMAIL_FIELD_NUMBER: _ClassVar[int] - IS_ADMIN_FIELD_NUMBER: _ClassVar[int] - IS_ACTIVE_FIELD_NUMBER: _ClassVar[int] - id: str - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - email: str - is_admin: bool - is_active: bool - def __init__(self, id: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., email: _Optional[str] = ..., is_admin: bool = ..., is_active: bool = ...) -> None: ... - -class UserTenant(_message.Message): - __slots__ = ("tenant_id", "is_admin", "is_device_admin", "is_gateway_admin") - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - IS_ADMIN_FIELD_NUMBER: _ClassVar[int] - IS_DEVICE_ADMIN_FIELD_NUMBER: _ClassVar[int] - IS_GATEWAY_ADMIN_FIELD_NUMBER: _ClassVar[int] - tenant_id: str - is_admin: bool - is_device_admin: bool - is_gateway_admin: bool - def __init__(self, tenant_id: _Optional[str] = ..., is_admin: bool = ..., is_device_admin: bool = ..., is_gateway_admin: bool = ...) -> None: ... - -class CreateUserRequest(_message.Message): - __slots__ = ("user", "password", "tenants") - USER_FIELD_NUMBER: _ClassVar[int] - PASSWORD_FIELD_NUMBER: _ClassVar[int] - TENANTS_FIELD_NUMBER: _ClassVar[int] - user: User - password: str - tenants: _containers.RepeatedCompositeFieldContainer[UserTenant] - def __init__(self, user: _Optional[_Union[User, _Mapping]] = ..., password: _Optional[str] = ..., tenants: _Optional[_Iterable[_Union[UserTenant, _Mapping]]] = ...) -> None: ... - -class CreateUserResponse(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class GetUserRequest(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class GetUserResponse(_message.Message): - __slots__ = ("user", "created_at", "updated_at") - USER_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - user: User - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - def __init__(self, user: _Optional[_Union[User, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class UpdateUserRequest(_message.Message): - __slots__ = ("user",) - USER_FIELD_NUMBER: _ClassVar[int] - user: User - def __init__(self, user: _Optional[_Union[User, _Mapping]] = ...) -> None: ... - -class DeleteUserRequest(_message.Message): - __slots__ = ("id",) - ID_FIELD_NUMBER: _ClassVar[int] - id: str - def __init__(self, id: _Optional[str] = ...) -> None: ... - -class ListUsersRequest(_message.Message): - __slots__ = ("limit", "offset") - LIMIT_FIELD_NUMBER: _ClassVar[int] - OFFSET_FIELD_NUMBER: _ClassVar[int] - limit: int - offset: int - def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ...) -> None: ... - -class ListUsersResponse(_message.Message): - __slots__ = ("total_count", "result") - TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int] - RESULT_FIELD_NUMBER: _ClassVar[int] - total_count: int - result: _containers.RepeatedCompositeFieldContainer[UserListItem] - def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[UserListItem, _Mapping]]] = ...) -> None: ... - -class UpdateUserPasswordRequest(_message.Message): - __slots__ = ("user_id", "password") - USER_ID_FIELD_NUMBER: _ClassVar[int] - PASSWORD_FIELD_NUMBER: _ClassVar[int] - user_id: str - password: str - def __init__(self, user_id: _Optional[str] = ..., password: _Optional[str] = ...) -> None: ... diff --git a/api/python/src/chirpstack_api/api/user_pb2_grpc.py b/api/python/src/chirpstack_api/api/user_pb2_grpc.py deleted file mode 100644 index 0dff2205..00000000 --- a/api/python/src/chirpstack_api/api/user_pb2_grpc.py +++ /dev/null @@ -1,241 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from chirpstack_api.api import user_pb2 as chirpstack__api_dot_api_dot_user__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 - - -class UserServiceStub(object): - """UserService is the service providing API methods for managing users. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Create = channel.unary_unary( - '/api.UserService/Create', - request_serializer=chirpstack__api_dot_api_dot_user__pb2.CreateUserRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_user__pb2.CreateUserResponse.FromString, - ) - self.Get = channel.unary_unary( - '/api.UserService/Get', - request_serializer=chirpstack__api_dot_api_dot_user__pb2.GetUserRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_user__pb2.GetUserResponse.FromString, - ) - self.Update = channel.unary_unary( - '/api.UserService/Update', - request_serializer=chirpstack__api_dot_api_dot_user__pb2.UpdateUserRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.Delete = channel.unary_unary( - '/api.UserService/Delete', - request_serializer=chirpstack__api_dot_api_dot_user__pb2.DeleteUserRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.List = channel.unary_unary( - '/api.UserService/List', - request_serializer=chirpstack__api_dot_api_dot_user__pb2.ListUsersRequest.SerializeToString, - response_deserializer=chirpstack__api_dot_api_dot_user__pb2.ListUsersResponse.FromString, - ) - self.UpdatePassword = channel.unary_unary( - '/api.UserService/UpdatePassword', - request_serializer=chirpstack__api_dot_api_dot_user__pb2.UpdateUserPasswordRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - - -class UserServiceServicer(object): - """UserService is the service providing API methods for managing users. - """ - - def Create(self, request, context): - """Create a new user. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Get(self, request, context): - """Get the user for the given ID. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Update(self, request, context): - """Update the given user. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Delete(self, request, context): - """Delete the user with the given ID. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def List(self, request, context): - """Get the list of users. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdatePassword(self, request, context): - """Update the password for the given user. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_UserServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Create': grpc.unary_unary_rpc_method_handler( - servicer.Create, - request_deserializer=chirpstack__api_dot_api_dot_user__pb2.CreateUserRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_user__pb2.CreateUserResponse.SerializeToString, - ), - 'Get': grpc.unary_unary_rpc_method_handler( - servicer.Get, - request_deserializer=chirpstack__api_dot_api_dot_user__pb2.GetUserRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_user__pb2.GetUserResponse.SerializeToString, - ), - 'Update': grpc.unary_unary_rpc_method_handler( - servicer.Update, - request_deserializer=chirpstack__api_dot_api_dot_user__pb2.UpdateUserRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'Delete': grpc.unary_unary_rpc_method_handler( - servicer.Delete, - request_deserializer=chirpstack__api_dot_api_dot_user__pb2.DeleteUserRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'List': grpc.unary_unary_rpc_method_handler( - servicer.List, - request_deserializer=chirpstack__api_dot_api_dot_user__pb2.ListUsersRequest.FromString, - response_serializer=chirpstack__api_dot_api_dot_user__pb2.ListUsersResponse.SerializeToString, - ), - 'UpdatePassword': grpc.unary_unary_rpc_method_handler( - servicer.UpdatePassword, - request_deserializer=chirpstack__api_dot_api_dot_user__pb2.UpdateUserPasswordRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'api.UserService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class UserService(object): - """UserService is the service providing API methods for managing users. - """ - - @staticmethod - def Create(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.UserService/Create', - chirpstack__api_dot_api_dot_user__pb2.CreateUserRequest.SerializeToString, - chirpstack__api_dot_api_dot_user__pb2.CreateUserResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Get(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.UserService/Get', - chirpstack__api_dot_api_dot_user__pb2.GetUserRequest.SerializeToString, - chirpstack__api_dot_api_dot_user__pb2.GetUserResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Update(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.UserService/Update', - chirpstack__api_dot_api_dot_user__pb2.UpdateUserRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Delete(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.UserService/Delete', - chirpstack__api_dot_api_dot_user__pb2.DeleteUserRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def List(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.UserService/List', - chirpstack__api_dot_api_dot_user__pb2.ListUsersRequest.SerializeToString, - chirpstack__api_dot_api_dot_user__pb2.ListUsersResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdatePassword(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/api.UserService/UpdatePassword', - chirpstack__api_dot_api_dot_user__pb2.UpdateUserPasswordRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/api/python/src/chirpstack_api/common/common_pb2.py b/api/python/src/chirpstack_api/common/common_pb2.py deleted file mode 100644 index 915eb8c6..00000000 --- a/api/python/src/chirpstack_api/common/common_pb2.py +++ /dev/null @@ -1,54 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: chirpstack-api/common/common.proto -# Protobuf Python Version: 4.25.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"chirpstack-api/common/common.proto\x12\x06\x63ommon\x1a\x1fgoogle/protobuf/timestamp.proto\"{\n\x08Location\x12\x10\n\x08latitude\x18\x01 \x01(\x01\x12\x11\n\tlongitude\x18\x02 \x01(\x01\x12\x10\n\x08\x61ltitude\x18\x03 \x01(\x01\x12&\n\x06source\x18\x04 \x01(\x0e\x32\x16.common.LocationSource\x12\x10\n\x08\x61\x63\x63uracy\x18\x05 \x01(\x02\"1\n\x0bKeyEnvelope\x12\x11\n\tkek_label\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x65s_key\x18\x02 \x01(\x0c\"\x91\x01\n\x06Metric\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\ntimestamps\x18\x02 \x03(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x08\x64\x61tasets\x18\x03 \x03(\x0b\x32\x15.common.MetricDataset\x12 \n\x04kind\x18\x04 \x01(\x0e\x32\x12.common.MetricKind\",\n\rMetricDataset\x12\r\n\x05label\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x03(\x02\"S\n\x11JoinServerContext\x12\x16\n\x0esession_key_id\x18\x01 \x01(\t\x12&\n\tapp_s_key\x18\x02 \x01(\x0b\x32\x13.common.KeyEnvelope*,\n\nModulation\x12\x08\n\x04LORA\x10\x00\x12\x07\n\x03\x46SK\x10\x01\x12\x0b\n\x07LR_FHSS\x10\x02*\xaa\x01\n\x06Region\x12\t\n\x05\x45U868\x10\x00\x12\t\n\x05US915\x10\x02\x12\t\n\x05\x43N779\x10\x03\x12\t\n\x05\x45U433\x10\x04\x12\t\n\x05\x41U915\x10\x05\x12\t\n\x05\x43N470\x10\x06\x12\t\n\x05\x41S923\x10\x07\x12\x0b\n\x07\x41S923_2\x10\x0c\x12\x0b\n\x07\x41S923_3\x10\r\x12\x0b\n\x07\x41S923_4\x10\x0e\x12\t\n\x05KR920\x10\x08\x12\t\n\x05IN865\x10\t\x12\t\n\x05RU864\x10\n\x12\x0b\n\x07ISM2400\x10\x0b*\xb3\x01\n\x05MType\x12\x10\n\x0cJOIN_REQUEST\x10\x00\x12\x0f\n\x0bJOIN_ACCEPT\x10\x01\x12\x17\n\x13UNCONFIRMED_DATA_UP\x10\x02\x12\x19\n\x15UNCONFIRMED_DATA_DOWN\x10\x03\x12\x15\n\x11\x43ONFIRMED_DATA_UP\x10\x04\x12\x17\n\x13\x43ONFIRMED_DATA_DOWN\x10\x05\x12\x12\n\x0eREJOIN_REQUEST\x10\x06\x12\x0f\n\x0bPROPRIETARY\x10\x07*~\n\nMacVersion\x12\x11\n\rLORAWAN_1_0_0\x10\x00\x12\x11\n\rLORAWAN_1_0_1\x10\x01\x12\x11\n\rLORAWAN_1_0_2\x10\x02\x12\x11\n\rLORAWAN_1_0_3\x10\x03\x12\x11\n\rLORAWAN_1_0_4\x10\x04\x12\x11\n\rLORAWAN_1_1_0\x10\x05*e\n\x11RegParamsRevision\x12\x05\n\x01\x41\x10\x00\x12\x05\n\x01\x42\x10\x01\x12\x0f\n\x0bRP002_1_0_0\x10\x02\x12\x0f\n\x0bRP002_1_0_1\x10\x03\x12\x0f\n\x0bRP002_1_0_2\x10\x04\x12\x0f\n\x0bRP002_1_0_3\x10\x05*\x8e\x01\n\x0eLocationSource\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03GPS\x10\x01\x12\n\n\x06\x43ONFIG\x10\x02\x12\x15\n\x11GEO_RESOLVER_TDOA\x10\x03\x12\x15\n\x11GEO_RESOLVER_RSSI\x10\x04\x12\x15\n\x11GEO_RESOLVER_GNSS\x10\x05\x12\x15\n\x11GEO_RESOLVER_WIFI\x10\x06*+\n\x0b\x41ggregation\x12\x08\n\x04HOUR\x10\x00\x12\x07\n\x03\x44\x41Y\x10\x01\x12\t\n\x05MONTH\x10\x02*2\n\nMetricKind\x12\x0b\n\x07\x43OUNTER\x10\x00\x12\x0c\n\x08\x41\x42SOLUTE\x10\x01\x12\t\n\x05GAUGE\x10\x02*4\n\x0b\x44\x65viceClass\x12\x0b\n\x07\x43LASS_A\x10\x00\x12\x0b\n\x07\x43LASS_B\x10\x01\x12\x0b\n\x07\x43LASS_C\x10\x02\x42i\n\x11io.chirpstack.apiB\x0b\x43ommonProtoP\x01Z1github.com/chirpstack/chirpstack/api/go/v4/common\xaa\x02\x11\x43hirpstack.Commonb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.common.common_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\021io.chirpstack.apiB\013CommonProtoP\001Z1github.com/chirpstack/chirpstack/api/go/v4/common\252\002\021Chirpstack.Common' - _globals['_MODULATION']._serialized_start=534 - _globals['_MODULATION']._serialized_end=578 - _globals['_REGION']._serialized_start=581 - _globals['_REGION']._serialized_end=751 - _globals['_MTYPE']._serialized_start=754 - _globals['_MTYPE']._serialized_end=933 - _globals['_MACVERSION']._serialized_start=935 - _globals['_MACVERSION']._serialized_end=1061 - _globals['_REGPARAMSREVISION']._serialized_start=1063 - _globals['_REGPARAMSREVISION']._serialized_end=1164 - _globals['_LOCATIONSOURCE']._serialized_start=1167 - _globals['_LOCATIONSOURCE']._serialized_end=1309 - _globals['_AGGREGATION']._serialized_start=1311 - _globals['_AGGREGATION']._serialized_end=1354 - _globals['_METRICKIND']._serialized_start=1356 - _globals['_METRICKIND']._serialized_end=1406 - _globals['_DEVICECLASS']._serialized_start=1408 - _globals['_DEVICECLASS']._serialized_end=1460 - _globals['_LOCATION']._serialized_start=79 - _globals['_LOCATION']._serialized_end=202 - _globals['_KEYENVELOPE']._serialized_start=204 - _globals['_KEYENVELOPE']._serialized_end=253 - _globals['_METRIC']._serialized_start=256 - _globals['_METRIC']._serialized_end=401 - _globals['_METRICDATASET']._serialized_start=403 - _globals['_METRICDATASET']._serialized_end=447 - _globals['_JOINSERVERCONTEXT']._serialized_start=449 - _globals['_JOINSERVERCONTEXT']._serialized_end=532 -# @@protoc_insertion_point(module_scope) diff --git a/api/python/src/chirpstack_api/common/common_pb2.pyi b/api/python/src/chirpstack_api/common/common_pb2.pyi deleted file mode 100644 index 20f03531..00000000 --- a/api/python/src/chirpstack_api/common/common_pb2.pyi +++ /dev/null @@ -1,191 +0,0 @@ -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class Modulation(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - LORA: _ClassVar[Modulation] - FSK: _ClassVar[Modulation] - LR_FHSS: _ClassVar[Modulation] - -class Region(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - EU868: _ClassVar[Region] - US915: _ClassVar[Region] - CN779: _ClassVar[Region] - EU433: _ClassVar[Region] - AU915: _ClassVar[Region] - CN470: _ClassVar[Region] - AS923: _ClassVar[Region] - AS923_2: _ClassVar[Region] - AS923_3: _ClassVar[Region] - AS923_4: _ClassVar[Region] - KR920: _ClassVar[Region] - IN865: _ClassVar[Region] - RU864: _ClassVar[Region] - ISM2400: _ClassVar[Region] - -class MType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - JOIN_REQUEST: _ClassVar[MType] - JOIN_ACCEPT: _ClassVar[MType] - UNCONFIRMED_DATA_UP: _ClassVar[MType] - UNCONFIRMED_DATA_DOWN: _ClassVar[MType] - CONFIRMED_DATA_UP: _ClassVar[MType] - CONFIRMED_DATA_DOWN: _ClassVar[MType] - REJOIN_REQUEST: _ClassVar[MType] - PROPRIETARY: _ClassVar[MType] - -class MacVersion(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - LORAWAN_1_0_0: _ClassVar[MacVersion] - LORAWAN_1_0_1: _ClassVar[MacVersion] - LORAWAN_1_0_2: _ClassVar[MacVersion] - LORAWAN_1_0_3: _ClassVar[MacVersion] - LORAWAN_1_0_4: _ClassVar[MacVersion] - LORAWAN_1_1_0: _ClassVar[MacVersion] - -class RegParamsRevision(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - A: _ClassVar[RegParamsRevision] - B: _ClassVar[RegParamsRevision] - RP002_1_0_0: _ClassVar[RegParamsRevision] - RP002_1_0_1: _ClassVar[RegParamsRevision] - RP002_1_0_2: _ClassVar[RegParamsRevision] - RP002_1_0_3: _ClassVar[RegParamsRevision] - -class LocationSource(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - UNKNOWN: _ClassVar[LocationSource] - GPS: _ClassVar[LocationSource] - CONFIG: _ClassVar[LocationSource] - GEO_RESOLVER_TDOA: _ClassVar[LocationSource] - GEO_RESOLVER_RSSI: _ClassVar[LocationSource] - GEO_RESOLVER_GNSS: _ClassVar[LocationSource] - GEO_RESOLVER_WIFI: _ClassVar[LocationSource] - -class Aggregation(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - HOUR: _ClassVar[Aggregation] - DAY: _ClassVar[Aggregation] - MONTH: _ClassVar[Aggregation] - -class MetricKind(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - COUNTER: _ClassVar[MetricKind] - ABSOLUTE: _ClassVar[MetricKind] - GAUGE: _ClassVar[MetricKind] - -class DeviceClass(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - CLASS_A: _ClassVar[DeviceClass] - CLASS_B: _ClassVar[DeviceClass] - CLASS_C: _ClassVar[DeviceClass] -LORA: Modulation -FSK: Modulation -LR_FHSS: Modulation -EU868: Region -US915: Region -CN779: Region -EU433: Region -AU915: Region -CN470: Region -AS923: Region -AS923_2: Region -AS923_3: Region -AS923_4: Region -KR920: Region -IN865: Region -RU864: Region -ISM2400: Region -JOIN_REQUEST: MType -JOIN_ACCEPT: MType -UNCONFIRMED_DATA_UP: MType -UNCONFIRMED_DATA_DOWN: MType -CONFIRMED_DATA_UP: MType -CONFIRMED_DATA_DOWN: MType -REJOIN_REQUEST: MType -PROPRIETARY: MType -LORAWAN_1_0_0: MacVersion -LORAWAN_1_0_1: MacVersion -LORAWAN_1_0_2: MacVersion -LORAWAN_1_0_3: MacVersion -LORAWAN_1_0_4: MacVersion -LORAWAN_1_1_0: MacVersion -A: RegParamsRevision -B: RegParamsRevision -RP002_1_0_0: RegParamsRevision -RP002_1_0_1: RegParamsRevision -RP002_1_0_2: RegParamsRevision -RP002_1_0_3: RegParamsRevision -UNKNOWN: LocationSource -GPS: LocationSource -CONFIG: LocationSource -GEO_RESOLVER_TDOA: LocationSource -GEO_RESOLVER_RSSI: LocationSource -GEO_RESOLVER_GNSS: LocationSource -GEO_RESOLVER_WIFI: LocationSource -HOUR: Aggregation -DAY: Aggregation -MONTH: Aggregation -COUNTER: MetricKind -ABSOLUTE: MetricKind -GAUGE: MetricKind -CLASS_A: DeviceClass -CLASS_B: DeviceClass -CLASS_C: DeviceClass - -class Location(_message.Message): - __slots__ = ("latitude", "longitude", "altitude", "source", "accuracy") - LATITUDE_FIELD_NUMBER: _ClassVar[int] - LONGITUDE_FIELD_NUMBER: _ClassVar[int] - ALTITUDE_FIELD_NUMBER: _ClassVar[int] - SOURCE_FIELD_NUMBER: _ClassVar[int] - ACCURACY_FIELD_NUMBER: _ClassVar[int] - latitude: float - longitude: float - altitude: float - source: LocationSource - accuracy: float - def __init__(self, latitude: _Optional[float] = ..., longitude: _Optional[float] = ..., altitude: _Optional[float] = ..., source: _Optional[_Union[LocationSource, str]] = ..., accuracy: _Optional[float] = ...) -> None: ... - -class KeyEnvelope(_message.Message): - __slots__ = ("kek_label", "aes_key") - KEK_LABEL_FIELD_NUMBER: _ClassVar[int] - AES_KEY_FIELD_NUMBER: _ClassVar[int] - kek_label: str - aes_key: bytes - def __init__(self, kek_label: _Optional[str] = ..., aes_key: _Optional[bytes] = ...) -> None: ... - -class Metric(_message.Message): - __slots__ = ("name", "timestamps", "datasets", "kind") - NAME_FIELD_NUMBER: _ClassVar[int] - TIMESTAMPS_FIELD_NUMBER: _ClassVar[int] - DATASETS_FIELD_NUMBER: _ClassVar[int] - KIND_FIELD_NUMBER: _ClassVar[int] - name: str - timestamps: _containers.RepeatedCompositeFieldContainer[_timestamp_pb2.Timestamp] - datasets: _containers.RepeatedCompositeFieldContainer[MetricDataset] - kind: MetricKind - def __init__(self, name: _Optional[str] = ..., timestamps: _Optional[_Iterable[_Union[_timestamp_pb2.Timestamp, _Mapping]]] = ..., datasets: _Optional[_Iterable[_Union[MetricDataset, _Mapping]]] = ..., kind: _Optional[_Union[MetricKind, str]] = ...) -> None: ... - -class MetricDataset(_message.Message): - __slots__ = ("label", "data") - LABEL_FIELD_NUMBER: _ClassVar[int] - DATA_FIELD_NUMBER: _ClassVar[int] - label: str - data: _containers.RepeatedScalarFieldContainer[float] - def __init__(self, label: _Optional[str] = ..., data: _Optional[_Iterable[float]] = ...) -> None: ... - -class JoinServerContext(_message.Message): - __slots__ = ("session_key_id", "app_s_key") - SESSION_KEY_ID_FIELD_NUMBER: _ClassVar[int] - APP_S_KEY_FIELD_NUMBER: _ClassVar[int] - session_key_id: str - app_s_key: KeyEnvelope - def __init__(self, session_key_id: _Optional[str] = ..., app_s_key: _Optional[_Union[KeyEnvelope, _Mapping]] = ...) -> None: ... diff --git a/api/python/src/chirpstack_api/common/common_pb2_grpc.py b/api/python/src/chirpstack_api/common/common_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/api/python/src/chirpstack_api/common/common_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/api/python/src/chirpstack_api/gw/gw_pb2.py b/api/python/src/chirpstack_api/gw/gw_pb2.py deleted file mode 100644 index f4ed07f4..00000000 --- a/api/python/src/chirpstack_api/gw/gw_pb2.py +++ /dev/null @@ -1,135 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: chirpstack-api/gw/gw.proto -# Protobuf Python Version: 4.25.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x63hirpstack-api/gw/gw.proto\x12\x02gw\x1a\"chirpstack-api/common/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x95\x01\n\nModulation\x12&\n\x04lora\x18\x03 \x01(\x0b\x32\x16.gw.LoraModulationInfoH\x00\x12$\n\x03\x66sk\x18\x04 \x01(\x0b\x32\x15.gw.FskModulationInfoH\x00\x12+\n\x07lr_fhss\x18\x05 \x01(\x0b\x32\x18.gw.LrFhssModulationInfoH\x00\x42\x0c\n\nparameters\"\x8d\x02\n\x12UplinkTxInfoLegacy\x12\x11\n\tfrequency\x18\x01 \x01(\r\x12&\n\nmodulation\x18\x02 \x01(\x0e\x32\x12.common.Modulation\x12\x36\n\x14lora_modulation_info\x18\x03 \x01(\x0b\x32\x16.gw.LoraModulationInfoH\x00\x12\x34\n\x13\x66sk_modulation_info\x18\x04 \x01(\x0b\x32\x15.gw.FskModulationInfoH\x00\x12;\n\x17lr_fhss_modulation_info\x18\x05 \x01(\x0b\x32\x18.gw.LrFhssModulationInfoH\x00\x42\x11\n\x0fmodulation_info\"E\n\x0cUplinkTxInfo\x12\x11\n\tfrequency\x18\x01 \x01(\r\x12\"\n\nmodulation\x18\x02 \x01(\x0b\x32\x0e.gw.Modulation\"\xbe\x01\n\x12LoraModulationInfo\x12\x11\n\tbandwidth\x18\x01 \x01(\r\x12\x18\n\x10spreading_factor\x18\x02 \x01(\r\x12\x18\n\x10\x63ode_rate_legacy\x18\x03 \x01(\t\x12\x1f\n\tcode_rate\x18\x05 \x01(\x0e\x32\x0c.gw.CodeRate\x12\x1e\n\x16polarization_inversion\x18\x04 \x01(\x08\x12\x10\n\x08preamble\x18\x06 \x01(\r\x12\x0e\n\x06no_crc\x18\x07 \x01(\x08\"B\n\x11\x46skModulationInfo\x12\x1b\n\x13\x66requency_deviation\x18\x01 \x01(\r\x12\x10\n\x08\x64\x61tarate\x18\x02 \x01(\r\"\x86\x01\n\x14LrFhssModulationInfo\x12\x1f\n\x17operating_channel_width\x18\x01 \x01(\r\x12\x18\n\x10\x63ode_rate_legacy\x18\x02 \x01(\t\x12\x1f\n\tcode_rate\x18\x04 \x01(\x0e\x32\x0c.gw.CodeRate\x12\x12\n\ngrid_steps\x18\x03 \x01(\r\"V\n\x16\x45ncryptedFineTimestamp\x12\x15\n\raes_key_index\x18\x01 \x01(\r\x12\x14\n\x0c\x65ncrypted_ns\x18\x02 \x01(\x0c\x12\x0f\n\x07\x66pga_id\x18\x03 \x01(\x0c\">\n\x12PlainFineTimestamp\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x90\x07\n\x0cGatewayStats\x12\x19\n\x11gateway_id_legacy\x18\x01 \x01(\x0c\x12\x12\n\ngateway_id\x18\x11 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\"\n\x08location\x18\x03 \x01(\x0b\x32\x10.common.Location\x12\x16\n\x0e\x63onfig_version\x18\x04 \x01(\t\x12\x1b\n\x13rx_packets_received\x18\x05 \x01(\r\x12\x1e\n\x16rx_packets_received_ok\x18\x06 \x01(\r\x12\x1b\n\x13tx_packets_received\x18\x07 \x01(\r\x12\x1a\n\x12tx_packets_emitted\x18\x08 \x01(\r\x12\x30\n\x08metadata\x18\n \x03(\x0b\x32\x1e.gw.GatewayStats.MetadataEntry\x12M\n\x18tx_packets_per_frequency\x18\x0c \x03(\x0b\x32+.gw.GatewayStats.TxPacketsPerFrequencyEntry\x12M\n\x18rx_packets_per_frequency\x18\r \x03(\x0b\x32+.gw.GatewayStats.RxPacketsPerFrequencyEntry\x12\x39\n\x19tx_packets_per_modulation\x18\x0e \x03(\x0b\x32\x16.gw.PerModulationCount\x12\x39\n\x19rx_packets_per_modulation\x18\x0f \x03(\x0b\x32\x16.gw.PerModulationCount\x12G\n\x15tx_packets_per_status\x18\x10 \x03(\x0b\x32(.gw.GatewayStats.TxPacketsPerStatusEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a<\n\x1aTxPacketsPerFrequencyEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12\r\n\x05value\x18\x02 \x01(\r:\x02\x38\x01\x1a<\n\x1aRxPacketsPerFrequencyEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12\r\n\x05value\x18\x02 \x01(\r:\x02\x38\x01\x1a\x39\n\x17TxPacketsPerStatusEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\r:\x02\x38\x01\"G\n\x12PerModulationCount\x12\"\n\nmodulation\x18\x01 \x01(\x0b\x32\x0e.gw.Modulation\x12\r\n\x05\x63ount\x18\x02 \x01(\r\"\x80\x05\n\x12UplinkRxInfoLegacy\x12\x12\n\ngateway_id\x18\x01 \x01(\x0c\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x14time_since_gps_epoch\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0c\n\x04rssi\x18\x05 \x01(\x05\x12\x10\n\x08lora_snr\x18\x06 \x01(\x01\x12\x0f\n\x07\x63hannel\x18\x07 \x01(\r\x12\x10\n\x08rf_chain\x18\x08 \x01(\r\x12\r\n\x05\x62oard\x18\t \x01(\r\x12\x0f\n\x07\x61ntenna\x18\n \x01(\r\x12\"\n\x08location\x18\x0b \x01(\x0b\x32\x10.common.Location\x12\x32\n\x13\x66ine_timestamp_type\x18\x0c \x01(\x0e\x32\x15.gw.FineTimestampType\x12>\n\x18\x65ncrypted_fine_timestamp\x18\r \x01(\x0b\x32\x1a.gw.EncryptedFineTimestampH\x00\x12\x36\n\x14plain_fine_timestamp\x18\x0e \x01(\x0b\x32\x16.gw.PlainFineTimestampH\x00\x12\x0f\n\x07\x63ontext\x18\x0f \x01(\x0c\x12\x11\n\tuplink_id\x18\x10 \x01(\x0c\x12!\n\ncrc_status\x18\x11 \x01(\x0e\x32\r.gw.CRCStatus\x12\x36\n\x08metadata\x18\x12 \x03(\x0b\x32$.gw.UplinkRxInfoLegacy.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x10\n\x0e\x66ine_timestamp\"\x9f\x04\n\x0cUplinkRxInfo\x12\x12\n\ngateway_id\x18\x01 \x01(\t\x12\x11\n\tuplink_id\x18\x02 \x01(\r\x12+\n\x07gw_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07ns_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x14time_since_gps_epoch\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19\x66ine_time_since_gps_epoch\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0c\n\x04rssi\x18\x06 \x01(\x05\x12\x0b\n\x03snr\x18\x07 \x01(\x02\x12\x0f\n\x07\x63hannel\x18\x08 \x01(\r\x12\x10\n\x08rf_chain\x18\t \x01(\r\x12\r\n\x05\x62oard\x18\n \x01(\r\x12\x0f\n\x07\x61ntenna\x18\x0b \x01(\r\x12\"\n\x08location\x18\x0c \x01(\x0b\x32\x10.common.Location\x12\x0f\n\x07\x63ontext\x18\r \x01(\x0c\x12\x30\n\x08metadata\x18\x0f \x03(\x0b\x32\x1e.gw.UplinkRxInfo.MetadataEntry\x12!\n\ncrc_status\x18\x10 \x01(\x0e\x32\r.gw.CRCStatus\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x82\x04\n\x14\x44ownlinkTxInfoLegacy\x12\x12\n\ngateway_id\x18\x01 \x01(\x0c\x12\x11\n\tfrequency\x18\x05 \x01(\r\x12\r\n\x05power\x18\x06 \x01(\x05\x12&\n\nmodulation\x18\x07 \x01(\x0e\x32\x12.common.Modulation\x12\x36\n\x14lora_modulation_info\x18\x08 \x01(\x0b\x32\x16.gw.LoraModulationInfoH\x00\x12\x34\n\x13\x66sk_modulation_info\x18\t \x01(\x0b\x32\x15.gw.FskModulationInfoH\x00\x12\r\n\x05\x62oard\x18\n \x01(\r\x12\x0f\n\x07\x61ntenna\x18\x0b \x01(\r\x12\"\n\x06timing\x18\x0c \x01(\x0e\x32\x12.gw.DownlinkTiming\x12<\n\x17immediately_timing_info\x18\r \x01(\x0b\x32\x19.gw.ImmediatelyTimingInfoH\x01\x12\x30\n\x11\x64\x65lay_timing_info\x18\x0e \x01(\x0b\x32\x13.gw.DelayTimingInfoH\x01\x12\x37\n\x15gps_epoch_timing_info\x18\x0f \x01(\x0b\x32\x16.gw.GPSEpochTimingInfoH\x01\x12\x0f\n\x07\x63ontext\x18\x10 \x01(\x0c\x42\x11\n\x0fmodulation_infoB\r\n\x0btiming_info\"\xa3\x01\n\x0e\x44ownlinkTxInfo\x12\x11\n\tfrequency\x18\x01 \x01(\r\x12\r\n\x05power\x18\x02 \x01(\x05\x12\"\n\nmodulation\x18\x03 \x01(\x0b\x32\x0e.gw.Modulation\x12\r\n\x05\x62oard\x18\x04 \x01(\r\x12\x0f\n\x07\x61ntenna\x18\x05 \x01(\r\x12\x1a\n\x06timing\x18\x06 \x01(\x0b\x32\n.gw.Timing\x12\x0f\n\x07\x63ontext\x18\x07 \x01(\x0c\"\x9b\x01\n\x06Timing\x12\x30\n\x0bimmediately\x18\x01 \x01(\x0b\x32\x19.gw.ImmediatelyTimingInfoH\x00\x12$\n\x05\x64\x65lay\x18\x02 \x01(\x0b\x32\x13.gw.DelayTimingInfoH\x00\x12+\n\tgps_epoch\x18\x03 \x01(\x0b\x32\x16.gw.GPSEpochTimingInfoH\x00\x42\x0c\n\nparameters\"\x17\n\x15ImmediatelyTimingInfo\";\n\x0f\x44\x65layTimingInfo\x12(\n\x05\x64\x65lay\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"M\n\x12GPSEpochTimingInfo\x12\x37\n\x14time_since_gps_epoch\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xc8\x01\n\x0bUplinkFrame\x12\x13\n\x0bphy_payload\x18\x01 \x01(\x0c\x12.\n\x0etx_info_legacy\x18\x02 \x01(\x0b\x32\x16.gw.UplinkTxInfoLegacy\x12.\n\x0erx_info_legacy\x18\x03 \x01(\x0b\x32\x16.gw.UplinkRxInfoLegacy\x12!\n\x07tx_info\x18\x04 \x01(\x0b\x32\x10.gw.UplinkTxInfo\x12!\n\x07rx_info\x18\x05 \x01(\x0b\x32\x10.gw.UplinkRxInfo\"k\n\x0eUplinkFrameSet\x12\x13\n\x0bphy_payload\x18\x01 \x01(\x0c\x12!\n\x07tx_info\x18\x02 \x01(\x0b\x32\x10.gw.UplinkTxInfo\x12!\n\x07rx_info\x18\x03 \x03(\x0b\x32\x10.gw.UplinkRxInfo\"\x95\x01\n\rDownlinkFrame\x12\x13\n\x0b\x64ownlink_id\x18\x03 \x01(\r\x12\x1a\n\x12\x64ownlink_id_legacy\x18\x04 \x01(\x0c\x12$\n\x05items\x18\x05 \x03(\x0b\x32\x15.gw.DownlinkFrameItem\x12\x19\n\x11gateway_id_legacy\x18\x06 \x01(\x0c\x12\x12\n\ngateway_id\x18\x07 \x01(\t\"\x7f\n\x11\x44ownlinkFrameItem\x12\x13\n\x0bphy_payload\x18\x01 \x01(\x0c\x12\x30\n\x0etx_info_legacy\x18\x02 \x01(\x0b\x32\x18.gw.DownlinkTxInfoLegacy\x12#\n\x07tx_info\x18\x03 \x01(\x0b\x32\x12.gw.DownlinkTxInfo\"\x95\x01\n\rDownlinkTxAck\x12\x19\n\x11gateway_id_legacy\x18\x01 \x01(\x0c\x12\x12\n\ngateway_id\x18\x06 \x01(\t\x12\x13\n\x0b\x64ownlink_id\x18\x02 \x01(\r\x12\x1a\n\x12\x64ownlink_id_legacy\x18\x04 \x01(\x0c\x12$\n\x05items\x18\x05 \x03(\x0b\x32\x15.gw.DownlinkTxAckItem\"4\n\x11\x44ownlinkTxAckItem\x12\x1f\n\x06status\x18\x01 \x01(\x0e\x32\x0f.gw.TxAckStatus\"\xb5\x01\n\x14GatewayConfiguration\x12\x19\n\x11gateway_id_legacy\x18\x01 \x01(\x0c\x12\x12\n\ngateway_id\x18\x05 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12*\n\x08\x63hannels\x18\x03 \x03(\x0b\x32\x18.gw.ChannelConfiguration\x12\x31\n\x0estats_interval\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x87\x02\n\x14\x43hannelConfiguration\x12\x11\n\tfrequency\x18\x01 \x01(\r\x12-\n\x11modulation_legacy\x18\x02 \x01(\x0e\x32\x12.common.Modulation\x12:\n\x16lora_modulation_config\x18\x03 \x01(\x0b\x32\x18.gw.LoraModulationConfigH\x00\x12\x38\n\x15\x66sk_modulation_config\x18\x04 \x01(\x0b\x32\x17.gw.FskModulationConfigH\x00\x12\r\n\x05\x62oard\x18\x05 \x01(\r\x12\x13\n\x0b\x64\x65modulator\x18\x06 \x01(\rB\x13\n\x11modulation_config\"^\n\x14LoraModulationConfig\x12\x18\n\x10\x62\x61ndwidth_legacy\x18\x01 \x01(\r\x12\x11\n\tbandwidth\x18\x03 \x01(\r\x12\x19\n\x11spreading_factors\x18\x02 \x03(\r\"S\n\x13\x46skModulationConfig\x12\x18\n\x10\x62\x61ndwidth_legacy\x18\x01 \x01(\r\x12\x11\n\tbandwidth\x18\x03 \x01(\r\x12\x0f\n\x07\x62itrate\x18\x02 \x01(\r\"\xf4\x01\n\x19GatewayCommandExecRequest\x12\x19\n\x11gateway_id_legacy\x18\x01 \x01(\x0c\x12\x12\n\ngateway_id\x18\x06 \x01(\t\x12\x0f\n\x07\x63ommand\x18\x02 \x01(\t\x12\x0f\n\x07\x65xec_id\x18\x07 \x01(\r\x12\r\n\x05stdin\x18\x04 \x01(\x0c\x12\x43\n\x0b\x65nvironment\x18\x05 \x03(\x0b\x32..gw.GatewayCommandExecRequest.EnvironmentEntry\x1a\x32\n\x10\x45nvironmentEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x8b\x01\n\x1aGatewayCommandExecResponse\x12\x19\n\x11gateway_id_legacy\x18\x01 \x01(\x0c\x12\x12\n\ngateway_id\x18\x06 \x01(\t\x12\x0f\n\x07\x65xec_id\x18\x07 \x01(\r\x12\x0e\n\x06stdout\x18\x03 \x01(\x0c\x12\x0e\n\x06stderr\x18\x04 \x01(\x0c\x12\r\n\x05\x65rror\x18\x05 \x01(\t\"Y\n\x17RawPacketForwarderEvent\x12\x19\n\x11gateway_id_legacy\x18\x01 \x01(\x0c\x12\x12\n\ngateway_id\x18\x04 \x01(\t\x12\x0f\n\x07payload\x18\x03 \x01(\x0c\"[\n\x19RawPacketForwarderCommand\x12\x19\n\x11gateway_id_legacy\x18\x01 \x01(\x0c\x12\x12\n\ngateway_id\x18\x04 \x01(\t\x12\x0f\n\x07payload\x18\x03 \x01(\x0c\"\x80\x01\n\tConnState\x12\x19\n\x11gateway_id_legacy\x18\x01 \x01(\x0c\x12\x12\n\ngateway_id\x18\x03 \x01(\t\x12\"\n\x05state\x18\x02 \x01(\x0e\x32\x13.gw.ConnState.State\" \n\x05State\x12\x0b\n\x07OFFLINE\x10\x00\x12\n\n\x06ONLINE\x10\x01*\xb5\x01\n\x08\x43odeRate\x12\x10\n\x0c\x43R_UNDEFINED\x10\x00\x12\n\n\x06\x43R_4_5\x10\x01\x12\n\n\x06\x43R_4_6\x10\x02\x12\n\n\x06\x43R_4_7\x10\x03\x12\n\n\x06\x43R_4_8\x10\x04\x12\n\n\x06\x43R_3_8\x10\x05\x12\n\n\x06\x43R_2_6\x10\x06\x12\n\n\x06\x43R_1_4\x10\x07\x12\n\n\x06\x43R_1_6\x10\x08\x12\n\n\x06\x43R_5_6\x10\t\x12\r\n\tCR_LI_4_5\x10\n\x12\r\n\tCR_LI_4_6\x10\x0b\x12\r\n\tCR_LI_4_8\x10\x0c*;\n\x0e\x44ownlinkTiming\x12\x0f\n\x0bIMMEDIATELY\x10\x00\x12\t\n\x05\x44\x45LAY\x10\x01\x12\r\n\tGPS_EPOCH\x10\x02*7\n\x11\x46ineTimestampType\x12\x08\n\x04NONE\x10\x00\x12\r\n\tENCRYPTED\x10\x01\x12\t\n\x05PLAIN\x10\x02*0\n\tCRCStatus\x12\n\n\x06NO_CRC\x10\x00\x12\x0b\n\x07\x42\x41\x44_CRC\x10\x01\x12\n\n\x06\x43RC_OK\x10\x02*\xbc\x01\n\x0bTxAckStatus\x12\x0b\n\x07IGNORED\x10\x00\x12\x06\n\x02OK\x10\x01\x12\x0c\n\x08TOO_LATE\x10\x02\x12\r\n\tTOO_EARLY\x10\x03\x12\x14\n\x10\x43OLLISION_PACKET\x10\x04\x12\x14\n\x10\x43OLLISION_BEACON\x10\x05\x12\x0b\n\x07TX_FREQ\x10\x06\x12\x0c\n\x08TX_POWER\x10\x07\x12\x10\n\x0cGPS_UNLOCKED\x10\x08\x12\x0e\n\nQUEUE_FULL\x10\t\x12\x12\n\x0eINTERNAL_ERROR\x10\nBj\n\x14io.chirpstack.api.gwB\x0cGatewayProtoP\x01Z-github.com/chirpstack/chirpstack/api/go/v4/gw\xaa\x02\x12\x43hirpstack.Gatewayb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.gw.gw_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\024io.chirpstack.api.gwB\014GatewayProtoP\001Z-github.com/chirpstack/chirpstack/api/go/v4/gw\252\002\022Chirpstack.Gateway' - _globals['_GATEWAYSTATS_METADATAENTRY']._options = None - _globals['_GATEWAYSTATS_METADATAENTRY']._serialized_options = b'8\001' - _globals['_GATEWAYSTATS_TXPACKETSPERFREQUENCYENTRY']._options = None - _globals['_GATEWAYSTATS_TXPACKETSPERFREQUENCYENTRY']._serialized_options = b'8\001' - _globals['_GATEWAYSTATS_RXPACKETSPERFREQUENCYENTRY']._options = None - _globals['_GATEWAYSTATS_RXPACKETSPERFREQUENCYENTRY']._serialized_options = b'8\001' - _globals['_GATEWAYSTATS_TXPACKETSPERSTATUSENTRY']._options = None - _globals['_GATEWAYSTATS_TXPACKETSPERSTATUSENTRY']._serialized_options = b'8\001' - _globals['_UPLINKRXINFOLEGACY_METADATAENTRY']._options = None - _globals['_UPLINKRXINFOLEGACY_METADATAENTRY']._serialized_options = b'8\001' - _globals['_UPLINKRXINFO_METADATAENTRY']._options = None - _globals['_UPLINKRXINFO_METADATAENTRY']._serialized_options = b'8\001' - _globals['_GATEWAYCOMMANDEXECREQUEST_ENVIRONMENTENTRY']._options = None - _globals['_GATEWAYCOMMANDEXECREQUEST_ENVIRONMENTENTRY']._serialized_options = b'8\001' - _globals['_CODERATE']._serialized_start=6528 - _globals['_CODERATE']._serialized_end=6709 - _globals['_DOWNLINKTIMING']._serialized_start=6711 - _globals['_DOWNLINKTIMING']._serialized_end=6770 - _globals['_FINETIMESTAMPTYPE']._serialized_start=6772 - _globals['_FINETIMESTAMPTYPE']._serialized_end=6827 - _globals['_CRCSTATUS']._serialized_start=6829 - _globals['_CRCSTATUS']._serialized_end=6877 - _globals['_TXACKSTATUS']._serialized_start=6880 - _globals['_TXACKSTATUS']._serialized_end=7068 - _globals['_MODULATION']._serialized_start=166 - _globals['_MODULATION']._serialized_end=315 - _globals['_UPLINKTXINFOLEGACY']._serialized_start=318 - _globals['_UPLINKTXINFOLEGACY']._serialized_end=587 - _globals['_UPLINKTXINFO']._serialized_start=589 - _globals['_UPLINKTXINFO']._serialized_end=658 - _globals['_LORAMODULATIONINFO']._serialized_start=661 - _globals['_LORAMODULATIONINFO']._serialized_end=851 - _globals['_FSKMODULATIONINFO']._serialized_start=853 - _globals['_FSKMODULATIONINFO']._serialized_end=919 - _globals['_LRFHSSMODULATIONINFO']._serialized_start=922 - _globals['_LRFHSSMODULATIONINFO']._serialized_end=1056 - _globals['_ENCRYPTEDFINETIMESTAMP']._serialized_start=1058 - _globals['_ENCRYPTEDFINETIMESTAMP']._serialized_end=1144 - _globals['_PLAINFINETIMESTAMP']._serialized_start=1146 - _globals['_PLAINFINETIMESTAMP']._serialized_end=1208 - _globals['_GATEWAYSTATS']._serialized_start=1211 - _globals['_GATEWAYSTATS']._serialized_end=2123 - _globals['_GATEWAYSTATS_METADATAENTRY']._serialized_start=1893 - _globals['_GATEWAYSTATS_METADATAENTRY']._serialized_end=1940 - _globals['_GATEWAYSTATS_TXPACKETSPERFREQUENCYENTRY']._serialized_start=1942 - _globals['_GATEWAYSTATS_TXPACKETSPERFREQUENCYENTRY']._serialized_end=2002 - _globals['_GATEWAYSTATS_RXPACKETSPERFREQUENCYENTRY']._serialized_start=2004 - _globals['_GATEWAYSTATS_RXPACKETSPERFREQUENCYENTRY']._serialized_end=2064 - _globals['_GATEWAYSTATS_TXPACKETSPERSTATUSENTRY']._serialized_start=2066 - _globals['_GATEWAYSTATS_TXPACKETSPERSTATUSENTRY']._serialized_end=2123 - _globals['_PERMODULATIONCOUNT']._serialized_start=2125 - _globals['_PERMODULATIONCOUNT']._serialized_end=2196 - _globals['_UPLINKRXINFOLEGACY']._serialized_start=2199 - _globals['_UPLINKRXINFOLEGACY']._serialized_end=2839 - _globals['_UPLINKRXINFOLEGACY_METADATAENTRY']._serialized_start=1893 - _globals['_UPLINKRXINFOLEGACY_METADATAENTRY']._serialized_end=1940 - _globals['_UPLINKRXINFO']._serialized_start=2842 - _globals['_UPLINKRXINFO']._serialized_end=3385 - _globals['_UPLINKRXINFO_METADATAENTRY']._serialized_start=1893 - _globals['_UPLINKRXINFO_METADATAENTRY']._serialized_end=1940 - _globals['_DOWNLINKTXINFOLEGACY']._serialized_start=3388 - _globals['_DOWNLINKTXINFOLEGACY']._serialized_end=3902 - _globals['_DOWNLINKTXINFO']._serialized_start=3905 - _globals['_DOWNLINKTXINFO']._serialized_end=4068 - _globals['_TIMING']._serialized_start=4071 - _globals['_TIMING']._serialized_end=4226 - _globals['_IMMEDIATELYTIMINGINFO']._serialized_start=4228 - _globals['_IMMEDIATELYTIMINGINFO']._serialized_end=4251 - _globals['_DELAYTIMINGINFO']._serialized_start=4253 - _globals['_DELAYTIMINGINFO']._serialized_end=4312 - _globals['_GPSEPOCHTIMINGINFO']._serialized_start=4314 - _globals['_GPSEPOCHTIMINGINFO']._serialized_end=4391 - _globals['_UPLINKFRAME']._serialized_start=4394 - _globals['_UPLINKFRAME']._serialized_end=4594 - _globals['_UPLINKFRAMESET']._serialized_start=4596 - _globals['_UPLINKFRAMESET']._serialized_end=4703 - _globals['_DOWNLINKFRAME']._serialized_start=4706 - _globals['_DOWNLINKFRAME']._serialized_end=4855 - _globals['_DOWNLINKFRAMEITEM']._serialized_start=4857 - _globals['_DOWNLINKFRAMEITEM']._serialized_end=4984 - _globals['_DOWNLINKTXACK']._serialized_start=4987 - _globals['_DOWNLINKTXACK']._serialized_end=5136 - _globals['_DOWNLINKTXACKITEM']._serialized_start=5138 - _globals['_DOWNLINKTXACKITEM']._serialized_end=5190 - _globals['_GATEWAYCONFIGURATION']._serialized_start=5193 - _globals['_GATEWAYCONFIGURATION']._serialized_end=5374 - _globals['_CHANNELCONFIGURATION']._serialized_start=5377 - _globals['_CHANNELCONFIGURATION']._serialized_end=5640 - _globals['_LORAMODULATIONCONFIG']._serialized_start=5642 - _globals['_LORAMODULATIONCONFIG']._serialized_end=5736 - _globals['_FSKMODULATIONCONFIG']._serialized_start=5738 - _globals['_FSKMODULATIONCONFIG']._serialized_end=5821 - _globals['_GATEWAYCOMMANDEXECREQUEST']._serialized_start=5824 - _globals['_GATEWAYCOMMANDEXECREQUEST']._serialized_end=6068 - _globals['_GATEWAYCOMMANDEXECREQUEST_ENVIRONMENTENTRY']._serialized_start=6018 - _globals['_GATEWAYCOMMANDEXECREQUEST_ENVIRONMENTENTRY']._serialized_end=6068 - _globals['_GATEWAYCOMMANDEXECRESPONSE']._serialized_start=6071 - _globals['_GATEWAYCOMMANDEXECRESPONSE']._serialized_end=6210 - _globals['_RAWPACKETFORWARDEREVENT']._serialized_start=6212 - _globals['_RAWPACKETFORWARDEREVENT']._serialized_end=6301 - _globals['_RAWPACKETFORWARDERCOMMAND']._serialized_start=6303 - _globals['_RAWPACKETFORWARDERCOMMAND']._serialized_end=6394 - _globals['_CONNSTATE']._serialized_start=6397 - _globals['_CONNSTATE']._serialized_end=6525 - _globals['_CONNSTATE_STATE']._serialized_start=6493 - _globals['_CONNSTATE_STATE']._serialized_end=6525 -# @@protoc_insertion_point(module_scope) diff --git a/api/python/src/chirpstack_api/gw/gw_pb2.pyi b/api/python/src/chirpstack_api/gw/gw_pb2.pyi deleted file mode 100644 index 7a7084c9..00000000 --- a/api/python/src/chirpstack_api/gw/gw_pb2.pyi +++ /dev/null @@ -1,603 +0,0 @@ -from chirpstack_api.common import common_pb2 as _common_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf import struct_pb2 as _struct_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class CodeRate(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - CR_UNDEFINED: _ClassVar[CodeRate] - CR_4_5: _ClassVar[CodeRate] - CR_4_6: _ClassVar[CodeRate] - CR_4_7: _ClassVar[CodeRate] - CR_4_8: _ClassVar[CodeRate] - CR_3_8: _ClassVar[CodeRate] - CR_2_6: _ClassVar[CodeRate] - CR_1_4: _ClassVar[CodeRate] - CR_1_6: _ClassVar[CodeRate] - CR_5_6: _ClassVar[CodeRate] - CR_LI_4_5: _ClassVar[CodeRate] - CR_LI_4_6: _ClassVar[CodeRate] - CR_LI_4_8: _ClassVar[CodeRate] - -class DownlinkTiming(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - IMMEDIATELY: _ClassVar[DownlinkTiming] - DELAY: _ClassVar[DownlinkTiming] - GPS_EPOCH: _ClassVar[DownlinkTiming] - -class FineTimestampType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - NONE: _ClassVar[FineTimestampType] - ENCRYPTED: _ClassVar[FineTimestampType] - PLAIN: _ClassVar[FineTimestampType] - -class CRCStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - NO_CRC: _ClassVar[CRCStatus] - BAD_CRC: _ClassVar[CRCStatus] - CRC_OK: _ClassVar[CRCStatus] - -class TxAckStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - IGNORED: _ClassVar[TxAckStatus] - OK: _ClassVar[TxAckStatus] - TOO_LATE: _ClassVar[TxAckStatus] - TOO_EARLY: _ClassVar[TxAckStatus] - COLLISION_PACKET: _ClassVar[TxAckStatus] - COLLISION_BEACON: _ClassVar[TxAckStatus] - TX_FREQ: _ClassVar[TxAckStatus] - TX_POWER: _ClassVar[TxAckStatus] - GPS_UNLOCKED: _ClassVar[TxAckStatus] - QUEUE_FULL: _ClassVar[TxAckStatus] - INTERNAL_ERROR: _ClassVar[TxAckStatus] -CR_UNDEFINED: CodeRate -CR_4_5: CodeRate -CR_4_6: CodeRate -CR_4_7: CodeRate -CR_4_8: CodeRate -CR_3_8: CodeRate -CR_2_6: CodeRate -CR_1_4: CodeRate -CR_1_6: CodeRate -CR_5_6: CodeRate -CR_LI_4_5: CodeRate -CR_LI_4_6: CodeRate -CR_LI_4_8: CodeRate -IMMEDIATELY: DownlinkTiming -DELAY: DownlinkTiming -GPS_EPOCH: DownlinkTiming -NONE: FineTimestampType -ENCRYPTED: FineTimestampType -PLAIN: FineTimestampType -NO_CRC: CRCStatus -BAD_CRC: CRCStatus -CRC_OK: CRCStatus -IGNORED: TxAckStatus -OK: TxAckStatus -TOO_LATE: TxAckStatus -TOO_EARLY: TxAckStatus -COLLISION_PACKET: TxAckStatus -COLLISION_BEACON: TxAckStatus -TX_FREQ: TxAckStatus -TX_POWER: TxAckStatus -GPS_UNLOCKED: TxAckStatus -QUEUE_FULL: TxAckStatus -INTERNAL_ERROR: TxAckStatus - -class Modulation(_message.Message): - __slots__ = ("lora", "fsk", "lr_fhss") - LORA_FIELD_NUMBER: _ClassVar[int] - FSK_FIELD_NUMBER: _ClassVar[int] - LR_FHSS_FIELD_NUMBER: _ClassVar[int] - lora: LoraModulationInfo - fsk: FskModulationInfo - lr_fhss: LrFhssModulationInfo - def __init__(self, lora: _Optional[_Union[LoraModulationInfo, _Mapping]] = ..., fsk: _Optional[_Union[FskModulationInfo, _Mapping]] = ..., lr_fhss: _Optional[_Union[LrFhssModulationInfo, _Mapping]] = ...) -> None: ... - -class UplinkTxInfoLegacy(_message.Message): - __slots__ = ("frequency", "modulation", "lora_modulation_info", "fsk_modulation_info", "lr_fhss_modulation_info") - FREQUENCY_FIELD_NUMBER: _ClassVar[int] - MODULATION_FIELD_NUMBER: _ClassVar[int] - LORA_MODULATION_INFO_FIELD_NUMBER: _ClassVar[int] - FSK_MODULATION_INFO_FIELD_NUMBER: _ClassVar[int] - LR_FHSS_MODULATION_INFO_FIELD_NUMBER: _ClassVar[int] - frequency: int - modulation: _common_pb2.Modulation - lora_modulation_info: LoraModulationInfo - fsk_modulation_info: FskModulationInfo - lr_fhss_modulation_info: LrFhssModulationInfo - def __init__(self, frequency: _Optional[int] = ..., modulation: _Optional[_Union[_common_pb2.Modulation, str]] = ..., lora_modulation_info: _Optional[_Union[LoraModulationInfo, _Mapping]] = ..., fsk_modulation_info: _Optional[_Union[FskModulationInfo, _Mapping]] = ..., lr_fhss_modulation_info: _Optional[_Union[LrFhssModulationInfo, _Mapping]] = ...) -> None: ... - -class UplinkTxInfo(_message.Message): - __slots__ = ("frequency", "modulation") - FREQUENCY_FIELD_NUMBER: _ClassVar[int] - MODULATION_FIELD_NUMBER: _ClassVar[int] - frequency: int - modulation: Modulation - def __init__(self, frequency: _Optional[int] = ..., modulation: _Optional[_Union[Modulation, _Mapping]] = ...) -> None: ... - -class LoraModulationInfo(_message.Message): - __slots__ = ("bandwidth", "spreading_factor", "code_rate_legacy", "code_rate", "polarization_inversion", "preamble", "no_crc") - BANDWIDTH_FIELD_NUMBER: _ClassVar[int] - SPREADING_FACTOR_FIELD_NUMBER: _ClassVar[int] - CODE_RATE_LEGACY_FIELD_NUMBER: _ClassVar[int] - CODE_RATE_FIELD_NUMBER: _ClassVar[int] - POLARIZATION_INVERSION_FIELD_NUMBER: _ClassVar[int] - PREAMBLE_FIELD_NUMBER: _ClassVar[int] - NO_CRC_FIELD_NUMBER: _ClassVar[int] - bandwidth: int - spreading_factor: int - code_rate_legacy: str - code_rate: CodeRate - polarization_inversion: bool - preamble: int - no_crc: bool - def __init__(self, bandwidth: _Optional[int] = ..., spreading_factor: _Optional[int] = ..., code_rate_legacy: _Optional[str] = ..., code_rate: _Optional[_Union[CodeRate, str]] = ..., polarization_inversion: bool = ..., preamble: _Optional[int] = ..., no_crc: bool = ...) -> None: ... - -class FskModulationInfo(_message.Message): - __slots__ = ("frequency_deviation", "datarate") - FREQUENCY_DEVIATION_FIELD_NUMBER: _ClassVar[int] - DATARATE_FIELD_NUMBER: _ClassVar[int] - frequency_deviation: int - datarate: int - def __init__(self, frequency_deviation: _Optional[int] = ..., datarate: _Optional[int] = ...) -> None: ... - -class LrFhssModulationInfo(_message.Message): - __slots__ = ("operating_channel_width", "code_rate_legacy", "code_rate", "grid_steps") - OPERATING_CHANNEL_WIDTH_FIELD_NUMBER: _ClassVar[int] - CODE_RATE_LEGACY_FIELD_NUMBER: _ClassVar[int] - CODE_RATE_FIELD_NUMBER: _ClassVar[int] - GRID_STEPS_FIELD_NUMBER: _ClassVar[int] - operating_channel_width: int - code_rate_legacy: str - code_rate: CodeRate - grid_steps: int - def __init__(self, operating_channel_width: _Optional[int] = ..., code_rate_legacy: _Optional[str] = ..., code_rate: _Optional[_Union[CodeRate, str]] = ..., grid_steps: _Optional[int] = ...) -> None: ... - -class EncryptedFineTimestamp(_message.Message): - __slots__ = ("aes_key_index", "encrypted_ns", "fpga_id") - AES_KEY_INDEX_FIELD_NUMBER: _ClassVar[int] - ENCRYPTED_NS_FIELD_NUMBER: _ClassVar[int] - FPGA_ID_FIELD_NUMBER: _ClassVar[int] - aes_key_index: int - encrypted_ns: bytes - fpga_id: bytes - def __init__(self, aes_key_index: _Optional[int] = ..., encrypted_ns: _Optional[bytes] = ..., fpga_id: _Optional[bytes] = ...) -> None: ... - -class PlainFineTimestamp(_message.Message): - __slots__ = ("time",) - TIME_FIELD_NUMBER: _ClassVar[int] - time: _timestamp_pb2.Timestamp - def __init__(self, time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class GatewayStats(_message.Message): - __slots__ = ("gateway_id_legacy", "gateway_id", "time", "location", "config_version", "rx_packets_received", "rx_packets_received_ok", "tx_packets_received", "tx_packets_emitted", "metadata", "tx_packets_per_frequency", "rx_packets_per_frequency", "tx_packets_per_modulation", "rx_packets_per_modulation", "tx_packets_per_status") - class MetadataEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - class TxPacketsPerFrequencyEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: int - value: int - def __init__(self, key: _Optional[int] = ..., value: _Optional[int] = ...) -> None: ... - class RxPacketsPerFrequencyEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: int - value: int - def __init__(self, key: _Optional[int] = ..., value: _Optional[int] = ...) -> None: ... - class TxPacketsPerStatusEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: int - def __init__(self, key: _Optional[str] = ..., value: _Optional[int] = ...) -> None: ... - GATEWAY_ID_LEGACY_FIELD_NUMBER: _ClassVar[int] - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - TIME_FIELD_NUMBER: _ClassVar[int] - LOCATION_FIELD_NUMBER: _ClassVar[int] - CONFIG_VERSION_FIELD_NUMBER: _ClassVar[int] - RX_PACKETS_RECEIVED_FIELD_NUMBER: _ClassVar[int] - RX_PACKETS_RECEIVED_OK_FIELD_NUMBER: _ClassVar[int] - TX_PACKETS_RECEIVED_FIELD_NUMBER: _ClassVar[int] - TX_PACKETS_EMITTED_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - TX_PACKETS_PER_FREQUENCY_FIELD_NUMBER: _ClassVar[int] - RX_PACKETS_PER_FREQUENCY_FIELD_NUMBER: _ClassVar[int] - TX_PACKETS_PER_MODULATION_FIELD_NUMBER: _ClassVar[int] - RX_PACKETS_PER_MODULATION_FIELD_NUMBER: _ClassVar[int] - TX_PACKETS_PER_STATUS_FIELD_NUMBER: _ClassVar[int] - gateway_id_legacy: bytes - gateway_id: str - time: _timestamp_pb2.Timestamp - location: _common_pb2.Location - config_version: str - rx_packets_received: int - rx_packets_received_ok: int - tx_packets_received: int - tx_packets_emitted: int - metadata: _containers.ScalarMap[str, str] - tx_packets_per_frequency: _containers.ScalarMap[int, int] - rx_packets_per_frequency: _containers.ScalarMap[int, int] - tx_packets_per_modulation: _containers.RepeatedCompositeFieldContainer[PerModulationCount] - rx_packets_per_modulation: _containers.RepeatedCompositeFieldContainer[PerModulationCount] - tx_packets_per_status: _containers.ScalarMap[str, int] - def __init__(self, gateway_id_legacy: _Optional[bytes] = ..., gateway_id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., location: _Optional[_Union[_common_pb2.Location, _Mapping]] = ..., config_version: _Optional[str] = ..., rx_packets_received: _Optional[int] = ..., rx_packets_received_ok: _Optional[int] = ..., tx_packets_received: _Optional[int] = ..., tx_packets_emitted: _Optional[int] = ..., metadata: _Optional[_Mapping[str, str]] = ..., tx_packets_per_frequency: _Optional[_Mapping[int, int]] = ..., rx_packets_per_frequency: _Optional[_Mapping[int, int]] = ..., tx_packets_per_modulation: _Optional[_Iterable[_Union[PerModulationCount, _Mapping]]] = ..., rx_packets_per_modulation: _Optional[_Iterable[_Union[PerModulationCount, _Mapping]]] = ..., tx_packets_per_status: _Optional[_Mapping[str, int]] = ...) -> None: ... - -class PerModulationCount(_message.Message): - __slots__ = ("modulation", "count") - MODULATION_FIELD_NUMBER: _ClassVar[int] - COUNT_FIELD_NUMBER: _ClassVar[int] - modulation: Modulation - count: int - def __init__(self, modulation: _Optional[_Union[Modulation, _Mapping]] = ..., count: _Optional[int] = ...) -> None: ... - -class UplinkRxInfoLegacy(_message.Message): - __slots__ = ("gateway_id", "time", "time_since_gps_epoch", "rssi", "lora_snr", "channel", "rf_chain", "board", "antenna", "location", "fine_timestamp_type", "encrypted_fine_timestamp", "plain_fine_timestamp", "context", "uplink_id", "crc_status", "metadata") - class MetadataEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - TIME_FIELD_NUMBER: _ClassVar[int] - TIME_SINCE_GPS_EPOCH_FIELD_NUMBER: _ClassVar[int] - RSSI_FIELD_NUMBER: _ClassVar[int] - LORA_SNR_FIELD_NUMBER: _ClassVar[int] - CHANNEL_FIELD_NUMBER: _ClassVar[int] - RF_CHAIN_FIELD_NUMBER: _ClassVar[int] - BOARD_FIELD_NUMBER: _ClassVar[int] - ANTENNA_FIELD_NUMBER: _ClassVar[int] - LOCATION_FIELD_NUMBER: _ClassVar[int] - FINE_TIMESTAMP_TYPE_FIELD_NUMBER: _ClassVar[int] - ENCRYPTED_FINE_TIMESTAMP_FIELD_NUMBER: _ClassVar[int] - PLAIN_FINE_TIMESTAMP_FIELD_NUMBER: _ClassVar[int] - CONTEXT_FIELD_NUMBER: _ClassVar[int] - UPLINK_ID_FIELD_NUMBER: _ClassVar[int] - CRC_STATUS_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - gateway_id: bytes - time: _timestamp_pb2.Timestamp - time_since_gps_epoch: _duration_pb2.Duration - rssi: int - lora_snr: float - channel: int - rf_chain: int - board: int - antenna: int - location: _common_pb2.Location - fine_timestamp_type: FineTimestampType - encrypted_fine_timestamp: EncryptedFineTimestamp - plain_fine_timestamp: PlainFineTimestamp - context: bytes - uplink_id: bytes - crc_status: CRCStatus - metadata: _containers.ScalarMap[str, str] - def __init__(self, gateway_id: _Optional[bytes] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., time_since_gps_epoch: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., rssi: _Optional[int] = ..., lora_snr: _Optional[float] = ..., channel: _Optional[int] = ..., rf_chain: _Optional[int] = ..., board: _Optional[int] = ..., antenna: _Optional[int] = ..., location: _Optional[_Union[_common_pb2.Location, _Mapping]] = ..., fine_timestamp_type: _Optional[_Union[FineTimestampType, str]] = ..., encrypted_fine_timestamp: _Optional[_Union[EncryptedFineTimestamp, _Mapping]] = ..., plain_fine_timestamp: _Optional[_Union[PlainFineTimestamp, _Mapping]] = ..., context: _Optional[bytes] = ..., uplink_id: _Optional[bytes] = ..., crc_status: _Optional[_Union[CRCStatus, str]] = ..., metadata: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class UplinkRxInfo(_message.Message): - __slots__ = ("gateway_id", "uplink_id", "gw_time", "ns_time", "time_since_gps_epoch", "fine_time_since_gps_epoch", "rssi", "snr", "channel", "rf_chain", "board", "antenna", "location", "context", "metadata", "crc_status") - class MetadataEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - UPLINK_ID_FIELD_NUMBER: _ClassVar[int] - GW_TIME_FIELD_NUMBER: _ClassVar[int] - NS_TIME_FIELD_NUMBER: _ClassVar[int] - TIME_SINCE_GPS_EPOCH_FIELD_NUMBER: _ClassVar[int] - FINE_TIME_SINCE_GPS_EPOCH_FIELD_NUMBER: _ClassVar[int] - RSSI_FIELD_NUMBER: _ClassVar[int] - SNR_FIELD_NUMBER: _ClassVar[int] - CHANNEL_FIELD_NUMBER: _ClassVar[int] - RF_CHAIN_FIELD_NUMBER: _ClassVar[int] - BOARD_FIELD_NUMBER: _ClassVar[int] - ANTENNA_FIELD_NUMBER: _ClassVar[int] - LOCATION_FIELD_NUMBER: _ClassVar[int] - CONTEXT_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - CRC_STATUS_FIELD_NUMBER: _ClassVar[int] - gateway_id: str - uplink_id: int - gw_time: _timestamp_pb2.Timestamp - ns_time: _timestamp_pb2.Timestamp - time_since_gps_epoch: _duration_pb2.Duration - fine_time_since_gps_epoch: _duration_pb2.Duration - rssi: int - snr: float - channel: int - rf_chain: int - board: int - antenna: int - location: _common_pb2.Location - context: bytes - metadata: _containers.ScalarMap[str, str] - crc_status: CRCStatus - def __init__(self, gateway_id: _Optional[str] = ..., uplink_id: _Optional[int] = ..., gw_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., ns_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., time_since_gps_epoch: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., fine_time_since_gps_epoch: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., rssi: _Optional[int] = ..., snr: _Optional[float] = ..., channel: _Optional[int] = ..., rf_chain: _Optional[int] = ..., board: _Optional[int] = ..., antenna: _Optional[int] = ..., location: _Optional[_Union[_common_pb2.Location, _Mapping]] = ..., context: _Optional[bytes] = ..., metadata: _Optional[_Mapping[str, str]] = ..., crc_status: _Optional[_Union[CRCStatus, str]] = ...) -> None: ... - -class DownlinkTxInfoLegacy(_message.Message): - __slots__ = ("gateway_id", "frequency", "power", "modulation", "lora_modulation_info", "fsk_modulation_info", "board", "antenna", "timing", "immediately_timing_info", "delay_timing_info", "gps_epoch_timing_info", "context") - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - FREQUENCY_FIELD_NUMBER: _ClassVar[int] - POWER_FIELD_NUMBER: _ClassVar[int] - MODULATION_FIELD_NUMBER: _ClassVar[int] - LORA_MODULATION_INFO_FIELD_NUMBER: _ClassVar[int] - FSK_MODULATION_INFO_FIELD_NUMBER: _ClassVar[int] - BOARD_FIELD_NUMBER: _ClassVar[int] - ANTENNA_FIELD_NUMBER: _ClassVar[int] - TIMING_FIELD_NUMBER: _ClassVar[int] - IMMEDIATELY_TIMING_INFO_FIELD_NUMBER: _ClassVar[int] - DELAY_TIMING_INFO_FIELD_NUMBER: _ClassVar[int] - GPS_EPOCH_TIMING_INFO_FIELD_NUMBER: _ClassVar[int] - CONTEXT_FIELD_NUMBER: _ClassVar[int] - gateway_id: bytes - frequency: int - power: int - modulation: _common_pb2.Modulation - lora_modulation_info: LoraModulationInfo - fsk_modulation_info: FskModulationInfo - board: int - antenna: int - timing: DownlinkTiming - immediately_timing_info: ImmediatelyTimingInfo - delay_timing_info: DelayTimingInfo - gps_epoch_timing_info: GPSEpochTimingInfo - context: bytes - def __init__(self, gateway_id: _Optional[bytes] = ..., frequency: _Optional[int] = ..., power: _Optional[int] = ..., modulation: _Optional[_Union[_common_pb2.Modulation, str]] = ..., lora_modulation_info: _Optional[_Union[LoraModulationInfo, _Mapping]] = ..., fsk_modulation_info: _Optional[_Union[FskModulationInfo, _Mapping]] = ..., board: _Optional[int] = ..., antenna: _Optional[int] = ..., timing: _Optional[_Union[DownlinkTiming, str]] = ..., immediately_timing_info: _Optional[_Union[ImmediatelyTimingInfo, _Mapping]] = ..., delay_timing_info: _Optional[_Union[DelayTimingInfo, _Mapping]] = ..., gps_epoch_timing_info: _Optional[_Union[GPSEpochTimingInfo, _Mapping]] = ..., context: _Optional[bytes] = ...) -> None: ... - -class DownlinkTxInfo(_message.Message): - __slots__ = ("frequency", "power", "modulation", "board", "antenna", "timing", "context") - FREQUENCY_FIELD_NUMBER: _ClassVar[int] - POWER_FIELD_NUMBER: _ClassVar[int] - MODULATION_FIELD_NUMBER: _ClassVar[int] - BOARD_FIELD_NUMBER: _ClassVar[int] - ANTENNA_FIELD_NUMBER: _ClassVar[int] - TIMING_FIELD_NUMBER: _ClassVar[int] - CONTEXT_FIELD_NUMBER: _ClassVar[int] - frequency: int - power: int - modulation: Modulation - board: int - antenna: int - timing: Timing - context: bytes - def __init__(self, frequency: _Optional[int] = ..., power: _Optional[int] = ..., modulation: _Optional[_Union[Modulation, _Mapping]] = ..., board: _Optional[int] = ..., antenna: _Optional[int] = ..., timing: _Optional[_Union[Timing, _Mapping]] = ..., context: _Optional[bytes] = ...) -> None: ... - -class Timing(_message.Message): - __slots__ = ("immediately", "delay", "gps_epoch") - IMMEDIATELY_FIELD_NUMBER: _ClassVar[int] - DELAY_FIELD_NUMBER: _ClassVar[int] - GPS_EPOCH_FIELD_NUMBER: _ClassVar[int] - immediately: ImmediatelyTimingInfo - delay: DelayTimingInfo - gps_epoch: GPSEpochTimingInfo - def __init__(self, immediately: _Optional[_Union[ImmediatelyTimingInfo, _Mapping]] = ..., delay: _Optional[_Union[DelayTimingInfo, _Mapping]] = ..., gps_epoch: _Optional[_Union[GPSEpochTimingInfo, _Mapping]] = ...) -> None: ... - -class ImmediatelyTimingInfo(_message.Message): - __slots__ = () - def __init__(self) -> None: ... - -class DelayTimingInfo(_message.Message): - __slots__ = ("delay",) - DELAY_FIELD_NUMBER: _ClassVar[int] - delay: _duration_pb2.Duration - def __init__(self, delay: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... - -class GPSEpochTimingInfo(_message.Message): - __slots__ = ("time_since_gps_epoch",) - TIME_SINCE_GPS_EPOCH_FIELD_NUMBER: _ClassVar[int] - time_since_gps_epoch: _duration_pb2.Duration - def __init__(self, time_since_gps_epoch: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... - -class UplinkFrame(_message.Message): - __slots__ = ("phy_payload", "tx_info_legacy", "rx_info_legacy", "tx_info", "rx_info") - PHY_PAYLOAD_FIELD_NUMBER: _ClassVar[int] - TX_INFO_LEGACY_FIELD_NUMBER: _ClassVar[int] - RX_INFO_LEGACY_FIELD_NUMBER: _ClassVar[int] - TX_INFO_FIELD_NUMBER: _ClassVar[int] - RX_INFO_FIELD_NUMBER: _ClassVar[int] - phy_payload: bytes - tx_info_legacy: UplinkTxInfoLegacy - rx_info_legacy: UplinkRxInfoLegacy - tx_info: UplinkTxInfo - rx_info: UplinkRxInfo - def __init__(self, phy_payload: _Optional[bytes] = ..., tx_info_legacy: _Optional[_Union[UplinkTxInfoLegacy, _Mapping]] = ..., rx_info_legacy: _Optional[_Union[UplinkRxInfoLegacy, _Mapping]] = ..., tx_info: _Optional[_Union[UplinkTxInfo, _Mapping]] = ..., rx_info: _Optional[_Union[UplinkRxInfo, _Mapping]] = ...) -> None: ... - -class UplinkFrameSet(_message.Message): - __slots__ = ("phy_payload", "tx_info", "rx_info") - PHY_PAYLOAD_FIELD_NUMBER: _ClassVar[int] - TX_INFO_FIELD_NUMBER: _ClassVar[int] - RX_INFO_FIELD_NUMBER: _ClassVar[int] - phy_payload: bytes - tx_info: UplinkTxInfo - rx_info: _containers.RepeatedCompositeFieldContainer[UplinkRxInfo] - def __init__(self, phy_payload: _Optional[bytes] = ..., tx_info: _Optional[_Union[UplinkTxInfo, _Mapping]] = ..., rx_info: _Optional[_Iterable[_Union[UplinkRxInfo, _Mapping]]] = ...) -> None: ... - -class DownlinkFrame(_message.Message): - __slots__ = ("downlink_id", "downlink_id_legacy", "items", "gateway_id_legacy", "gateway_id") - DOWNLINK_ID_FIELD_NUMBER: _ClassVar[int] - DOWNLINK_ID_LEGACY_FIELD_NUMBER: _ClassVar[int] - ITEMS_FIELD_NUMBER: _ClassVar[int] - GATEWAY_ID_LEGACY_FIELD_NUMBER: _ClassVar[int] - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - downlink_id: int - downlink_id_legacy: bytes - items: _containers.RepeatedCompositeFieldContainer[DownlinkFrameItem] - gateway_id_legacy: bytes - gateway_id: str - def __init__(self, downlink_id: _Optional[int] = ..., downlink_id_legacy: _Optional[bytes] = ..., items: _Optional[_Iterable[_Union[DownlinkFrameItem, _Mapping]]] = ..., gateway_id_legacy: _Optional[bytes] = ..., gateway_id: _Optional[str] = ...) -> None: ... - -class DownlinkFrameItem(_message.Message): - __slots__ = ("phy_payload", "tx_info_legacy", "tx_info") - PHY_PAYLOAD_FIELD_NUMBER: _ClassVar[int] - TX_INFO_LEGACY_FIELD_NUMBER: _ClassVar[int] - TX_INFO_FIELD_NUMBER: _ClassVar[int] - phy_payload: bytes - tx_info_legacy: DownlinkTxInfoLegacy - tx_info: DownlinkTxInfo - def __init__(self, phy_payload: _Optional[bytes] = ..., tx_info_legacy: _Optional[_Union[DownlinkTxInfoLegacy, _Mapping]] = ..., tx_info: _Optional[_Union[DownlinkTxInfo, _Mapping]] = ...) -> None: ... - -class DownlinkTxAck(_message.Message): - __slots__ = ("gateway_id_legacy", "gateway_id", "downlink_id", "downlink_id_legacy", "items") - GATEWAY_ID_LEGACY_FIELD_NUMBER: _ClassVar[int] - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - DOWNLINK_ID_FIELD_NUMBER: _ClassVar[int] - DOWNLINK_ID_LEGACY_FIELD_NUMBER: _ClassVar[int] - ITEMS_FIELD_NUMBER: _ClassVar[int] - gateway_id_legacy: bytes - gateway_id: str - downlink_id: int - downlink_id_legacy: bytes - items: _containers.RepeatedCompositeFieldContainer[DownlinkTxAckItem] - def __init__(self, gateway_id_legacy: _Optional[bytes] = ..., gateway_id: _Optional[str] = ..., downlink_id: _Optional[int] = ..., downlink_id_legacy: _Optional[bytes] = ..., items: _Optional[_Iterable[_Union[DownlinkTxAckItem, _Mapping]]] = ...) -> None: ... - -class DownlinkTxAckItem(_message.Message): - __slots__ = ("status",) - STATUS_FIELD_NUMBER: _ClassVar[int] - status: TxAckStatus - def __init__(self, status: _Optional[_Union[TxAckStatus, str]] = ...) -> None: ... - -class GatewayConfiguration(_message.Message): - __slots__ = ("gateway_id_legacy", "gateway_id", "version", "channels", "stats_interval") - GATEWAY_ID_LEGACY_FIELD_NUMBER: _ClassVar[int] - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - VERSION_FIELD_NUMBER: _ClassVar[int] - CHANNELS_FIELD_NUMBER: _ClassVar[int] - STATS_INTERVAL_FIELD_NUMBER: _ClassVar[int] - gateway_id_legacy: bytes - gateway_id: str - version: str - channels: _containers.RepeatedCompositeFieldContainer[ChannelConfiguration] - stats_interval: _duration_pb2.Duration - def __init__(self, gateway_id_legacy: _Optional[bytes] = ..., gateway_id: _Optional[str] = ..., version: _Optional[str] = ..., channels: _Optional[_Iterable[_Union[ChannelConfiguration, _Mapping]]] = ..., stats_interval: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... - -class ChannelConfiguration(_message.Message): - __slots__ = ("frequency", "modulation_legacy", "lora_modulation_config", "fsk_modulation_config", "board", "demodulator") - FREQUENCY_FIELD_NUMBER: _ClassVar[int] - MODULATION_LEGACY_FIELD_NUMBER: _ClassVar[int] - LORA_MODULATION_CONFIG_FIELD_NUMBER: _ClassVar[int] - FSK_MODULATION_CONFIG_FIELD_NUMBER: _ClassVar[int] - BOARD_FIELD_NUMBER: _ClassVar[int] - DEMODULATOR_FIELD_NUMBER: _ClassVar[int] - frequency: int - modulation_legacy: _common_pb2.Modulation - lora_modulation_config: LoraModulationConfig - fsk_modulation_config: FskModulationConfig - board: int - demodulator: int - def __init__(self, frequency: _Optional[int] = ..., modulation_legacy: _Optional[_Union[_common_pb2.Modulation, str]] = ..., lora_modulation_config: _Optional[_Union[LoraModulationConfig, _Mapping]] = ..., fsk_modulation_config: _Optional[_Union[FskModulationConfig, _Mapping]] = ..., board: _Optional[int] = ..., demodulator: _Optional[int] = ...) -> None: ... - -class LoraModulationConfig(_message.Message): - __slots__ = ("bandwidth_legacy", "bandwidth", "spreading_factors") - BANDWIDTH_LEGACY_FIELD_NUMBER: _ClassVar[int] - BANDWIDTH_FIELD_NUMBER: _ClassVar[int] - SPREADING_FACTORS_FIELD_NUMBER: _ClassVar[int] - bandwidth_legacy: int - bandwidth: int - spreading_factors: _containers.RepeatedScalarFieldContainer[int] - def __init__(self, bandwidth_legacy: _Optional[int] = ..., bandwidth: _Optional[int] = ..., spreading_factors: _Optional[_Iterable[int]] = ...) -> None: ... - -class FskModulationConfig(_message.Message): - __slots__ = ("bandwidth_legacy", "bandwidth", "bitrate") - BANDWIDTH_LEGACY_FIELD_NUMBER: _ClassVar[int] - BANDWIDTH_FIELD_NUMBER: _ClassVar[int] - BITRATE_FIELD_NUMBER: _ClassVar[int] - bandwidth_legacy: int - bandwidth: int - bitrate: int - def __init__(self, bandwidth_legacy: _Optional[int] = ..., bandwidth: _Optional[int] = ..., bitrate: _Optional[int] = ...) -> None: ... - -class GatewayCommandExecRequest(_message.Message): - __slots__ = ("gateway_id_legacy", "gateway_id", "command", "exec_id", "stdin", "environment") - class EnvironmentEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - GATEWAY_ID_LEGACY_FIELD_NUMBER: _ClassVar[int] - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - COMMAND_FIELD_NUMBER: _ClassVar[int] - EXEC_ID_FIELD_NUMBER: _ClassVar[int] - STDIN_FIELD_NUMBER: _ClassVar[int] - ENVIRONMENT_FIELD_NUMBER: _ClassVar[int] - gateway_id_legacy: bytes - gateway_id: str - command: str - exec_id: int - stdin: bytes - environment: _containers.ScalarMap[str, str] - def __init__(self, gateway_id_legacy: _Optional[bytes] = ..., gateway_id: _Optional[str] = ..., command: _Optional[str] = ..., exec_id: _Optional[int] = ..., stdin: _Optional[bytes] = ..., environment: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class GatewayCommandExecResponse(_message.Message): - __slots__ = ("gateway_id_legacy", "gateway_id", "exec_id", "stdout", "stderr", "error") - GATEWAY_ID_LEGACY_FIELD_NUMBER: _ClassVar[int] - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - EXEC_ID_FIELD_NUMBER: _ClassVar[int] - STDOUT_FIELD_NUMBER: _ClassVar[int] - STDERR_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - gateway_id_legacy: bytes - gateway_id: str - exec_id: int - stdout: bytes - stderr: bytes - error: str - def __init__(self, gateway_id_legacy: _Optional[bytes] = ..., gateway_id: _Optional[str] = ..., exec_id: _Optional[int] = ..., stdout: _Optional[bytes] = ..., stderr: _Optional[bytes] = ..., error: _Optional[str] = ...) -> None: ... - -class RawPacketForwarderEvent(_message.Message): - __slots__ = ("gateway_id_legacy", "gateway_id", "payload") - GATEWAY_ID_LEGACY_FIELD_NUMBER: _ClassVar[int] - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - PAYLOAD_FIELD_NUMBER: _ClassVar[int] - gateway_id_legacy: bytes - gateway_id: str - payload: bytes - def __init__(self, gateway_id_legacy: _Optional[bytes] = ..., gateway_id: _Optional[str] = ..., payload: _Optional[bytes] = ...) -> None: ... - -class RawPacketForwarderCommand(_message.Message): - __slots__ = ("gateway_id_legacy", "gateway_id", "payload") - GATEWAY_ID_LEGACY_FIELD_NUMBER: _ClassVar[int] - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - PAYLOAD_FIELD_NUMBER: _ClassVar[int] - gateway_id_legacy: bytes - gateway_id: str - payload: bytes - def __init__(self, gateway_id_legacy: _Optional[bytes] = ..., gateway_id: _Optional[str] = ..., payload: _Optional[bytes] = ...) -> None: ... - -class ConnState(_message.Message): - __slots__ = ("gateway_id_legacy", "gateway_id", "state") - class State(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - OFFLINE: _ClassVar[ConnState.State] - ONLINE: _ClassVar[ConnState.State] - OFFLINE: ConnState.State - ONLINE: ConnState.State - GATEWAY_ID_LEGACY_FIELD_NUMBER: _ClassVar[int] - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - STATE_FIELD_NUMBER: _ClassVar[int] - gateway_id_legacy: bytes - gateway_id: str - state: ConnState.State - def __init__(self, gateway_id_legacy: _Optional[bytes] = ..., gateway_id: _Optional[str] = ..., state: _Optional[_Union[ConnState.State, str]] = ...) -> None: ... diff --git a/api/python/src/chirpstack_api/gw/gw_pb2_grpc.py b/api/python/src/chirpstack_api/gw/gw_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/api/python/src/chirpstack_api/gw/gw_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/api/python/src/chirpstack_api/integration/integration_pb2.py b/api/python/src/chirpstack_api/integration/integration_pb2.py deleted file mode 100644 index f6ddabf3..00000000 --- a/api/python/src/chirpstack_api/integration/integration_pb2.py +++ /dev/null @@ -1,63 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: chirpstack-api/integration/integration.proto -# Protobuf Python Version: 4.25.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2 -from chirpstack_api.gw import gw_pb2 as chirpstack__api_dot_gw_dot_gw__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,chirpstack-api/integration/integration.proto\x12\x0bintegration\x1a\"chirpstack-api/common/common.proto\x1a\x1a\x63hirpstack-api/gw/gw.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xd5\x02\n\nDeviceInfo\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x13\n\x0btenant_name\x18\x02 \x01(\t\x12\x16\n\x0e\x61pplication_id\x18\x03 \x01(\t\x12\x18\n\x10\x61pplication_name\x18\x04 \x01(\t\x12\x19\n\x11\x64\x65vice_profile_id\x18\x05 \x01(\t\x12\x1b\n\x13\x64\x65vice_profile_name\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x65vice_name\x18\x07 \x01(\t\x12\x0f\n\x07\x64\x65v_eui\x18\x08 \x01(\t\x12\x31\n\x14\x64\x65vice_class_enabled\x18\n \x01(\x0e\x32\x13.common.DeviceClass\x12/\n\x04tags\x18\t \x03(\x0b\x32!.integration.DeviceInfo.TagsEntry\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"s\n\x11UplinkRelayRxInfo\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\x12\x11\n\tfrequency\x18\x02 \x01(\r\x12\n\n\x02\x64r\x18\x03 \x01(\r\x12\x0b\n\x03snr\x18\x04 \x01(\x05\x12\x0c\n\x04rssi\x18\x05 \x01(\x05\x12\x13\n\x0bwor_channel\x18\x06 \x01(\r\"\xc8\x03\n\x0bUplinkEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\x10\n\x08\x64\x65v_addr\x18\x04 \x01(\t\x12\x0b\n\x03\x61\x64r\x18\x05 \x01(\x08\x12\n\n\x02\x64r\x18\x06 \x01(\r\x12\r\n\x05\x66_cnt\x18\x07 \x01(\r\x12\x0e\n\x06\x66_port\x18\x08 \x01(\r\x12\x11\n\tconfirmed\x18\t \x01(\x08\x12\x0c\n\x04\x64\x61ta\x18\n \x01(\x0c\x12\'\n\x06object\x18\x0b \x01(\x0b\x32\x17.google.protobuf.Struct\x12!\n\x07rx_info\x18\x0c \x03(\x0b\x32\x10.gw.UplinkRxInfo\x12!\n\x07tx_info\x18\r \x01(\x0b\x32\x10.gw.UplinkTxInfo\x12\x35\n\rrelay_rx_info\x18\x0e \x01(\x0b\x32\x1e.integration.UplinkRelayRxInfo\x12\x36\n\x13join_server_context\x18\x0f \x01(\x0b\x32\x19.common.JoinServerContext\"\xfe\x01\n\tJoinEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\x10\n\x08\x64\x65v_addr\x18\x04 \x01(\t\x12\x35\n\rrelay_rx_info\x18\x05 \x01(\x0b\x32\x1e.integration.UplinkRelayRxInfo\x12\x36\n\x13join_server_context\x18\x06 \x01(\x0b\x32\x19.common.JoinServerContext\"\xbd\x01\n\x08\x41\x63kEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\x15\n\rqueue_item_id\x18\x04 \x01(\t\x12\x14\n\x0c\x61\x63knowledged\x18\x05 \x01(\x08\x12\x12\n\nf_cnt_down\x18\x06 \x01(\r\"\xdd\x01\n\nTxAckEvent\x12\x13\n\x0b\x64ownlink_id\x18\x01 \x01(\r\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\x15\n\rqueue_item_id\x18\x04 \x01(\t\x12\x12\n\nf_cnt_down\x18\x05 \x01(\r\x12\x12\n\ngateway_id\x18\x06 \x01(\t\x12#\n\x07tx_info\x18\x07 \x01(\x0b\x32\x12.gw.DownlinkTxInfo\"\xa6\x02\n\x08LogEvent\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x02 \x01(\x0b\x32\x17.integration.DeviceInfo\x12$\n\x05level\x18\x03 \x01(\x0e\x32\x15.integration.LogLevel\x12\"\n\x04\x63ode\x18\x04 \x01(\x0e\x32\x14.integration.LogCode\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x33\n\x07\x63ontext\x18\x06 \x03(\x0b\x32\".integration.LogEvent.ContextEntry\x1a.\n\x0c\x43ontextEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe8\x01\n\x0bStatusEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\x0e\n\x06margin\x18\x05 \x01(\x05\x12\x1d\n\x15\x65xternal_power_source\x18\x06 \x01(\x08\x12!\n\x19\x62\x61ttery_level_unavailable\x18\x07 \x01(\x08\x12\x15\n\rbattery_level\x18\x08 \x01(\x02\"\xa5\x01\n\rLocationEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\"\n\x08location\x18\x04 \x01(\x0b\x32\x10.common.Location\"\xdb\x01\n\x10IntegrationEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\x18\n\x10integration_name\x18\x04 \x01(\t\x12\x12\n\nevent_type\x18\x05 \x01(\t\x12\'\n\x06object\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\"\x88\x01\n\x0f\x44ownlinkCommand\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x65v_eui\x18\x02 \x01(\t\x12\x11\n\tconfirmed\x18\x03 \x01(\x08\x12\x0e\n\x06\x66_port\x18\x04 \x01(\r\x12\x0c\n\x04\x64\x61ta\x18\x05 \x01(\x0c\x12\'\n\x06object\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct*,\n\x08LogLevel\x12\x08\n\x04INFO\x10\x00\x12\x0b\n\x07WARNING\x10\x01\x12\t\n\x05\x45RROR\x10\x02*\xea\x01\n\x07LogCode\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x19\n\x15\x44OWNLINK_PAYLOAD_SIZE\x10\x01\x12\x10\n\x0cUPLINK_CODEC\x10\x02\x12\x12\n\x0e\x44OWNLINK_CODEC\x10\x03\x12\x08\n\x04OTAA\x10\x04\x12\x16\n\x12UPLINK_F_CNT_RESET\x10\x05\x12\x0e\n\nUPLINK_MIC\x10\x06\x12\x1f\n\x1bUPLINK_F_CNT_RETRANSMISSION\x10\x07\x12\x14\n\x10\x44OWNLINK_GATEWAY\x10\x08\x12\x18\n\x14RELAY_NEW_END_DEVICE\x10\t\x12\x0e\n\nF_CNT_DOWN\x10\nB\x81\x01\n\x1dio.chirpstack.api.integrationB\x10IntegrationProtoP\x01Z3github.com/brocaar/chirpstack/api/go/v4/integration\xaa\x02\x16\x43hirpstack.Integrationb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.integration.integration_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\035io.chirpstack.api.integrationB\020IntegrationProtoP\001Z3github.com/brocaar/chirpstack/api/go/v4/integration\252\002\026Chirpstack.Integration' - _globals['_DEVICEINFO_TAGSENTRY']._options = None - _globals['_DEVICEINFO_TAGSENTRY']._serialized_options = b'8\001' - _globals['_LOGEVENT_CONTEXTENTRY']._options = None - _globals['_LOGEVENT_CONTEXTENTRY']._serialized_options = b'8\001' - _globals['_LOGLEVEL']._serialized_start=2842 - _globals['_LOGLEVEL']._serialized_end=2886 - _globals['_LOGCODE']._serialized_start=2889 - _globals['_LOGCODE']._serialized_end=3123 - _globals['_DEVICEINFO']._serialized_start=189 - _globals['_DEVICEINFO']._serialized_end=530 - _globals['_DEVICEINFO_TAGSENTRY']._serialized_start=487 - _globals['_DEVICEINFO_TAGSENTRY']._serialized_end=530 - _globals['_UPLINKRELAYRXINFO']._serialized_start=532 - _globals['_UPLINKRELAYRXINFO']._serialized_end=647 - _globals['_UPLINKEVENT']._serialized_start=650 - _globals['_UPLINKEVENT']._serialized_end=1106 - _globals['_JOINEVENT']._serialized_start=1109 - _globals['_JOINEVENT']._serialized_end=1363 - _globals['_ACKEVENT']._serialized_start=1366 - _globals['_ACKEVENT']._serialized_end=1555 - _globals['_TXACKEVENT']._serialized_start=1558 - _globals['_TXACKEVENT']._serialized_end=1779 - _globals['_LOGEVENT']._serialized_start=1782 - _globals['_LOGEVENT']._serialized_end=2076 - _globals['_LOGEVENT_CONTEXTENTRY']._serialized_start=2030 - _globals['_LOGEVENT_CONTEXTENTRY']._serialized_end=2076 - _globals['_STATUSEVENT']._serialized_start=2079 - _globals['_STATUSEVENT']._serialized_end=2311 - _globals['_LOCATIONEVENT']._serialized_start=2314 - _globals['_LOCATIONEVENT']._serialized_end=2479 - _globals['_INTEGRATIONEVENT']._serialized_start=2482 - _globals['_INTEGRATIONEVENT']._serialized_end=2701 - _globals['_DOWNLINKCOMMAND']._serialized_start=2704 - _globals['_DOWNLINKCOMMAND']._serialized_end=2840 -# @@protoc_insertion_point(module_scope) diff --git a/api/python/src/chirpstack_api/integration/integration_pb2.pyi b/api/python/src/chirpstack_api/integration/integration_pb2.pyi deleted file mode 100644 index cd4f271a..00000000 --- a/api/python/src/chirpstack_api/integration/integration_pb2.pyi +++ /dev/null @@ -1,261 +0,0 @@ -from chirpstack_api.common import common_pb2 as _common_pb2 -from chirpstack_api.gw import gw_pb2 as _gw_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import struct_pb2 as _struct_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class LogLevel(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - INFO: _ClassVar[LogLevel] - WARNING: _ClassVar[LogLevel] - ERROR: _ClassVar[LogLevel] - -class LogCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - UNKNOWN: _ClassVar[LogCode] - DOWNLINK_PAYLOAD_SIZE: _ClassVar[LogCode] - UPLINK_CODEC: _ClassVar[LogCode] - DOWNLINK_CODEC: _ClassVar[LogCode] - OTAA: _ClassVar[LogCode] - UPLINK_F_CNT_RESET: _ClassVar[LogCode] - UPLINK_MIC: _ClassVar[LogCode] - UPLINK_F_CNT_RETRANSMISSION: _ClassVar[LogCode] - DOWNLINK_GATEWAY: _ClassVar[LogCode] - RELAY_NEW_END_DEVICE: _ClassVar[LogCode] - F_CNT_DOWN: _ClassVar[LogCode] -INFO: LogLevel -WARNING: LogLevel -ERROR: LogLevel -UNKNOWN: LogCode -DOWNLINK_PAYLOAD_SIZE: LogCode -UPLINK_CODEC: LogCode -DOWNLINK_CODEC: LogCode -OTAA: LogCode -UPLINK_F_CNT_RESET: LogCode -UPLINK_MIC: LogCode -UPLINK_F_CNT_RETRANSMISSION: LogCode -DOWNLINK_GATEWAY: LogCode -RELAY_NEW_END_DEVICE: LogCode -F_CNT_DOWN: LogCode - -class DeviceInfo(_message.Message): - __slots__ = ("tenant_id", "tenant_name", "application_id", "application_name", "device_profile_id", "device_profile_name", "device_name", "dev_eui", "device_class_enabled", "tags") - class TagsEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - TENANT_ID_FIELD_NUMBER: _ClassVar[int] - TENANT_NAME_FIELD_NUMBER: _ClassVar[int] - APPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - APPLICATION_NAME_FIELD_NUMBER: _ClassVar[int] - DEVICE_PROFILE_ID_FIELD_NUMBER: _ClassVar[int] - DEVICE_PROFILE_NAME_FIELD_NUMBER: _ClassVar[int] - DEVICE_NAME_FIELD_NUMBER: _ClassVar[int] - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - DEVICE_CLASS_ENABLED_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - tenant_id: str - tenant_name: str - application_id: str - application_name: str - device_profile_id: str - device_profile_name: str - device_name: str - dev_eui: str - device_class_enabled: _common_pb2.DeviceClass - tags: _containers.ScalarMap[str, str] - def __init__(self, tenant_id: _Optional[str] = ..., tenant_name: _Optional[str] = ..., application_id: _Optional[str] = ..., application_name: _Optional[str] = ..., device_profile_id: _Optional[str] = ..., device_profile_name: _Optional[str] = ..., device_name: _Optional[str] = ..., dev_eui: _Optional[str] = ..., device_class_enabled: _Optional[_Union[_common_pb2.DeviceClass, str]] = ..., tags: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class UplinkRelayRxInfo(_message.Message): - __slots__ = ("dev_eui", "frequency", "dr", "snr", "rssi", "wor_channel") - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - FREQUENCY_FIELD_NUMBER: _ClassVar[int] - DR_FIELD_NUMBER: _ClassVar[int] - SNR_FIELD_NUMBER: _ClassVar[int] - RSSI_FIELD_NUMBER: _ClassVar[int] - WOR_CHANNEL_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - frequency: int - dr: int - snr: int - rssi: int - wor_channel: int - def __init__(self, dev_eui: _Optional[str] = ..., frequency: _Optional[int] = ..., dr: _Optional[int] = ..., snr: _Optional[int] = ..., rssi: _Optional[int] = ..., wor_channel: _Optional[int] = ...) -> None: ... - -class UplinkEvent(_message.Message): - __slots__ = ("deduplication_id", "time", "device_info", "dev_addr", "adr", "dr", "f_cnt", "f_port", "confirmed", "data", "object", "rx_info", "tx_info", "relay_rx_info", "join_server_context") - DEDUPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - TIME_FIELD_NUMBER: _ClassVar[int] - DEVICE_INFO_FIELD_NUMBER: _ClassVar[int] - DEV_ADDR_FIELD_NUMBER: _ClassVar[int] - ADR_FIELD_NUMBER: _ClassVar[int] - DR_FIELD_NUMBER: _ClassVar[int] - F_CNT_FIELD_NUMBER: _ClassVar[int] - F_PORT_FIELD_NUMBER: _ClassVar[int] - CONFIRMED_FIELD_NUMBER: _ClassVar[int] - DATA_FIELD_NUMBER: _ClassVar[int] - OBJECT_FIELD_NUMBER: _ClassVar[int] - RX_INFO_FIELD_NUMBER: _ClassVar[int] - TX_INFO_FIELD_NUMBER: _ClassVar[int] - RELAY_RX_INFO_FIELD_NUMBER: _ClassVar[int] - JOIN_SERVER_CONTEXT_FIELD_NUMBER: _ClassVar[int] - deduplication_id: str - time: _timestamp_pb2.Timestamp - device_info: DeviceInfo - dev_addr: str - adr: bool - dr: int - f_cnt: int - f_port: int - confirmed: bool - data: bytes - object: _struct_pb2.Struct - rx_info: _containers.RepeatedCompositeFieldContainer[_gw_pb2.UplinkRxInfo] - tx_info: _gw_pb2.UplinkTxInfo - relay_rx_info: UplinkRelayRxInfo - join_server_context: _common_pb2.JoinServerContext - def __init__(self, deduplication_id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., device_info: _Optional[_Union[DeviceInfo, _Mapping]] = ..., dev_addr: _Optional[str] = ..., adr: bool = ..., dr: _Optional[int] = ..., f_cnt: _Optional[int] = ..., f_port: _Optional[int] = ..., confirmed: bool = ..., data: _Optional[bytes] = ..., object: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., rx_info: _Optional[_Iterable[_Union[_gw_pb2.UplinkRxInfo, _Mapping]]] = ..., tx_info: _Optional[_Union[_gw_pb2.UplinkTxInfo, _Mapping]] = ..., relay_rx_info: _Optional[_Union[UplinkRelayRxInfo, _Mapping]] = ..., join_server_context: _Optional[_Union[_common_pb2.JoinServerContext, _Mapping]] = ...) -> None: ... - -class JoinEvent(_message.Message): - __slots__ = ("deduplication_id", "time", "device_info", "dev_addr", "relay_rx_info", "join_server_context") - DEDUPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - TIME_FIELD_NUMBER: _ClassVar[int] - DEVICE_INFO_FIELD_NUMBER: _ClassVar[int] - DEV_ADDR_FIELD_NUMBER: _ClassVar[int] - RELAY_RX_INFO_FIELD_NUMBER: _ClassVar[int] - JOIN_SERVER_CONTEXT_FIELD_NUMBER: _ClassVar[int] - deduplication_id: str - time: _timestamp_pb2.Timestamp - device_info: DeviceInfo - dev_addr: str - relay_rx_info: UplinkRelayRxInfo - join_server_context: _common_pb2.JoinServerContext - def __init__(self, deduplication_id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., device_info: _Optional[_Union[DeviceInfo, _Mapping]] = ..., dev_addr: _Optional[str] = ..., relay_rx_info: _Optional[_Union[UplinkRelayRxInfo, _Mapping]] = ..., join_server_context: _Optional[_Union[_common_pb2.JoinServerContext, _Mapping]] = ...) -> None: ... - -class AckEvent(_message.Message): - __slots__ = ("deduplication_id", "time", "device_info", "queue_item_id", "acknowledged", "f_cnt_down") - DEDUPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - TIME_FIELD_NUMBER: _ClassVar[int] - DEVICE_INFO_FIELD_NUMBER: _ClassVar[int] - QUEUE_ITEM_ID_FIELD_NUMBER: _ClassVar[int] - ACKNOWLEDGED_FIELD_NUMBER: _ClassVar[int] - F_CNT_DOWN_FIELD_NUMBER: _ClassVar[int] - deduplication_id: str - time: _timestamp_pb2.Timestamp - device_info: DeviceInfo - queue_item_id: str - acknowledged: bool - f_cnt_down: int - def __init__(self, deduplication_id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., device_info: _Optional[_Union[DeviceInfo, _Mapping]] = ..., queue_item_id: _Optional[str] = ..., acknowledged: bool = ..., f_cnt_down: _Optional[int] = ...) -> None: ... - -class TxAckEvent(_message.Message): - __slots__ = ("downlink_id", "time", "device_info", "queue_item_id", "f_cnt_down", "gateway_id", "tx_info") - DOWNLINK_ID_FIELD_NUMBER: _ClassVar[int] - TIME_FIELD_NUMBER: _ClassVar[int] - DEVICE_INFO_FIELD_NUMBER: _ClassVar[int] - QUEUE_ITEM_ID_FIELD_NUMBER: _ClassVar[int] - F_CNT_DOWN_FIELD_NUMBER: _ClassVar[int] - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - TX_INFO_FIELD_NUMBER: _ClassVar[int] - downlink_id: int - time: _timestamp_pb2.Timestamp - device_info: DeviceInfo - queue_item_id: str - f_cnt_down: int - gateway_id: str - tx_info: _gw_pb2.DownlinkTxInfo - def __init__(self, downlink_id: _Optional[int] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., device_info: _Optional[_Union[DeviceInfo, _Mapping]] = ..., queue_item_id: _Optional[str] = ..., f_cnt_down: _Optional[int] = ..., gateway_id: _Optional[str] = ..., tx_info: _Optional[_Union[_gw_pb2.DownlinkTxInfo, _Mapping]] = ...) -> None: ... - -class LogEvent(_message.Message): - __slots__ = ("time", "device_info", "level", "code", "description", "context") - class ContextEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - TIME_FIELD_NUMBER: _ClassVar[int] - DEVICE_INFO_FIELD_NUMBER: _ClassVar[int] - LEVEL_FIELD_NUMBER: _ClassVar[int] - CODE_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - CONTEXT_FIELD_NUMBER: _ClassVar[int] - time: _timestamp_pb2.Timestamp - device_info: DeviceInfo - level: LogLevel - code: LogCode - description: str - context: _containers.ScalarMap[str, str] - def __init__(self, time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., device_info: _Optional[_Union[DeviceInfo, _Mapping]] = ..., level: _Optional[_Union[LogLevel, str]] = ..., code: _Optional[_Union[LogCode, str]] = ..., description: _Optional[str] = ..., context: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class StatusEvent(_message.Message): - __slots__ = ("deduplication_id", "time", "device_info", "margin", "external_power_source", "battery_level_unavailable", "battery_level") - DEDUPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - TIME_FIELD_NUMBER: _ClassVar[int] - DEVICE_INFO_FIELD_NUMBER: _ClassVar[int] - MARGIN_FIELD_NUMBER: _ClassVar[int] - EXTERNAL_POWER_SOURCE_FIELD_NUMBER: _ClassVar[int] - BATTERY_LEVEL_UNAVAILABLE_FIELD_NUMBER: _ClassVar[int] - BATTERY_LEVEL_FIELD_NUMBER: _ClassVar[int] - deduplication_id: str - time: _timestamp_pb2.Timestamp - device_info: DeviceInfo - margin: int - external_power_source: bool - battery_level_unavailable: bool - battery_level: float - def __init__(self, deduplication_id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., device_info: _Optional[_Union[DeviceInfo, _Mapping]] = ..., margin: _Optional[int] = ..., external_power_source: bool = ..., battery_level_unavailable: bool = ..., battery_level: _Optional[float] = ...) -> None: ... - -class LocationEvent(_message.Message): - __slots__ = ("deduplication_id", "time", "device_info", "location") - DEDUPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - TIME_FIELD_NUMBER: _ClassVar[int] - DEVICE_INFO_FIELD_NUMBER: _ClassVar[int] - LOCATION_FIELD_NUMBER: _ClassVar[int] - deduplication_id: str - time: _timestamp_pb2.Timestamp - device_info: DeviceInfo - location: _common_pb2.Location - def __init__(self, deduplication_id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., device_info: _Optional[_Union[DeviceInfo, _Mapping]] = ..., location: _Optional[_Union[_common_pb2.Location, _Mapping]] = ...) -> None: ... - -class IntegrationEvent(_message.Message): - __slots__ = ("deduplication_id", "time", "device_info", "integration_name", "event_type", "object") - DEDUPLICATION_ID_FIELD_NUMBER: _ClassVar[int] - TIME_FIELD_NUMBER: _ClassVar[int] - DEVICE_INFO_FIELD_NUMBER: _ClassVar[int] - INTEGRATION_NAME_FIELD_NUMBER: _ClassVar[int] - EVENT_TYPE_FIELD_NUMBER: _ClassVar[int] - OBJECT_FIELD_NUMBER: _ClassVar[int] - deduplication_id: str - time: _timestamp_pb2.Timestamp - device_info: DeviceInfo - integration_name: str - event_type: str - object: _struct_pb2.Struct - def __init__(self, deduplication_id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., device_info: _Optional[_Union[DeviceInfo, _Mapping]] = ..., integration_name: _Optional[str] = ..., event_type: _Optional[str] = ..., object: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ... - -class DownlinkCommand(_message.Message): - __slots__ = ("id", "dev_eui", "confirmed", "f_port", "data", "object") - ID_FIELD_NUMBER: _ClassVar[int] - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - CONFIRMED_FIELD_NUMBER: _ClassVar[int] - F_PORT_FIELD_NUMBER: _ClassVar[int] - DATA_FIELD_NUMBER: _ClassVar[int] - OBJECT_FIELD_NUMBER: _ClassVar[int] - id: str - dev_eui: str - confirmed: bool - f_port: int - data: bytes - object: _struct_pb2.Struct - def __init__(self, id: _Optional[str] = ..., dev_eui: _Optional[str] = ..., confirmed: bool = ..., f_port: _Optional[int] = ..., data: _Optional[bytes] = ..., object: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ... diff --git a/api/python/src/chirpstack_api/integration/integration_pb2_grpc.py b/api/python/src/chirpstack_api/integration/integration_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/api/python/src/chirpstack_api/integration/integration_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/api/python/src/chirpstack_api/stream/api_request_pb2.py b/api/python/src/chirpstack_api/stream/api_request_pb2.py deleted file mode 100644 index 362ade4b..00000000 --- a/api/python/src/chirpstack_api/stream/api_request_pb2.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: chirpstack-api/stream/api_request.proto -# Protobuf Python Version: 4.25.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2 -from chirpstack_api.gw import gw_pb2 as chirpstack__api_dot_gw_dot_gw__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'chirpstack-api/stream/api_request.proto\x12\x06stream\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\"chirpstack-api/common/common.proto\x1a\x1a\x63hirpstack-api/gw/gw.proto\"\x98\x01\n\rApiRequestLog\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x0e\n\x06method\x18\x02 \x01(\t\x12\x35\n\x08metadata\x18\x03 \x03(\x0b\x32#.stream.ApiRequestLog.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42t\n\x18io.chirpstack.api.streamB\x0f\x41piRequestProtoP\x01Z1github.com/chirpstack/chirpstack/api/go/v4/stream\xaa\x02\x11\x43hirpstack.Streamb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.stream.api_request_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\030io.chirpstack.api.streamB\017ApiRequestProtoP\001Z1github.com/chirpstack/chirpstack/api/go/v4/stream\252\002\021Chirpstack.Stream' - _globals['_APIREQUESTLOG_METADATAENTRY']._options = None - _globals['_APIREQUESTLOG_METADATAENTRY']._serialized_options = b'8\001' - _globals['_APIREQUESTLOG']._serialized_start=149 - _globals['_APIREQUESTLOG']._serialized_end=301 - _globals['_APIREQUESTLOG_METADATAENTRY']._serialized_start=254 - _globals['_APIREQUESTLOG_METADATAENTRY']._serialized_end=301 -# @@protoc_insertion_point(module_scope) diff --git a/api/python/src/chirpstack_api/stream/api_request_pb2.pyi b/api/python/src/chirpstack_api/stream/api_request_pb2.pyi deleted file mode 100644 index 67fc3ff0..00000000 --- a/api/python/src/chirpstack_api/stream/api_request_pb2.pyi +++ /dev/null @@ -1,26 +0,0 @@ -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from chirpstack_api.common import common_pb2 as _common_pb2 -from chirpstack_api.gw import gw_pb2 as _gw_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional - -DESCRIPTOR: _descriptor.FileDescriptor - -class ApiRequestLog(_message.Message): - __slots__ = ("service", "method", "metadata") - class MetadataEntry(_message.Message): - __slots__ = ("key", "value") - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - SERVICE_FIELD_NUMBER: _ClassVar[int] - METHOD_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - service: str - method: str - metadata: _containers.ScalarMap[str, str] - def __init__(self, service: _Optional[str] = ..., method: _Optional[str] = ..., metadata: _Optional[_Mapping[str, str]] = ...) -> None: ... diff --git a/api/python/src/chirpstack_api/stream/api_request_pb2_grpc.py b/api/python/src/chirpstack_api/stream/api_request_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/api/python/src/chirpstack_api/stream/api_request_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/api/python/src/chirpstack_api/stream/backend_interfaces_pb2.py b/api/python/src/chirpstack_api/stream/backend_interfaces_pb2.py deleted file mode 100644 index 82bb123e..00000000 --- a/api/python/src/chirpstack_api/stream/backend_interfaces_pb2.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: chirpstack-api/stream/backend_interfaces.proto -# Protobuf Python Version: 4.25.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.chirpstack-api/stream/backend_interfaces.proto\x12\x06stream\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf3\x01\n\x18\x42\x61\x63kendInterfacesRequest\x12\x11\n\tsender_id\x18\x01 \x01(\t\x12\x13\n\x0breceiver_id\x18\x02 \x01(\t\x12(\n\x04time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0etransaction_id\x18\x04 \x01(\r\x12\x14\n\x0cmessage_type\x18\x05 \x01(\t\x12\x13\n\x0bresult_code\x18\x06 \x01(\t\x12\x14\n\x0crequest_body\x18\x07 \x01(\t\x12\x15\n\rrequest_error\x18\x08 \x01(\t\x12\x15\n\rresponse_body\x18\t \x01(\tB{\n\x18io.chirpstack.api.streamB\x16\x42\x61\x63kendInterfacesProtoP\x01Z1github.com/chirpstack/chirpstack/api/go/v4/stream\xaa\x02\x11\x43hirpstack.Streamb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.stream.backend_interfaces_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\030io.chirpstack.api.streamB\026BackendInterfacesProtoP\001Z1github.com/chirpstack/chirpstack/api/go/v4/stream\252\002\021Chirpstack.Stream' - _globals['_BACKENDINTERFACESREQUEST']._serialized_start=92 - _globals['_BACKENDINTERFACESREQUEST']._serialized_end=335 -# @@protoc_insertion_point(module_scope) diff --git a/api/python/src/chirpstack_api/stream/backend_interfaces_pb2.pyi b/api/python/src/chirpstack_api/stream/backend_interfaces_pb2.pyi deleted file mode 100644 index b524ce6a..00000000 --- a/api/python/src/chirpstack_api/stream/backend_interfaces_pb2.pyi +++ /dev/null @@ -1,28 +0,0 @@ -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class BackendInterfacesRequest(_message.Message): - __slots__ = ("sender_id", "receiver_id", "time", "transaction_id", "message_type", "result_code", "request_body", "request_error", "response_body") - SENDER_ID_FIELD_NUMBER: _ClassVar[int] - RECEIVER_ID_FIELD_NUMBER: _ClassVar[int] - TIME_FIELD_NUMBER: _ClassVar[int] - TRANSACTION_ID_FIELD_NUMBER: _ClassVar[int] - MESSAGE_TYPE_FIELD_NUMBER: _ClassVar[int] - RESULT_CODE_FIELD_NUMBER: _ClassVar[int] - REQUEST_BODY_FIELD_NUMBER: _ClassVar[int] - REQUEST_ERROR_FIELD_NUMBER: _ClassVar[int] - RESPONSE_BODY_FIELD_NUMBER: _ClassVar[int] - sender_id: str - receiver_id: str - time: _timestamp_pb2.Timestamp - transaction_id: int - message_type: str - result_code: str - request_body: str - request_error: str - response_body: str - def __init__(self, sender_id: _Optional[str] = ..., receiver_id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., transaction_id: _Optional[int] = ..., message_type: _Optional[str] = ..., result_code: _Optional[str] = ..., request_body: _Optional[str] = ..., request_error: _Optional[str] = ..., response_body: _Optional[str] = ...) -> None: ... diff --git a/api/python/src/chirpstack_api/stream/backend_interfaces_pb2_grpc.py b/api/python/src/chirpstack_api/stream/backend_interfaces_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/api/python/src/chirpstack_api/stream/backend_interfaces_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/api/python/src/chirpstack_api/stream/frame_pb2.py b/api/python/src/chirpstack_api/stream/frame_pb2.py deleted file mode 100644 index 09f291bb..00000000 --- a/api/python/src/chirpstack_api/stream/frame_pb2.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: chirpstack-api/stream/frame.proto -# Protobuf Python Version: 4.25.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2 -from chirpstack_api.gw import gw_pb2 as chirpstack__api_dot_gw_dot_gw__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!chirpstack-api/stream/frame.proto\x12\x06stream\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\"chirpstack-api/common/common.proto\x1a\x1a\x63hirpstack-api/gw/gw.proto\"\x90\x02\n\x0eUplinkFrameLog\x12\x13\n\x0bphy_payload\x18\x01 \x01(\x0c\x12!\n\x07tx_info\x18\x02 \x01(\x0b\x32\x10.gw.UplinkTxInfo\x12!\n\x07rx_info\x18\x03 \x03(\x0b\x32\x10.gw.UplinkRxInfo\x12\x1d\n\x06m_type\x18\x04 \x01(\x0e\x32\r.common.MType\x12\x10\n\x08\x64\x65v_addr\x18\x05 \x01(\t\x12\x0f\n\x07\x64\x65v_eui\x18\x06 \x01(\t\x12(\n\x04time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10plaintext_f_opts\x18\x08 \x01(\x08\x12\x1d\n\x15plaintext_frm_payload\x18\t \x01(\x08\"\x9a\x02\n\x10\x44ownlinkFrameLog\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bphy_payload\x18\x02 \x01(\x0c\x12#\n\x07tx_info\x18\x03 \x01(\x0b\x32\x12.gw.DownlinkTxInfo\x12\x13\n\x0b\x64ownlink_id\x18\x04 \x01(\r\x12\x12\n\ngateway_id\x18\x05 \x01(\t\x12\x1d\n\x06m_type\x18\x06 \x01(\x0e\x32\r.common.MType\x12\x10\n\x08\x64\x65v_addr\x18\x07 \x01(\t\x12\x0f\n\x07\x64\x65v_eui\x18\x08 \x01(\t\x12\x18\n\x10plaintext_f_opts\x18\t \x01(\x08\x12\x1d\n\x15plaintext_frm_payload\x18\n \x01(\x08\x42o\n\x18io.chirpstack.api.streamB\nFrameProtoP\x01Z1github.com/chirpstack/chirpstack/api/go/v4/stream\xaa\x02\x11\x43hirpstack.Streamb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.stream.frame_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\030io.chirpstack.api.streamB\nFrameProtoP\001Z1github.com/chirpstack/chirpstack/api/go/v4/stream\252\002\021Chirpstack.Stream' - _globals['_UPLINKFRAMELOG']._serialized_start=143 - _globals['_UPLINKFRAMELOG']._serialized_end=415 - _globals['_DOWNLINKFRAMELOG']._serialized_start=418 - _globals['_DOWNLINKFRAMELOG']._serialized_end=700 -# @@protoc_insertion_point(module_scope) diff --git a/api/python/src/chirpstack_api/stream/frame_pb2.pyi b/api/python/src/chirpstack_api/stream/frame_pb2.pyi deleted file mode 100644 index 888fa91d..00000000 --- a/api/python/src/chirpstack_api/stream/frame_pb2.pyi +++ /dev/null @@ -1,55 +0,0 @@ -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from chirpstack_api.common import common_pb2 as _common_pb2 -from chirpstack_api.gw import gw_pb2 as _gw_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class UplinkFrameLog(_message.Message): - __slots__ = ("phy_payload", "tx_info", "rx_info", "m_type", "dev_addr", "dev_eui", "time", "plaintext_f_opts", "plaintext_frm_payload") - PHY_PAYLOAD_FIELD_NUMBER: _ClassVar[int] - TX_INFO_FIELD_NUMBER: _ClassVar[int] - RX_INFO_FIELD_NUMBER: _ClassVar[int] - M_TYPE_FIELD_NUMBER: _ClassVar[int] - DEV_ADDR_FIELD_NUMBER: _ClassVar[int] - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - TIME_FIELD_NUMBER: _ClassVar[int] - PLAINTEXT_F_OPTS_FIELD_NUMBER: _ClassVar[int] - PLAINTEXT_FRM_PAYLOAD_FIELD_NUMBER: _ClassVar[int] - phy_payload: bytes - tx_info: _gw_pb2.UplinkTxInfo - rx_info: _containers.RepeatedCompositeFieldContainer[_gw_pb2.UplinkRxInfo] - m_type: _common_pb2.MType - dev_addr: str - dev_eui: str - time: _timestamp_pb2.Timestamp - plaintext_f_opts: bool - plaintext_frm_payload: bool - def __init__(self, phy_payload: _Optional[bytes] = ..., tx_info: _Optional[_Union[_gw_pb2.UplinkTxInfo, _Mapping]] = ..., rx_info: _Optional[_Iterable[_Union[_gw_pb2.UplinkRxInfo, _Mapping]]] = ..., m_type: _Optional[_Union[_common_pb2.MType, str]] = ..., dev_addr: _Optional[str] = ..., dev_eui: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., plaintext_f_opts: bool = ..., plaintext_frm_payload: bool = ...) -> None: ... - -class DownlinkFrameLog(_message.Message): - __slots__ = ("time", "phy_payload", "tx_info", "downlink_id", "gateway_id", "m_type", "dev_addr", "dev_eui", "plaintext_f_opts", "plaintext_frm_payload") - TIME_FIELD_NUMBER: _ClassVar[int] - PHY_PAYLOAD_FIELD_NUMBER: _ClassVar[int] - TX_INFO_FIELD_NUMBER: _ClassVar[int] - DOWNLINK_ID_FIELD_NUMBER: _ClassVar[int] - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - M_TYPE_FIELD_NUMBER: _ClassVar[int] - DEV_ADDR_FIELD_NUMBER: _ClassVar[int] - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - PLAINTEXT_F_OPTS_FIELD_NUMBER: _ClassVar[int] - PLAINTEXT_FRM_PAYLOAD_FIELD_NUMBER: _ClassVar[int] - time: _timestamp_pb2.Timestamp - phy_payload: bytes - tx_info: _gw_pb2.DownlinkTxInfo - downlink_id: int - gateway_id: str - m_type: _common_pb2.MType - dev_addr: str - dev_eui: str - plaintext_f_opts: bool - plaintext_frm_payload: bool - def __init__(self, time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., phy_payload: _Optional[bytes] = ..., tx_info: _Optional[_Union[_gw_pb2.DownlinkTxInfo, _Mapping]] = ..., downlink_id: _Optional[int] = ..., gateway_id: _Optional[str] = ..., m_type: _Optional[_Union[_common_pb2.MType, str]] = ..., dev_addr: _Optional[str] = ..., dev_eui: _Optional[str] = ..., plaintext_f_opts: bool = ..., plaintext_frm_payload: bool = ...) -> None: ... diff --git a/api/python/src/chirpstack_api/stream/frame_pb2_grpc.py b/api/python/src/chirpstack_api/stream/frame_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/api/python/src/chirpstack_api/stream/frame_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/api/python/src/chirpstack_api/stream/meta_pb2.py b/api/python/src/chirpstack_api/stream/meta_pb2.py deleted file mode 100644 index d7018a26..00000000 --- a/api/python/src/chirpstack_api/stream/meta_pb2.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: chirpstack-api/stream/meta.proto -# Protobuf Python Version: 4.25.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2 -from chirpstack_api.gw import gw_pb2 as chirpstack__api_dot_gw_dot_gw__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n chirpstack-api/stream/meta.proto\x12\x06stream\x1a\"chirpstack-api/common/common.proto\x1a\x1a\x63hirpstack-api/gw/gw.proto\"\xf0\x01\n\nUplinkMeta\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\x12!\n\x07tx_info\x18\x02 \x01(\x0b\x32\x10.gw.UplinkTxInfo\x12!\n\x07rx_info\x18\x03 \x03(\x0b\x32\x10.gw.UplinkRxInfo\x12\x1e\n\x16phy_payload_byte_count\x18\x04 \x01(\r\x12\x1e\n\x16mac_command_byte_count\x18\x05 \x01(\r\x12&\n\x1e\x61pplication_payload_byte_count\x18\x06 \x01(\r\x12#\n\x0cmessage_type\x18\x07 \x01(\x0e\x32\r.common.MType\"\x81\x02\n\x0c\x44ownlinkMeta\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\x12\x1a\n\x12multicast_group_id\x18\x02 \x01(\t\x12#\n\x07tx_info\x18\x03 \x01(\x0b\x32\x12.gw.DownlinkTxInfo\x12\x1e\n\x16phy_payload_byte_count\x18\x04 \x01(\r\x12\x1e\n\x16mac_command_byte_count\x18\x05 \x01(\r\x12&\n\x1e\x61pplication_payload_byte_count\x18\x06 \x01(\r\x12#\n\x0cmessage_type\x18\x07 \x01(\x0e\x32\r.common.MType\x12\x12\n\ngateway_id\x18\x08 \x01(\tBn\n\x18io.chirpstack.api.streamB\tMetaProtoP\x01Z1github.com/chirpstack/chirpstack/api/go/v4/stream\xaa\x02\x11\x43hirpstack.Streamb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.stream.meta_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\030io.chirpstack.api.streamB\tMetaProtoP\001Z1github.com/chirpstack/chirpstack/api/go/v4/stream\252\002\021Chirpstack.Stream' - _globals['_UPLINKMETA']._serialized_start=109 - _globals['_UPLINKMETA']._serialized_end=349 - _globals['_DOWNLINKMETA']._serialized_start=352 - _globals['_DOWNLINKMETA']._serialized_end=609 -# @@protoc_insertion_point(module_scope) diff --git a/api/python/src/chirpstack_api/stream/meta_pb2.pyi b/api/python/src/chirpstack_api/stream/meta_pb2.pyi deleted file mode 100644 index b042fef6..00000000 --- a/api/python/src/chirpstack_api/stream/meta_pb2.pyi +++ /dev/null @@ -1,46 +0,0 @@ -from chirpstack_api.common import common_pb2 as _common_pb2 -from chirpstack_api.gw import gw_pb2 as _gw_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class UplinkMeta(_message.Message): - __slots__ = ("dev_eui", "tx_info", "rx_info", "phy_payload_byte_count", "mac_command_byte_count", "application_payload_byte_count", "message_type") - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - TX_INFO_FIELD_NUMBER: _ClassVar[int] - RX_INFO_FIELD_NUMBER: _ClassVar[int] - PHY_PAYLOAD_BYTE_COUNT_FIELD_NUMBER: _ClassVar[int] - MAC_COMMAND_BYTE_COUNT_FIELD_NUMBER: _ClassVar[int] - APPLICATION_PAYLOAD_BYTE_COUNT_FIELD_NUMBER: _ClassVar[int] - MESSAGE_TYPE_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - tx_info: _gw_pb2.UplinkTxInfo - rx_info: _containers.RepeatedCompositeFieldContainer[_gw_pb2.UplinkRxInfo] - phy_payload_byte_count: int - mac_command_byte_count: int - application_payload_byte_count: int - message_type: _common_pb2.MType - def __init__(self, dev_eui: _Optional[str] = ..., tx_info: _Optional[_Union[_gw_pb2.UplinkTxInfo, _Mapping]] = ..., rx_info: _Optional[_Iterable[_Union[_gw_pb2.UplinkRxInfo, _Mapping]]] = ..., phy_payload_byte_count: _Optional[int] = ..., mac_command_byte_count: _Optional[int] = ..., application_payload_byte_count: _Optional[int] = ..., message_type: _Optional[_Union[_common_pb2.MType, str]] = ...) -> None: ... - -class DownlinkMeta(_message.Message): - __slots__ = ("dev_eui", "multicast_group_id", "tx_info", "phy_payload_byte_count", "mac_command_byte_count", "application_payload_byte_count", "message_type", "gateway_id") - DEV_EUI_FIELD_NUMBER: _ClassVar[int] - MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int] - TX_INFO_FIELD_NUMBER: _ClassVar[int] - PHY_PAYLOAD_BYTE_COUNT_FIELD_NUMBER: _ClassVar[int] - MAC_COMMAND_BYTE_COUNT_FIELD_NUMBER: _ClassVar[int] - APPLICATION_PAYLOAD_BYTE_COUNT_FIELD_NUMBER: _ClassVar[int] - MESSAGE_TYPE_FIELD_NUMBER: _ClassVar[int] - GATEWAY_ID_FIELD_NUMBER: _ClassVar[int] - dev_eui: str - multicast_group_id: str - tx_info: _gw_pb2.DownlinkTxInfo - phy_payload_byte_count: int - mac_command_byte_count: int - application_payload_byte_count: int - message_type: _common_pb2.MType - gateway_id: str - def __init__(self, dev_eui: _Optional[str] = ..., multicast_group_id: _Optional[str] = ..., tx_info: _Optional[_Union[_gw_pb2.DownlinkTxInfo, _Mapping]] = ..., phy_payload_byte_count: _Optional[int] = ..., mac_command_byte_count: _Optional[int] = ..., application_payload_byte_count: _Optional[int] = ..., message_type: _Optional[_Union[_common_pb2.MType, str]] = ..., gateway_id: _Optional[str] = ...) -> None: ... diff --git a/api/python/src/chirpstack_api/stream/meta_pb2_grpc.py b/api/python/src/chirpstack_api/stream/meta_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/api/python/src/chirpstack_api/stream/meta_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/api/rust/.gitignore b/api/rust/.gitignore new file mode 100644 index 00000000..c9438a30 --- /dev/null +++ b/api/rust/.gitignore @@ -0,0 +1 @@ +/proto diff --git a/api/rust/proto/chirpstack/api/application.proto b/api/rust/proto/chirpstack/api/application.proto deleted file mode 100644 index ca09c6a1..00000000 --- a/api/rust/proto/chirpstack/api/application.proto +++ /dev/null @@ -1,1098 +0,0 @@ -syntax = "proto3"; - -package api; - -option go_package = "github.com/chirpstack/chirpstack/api/go/v4/api"; -option java_package = "io.chirpstack.api"; -option java_multiple_files = true; -option java_outer_classname = "ApplicationProto"; -option csharp_namespace = "Chirpstack.Api"; - -import "google/api/annotations.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/empty.proto"; - -// ApplicationService is the service providing API methods for managing -// applications. -service ApplicationService { - // Create creates the given application. - rpc Create(CreateApplicationRequest) returns (CreateApplicationResponse) { - option (google.api.http) = { - post : "/api/applications" - body : "*" - }; - } - - // Get the application for the given ID. - rpc Get(GetApplicationRequest) returns (GetApplicationResponse) { - option (google.api.http) = { - get : "/api/applications/{id}" - }; - } - - // Update updates the given application. - rpc Update(UpdateApplicationRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - put : "/api/applications/{application.id}" - body : "*" - }; - } - - // Delete the application for the given ID. - rpc Delete(DeleteApplicationRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/applications/{id}" - }; - } - - // Get the list of applications. - rpc List(ListApplicationsRequest) returns (ListApplicationsResponse) { - option (google.api.http) = { - get : "/api/applications" - }; - } - - // List all configured integrations. - rpc ListIntegrations(ListIntegrationsRequest) - returns (ListIntegrationsResponse) { - option (google.api.http) = { - get : "/api/applications/{application_id}/integrations" - }; - } - - // Create HTTP integration. - rpc CreateHttpIntegration(CreateHttpIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - post : "/api/applications/{integration.application_id}/integrations/http" - body : "*" - }; - } - - // Get the configured HTTP integration. - rpc GetHttpIntegration(GetHttpIntegrationRequest) - returns (GetHttpIntegrationResponse) { - option (google.api.http) = { - get : "/api/applications/{application_id}/integrations/http" - }; - } - - // Update the HTTP integration. - rpc UpdateHttpIntegration(UpdateHttpIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - put : "/api/applications/{integration.application_id}/integrations/http" - body : "*" - }; - } - - // Delete the HTTP integration. - rpc DeleteHttpIntegration(DeleteHttpIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/applications/{application_id}/integrations/http" - }; - } - - // Create InfluxDb integration. - rpc CreateInfluxDbIntegration(CreateInfluxDbIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - post : "/api/applications/{integration.application_id}/integrations/" - "influxdb" - body : "*" - }; - } - - // Get InfluxDb integration. - rpc GetInfluxDbIntegration(GetInfluxDbIntegrationRequest) - returns (GetInfluxDbIntegrationResponse) { - option (google.api.http) = { - get : "/api/applications/{application_id}/integrations/influxdb" - }; - } - - // Update InfluxDb integration. - rpc UpdateInfluxDbIntegration(UpdateInfluxDbIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - put : "/api/applications/{integration.application_id}/integrations/" - "influxdb" - body : "*" - }; - } - - // Delete InfluxDb integration. - rpc DeleteInfluxDbIntegration(DeleteInfluxDbIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/applications/{application_id}/integrations/influxdb" - }; - } - - // Create ThingsBoard integration. - rpc CreateThingsBoardIntegration(CreateThingsBoardIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - post : "/api/applications/{integration.application_id}/integrations/" - "thingsboard" - body : "*" - }; - } - - // Get ThingsBoard integration. - rpc GetThingsBoardIntegration(GetThingsBoardIntegrationRequest) - returns (GetThingsBoardIntegrationResponse) { - option (google.api.http) = { - get : "/api/applications/{application_id}/integrations/thingsboard" - }; - } - - // Update ThingsBoard integration. - rpc UpdateThingsBoardIntegration(UpdateThingsBoardIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - put : "/api/applications/{integration.application_id}/integrations/" - "thingsboard" - body : "*" - }; - } - - // Delete ThingsBoard integration. - rpc DeleteThingsBoardIntegration(DeleteThingsBoardIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/applications/{application_id}/integrations/thingsboard" - }; - } - - // Create myDevices integration. - rpc CreateMyDevicesIntegration(CreateMyDevicesIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - post : "/api/applications/{integration.application_id}/integrations/" - "mydevices" - body : "*" - }; - } - - // Get myDevices integration. - rpc GetMyDevicesIntegration(GetMyDevicesIntegrationRequest) - returns (GetMyDevicesIntegrationResponse) { - option (google.api.http) = { - get : "/api/applications/{application_id}/integrations/mydevices" - }; - } - - // Update myDevices integration. - rpc UpdateMyDevicesIntegration(UpdateMyDevicesIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - put : "/api/applications/{integration.application_id}/integrations/" - "mydevices" - body : "*" - }; - } - - // Delete myDevices integration. - rpc DeleteMyDevicesIntegration(DeleteMyDevicesIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/applications/{application_id}/integrations/mydevices" - }; - } - - // Create LoRaCloud integration. - rpc CreateLoraCloudIntegration(CreateLoraCloudIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - post : "/api/applications/{integration.application_id}/integrations/" - "loracloud" - body : "*" - }; - } - - // Get LoRaCloud integration. - rpc GetLoraCloudIntegration(GetLoraCloudIntegrationRequest) - returns (GetLoraCloudIntegrationResponse) { - option (google.api.http) = { - get : "/api/applications/{application_id}/integrations/loracloud" - }; - } - - // Update LoRaCloud integration. - rpc UpdateLoraCloudIntegration(UpdateLoraCloudIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - put : "/api/applications/{integration.application_id}/integrations/" - "loracloud" - body : "*" - }; - } - - // Delete LoRaCloud integration. - rpc DeleteLoraCloudIntegration(DeleteLoraCloudIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/applications/{application_id}/integrations/loracloud" - }; - } - - // Create GCP Pub/Sub integration. - rpc CreateGcpPubSubIntegration(CreateGcpPubSubIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - post : "/api/applications/{integration.application_id}/integrations/" - "gcp-pub-sub" - body : "*" - }; - } - - // Get GCP Pub/Sub integration. - rpc GetGcpPubSubIntegration(GetGcpPubSubIntegrationRequest) - returns (GetGcpPubSubIntegrationResponse) { - option (google.api.http) = { - get : "/api/applications/{application_id}/integrations/gcp-pub-sub" - }; - } - - // Update GCP Pub/Sub integration. - rpc UpdateGcpPubSubIntegration(UpdateGcpPubSubIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - put : "/api/applications/{integration.application_id}/integrations/" - "gcp-pub-sub" - body : "*" - }; - } - - // Delete GCP Pub/Sub integration. - rpc DeleteGcpPubSubIntegration(DeleteGcpPubSubIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/applications/{application_id}/integrations/gcp-pub-sub" - }; - } - - // Create AWS SNS integration. - rpc CreateAwsSnsIntegration(CreateAwsSnsIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - post : "/api/applications/{integration.application_id}/integrations/" - "aws-sns" - body : "*" - }; - } - - // Get AWS SNS integration. - rpc GetAwsSnsIntegration(GetAwsSnsIntegrationRequest) - returns (GetAwsSnsIntegrationResponse) { - option (google.api.http) = { - get : "/api/applications/{application_id}/integrations/aws-sns" - }; - } - - // Update AWS SNS integration. - rpc UpdateAwsSnsIntegration(UpdateAwsSnsIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - put : "/api/applications/{integration.application_id}/integrations/" - "aws-sns" - body : "*" - }; - } - - // Delete AWS SNS integration. - rpc DeleteAwsSnsIntegration(DeleteAwsSnsIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/applications/{application_id}/integrations/aws-sns" - }; - } - - // Create Azure Service-Bus integration. - rpc CreateAzureServiceBusIntegration(CreateAzureServiceBusIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - post : "/api/applications/{integration.application_id}/integrations/" - "azure-service-bus" - body : "*" - }; - } - - // Get Azure Service-Bus integration. - rpc GetAzureServiceBusIntegration(GetAzureServiceBusIntegrationRequest) - returns (GetAzureServiceBusIntegrationResponse) { - option (google.api.http) = { - get : "/api/applications/{application_id}/integrations/azure-service-bus" - }; - } - - // Update Azure Service-Bus integration. - rpc UpdateAzureServiceBusIntegration(UpdateAzureServiceBusIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - put : "/api/applications/{integration.application_id}/integrations/" - "azure-service-bus" - body : "*" - }; - } - - // Delete Azure Service-Bus integration. - rpc DeleteAzureServiceBusIntegration(DeleteAzureServiceBusIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/applications/{application_id}/integrations/" - "azure-service-bus" - }; - } - - // Create Pilot Things integration. - rpc CreatePilotThingsIntegration(CreatePilotThingsIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - post : "/api/applications/{integration.application_id}/integrations/" - "pilot-things" - body : "*" - }; - } - - // Get Pilot Things integration. - rpc GetPilotThingsIntegration(GetPilotThingsIntegrationRequest) - returns (GetPilotThingsIntegrationResponse) { - option (google.api.http) = { - get : "/api/applications/{application_id}/integrations/pilot-things" - }; - } - - // Update Pilot Things integration. - rpc UpdatePilotThingsIntegration(UpdatePilotThingsIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - put : "/api/applications/{integration.application_id}/integrations/" - "pilot-things" - body : "*" - }; - } - - // Delete Pilot Things integration. - rpc DeletePilotThingsIntegration(DeletePilotThingsIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/applications/{application_id}/integrations/pilot-things" - }; - } - - // Create IFTTT integration. - rpc CreateIftttIntegration(CreateIftttIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - post : "/api/applications/{integration.application_id}/integrations/ifttt" - body : "*" - }; - } - - // Get IFTTT integration. - rpc GetIftttIntegration(GetIftttIntegrationRequest) - returns (GetIftttIntegrationResponse) { - option (google.api.http) = { - get : "/api/applications/{application_id}/integrations/ifttt" - }; - } - - // Update IFTTT integration. - rpc UpdateIftttIntegration(UpdateIftttIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - put : "/api/applications/{integration.application_id}/integrations/ifttt" - body : "*" - }; - } - - // Delete IFTTT integration. - rpc DeleteIftttIntegration(DeleteIftttIntegrationRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/applications/{application_id}/integrations/ifttt" - }; - } - - // Generates application ID specific client-certificate. - rpc GenerateMqttIntegrationClientCertificate( - GenerateMqttIntegrationClientCertificateRequest) - returns (GenerateMqttIntegrationClientCertificateResponse) { - option (google.api.http) = { - post : "/api/applications/{application_id}/integrations/mqtt/certificate" - }; - } -} - -enum Encoding { - JSON = 0; - PROTOBUF = 1; -} - -enum IntegrationKind { - HTTP = 0; - INFLUX_DB = 1; - THINGS_BOARD = 2; - MY_DEVICES = 3; - LORA_CLOUD = 4; - GCP_PUB_SUB = 5; - AWS_SNS = 6; - AZURE_SERVICE_BUS = 7; - PILOT_THINGS = 8; - MQTT_GLOBAL = 9; - IFTTT = 10; -} - -message Application { - // Application ID (UUID). - // Note: on create this will be automatically generated. - string id = 1; - - // Application name. - string name = 2; - - // Application description. - string description = 3; - - // Tenant ID (UUID). - string tenant_id = 4; - - // Tags (user defined). - // These tags can be used to add additional information to the application. - // These tags are exposed in all the integration events of devices under - // this application. - map tags = 5; -} - -message ApplicationListItem { - // Application ID (UUID). - string id = 1; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 2; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 3; - - // Application name. - string name = 4; - - // Application description. - string description = 5; -} - -message CreateApplicationRequest { - // Application object to create. - Application application = 1; -} - -message CreateApplicationResponse { - // Application ID (UUID). - string id = 1; -} - -message GetApplicationRequest { - // Application ID (UUID). - string id = 1; -} - -message GetApplicationResponse { - // Application object. - Application application = 1; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 2; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 3; - - // Measurement keys. - // This contains the measurement keys from all the device-profiles that - // are used by the devices under this application. - repeated string measurement_keys = 4; -} - -message UpdateApplicationRequest { - // Application object. - Application application = 1; -} - -message DeleteApplicationRequest { - // Application ID (UUID). - string id = 1; -} - -message ListApplicationsRequest { - // Max number of applications to return in the result-set. - uint32 limit = 1; - - // Offset in the result-set (for pagination). - uint32 offset = 2; - - // If set, the given string will be used to search on name (optional). - string search = 3; - - // Tenant ID to list the applications for. - string tenant_id = 4; -} - -message ListApplicationsResponse { - // Total number of applications. - uint32 total_count = 1; - - // Result-set. - repeated ApplicationListItem result = 2; -} - -message ListIntegrationsRequest { - // Application ID (UUID). - string application_id = 1; -} - -message IntegrationListItem { - // Integration kind. - IntegrationKind kind = 1; -} - -message ListIntegrationsResponse { - // Total number of integrations available within the result-set. - uint32 total_count = 1; - - // Integrations within result-set. - repeated IntegrationListItem result = 2; -} - -message HttpIntegration { - // Application ID (UUID). - string application_id = 1; - - // HTTP headers to set when making requests. - map headers = 2; - - // Payload encoding. - Encoding encoding = 3; - - // 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. - string event_endpoint_url = 4; -} - -message CreateHttpIntegrationRequest { - // Integration object to create. - HttpIntegration integration = 1; -} - -message GetHttpIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message GetHttpIntegrationResponse { - // Integration object. - HttpIntegration integration = 1; -} - -message UpdateHttpIntegrationRequest { - // Integration object to update. - HttpIntegration integration = 1; -} - -message DeleteHttpIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -enum InfluxDbPrecision { - NS = 0; - U = 1; - MS = 2; - S = 3; - M = 4; - H = 5; -} - -enum InfluxDbVersion { - INFLUXDB_1 = 0; - INFLUXDB_2 = 1; -} - -message InfluxDbIntegration { - // Application ID (UUID). - string application_id = 1; - - // InfluxDb API write endpoint (e.g. http://localhost:8086/write). - string endpoint = 2; - - // InfluxDb database name. (InfluxDb v1) - string db = 3; - - // InfluxDb username. (InfluxDb v1) - string username = 4; - - // InfluxDb password. (InfluxDb v1) - string password = 5; - - // InfluxDb retention policy name. (InfluxDb v1) - string retention_policy_name = 6; - - // InfluxDb timestamp precision (InfluxDb v1). - InfluxDbPrecision precision = 7; - - // InfluxDb version. - InfluxDbVersion version = 8; - - // Token. (InfluxDb v2) - string token = 9; - - // Organization. (InfluxDb v2) - string organization = 10; - - // Bucket. (InfluxDb v2) - string bucket = 11; -} - -message CreateInfluxDbIntegrationRequest { - // Integration object to create. - InfluxDbIntegration integration = 1; -} - -message GetInfluxDbIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message GetInfluxDbIntegrationResponse { - // Integration object. - InfluxDbIntegration integration = 1; -} - -message UpdateInfluxDbIntegrationRequest { - // Integration object to update. - InfluxDbIntegration integration = 1; -} - -message DeleteInfluxDbIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message ThingsBoardIntegration { - // Application ID (UUID). - string application_id = 1; - - // ThingsBoard server endpoint, e.g. https://example.com - string server = 2; -} - -message CreateThingsBoardIntegrationRequest { - // Integration object to create. - ThingsBoardIntegration integration = 1; -} - -message GetThingsBoardIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message GetThingsBoardIntegrationResponse { - // Integration object. - ThingsBoardIntegration integration = 1; -} - -message UpdateThingsBoardIntegrationRequest { - // Integration object to update. - ThingsBoardIntegration integration = 1; -} - -message DeleteThingsBoardIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message MyDevicesIntegration { - // Application ID (UUID). - string application_id = 1; - - // myDevices API endpoint. - string endpoint = 2; -} - -message CreateMyDevicesIntegrationRequest { - // Integration object to create. - MyDevicesIntegration integration = 1; -} - -message GetMyDevicesIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message GetMyDevicesIntegrationResponse { - // Integration object. - MyDevicesIntegration integration = 1; -} - -message UpdateMyDevicesIntegrationRequest { - // Integration object to update. - MyDevicesIntegration integration = 1; -} - -message DeleteMyDevicesIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message LoraCloudIntegration { - // Application ID (UUID). - string application_id = 1; - - // Modem & Geolocation Services configuration. - LoraCloudModemGeolocationServices modem_geolocation_services = 2; -} - -message LoraCloudModemGeolocationServices { - // API token. - string token = 1; - - // Device implements Modem / Modem-E stack. - bool modem_enabled = 2; - - // Forward FPorts. - // Forward uplink messages matching the given FPorts to the MGS. - repeated uint32 forward_f_ports = 16; - - // Use rx time for GNSS resolving. - // In case this is set to true, the MGS resolver will use the RX time of the - // network instead of the timestamp included in the LR1110 payload. - bool gnss_use_rx_time = 5; - - // Use gateway location for GNSS resolving. - // In the case this is set to true, ChirpStack will provide the location of - // one of the gateways to the MGS resolver to aid the resolving process. - // Disable this in case the gateway location is not accurate / incorrectly - // configured as an incorrect location will cause the resolver to return an - // error. - bool gnss_use_gateway_location = 17; - - // Parse TLV records. - // If enabled, stream records (expected in TLV format) are scanned for GNSS - // data (0x06 or 0x07). If found, ChirpStack will make an additional - // geolocation call to the MGS API for resolving the location of the detected - // payload. - bool parse_tlv = 6; - - // Geolocation buffer TTL (in seconds). - // If > 0, uplink RX meta-data will be stored in a buffer so that - // the meta-data of multiple uplinks can be used for geolocation. - uint32 geolocation_buffer_ttl = 7; - - // Geolocation minimum buffer size. - // If > 0, geolocation will only be performed when the buffer has - // at least the given size. - uint32 geolocation_min_buffer_size = 8; - - // TDOA based geolocation is enabled. - bool geolocation_tdoa = 9; - - // RSSI based geolocation is enabled. - bool geolocation_rssi = 10; - - // GNSS based geolocation is enabled (LR1110). - bool geolocation_gnss = 11; - - // GNSS payload field. - // This holds the name of the field in the decoded payload object which - // contains the GNSS payload bytes (as HEX string). - string geolocation_gnss_payload_field = 12; - - // 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. - bool geolocation_gnss_use_rx_time = 13; - - // Wifi based geolocation is enabled. - bool geolocation_wifi = 14; - - // 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) - string geolocation_wifi_payload_field = 15; -} - -message CreateLoraCloudIntegrationRequest { - // Integration object to create. - LoraCloudIntegration integration = 1; -} - -message GetLoraCloudIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message GetLoraCloudIntegrationResponse { - // Integration object. - LoraCloudIntegration integration = 1; -} - -message UpdateLoraCloudIntegrationRequest { - // Integration object to update. - LoraCloudIntegration integration = 1; -} - -message DeleteLoraCloudIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message GcpPubSubIntegration { - // Application ID (UUID). - string application_id = 1; - - // Encoding. - Encoding encoding = 2; - - // Credentials file. - // This IAM service-account credentials file (JSON) must have the following - // Pub/Sub roles: - // * Pub/Sub Publisher - string credentials_file = 3; - - // Project ID. - string project_id = 4; - - // Topic name. - // This is the name of the Pub/Sub topic. - string topic_name = 5; -} - -message CreateGcpPubSubIntegrationRequest { - // Integration object to create. - GcpPubSubIntegration integration = 1; -} - -message GetGcpPubSubIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message GetGcpPubSubIntegrationResponse { - // Integration object. - GcpPubSubIntegration integration = 1; -} - -message UpdateGcpPubSubIntegrationRequest { - // Integration object to update. - GcpPubSubIntegration integration = 1; -} - -message DeleteGcpPubSubIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message AwsSnsIntegration { - // Application ID (UUID). - string application_id = 1; - - // Encoding. - Encoding encoding = 2; - - // AWS region. - string region = 3; - - // AWS Access Key ID. - string access_key_id = 4; - - // AWS Secret Access Key. - string secret_access_key = 5; - - // Topic ARN. - string topic_arn = 6; -} - -message CreateAwsSnsIntegrationRequest { - // Integration object to create. - AwsSnsIntegration integration = 1; -} - -message GetAwsSnsIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message GetAwsSnsIntegrationResponse { - // Integration object. - AwsSnsIntegration integration = 1; -} - -message UpdateAwsSnsIntegrationRequest { - // Integration object to update. - AwsSnsIntegration integration = 1; -} - -message DeleteAwsSnsIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message AzureServiceBusIntegration { - // Application ID (UUID). - string application_id = 1; - - // Encoding. - Encoding encoding = 2; - - // Connection string. - string connection_string = 3; - - // Publish name. - // This is the name of the topic or queue. - string publish_name = 4; -} - -message CreateAzureServiceBusIntegrationRequest { - // Integration object to create. - AzureServiceBusIntegration integration = 1; -} - -message GetAzureServiceBusIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message GetAzureServiceBusIntegrationResponse { - // Integration object. - AzureServiceBusIntegration integration = 1; -} - -message UpdateAzureServiceBusIntegrationRequest { - // Integration object to create. - AzureServiceBusIntegration integration = 1; -} - -message DeleteAzureServiceBusIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message PilotThingsIntegration { - // Application ID (UUID). - string application_id = 1; - - // Server URL. - string server = 2; - - // Authentication token. - string token = 3; -} - -message CreatePilotThingsIntegrationRequest { - // Integration object to create. - PilotThingsIntegration integration = 1; -} - -message GetPilotThingsIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message GetPilotThingsIntegrationResponse { - // Integration object. - PilotThingsIntegration integration = 1; -} - -message UpdatePilotThingsIntegrationRequest { - // Integration object to update. - PilotThingsIntegration integration = 1; -} - -message DeletePilotThingsIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message IftttIntegration { - // Application ID (UUID). - string application_id = 1; - - // Key. - // This key can be obtained from the IFTTT Webhooks documentation page. - string key = 2; - - // Values. - // Up to 2 values can be forwarded to IFTTT. These values must map to the - // decoded payload keys. For example: - // { - // "batteryLevel": 75.3, - // "buttons": [{"pressed": false}, {"pressed": true}] - // } - // You would specify the following fields: - // uplink_values = ["batteryLevel", "buttons_0_pressed"] - // - // Notes: The first value is always used for the DevEUI. - // Ignored if arbitrary_json is set to true. - repeated string uplink_values = 3; - - // Arbitrary JSON. - // If set to true, ChirpStack events will be sent as-is as arbitrary JSON - // payload. If set to false (default), the 3 JSON values format will be used. - bool arbitrary_json = 4; - - // Event prefix. - // If set, the event name will be PREFIX_EVENT. For example if event_prefix - // is set to weatherstation, and uplink event will be sent as - // weatherstation_up to the IFTTT webhook. - // Note: Only characters in the A-Z, a-z and 0-9 range are allowed. - string event_prefix = 5; -} - -message CreateIftttIntegrationRequest { - // Integration object. - IftttIntegration integration = 1; -} - -message GetIftttIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message GetIftttIntegrationResponse { - // Integration object. - IftttIntegration integration = 1; -} - -message UpdateIftttIntegrationRequest { - // Integration object to update. - IftttIntegration integration = 1; -} - -message DeleteIftttIntegrationRequest { - // Application ID (UUID). - string application_id = 1; -} - -message GenerateMqttIntegrationClientCertificateRequest { - // Application ID (UUID). - string application_id = 1; -} - -message GenerateMqttIntegrationClientCertificateResponse { - // TLS certificate. - string tls_cert = 1; - - // TLS key. - string tls_key = 2; - - // CA certificate. - string ca_cert = 3; - - // Expires at defines the expiration date of the certificate. - google.protobuf.Timestamp expires_at = 4; -} diff --git a/api/rust/proto/chirpstack/api/device.proto b/api/rust/proto/chirpstack/api/device.proto deleted file mode 100644 index ad1bafb7..00000000 --- a/api/rust/proto/chirpstack/api/device.proto +++ /dev/null @@ -1,581 +0,0 @@ -syntax = "proto3"; - -package api; - -option go_package = "github.com/chirpstack/chirpstack/api/go/v4/api"; -option java_package = "io.chirpstack.api"; -option java_multiple_files = true; -option java_outer_classname = "DeviceProto"; -option csharp_namespace = "Chirpstack.Api"; - -import "common/common.proto"; -import "google/api/annotations.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/struct.proto"; -import "google/protobuf/empty.proto"; - -// DeviceService is the service providing API methods for managing devices. -service DeviceService { - // Create the given device. - rpc Create(CreateDeviceRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post : "/api/devices" - body : "*" - }; - } - - // Get returns the device for the given DevEUI. - rpc Get(GetDeviceRequest) returns (GetDeviceResponse) { - option (google.api.http) = { - get : "/api/devices/{dev_eui}" - }; - } - - // Update the given device. - rpc Update(UpdateDeviceRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - put : "/api/devices/{device.dev_eui}" - body : "*" - }; - } - - // Delete the device with the given DevEUI. - rpc Delete(DeleteDeviceRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/devices/{dev_eui}" - }; - } - - // Get the list of devices. - rpc List(ListDevicesRequest) returns (ListDevicesResponse) { - option (google.api.http) = { - get : "/api/devices" - }; - } - - // Create the given device-keys. - rpc CreateKeys(CreateDeviceKeysRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post : "/api/devices/{device_keys.dev_eui}/keys" - body : "*" - }; - } - - // Get the device-keys for the given DevEUI. - rpc GetKeys(GetDeviceKeysRequest) returns (GetDeviceKeysResponse) { - option (google.api.http) = { - get : "/api/devices/{dev_eui}/keys" - }; - } - - // Update the given device-keys. - rpc UpdateKeys(UpdateDeviceKeysRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - put : "/api/devices/{device_keys.dev_eui}/keys" - body : "*" - }; - } - - // Delete the device-keys for the given DevEUI. - rpc DeleteKeys(DeleteDeviceKeysRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/devices/{dev_eui}/keys" - }; - } - - // FlushDevNonces flushes the OTAA device nonces. - rpc FlushDevNonces(FlushDevNoncesRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/devices/{dev_eui}/dev-nonces" - }; - } - - // Activate (re)activates the device with the given parameters (for ABP or for - // importing OTAA activations). - rpc Activate(ActivateDeviceRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post : "/api/devices/{device_activation.dev_eui}/activate" - body : "*" - }; - } - - // Deactivate de-activates the device. - rpc Deactivate(DeactivateDeviceRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/devices/{dev_eui}/activation" - }; - } - - // GetActivation returns the current activation details of the device (OTAA or - // ABP). - rpc GetActivation(GetDeviceActivationRequest) - returns (GetDeviceActivationResponse) { - option (google.api.http) = { - get : "/api/devices/{dev_eui}/activation" - }; - } - - // GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into - // account. - rpc GetRandomDevAddr(GetRandomDevAddrRequest) - returns (GetRandomDevAddrResponse) { - option (google.api.http) = { - post : "/api/devices/{dev_eui}/get-random-dev-addr" - }; - } - - // GetMetrics returns the device metrics. - // Note that this requires a device-profile with codec and measurements - // configured. - rpc GetMetrics(GetDeviceMetricsRequest) returns (GetDeviceMetricsResponse) { - option (google.api.http) = { - get : "/api/devices/{dev_eui}/metrics" - }; - } - - // GetLinkMetrics returns the device link metrics. - // This includes uplinks, downlinks, RSSI, SNR, etc... - rpc GetLinkMetrics(GetDeviceLinkMetricsRequest) - returns (GetDeviceLinkMetricsResponse) { - option (google.api.http) = { - get : "/api/devices/{dev_eui}/link-metrics" - }; - } - - // Enqueue adds the given item to the downlink queue. - rpc Enqueue(EnqueueDeviceQueueItemRequest) - returns (EnqueueDeviceQueueItemResponse) { - option (google.api.http) = { - post : "/api/devices/{queue_item.dev_eui}/queue" - body : "*" - }; - } - - // FlushQueue flushes the downlink device-queue. - rpc FlushQueue(FlushDeviceQueueRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/devices/{dev_eui}/queue" - }; - } - - // GetQueue returns the downlink device-queue. - rpc GetQueue(GetDeviceQueueItemsRequest) - returns (GetDeviceQueueItemsResponse) { - option (google.api.http) = { - get : "/api/devices/{dev_eui}/queue" - }; - } - - // GetNextFCntDown returns the next FCntDown to use for enqueing encrypted - // downlinks. The difference with the DeviceActivation f_cont_down is that - // this method takes potential existing queue-items into account. - rpc GetNextFCntDown(GetDeviceNextFCntDownRequest) - returns (GetDeviceNextFCntDownResponse) { - option (google.api.http) = { - post : "/api/devices/{dev_eui}/get-next-f-cnt-down" - body : "*" - }; - } -} - -message Device { - // DevEUI (EUI64). - string dev_eui = 1; - - // Name. - string name = 2; - - // Description. - string description = 3; - - // Application ID (UUID). - string application_id = 4; - - // Device-profile ID (UUID). - string device_profile_id = 5; - - // Skip frame-counter checks (this is insecure, but could be helpful for - // debugging). - bool skip_fcnt_check = 6; - - // Device is disabled. - bool is_disabled = 7; - - // 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. - map variables = 8; - - // Tags (user defined). - // These tags can be used to add additional information to the device. - // These tags are exposed in all the integration events. - map tags = 9; - - // JoinEUI (optional, EUI64). - // This field will be automatically set / updated on OTAA. However, in some - // cases it must be pre-configured. For example to allow OTAA using a Relay. - // In this case the Relay needs to know the JoinEUI + DevEUI combinations - // of the devices for which it needs to forward uplinks. - string join_eui = 10; -} - -message DeviceStatus { - // The device margin status - // -32..32: The demodulation SNR ration in dB - int32 margin = 1; - - // Device is connected to an external power source. - bool external_power_source = 2; - - // Device battery level as a percentage. - // -1 when the battery level is not available. - float battery_level = 3; -} - -message DeviceListItem { - // DevEUI (EUI64). - string dev_eui = 1; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 2; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 3; - - // Last seen at timestamp. - google.protobuf.Timestamp last_seen_at = 4; - - // Name. - string name = 5; - - // Description. - string description = 6; - - // Device-profile ID (UUID). - string device_profile_id = 7; - - // Device-profile name. - string device_profile_name = 8; - - // Device status. - DeviceStatus device_status = 9; -} - -message DeviceKeys { - // DevEUI (EUI64). - string dev_eui = 1; - - // Network root key (128 bit). - // Note: For LoRaWAN 1.0.x, use this field for the LoRaWAN 1.0.x 'AppKey`! - string nwk_key = 2; - - // Application root key (128 bit). - // Note: This field only needs to be set for LoRaWAN 1.1.x devices! - string app_key = 3; -} - -message CreateDeviceRequest { - // Device object. - Device device = 1; -} - -message GetDeviceRequest { - // DevEUI (EUI64). - string dev_eui = 1; -} - -message GetDeviceResponse { - // Device object. - Device device = 1; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 2; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 3; - - // Last seen at timestamp. - google.protobuf.Timestamp last_seen_at = 4; - - // Device status. - DeviceStatus device_status = 5; - - // Enabled device class. - common.DeviceClass class_enabled = 6; -} - -message UpdateDeviceRequest { - // Device object. - Device device = 1; -} - -message DeleteDeviceRequest { - // DevEUI (EUI64). - string dev_eui = 1; -} - -message ListDevicesRequest { - // Max number of devices to return in the result-set. - uint32 limit = 1; - - // Offset in the result-set (for pagination). - uint32 offset = 2; - - // If set, the given string will be used to search on name (optional). - string search = 3; - - // Application ID (UUID) to filter devices on. - string application_id = 4; - - // Multicst-group ID (UUID) to filter devices on. - string multicast_group_id = 5; -} - -message ListDevicesResponse { - // Total number of devices. - uint32 total_count = 1; - - // Result-set. - repeated DeviceListItem result = 2; -} - -message CreateDeviceKeysRequest { - // Device-keys object. - DeviceKeys device_keys = 1; -} - -message GetDeviceKeysRequest { - // DevEUI (EUI64). - string dev_eui = 1; -} - -message GetDeviceKeysResponse { - // Device-keys object. - DeviceKeys device_keys = 1; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 2; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 3; -} - -message UpdateDeviceKeysRequest { - // Device-keys object. - DeviceKeys device_keys = 1; -} - -message DeleteDeviceKeysRequest { - // DevEUI (EUI64). - string dev_eui = 1; -} - -message DeviceActivation { - // Device EUI (EUI64). - string dev_eui = 1; - - // Device address (HEX encoded). - string dev_addr = 2; - - // Application session key (HEX encoded). - string app_s_key = 3; - - // Network session encryption key (HEX encoded). - string nwk_s_enc_key = 4; - - // Serving network session integrity key (HEX encoded). - string s_nwk_s_int_key = 8; - - // Forwarding network session integrity key (HEX encoded). - string f_nwk_s_int_key = 9; - - // Uplink frame-counter. - uint32 f_cnt_up = 5; - - // Downlink network frame-counter. - uint32 n_f_cnt_down = 6; - - // Downlink application frame-counter. - uint32 a_f_cnt_down = 10; -} - -message ActivateDeviceRequest { - // Device activation object. - DeviceActivation device_activation = 1; -} - -message DeactivateDeviceRequest { - // DevEUI (EUI64). - string dev_eui = 1; -} - -message GetDeviceActivationRequest { - // DevEUI (EUI64). - string dev_eui = 1; -} - -message GetDeviceActivationResponse { - // Device activation object. - DeviceActivation device_activation = 1; - - // Join-Server context. - // A non-empty value indicatest that ChirpStack does not have access to - // the AppSKey and that the encryption / decryption of the payloads is - // the responsibility of the end-application. - common.JoinServerContext join_server_context = 2; -} - -message GetRandomDevAddrRequest { - // DevEUI (EUI64). - string dev_eui = 1; -} - -message GetRandomDevAddrResponse { - // DevAddr. - string dev_addr = 1; -} - -message GetDeviceMetricsRequest { - // DevEUI (EUI64). - string dev_eui = 1; - - // Interval start timestamp. - google.protobuf.Timestamp start = 2; - - // Interval end timestamp. - google.protobuf.Timestamp end = 3; - - // Aggregation. - common.Aggregation aggregation = 4; -} - -message GetDeviceMetricsResponse { - map metrics = 1; - - map states = 2; -} - -message DeviceState { - // Name. - string name = 2; - - // Value. - string value = 3; -} - -message GetDeviceLinkMetricsRequest { - // DevEUI (EUI64). - string dev_eui = 1; - - // Interval start timestamp. - google.protobuf.Timestamp start = 2; - - // Interval end timestamp. - google.protobuf.Timestamp end = 3; - - // Aggregation. - common.Aggregation aggregation = 4; -} - -message GetDeviceLinkMetricsResponse { - // Packets received from the device. - common.Metric rx_packets = 1; - - // RSSI (as reported by the gateway(s)). - common.Metric gw_rssi = 2; - - // SNR (as reported by the gateway(s)). - common.Metric gw_snr = 3; - - // Packets received by frequency. - common.Metric rx_packets_per_freq = 4; - - // Packets received by DR. - common.Metric rx_packets_per_dr = 5; - - // Errors. - common.Metric errors = 6; -} - -message DeviceQueueItem { - // ID (UUID). - // This is automatically generated on enqueue. - string id = 1; - - // Device EUI (EUI64). - string dev_eui = 2; - - // Confirmed. - bool confirmed = 3; - - // FPort (must be > 0). - uint32 f_port = 4; - - // Data. - // Or use the json_object field when a codec has been configured. - bytes data = 5; - - // Only use this when a codec has been configured that can encode this - // object to bytes. - google.protobuf.Struct object = 6; - - // Is pending. - // This is set by ChirpStack to true when the downlink is pending (e.g. it - // has been sent, but a confirmation is still pending). - bool is_pending = 7; - - // Downlink frame-counter. - // Do not set this for plain-text data payloads. It will be automatically set - // by ChirpStack when the payload has been sent as downlink. - uint32 f_cnt_down = 8; - - // Is encrypted. - // This must be set to true if the end-application has already encrypted - // the data payload. In this case, the f_cnt_down field must be set to - // the corresponding frame-counter which has been used during the encryption. - bool is_encrypted = 9; -} - -message EnqueueDeviceQueueItemRequest { DeviceQueueItem queue_item = 1; } - -message EnqueueDeviceQueueItemResponse { - // ID (UUID). - string id = 1; -} - -message FlushDeviceQueueRequest { - // Device EUI (EUI64). - string dev_eui = 1; -} - -message GetDeviceQueueItemsRequest { - // Device EUI (EUI64). - string dev_eui = 1; - - // Return only the count, not the result-set. - bool count_only = 2; -} - -message GetDeviceQueueItemsResponse { - // Total number of queue items. - uint32 total_count = 1; - - // Result-set. - repeated DeviceQueueItem result = 2; -} - -message FlushDevNoncesRequest { - // Device EUI (EUI64). - string dev_eui = 1; -} - -message GetDeviceNextFCntDownRequest { - // Device EUI (EUI64). - string dev_eui = 1; -} - -message GetDeviceNextFCntDownResponse { - // FCntDown. - uint32 f_cnt_down = 1; -} \ No newline at end of file diff --git a/api/rust/proto/chirpstack/api/device_profile.proto b/api/rust/proto/chirpstack/api/device_profile.proto deleted file mode 100644 index 2c5a3476..00000000 --- a/api/rust/proto/chirpstack/api/device_profile.proto +++ /dev/null @@ -1,527 +0,0 @@ -syntax = "proto3"; - -package api; - -option go_package = "github.com/chirpstack/chirpstack/api/go/v4/api"; -option java_package = "io.chirpstack.api"; -option java_multiple_files = true; -option java_outer_classname = "DeviceProfileProto"; -option csharp_namespace = "Chirpstack.Api"; - -import "google/api/annotations.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/empty.proto"; -import "common/common.proto"; - -enum CodecRuntime { - // None. - NONE = 0; - - // Cayenne LPP. - CAYENNE_LPP = 1; - - // JavaScript. - JS = 2; -} - -enum MeasurementKind { - // Unknown (in which case it is not tracked). - UNKNOWN = 0; - - // Incrementing counters that never decrease (these are not reset on each - // reading). - COUNTER = 1; - - // Counters that do get reset upon reading. - ABSOLUTE = 2; - - // E.g. a temperature value. - GAUGE = 3; - - // E.g. a firmware version, true / false value. - STRING = 4; -} - -enum CadPeriodicity { - // 1 second. - SEC_1 = 0; - - // 500 milliseconds - MS_500 = 1; - - // 250 milliseconds - MS_250 = 2; - - // 100 milliseconds - MS_100 = 3; - - // 50 milliseconds - MS_50 = 4; - - // 20 milliseconds - MS_20 = 5; -} - -enum SecondChAckOffset { - // 0 kHz. - KHZ_0 = 0; - - // 200 kHz. - KHZ_200 = 1; - - // 400 kHz. - KHZ_400 = 2; - - // 800 kHz. - KHZ_800 = 3; - - // 1600 kHz. - KHZ_1600 = 4; - - // 3200 kHz. - KHZ_3200 = 5; -} - -enum RelayModeActivation { - // Disable the relay mode. - DISABLE_RELAY_MODE = 0; - - // Enable the relay model. - ENABLE_RELAY_MODE = 1; - - // Dynamic. - DYNAMIC = 2; - - // End-device controlled. - END_DEVICE_CONTROLLED = 3; -} - -// DeviceProfileService is the service providing API methods for managing -// device-profiles. -service DeviceProfileService { - // Create the given device-profile. - rpc Create(CreateDeviceProfileRequest) returns (CreateDeviceProfileResponse) { - option (google.api.http) = { - post : "/api/device-profiles" - body : "*" - }; - } - - // Get the device-profile for the given ID. - rpc Get(GetDeviceProfileRequest) returns (GetDeviceProfileResponse) { - option (google.api.http) = { - get : "/api/device-profiles/{id}" - }; - } - - // Update the given device-profile. - rpc Update(UpdateDeviceProfileRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - put : "/api/device-profiles/{device_profile.id}" - body : "*" - }; - } - - // Delete the device-profile with the given ID. - rpc Delete(DeleteDeviceProfileRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/device-profiles/{id}" - }; - } - - // List the available device-profiles. - rpc List(ListDeviceProfilesRequest) returns (ListDeviceProfilesResponse) { - option (google.api.http) = { - get : "/api/device-profiles" - }; - } - - // List available ADR algorithms. - rpc ListAdrAlgorithms(google.protobuf.Empty) - returns (ListDeviceProfileAdrAlgorithmsResponse) { - option (google.api.http) = { - get : "/api/device-profiles/adr-algorithms" - }; - } -} - -message DeviceProfile { - // Device-profile ID (UUID). - // Note: on create this will be automatically generated. - string id = 1; - - // Tenant ID (UUID). - string tenant_id = 2; - - // Name. - string name = 3; - - // Description. - string description = 26; - - // Region. - common.Region region = 4; - - // LoRaWAN mac-version. - common.MacVersion mac_version = 5; - - // Regional parameters revision. - common.RegParamsRevision reg_params_revision = 6; - - // ADR algorithm ID. - string adr_algorithm_id = 7; - - // Payload codec runtime. - CodecRuntime payload_codec_runtime = 8; - - // Payload codec script. - string payload_codec_script = 9; - - // Flush queue on device activation. - bool flush_queue_on_activate = 10; - - // Uplink interval (seconds). - // This defines the expected uplink interval which the device uses for - // communication. If the uplink interval has expired and no uplink has - // been received, the device is considered inactive. - uint32 uplink_interval = 11; - - // Device-status request interval (times / day). - // This defines the times per day that ChirpStack will request the - // device-status from the device. - uint32 device_status_req_interval = 12; - - // Supports OTAA. - bool supports_otaa = 13; - - // Supports Class B. - bool supports_class_b = 14; - - // Supports Class-C. - bool supports_class_c = 15; - - // Class-B timeout (seconds). - // This is the maximum time ChirpStack will wait to receive an acknowledgement - // from the device (if requested). - uint32 class_b_timeout = 16; - - // Class-B ping-slots per beacon period. - // Valid options are: 0 - 7. - // - // The actual number of ping-slots per beacon period equals to 2^k. - uint32 class_b_ping_slot_nb_k = 17; - - // Class-B ping-slot DR. - uint32 class_b_ping_slot_dr = 18; - - // Class-B ping-slot freq (Hz). - uint32 class_b_ping_slot_freq = 19; - - // Class-C timeout (seconds). - // This is the maximum time ChirpStack will wait to receive an acknowledgement - // from the device (if requested). - uint32 class_c_timeout = 20; - - // RX1 delay (for ABP). - uint32 abp_rx1_delay = 21; - - // RX1 DR offset (for ABP). - uint32 abp_rx1_dr_offset = 22; - - // RX2 DR (for ABP). - uint32 abp_rx2_dr = 23; - - // RX2 frequency (for ABP, Hz). - uint32 abp_rx2_freq = 24; - - // Tags (user defined). - // These tags can be used to add additional information the the - // device-profile. These tags are exposed in all the integration events of - // devices using this device-profile. - map tags = 25; - - // Measurements. - // If defined, ChirpStack will visualize these metrics in the web-interface. - map measurements = 27; - - // Auto-detect measurements. - // If set to true, measurements will be automatically added based on the - // keys of the decoded payload. In cases where the decoded payload contains - // random keys in the data, you want to set this to false. - bool auto_detect_measurements = 28; - - // Region configuration ID. - // If set, devices will only use the associated region. If let blank, then - // devices will use all regions matching the selected common-name. Note - // that multiple region configurations can exist for the same common-name, - // e.g. to provide an 8 channel and 16 channel configuration for the US915 - // band. - string region_config_id = 29; - - // Device is a Relay device. - // Enable this in case the device is a Relay. A Relay device implements TS011 - // and is able to relay data from relay capable devices. - // See for more information the TS011 specification. - bool is_relay = 30; - - // Device is a Relay end-device. - // Enable this in case the device is an end-device that can operate under a - // Relay. Please refer to the TS011 specification for more information. - bool is_relay_ed = 31; - - // End-device only accept data through relay. - // Only accept data for this device through a relay. This setting is useful - // for testing as in case of a test-setup, the end-device is usually within - // range of the gateway. - bool relay_ed_relay_only = 32; - - // Relay must be enabled. - bool relay_enabled = 33; - - // Relay CAD periodicity. - CadPeriodicity relay_cad_periodicity = 34; - - // Relay default channel index. - // Valid values are 0 and 1, please refer to the RP002 specification for - // the meaning of these values. - uint32 relay_default_channel_index = 35; - - // Relay second channel frequency (Hz). - uint32 relay_second_channel_freq = 36; - - // Relay second channel DR. - uint32 relay_second_channel_dr = 37; - - // Relay second channel ACK offset. - SecondChAckOffset relay_second_channel_ack_offset = 38; - - // Relay end-device activation mode. - RelayModeActivation relay_ed_activation_mode = 39; - - // Relay end-device smart-enable level. - uint32 relay_ed_smart_enable_level = 40; - - // Relay end-device back-off (in case it does not receive WOR ACK frame). - // 0 = Always send a LoRaWAN uplink - // 1..63 = Send a LoRaWAN uplink after X WOR frames without a WOR ACK - uint32 relay_ed_back_off = 41; - - // Relay end-device uplink limit bucket size. - // - // This field indicates the multiplier to determine the bucket size - // according to the following formula: - // BucketSize TOKEN = _reload_rate x _bucket_size - // - // Valid values (0 - 3): - // 0 = 1 - // 1 = 2 - // 2 = 4 - // 3 = 12 - uint32 relay_ed_uplink_limit_bucket_size = 42; - - // Relay end-device uplink limit reload rate. - // - // Valid values: - // * 0 - 62 = X tokens every hour - // * 63 = no limitation - uint32 relay_ed_uplink_limit_reload_rate = 43; - - // Relay join-request limit reload rate. - // - // Valid values: - // * 0 - 126 = X tokens every hour - // * 127 = no limitation - uint32 relay_join_req_limit_reload_rate = 44; - - // Relay notify limit reload rate. - // - // Valid values: - // * 0 - 126 = X tokens every hour - // * 127 = no limitation - uint32 relay_notify_limit_reload_rate = 45; - - // Relay global uplink limit reload rate. - // - // Valid values: - // * 0 - 126 = X tokens every hour - // * 127 = no limitation - uint32 relay_global_uplink_limit_reload_rate = 46; - - // Relay overall limit reload rate. - // - // Valid values: - // * 0 - 126 = X tokens every hour - // * 127 = no limitation - uint32 relay_overall_limit_reload_rate = 47; - - // Relay join-request limit bucket size. - // - // This field indicates the multiplier to determine the bucket size - // according to the following formula: - // BucketSize TOKEN = _reload_rate x _bucket_size - // - // Valid values (0 - 3): - // 0 = 1 - // 1 = 2 - // 2 = 4 - // 3 = 12 - uint32 relay_join_req_limit_bucket_size = 48; - - // Relay notify limit bucket size. - // - // This field indicates the multiplier to determine the bucket size - // according to the following formula: - // BucketSize TOKEN = _reload_rate x _bucket_size - // - // Valid values (0 - 3): - // 0 = 1 - // 1 = 2 - // 2 = 4 - // 3 = 12 - uint32 relay_notify_limit_bucket_size = 49; - - // Relay globak uplink limit bucket size. - // - // This field indicates the multiplier to determine the bucket size - // according to the following formula: - // BucketSize TOKEN = _reload_rate x _bucket_size - // - // Valid values (0 - 3): - // 0 = 1 - // 1 = 2 - // 2 = 4 - // 3 = 12 - uint32 relay_global_uplink_limit_bucket_size = 50; - - // Relay overall limit bucket size. - // - // This field indicates the multiplier to determine the bucket size - // according to the following formula: - // BucketSize TOKEN = _reload_rate x _bucket_size - // - // Valid values (0 - 3): - // 0 = 1 - // 1 = 2 - // 2 = 4 - // 3 = 12 - uint32 relay_overall_limit_bucket_size = 51; - - // Allow roaming. - // - // If set to true, it means that the device is allowed to use roaming. - bool allow_roaming = 52; -} - -message Measurement { - // Name (user defined). - string name = 2; - - // Kind. - MeasurementKind kind = 3; -} - -message DeviceProfileListItem { - // Device-profile ID (UUID). - string id = 1; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 2; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 3; - - // Name. - string name = 4; - - // Region. - common.Region region = 5; - - // LoRaWAN mac-version. - common.MacVersion mac_version = 6; - - // Regional parameters revision. - common.RegParamsRevision reg_params_revision = 7; - - // Supports OTAA. - bool supports_otaa = 8; - - // Supports Class-B. - bool supports_class_b = 9; - - // Supports Class-C. - bool supports_class_c = 10; -} - -message CreateDeviceProfileRequest { - // Object to create. - DeviceProfile device_profile = 1; -} - -message CreateDeviceProfileResponse { - // ID (UUID). - string id = 1; -} - -message GetDeviceProfileRequest { - // ID (UUID). - string id = 1; -} - -message GetDeviceProfileResponse { - // Device-profile object. - DeviceProfile device_profile = 1; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 2; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 3; -} - -message UpdateDeviceProfileRequest { - // Device-profile object. - DeviceProfile device_profile = 1; -} - -message DeleteDeviceProfileRequest { - // ID (UUID). - string id = 1; -} - -message ListDeviceProfilesRequest { - // Max number of device-profiles to return in the result-set. - uint32 limit = 1; - - // Offset in the result-set (for pagination). - uint32 offset = 2; - - // If set, the given string will be used to search on name. - string search = 3; - - // Tenant ID to list the device-profiles for. - string tenant_id = 4; -} - -message ListDeviceProfilesResponse { - // Total number of device-profiles. - uint32 total_count = 1; - - // Result-set. - repeated DeviceProfileListItem result = 2; -} - -message ListDeviceProfileAdrAlgorithmsResponse { - // Total number of algorithms. - uint32 total_count = 1; - - // Result-set. - repeated AdrAlgorithmListItem result = 2; -} - -message AdrAlgorithmListItem { - // Algorithm ID. - string id = 1; - - // Algorithm name. - string name = 2; -} diff --git a/api/rust/proto/chirpstack/api/device_profile_template.proto b/api/rust/proto/chirpstack/api/device_profile_template.proto deleted file mode 100644 index 1f28a5d7..00000000 --- a/api/rust/proto/chirpstack/api/device_profile_template.proto +++ /dev/null @@ -1,244 +0,0 @@ -syntax = "proto3"; - -package api; - -option go_package = "github.com/chirpstack/chirpstack/api/go/v4/api"; -option java_package = "io.chirpstack.api"; -option java_multiple_files = true; -option java_outer_classname = "DeviceProfileTemplateProto"; -option csharp_namespace = "Chirpstack.Api"; - -import "google/api/annotations.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/empty.proto"; -import "common/common.proto"; -import "api/device_profile.proto"; - -// DeviceProfileTemplateService is the service providing API methods for managing device-profile templates. -service DeviceProfileTemplateService { - // Create the given device-profile template. - rpc Create(CreateDeviceProfileTemplateRequest) returns (google.protobuf.Empty) { - option(google.api.http) = { - post: "/api/device-profile-templates" - body: "*" - }; - } - - // Get the device-profile template for the given ID. - rpc Get(GetDeviceProfileTemplateRequest) returns (GetDeviceProfileTemplateResponse) { - option(google.api.http) = { - get: "/api/device-profile-templates/{id}" - }; - } - - // Update the given device-profile template. - rpc Update(UpdateDeviceProfileTemplateRequest) returns (google.protobuf.Empty) { - option(google.api.http) = { - put: "/api/device-profile-templates/{device_profile_template.id}" - body: "*" - }; - } - - // Delete the device-profile template with the given ID. - rpc Delete(DeleteDeviceProfileTemplateRequest) returns (google.protobuf.Empty) { - option(google.api.http) = { - delete: "/api/device-profile-templates/{id}" - }; - } - - // List the available device-profile templates. - rpc List(ListDeviceProfileTemplatesRequest) returns (ListDeviceProfileTemplatesResponse) { - option(google.api.http) = { - get: "/api/device-profile-templates" - }; - } -} - -message DeviceProfileTemplate { - // Device-profile template ID. - string id = 1; - - // Name. - string name = 2; - - // Description. - string description = 3; - - // Vendor. - string vendor = 4; - - // Firmware. - string firmware = 5; - - // Region. - common.Region region = 6; - - // LoRaWAN mac-version. - common.MacVersion mac_version = 7; - - // Regional parameters revision. - common.RegParamsRevision reg_params_revision = 8; - - // ADR algorithm ID. - string adr_algorithm_id = 9; - - // Payload codec runtime. - CodecRuntime payload_codec_runtime = 10; - - // Payload codec script. - string payload_codec_script = 11; - - // Flush queue on device activation. - bool flush_queue_on_activate = 12; - - // Uplink interval (seconds). - // This defines the expected uplink interval which the device uses for - // communication. When the uplink interval has expired and no uplink has - // been received, the device is considered inactive. - uint32 uplink_interval = 13; - - // Device-status request interval (times / day). - // This defines the times per day that ChirpStack will request the device-status - // from the device. - uint32 device_status_req_interval = 14; - - // Supports OTAA. - bool supports_otaa = 15; - - // Supports Class B. - bool supports_class_b = 16; - - // Supports Class-C. - bool supports_class_c = 17; - - // Class-B timeout (seconds). - // This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). - uint32 class_b_timeout = 18; - - // Class-B ping-slots per beacon period. - // Valid options are: 0 - 7. - // - // The actual number of ping-slots per beacon period equals to 2^k. - uint32 class_b_ping_slot_nb_k = 19; - - // Class-B ping-slot DR. - uint32 class_b_ping_slot_dr = 20; - - // Class-B ping-slot freq (Hz). - uint32 class_b_ping_slot_freq = 21; - - // Class-C timeout (seconds). - // This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). - uint32 class_c_timeout = 22; - - // RX1 delay (for ABP). - uint32 abp_rx1_delay = 23; - - // RX1 DR offset (for ABP). - uint32 abp_rx1_dr_offset = 24; - - // RX2 DR (for ABP). - uint32 abp_rx2_dr = 25; - - // RX2 frequency (for ABP, Hz). - uint32 abp_rx2_freq = 26; - - // User defined tags. - map tags = 27; - - // Measurements. - // If defined, ChirpStack will visualize these metrics in the web-interface. - map measurements = 28; - - // Auto-detect measurements. - // If set to true, measurements will be automatically added based on the - // keys of the decoded payload. In cases where the decoded payload contains - // random keys in the data, you want to set this to false. - bool auto_detect_measurements = 29; -} - -message DeviceProfileTemplateListItem { - // Device-profile template ID. - string id = 1; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 2; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 3; - - // Name. - string name = 4; - - // Vendor. - string vendor = 5; - - // Firmware. - string firmware = 6; - - // Region. - common.Region region = 7; - - // LoRaWAN mac-version. - common.MacVersion mac_version = 8; - - // Regional parameters revision. - common.RegParamsRevision reg_params_revision = 9; - - // Supports OTAA. - bool supports_otaa = 10; - - // Supports Class-B. - bool supports_class_b = 11; - - // Supports Class-C. - bool supports_class_c = 12; - -} - -message CreateDeviceProfileTemplateRequest { - // Object to create. - DeviceProfileTemplate device_profile_template = 1; -} - -message GetDeviceProfileTemplateRequest { - // ID. - string id = 1; -} - -message GetDeviceProfileTemplateResponse { - // Device-profile template object. - DeviceProfileTemplate device_profile_template = 1; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 2; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 3; -} - -message UpdateDeviceProfileTemplateRequest { - // Object to update. - DeviceProfileTemplate device_profile_template = 1; -} - -message DeleteDeviceProfileTemplateRequest { - // ID. - string id = 1; -} - -message ListDeviceProfileTemplatesRequest { - // Max number of device-profile templates to return in the result-set. - uint32 limit = 1; - - // Offset in the result-set (for pagination). - uint32 offset = 2; -} - -message ListDeviceProfileTemplatesResponse { - // Total number of device-profile templates. - uint32 total_count = 1; - - // Result-set. - repeated DeviceProfileTemplateListItem result = 2; -} diff --git a/api/rust/proto/chirpstack/api/gateway.proto b/api/rust/proto/chirpstack/api/gateway.proto deleted file mode 100644 index 092cbb9b..00000000 --- a/api/rust/proto/chirpstack/api/gateway.proto +++ /dev/null @@ -1,257 +0,0 @@ -syntax = "proto3"; - -package api; - -option go_package = "github.com/chirpstack/chirpstack/api/go/v4/api"; -option java_package = "io.chirpstack.api"; -option java_multiple_files = true; -option java_outer_classname = "GatewayProto"; -option csharp_namespace = "Chirpstack.Api"; - -import "google/api/annotations.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/empty.proto"; -import "common/common.proto"; - -// GatewayService is the service providing API methods for managing gateways. -service GatewayService { - // Create creates the given gateway. - rpc Create(CreateGatewayRequest) returns (google.protobuf.Empty) { - option(google.api.http) = { - post: "/api/gateways" - body: "*" - }; - } - - // Get returns the gateway for the given Gateway ID. - rpc Get(GetGatewayRequest) returns (GetGatewayResponse) { - option(google.api.http) = { - get: "/api/gateways/{gateway_id}" - }; - } - - // Update updates the given gateway. - rpc Update(UpdateGatewayRequest) returns (google.protobuf.Empty) { - option(google.api.http) = { - put: "/api/gateways/{gateway.gateway_id}" - body: "*" - }; - } - - // Delete deletes the gateway matching the given Gateway ID. - rpc Delete(DeleteGatewayRequest) returns (google.protobuf.Empty) { - option(google.api.http) = { - delete: "/api/gateways/{gateway_id}" - }; - } - - // Get the list of gateways. - rpc List(ListGatewaysRequest) returns (ListGatewaysResponse) { - option(google.api.http) = { - get: "/api/gateways" - }; - } - - // Generate client-certificate for the gateway. - rpc GenerateClientCertificate(GenerateGatewayClientCertificateRequest) returns (GenerateGatewayClientCertificateResponse) { - option(google.api.http) = { - post: "/api/gateways/{gateway_id}/generate-certificate" - }; - } - - // GetMetrics returns the gateway metrics. - rpc GetMetrics(GetGatewayMetricsRequest) returns (GetGatewayMetricsResponse) { - option(google.api.http) = { - get: "/api/gateways/{gateway_id}/metrics" - }; - } -} - -enum GatewayState { - // The gateway has never sent any stats. - NEVER_SEEN = 0; - - // Online. - ONLINE = 1; - - // Offline. - OFFLINE = 2; -} - -message Gateway { - // Gateway ID (EUI64). - string gateway_id = 1; - - // Name. - string name = 2; - - // Description. - string description = 3; - - // Gateway location. - common.Location location = 4; - - // Tenant ID (UUID). - string tenant_id = 5; - - // Tags. - map tags = 6; - - // Metadata (provided by the gateway). - map metadata = 7; - - // Stats interval (seconds). - // This defines the expected interval in which the gateway sends its - // statistics. - uint32 stats_interval = 8; -} - -message GatewayListItem { - // Tenant ID. - string tenant_id = 1; - - // Gateway ID (EUI64). - string gateway_id = 2; - - // Name. - string name = 3; - - // Description. - string description = 4; - - // Location. - common.Location location = 5; - - // Gateway properties. - map properties = 6; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 7; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 8; - - // Last seen at timestamp. - google.protobuf.Timestamp last_seen_at = 9; - - // Gateway state. - // Please note that the state of the gateway is driven by the stats - // packages that are sent by the gateway. - GatewayState state = 10; -} - -message CreateGatewayRequest { - // Gateway object. - Gateway gateway = 1; -} - -message GetGatewayRequest { - // Gateway ID (EUI64). - string gateway_id = 1; -} - -message GetGatewayResponse { - // Gateway object. - Gateway gateway = 1; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 2; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 3; - - // Last seen at timestamp. - google.protobuf.Timestamp last_seen_at = 4; -} - -message UpdateGatewayRequest { - // Gateway object. - Gateway gateway = 1; -} - -message DeleteGatewayRequest { - // Gateway ID (EUI64). - string gateway_id = 1; -} - -message ListGatewaysRequest { - // Max number of gateways to return in the result-set. - uint32 limit = 1; - - // Offset in the result-set (for pagination). - uint32 offset = 2; - - // If set, the given string will be used to search on name (optional). - string search = 3; - - // Tenant ID (UUID) to filter gateways on. - // To list all gateways as a global admin user, this field can be left blank. - string tenant_id = 4; - - // Multicast-group ID (UUID) to filter gateways on. - string multicast_group_id = 5; -} - -message ListGatewaysResponse { - // Total number of gateways. - uint32 total_count = 1; - - // Result-set. - repeated GatewayListItem result = 2; -} - -message GenerateGatewayClientCertificateRequest { - // Gateway ID (EUI64). - string gateway_id = 1; -} - -message GenerateGatewayClientCertificateResponse { - // TLS certificate. - string tls_cert = 1; - - // TLS key. - string tls_key = 2; - - // CA certificate. - string ca_cert = 3; - - // Expires at defines the expiration date of the certificate. - google.protobuf.Timestamp expires_at = 4; -} - -message GetGatewayMetricsRequest { - // Gateway ID (EUI64). - string gateway_id = 1; - - // Interval start timestamp. - google.protobuf.Timestamp start = 2; - - // Interval end timestamp. - google.protobuf.Timestamp end = 3; - - // Aggregation. - common.Aggregation aggregation = 4; -} - -message GetGatewayMetricsResponse { - // RX packets. - common.Metric rx_packets = 1; - - // TX packets. - common.Metric tx_packets = 2; - - // TX packets / frequency. - common.Metric tx_packets_per_freq = 3; - - // RX packets / frequency. - common.Metric rx_packets_per_freq = 4; - - // TX packets / DR. - common.Metric tx_packets_per_dr = 5; - - // RX packets / DR. - common.Metric rx_packets_per_dr = 6; - - // TX packets per status. - common.Metric tx_packets_per_status = 7; -} diff --git a/api/rust/proto/chirpstack/api/internal.proto b/api/rust/proto/chirpstack/api/internal.proto deleted file mode 100644 index d033e252..00000000 --- a/api/rust/proto/chirpstack/api/internal.proto +++ /dev/null @@ -1,424 +0,0 @@ -syntax = "proto3"; - -package api; - -option go_package = "github.com/chirpstack/chirpstack/api/go/v4/api"; -option java_package = "io.chirpstack.api"; -option java_multiple_files = true; -option java_outer_classname = "InternalProto"; -option csharp_namespace = "Chirpstack.Api"; - -import "google/protobuf/timestamp.proto"; -import "google/protobuf/empty.proto"; -import "common/common.proto"; -import "api/user.proto"; - -// InternalService is the service providing API endpoints for internal usage. -service InternalService { - // Log in a user - rpc Login(LoginRequest) returns (LoginResponse) {} - - // Get the current user's profile - rpc Profile(google.protobuf.Empty) returns (ProfileResponse) {} - - // Perform a global search. - rpc GlobalSearch(GlobalSearchRequest) returns (GlobalSearchResponse) {} - - // CreateApiKey creates the given API key. - rpc CreateApiKey(CreateApiKeyRequest) returns (CreateApiKeyResponse) {} - - // DeleteApiKey deletes the API key. - rpc DeleteApiKey(DeleteApiKeyRequest) returns (google.protobuf.Empty) {} - - // ListApiKeys lists the available API keys. - rpc ListApiKeys(ListApiKeysRequest) returns (ListApiKeysResponse) {} - - // Get the global settings. - rpc Settings(google.protobuf.Empty) returns (SettingsResponse) {} - - // OpenId Connect login. - rpc OpenIdConnectLogin(OpenIdConnectLoginRequest) - returns (OpenIdConnectLoginResponse) {} - - // OAuth2 login. - rpc OAuth2Login(OAuth2LoginRequest) returns (OAuth2LoginResponse) {} - - // GetDevicesSummary returns an aggregated summary of the devices. - rpc GetDevicesSummary(GetDevicesSummaryRequest) - returns (GetDevicesSummaryResponse) {} - - // GetGatewaysSummary returns an aggregated summary of the gateways. - rpc GetGatewaysSummary(GetGatewaysSummaryRequest) - returns (GetGatewaysSummaryResponse) {} - - // Stream frame for the given Gateway ID. - rpc StreamGatewayFrames(StreamGatewayFramesRequest) returns (stream LogItem) { - } - - // Stream frames for the given Device EUI. - rpc StreamDeviceFrames(StreamDeviceFramesRequest) returns (stream LogItem) {} - - // Stream events for the given Device EUI. - rpc StreamDeviceEvents(StreamDeviceEventsRequest) returns (stream LogItem) {} - - // ListRegions lists the available (configured) regions. - rpc ListRegions(google.protobuf.Empty) returns (ListRegionsResponse) {} - - // GetRegion returns the region details for the given region. - rpc GetRegion(GetRegionRequest) returns (GetRegionResponse) {} - - // GetVersion returns the ChirpStack version. - rpc GetVersion(google.protobuf.Empty) returns (GetVersionResponse) {} -} - -message ApiKey { - // API key ID. - // This value will be automatically generated on create. - string id = 1; - - // Name. - string name = 2; - - // Is global admin key. - bool is_admin = 3; - - // Tenant ID. - // In case the API key is intended to manage resources under a single tenant. - string tenant_id = 4; -} - -message CreateApiKeyRequest { - // The API key to create. - ApiKey api_key = 1; -} - -message CreateApiKeyResponse { - // API key ID. - string id = 1; - - // API token for authentication API requests. - string token = 2; -} - -message DeleteApiKeyRequest { - // API key ID. - string id = 1; -} - -message ListApiKeysRequest { - // Max number of items to return. - uint32 limit = 1; - - // Offset in the result-set (for pagination). - uint32 offset = 2; - - // Return only admin keys. - bool is_admin = 3; - - // Filter on tenant ID. - string tenant_id = 4; -} - -message ListApiKeysResponse { - // Total number of API keys. - uint32 total_count = 1; - - repeated ApiKey result = 2; -} - -// Defines a tenant to which the user is associated. -message UserTenantLink { - // Created at timestamp. - google.protobuf.Timestamp created_at = 1; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 2; - - // Tenant ID. - string tenant_id = 3; - - // User is admin within the context of this tenant. - // There is no need to set the is_device_admin and is_gateway_admin flags. - bool is_admin = 4; - - // User is able to modify device related resources (applications, - // device-profiles, devices, multicast-groups). - bool is_device_admin = 5; - - // User is able to modify gateways. - bool is_gateway_admin = 6; -} - -message LoginRequest { - // Email of the user. - string email = 1; - - // Password of the user. - string password = 2; -} - -message LoginResponse { - // The JWT tag to be used to access chirpstack-application-server interfaces. - string jwt = 1; -} - -message ProfileResponse { - // User object. - User user = 1; - - // Tenants to which the user is associated. - repeated UserTenantLink tenants = 3; -} - -message GlobalSearchRequest { - // Search query. - string search = 1; - - // Max number of results to return. - int64 limit = 2; - - // Offset offset of the result-set (for pagination). - int64 offset = 3; -} - -message GlobalSearchResponse { repeated GlobalSearchResult result = 1; } - -message GlobalSearchResult { - // Record kind. - string kind = 1; - - // Search score. - float score = 2; - - // Organization id. - string tenant_id = 3; - - // Organization name. - string tenant_name = 4; - - // Application id. - string application_id = 5; - - // Application name. - string application_name = 6; - - // Device DevEUI (hex encoded). - string device_dev_eui = 7; - - // Device name. - string device_name = 8; - - // Gateway MAC (hex encoded). - string gateway_id = 9; - - // Gateway name. - string gateway_name = 10; -} - -message SettingsResponse { - // OpenId Connect settings. - OpenIdConnect openid_connect = 1; - - // OAuth2 settings. - OAuth2 oauth2 = 2; -} - -message OpenIdConnect { - // Enable OpenId Connect authentication. - bool enabled = 1; - - // Login url. - string login_url = 2; - - // Login label. - string login_label = 3; - - // Logout url. - string logout_url = 4; - - // Login redirect. - bool login_redirect = 5; -} - -message OAuth2 { - // OAuth2 is enabled. - bool enabled = 1; - - // Login url. - string login_url = 2; - - // Login label. - string login_label = 3; - - // Logout url. - string logout_url = 4; - - // Login redirect. - bool login_redirect = 5; -} - -message OpenIdConnectLoginRequest { - // OpenId Connect callback code. - string code = 1; - - // OpenId Connect callback state. - string state = 2; -} - -message OpenIdConnectLoginResponse { - // Token to use for authentication. - string token = 1; -} - -message OAuth2LoginRequest { - // OAuth2 callback code. - string code = 1; - - // OAuth2 callback state. - string state = 2; -} - -message OAuth2LoginResponse { - // Token to use for authentication. - string token = 1; -} - -message GetDevicesSummaryRequest { - // Tenant ID (UUID). - string tenant_id = 1; -} - -message GetDevicesSummaryResponse { - // Active count. - uint32 active_count = 1; - - // Inactive count. - uint32 inactive_count = 2; - - // per data-rate count. - // Devices that have never been seen are excluded. - map dr_count = 3; - - // Never seen count. - uint32 never_seen_count = 4; -} - -message GetGatewaysSummaryRequest { - // Tenant ID (UUID). - string tenant_id = 1; -} - -message GetGatewaysSummaryResponse { - // Online count. - uint32 online_count = 1; - - // Offline count. - uint32 offline_count = 2; - - // Never seen count. - uint32 never_seen_count = 3; -} - -message LogItem { - // ID. - string id = 1; - - // Timestamp. - google.protobuf.Timestamp time = 2; - - // Message. - string description = 3; - - // Body. - string body = 4; - - // Properties. - map properties = 5; -} - -message StreamGatewayFramesRequest { - // Gateway ID (EUI64). - string gateway_id = 1; -} - -message StreamDeviceFramesRequest { - // Device EUI. - string dev_eui = 1; -} - -message StreamDeviceEventsRequest { - // Device EUI. - string dev_eui = 1; -} - -message ListRegionsResponse { - // Configured regions. - repeated RegionListItem regions = 1; -} - -message RegionListItem { - // ID. - string id = 1; - - // Region. - common.Region region = 2; - - // Description. - string description = 3; -} - -message GetRegionRequest { - // Region ID. - string id = 1; -} - -message GetRegionResponse { - // ID. - string id = 1; - - // Region. - common.Region region = 2; - - // User information. - string user_info = 3; - - // Uplink channels. - repeated RegionChannel uplink_channels = 4; - - // RX1 delay. - uint32 rx1_delay = 5; - - // RX1 data-rate offset. - uint32 rx1_dr_offset = 6; - - // RX2 DR. - uint32 rx2_dr = 7; - - // RX2 frequency. - uint32 rx2_frequency = 8; - - // Class-B ping-slot DR. - uint32 class_b_ping_slot_dr = 9; - - // Class-B ping-slot frequency. - uint32 class_b_ping_slot_frequency = 10; - - // Region description. - string description = 11; -} - -message RegionChannel { - // Frequency (Hz). - uint32 frequency = 1; - - // Min DR. - uint32 dr_min = 2; - - // Max DR. - uint32 dr_max = 3; -} - -message GetVersionResponse { - // version - string version = 1; -} diff --git a/api/rust/proto/chirpstack/api/multicast_group.proto b/api/rust/proto/chirpstack/api/multicast_group.proto deleted file mode 100644 index 7548e046..00000000 --- a/api/rust/proto/chirpstack/api/multicast_group.proto +++ /dev/null @@ -1,327 +0,0 @@ -syntax = "proto3"; - -package api; - -option go_package = "github.com/chirpstack/chirpstack/api/go/v4/api"; -option java_package = "io.chirpstack.api"; -option java_multiple_files = true; -option java_outer_classname = "MulticastGroupProto"; -option csharp_namespace = "Chirpstack.Api"; - -import "google/api/annotations.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/empty.proto"; -import "common/common.proto"; - - -// MulticastGroupService is the service managing multicast-groups. -service MulticastGroupService { - // Create the given multicast group. - rpc Create(CreateMulticastGroupRequest) returns (CreateMulticastGroupResponse) { - option(google.api.http) = { - post: "/api/multicast-groups" - body: "*" - }; - } - - // Get returns the multicast group for the given ID. - rpc Get(GetMulticastGroupRequest) returns (GetMulticastGroupResponse) { - option(google.api.http) = { - get: "/api/multicast-groups/{id}" - }; - } - - // Update the given multicast group. - rpc Update(UpdateMulticastGroupRequest) returns (google.protobuf.Empty) { - option(google.api.http) = { - put: "/api/multicast-groups/{multicast_group.id}" - body: "*" - }; - } - - // Delete the multicast-group with the given ID. - rpc Delete(DeleteMulticastGroupRequest) returns (google.protobuf.Empty) { - option(google.api.http) = { - delete: "/api/multicast-groups/{id}" - }; - } - - // List the available multicast groups. - rpc List(ListMulticastGroupsRequest) returns (ListMulticastGroupsResponse) { - option(google.api.http) = { - get: "/api/multicast-groups" - }; - } - - // Add a device to the multicast group. - rpc AddDevice(AddDeviceToMulticastGroupRequest) returns (google.protobuf.Empty) { - option(google.api.http) = { - post: "/api/multicast-groups/{multicast_group_id}/devices" - body: "*" - }; - } - - // Remove a device from the multicast group. - rpc RemoveDevice(RemoveDeviceFromMulticastGroupRequest) returns (google.protobuf.Empty) { - option(google.api.http) = { - delete: "/api/multicast-groups/{multicast_group_id}/devices/{dev_eui}" - }; - } - - // Add a gateway to the multicast group. - rpc AddGateway(AddGatewayToMulticastGroupRequest) returns (google.protobuf.Empty) { - option(google.api.http) = { - post: "/api/multicast-groups/{multicast_group_id}/gateways" - body: "*" - }; - } - - // Remove a gateway from the multicast group. - rpc RemoveGateway(RemoveGatewayFromMulticastGroupRequest) returns (google.protobuf.Empty) { - option(google.api.http) = { - delete: "/api/multicast-groups/{multicast_group_id}/gateways/{gateway_id}" - }; - } - - // Add the given item to the multicast group queue. - rpc Enqueue(EnqueueMulticastGroupQueueItemRequest) returns (EnqueueMulticastGroupQueueItemResponse) { - option(google.api.http) = { - post: "/api/multicast-groups/{queue_item.multicast_group_id}/queue" - body: "*" - }; - } - - // Flush the queue for the given multicast group. - rpc FlushQueue(FlushMulticastGroupQueueRequest) returns (google.protobuf.Empty) { - option(google.api.http) = { - delete: "/api/multicast-groups/{multicast_group_id}/queue" - }; - } - - // List the items in the multicast group queue. - rpc ListQueue(ListMulticastGroupQueueRequest) returns (ListMulticastGroupQueueResponse) { - option(google.api.http) = { - get: "/api/multicast-groups/{multicast_group_id}/queue" - }; - } -} - -enum MulticastGroupType { - // Class C. - CLASS_C = 0; - - // Class-B. - CLASS_B = 1; -} - -enum MulticastGroupSchedulingType { - // Delay. - // If multicast downlinks must be sent through multiple gateways, then - // these will be sent one by one with a delay between each gateway. - DELAY = 0; - - // Time. - // If multicast downlinks must be sent through multiple gateways, then - // these will be sent simultaneously using GPS time synchronization. - // Note that this does require GPS time-synchronized LoRa gateways. - GPS_TIME = 1; -} - -message MulticastGroup { - // ID (UUID). - // This will be generated automatically on create. - string id = 1; - - // Name. - string name = 2; - - // Application ID. - // After creation, this can not be updated. - string application_id = 3; - - // Region. - common.Region region = 4; - - // Multicast address (HEX encoded DevAddr). - string mc_addr = 5; - - // Multicast network session key (HEX encoded AES128 key). - string mc_nwk_s_key = 6; - - // Multicast application session key (HEX encoded AES128 key). - string mc_app_s_key = 7; - - // Frame-counter. - uint32 f_cnt = 8; - - // Multicast group type. - MulticastGroupType group_type = 9; - - // Data-rate. - uint32 dr = 10; - - // Frequency (Hz). - uint32 frequency = 11; - - // Ping-slot period (only for Class-B). - // Deprecated: use class_b_ping_slot_nb_k. - uint32 class_b_ping_slot_period = 12; - - // Class-B ping-slots per beacon period (only for Class-B). - // Valid options are: 0 - 7; - // - // The actual number of ping-slots per beacon period equals to 2^k. - uint32 class_b_ping_slot_nb_k = 14; - - // Scheduling type (only for Class-C). - MulticastGroupSchedulingType class_c_scheduling_type = 13; -} - -message MulticastGroupListItem { - // ID. - string id = 1; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 2; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 3; - - // Name. - string name = 4; - - // Region. - common.Region region = 5; - - // Multicast group type. - MulticastGroupType group_type = 6; -} - -message CreateMulticastGroupRequest { - // Multicast group to create. - MulticastGroup multicast_group = 1; -} - -message CreateMulticastGroupResponse { - // ID of created multicast group (UUID). - string id = 1; -} - -message GetMulticastGroupRequest { - // Multicast group ID. - string id = 1; -} - -message GetMulticastGroupResponse { - // Multicast group object. - MulticastGroup multicast_group = 1; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 2; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 3; -} - -message UpdateMulticastGroupRequest { - // Multicast group object to update. - MulticastGroup multicast_group = 1; -} - -message DeleteMulticastGroupRequest { - // Multicast group iD. - string id = 1; -} - -message ListMulticastGroupsRequest { - // Max number of multicast groups to return in the result-set. - uint32 limit = 1; - - // Offset in the result-set (for pagination). - uint32 offset = 2; - - // If set, the given string will be used to search on name. - string search = 3; - - // Application ID to list the multicast groups for. - string application_id = 4; -} - -message ListMulticastGroupsResponse { - // Total number of multicast groups. - uint32 total_count = 1; - - // Result-test. - repeated MulticastGroupListItem result = 2; -} - -message AddDeviceToMulticastGroupRequest { - // Multicast group ID. - string multicast_group_id = 1; - - // Device EUI (HEX encoded). - string dev_eui = 2; -} - -message RemoveDeviceFromMulticastGroupRequest { - // Multicast group ID. - string multicast_group_id = 1; - - // Device EUI (HEX encoded). - string dev_eui = 2; -} - -message AddGatewayToMulticastGroupRequest { - // Multicast group ID. - string multicast_group_id = 1; - - // Gateway ID (HEX encoded). - string gateway_id = 2; -} - -message RemoveGatewayFromMulticastGroupRequest { - // Multicast group ID. - string multicast_group_id = 1; - - // Gateway ID (HEX encoded). - string gateway_id = 2; -} - -message MulticastGroupQueueItem { - // Multicast group ID. - string multicast_group_id = 1; - - // Downlink frame-counter. - // This will be automatically set on enqueue. - uint32 f_cnt = 2; - - // FPort (must be > 0). - uint32 f_port = 3; - - // Payload. - bytes data = 4; -} - -message EnqueueMulticastGroupQueueItemRequest { - // Multicast queue-item to enqueue. - MulticastGroupQueueItem queue_item = 1; -} - -message EnqueueMulticastGroupQueueItemResponse { - // Frame-counter of the enqueued payload. - uint32 f_cnt = 1; -} - -message FlushMulticastGroupQueueRequest { - // Multicast group ID. - string multicast_group_id = 1; -} - -message ListMulticastGroupQueueRequest { - // Multicast group ID. - string multicast_group_id = 1; -} - -message ListMulticastGroupQueueResponse { - repeated MulticastGroupQueueItem items = 1; -} diff --git a/api/rust/proto/chirpstack/api/relay.proto b/api/rust/proto/chirpstack/api/relay.proto deleted file mode 100644 index 2a29073f..00000000 --- a/api/rust/proto/chirpstack/api/relay.proto +++ /dev/null @@ -1,119 +0,0 @@ -syntax = "proto3"; - -package api; - -option go_package = "github.com/chirpstack/chirpstack/api/go/v4/api"; -option java_package = "io.chirpstack.api"; -option java_multiple_files = true; -option java_outer_classname = "RelayProto"; -option csharp_namespace = "Chirpstack.Api"; - -import "google/api/annotations.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/empty.proto"; - -// RelayService is the service providing API methos for managing relays. -service RelayService { - // List lists the relays for the given application id. - rpc List(ListRelaysRequest) returns (ListRelaysResponse) { - option(google.api.http) = { - get: "/api/relays" - }; - } - - // AddDevice adds the given device to the relay. - rpc AddDevice(AddRelayDeviceRequest) returns (google.protobuf.Empty) { - option(google.api.http) = { - post: "/api/relays/{relay_dev_eui}/devices" - body: "*" - }; - } - - // RemoveDevice removes the given device from the relay. - rpc RemoveDevice(RemoveRelayDeviceRequest) returns (google.protobuf.Empty) { - option(google.api.http) = { - delete: "/api/relays/{relay_dev_eui}/devices/{dev_eui}" - }; - }; - - // ListDevices lists the devices for the given relay. - rpc ListDevices(ListRelayDevicesRequest) returns (ListRelayDevicesResponse) { - option(google.api.http) = { - get: "/api/relays/{relay_dev_eui}/devices" - }; - }; -} - -message RelayListItem { - // DevEUI (EUI64). - string dev_eui = 1; - - // Name. - string name = 2; -} - -message ListRelaysRequest { - // Max number of devices to return in the result-set. - uint32 limit = 1; - - // Offset in the result-set (for pagination). - uint32 offset = 2; - - // Application ID (UUID). - string application_id = 3; -} - -message ListRelaysResponse { - // Total number of relays. - uint32 total_count = 1; - - // Result-set. - repeated RelayListItem result = 2; -} - -message AddRelayDeviceRequest { - // Relay DevEUI (EUI64). - string relay_dev_eui = 1; - - // Device DevEUI (EUI64). - string device_dev_eui = 2; - -} - -message RemoveRelayDeviceRequest { - // Relay DevEUI (EUI64). - string relay_dev_eui = 1; - - // Device DevEUI (EUI64). - string device_dev_eui = 2; -} - -message ListRelayDevicesRequest { - // Max number of multicast groups to return in the result-set. - uint32 limit = 1; - - // Offset in the result-set (for pagination). - uint32 offset = 2; - - // Relay DevEUI (EUI64). - string relay_dev_eui = 3; -} - -message RelayDeviceListItem { - // DevEUI (EUI64). - string dev_eui = 1; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 2; - - // Device name. - string name = 3; -} - -message ListRelayDevicesResponse { - // Total number of devices. - uint32 total_count = 1; - - // Result-set. - repeated RelayDeviceListItem result = 2; -} diff --git a/api/rust/proto/chirpstack/api/tenant.proto b/api/rust/proto/chirpstack/api/tenant.proto deleted file mode 100644 index e1a20f30..00000000 --- a/api/rust/proto/chirpstack/api/tenant.proto +++ /dev/null @@ -1,326 +0,0 @@ -syntax = "proto3"; - -package api; - -option go_package = "github.com/chirpstack/chirpstack/api/go/v4/api"; -option java_package = "io.chirpstack.api"; -option java_multiple_files = true; -option java_outer_classname = "TenantProto"; -option csharp_namespace = "Chirpstack.Api"; - -import "google/api/annotations.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/empty.proto"; - -// TenantService is the service providing API methods for managing tenants. -service TenantService { - // Create a new tenant. - rpc Create(CreateTenantRequest) returns (CreateTenantResponse) { - option (google.api.http) = { - post : "/api/tenants" - body : "*" - }; - } - - // Get the tenant for the given ID. - rpc Get(GetTenantRequest) returns (GetTenantResponse) { - option (google.api.http) = { - get : "/api/tenants/{id}" - }; - } - - // Update the given tenant. - rpc Update(UpdateTenantRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - put : "/api/tenants/{tenant.id}" - body : "*" - }; - } - - // Delete the tenant with the given ID. - rpc Delete(DeleteTenantRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/tenants/{id}" - }; - } - - // Get the list of tenants. - rpc List(ListTenantsRequest) returns (ListTenantsResponse) { - option (google.api.http) = { - get : "/api/tenants" - }; - } - - // Add an user to the tenant. - // Note: the user must already exist. - rpc AddUser(AddTenantUserRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post : "/api/tenants/{tenant_user.tenant_id}/users" - body : "*" - }; - } - - // Get the the tenant user for the given tenant and user IDs. - rpc GetUser(GetTenantUserRequest) returns (GetTenantUserResponse) { - option (google.api.http) = { - get : "/api/tenants/{tenant_id}/users/{user_id}" - }; - } - - // Update the given tenant user. - rpc UpdateUser(UpdateTenantUserRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - put : "/api/tenants/{tenant_user.tenant_id}/users/{tenant_user.user_id}" - body : "*" - }; - } - - // Delete the given tenant user. - rpc DeleteUser(DeleteTenantUserRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete : "/api/tenants/{tenant_id}/users/{user_id}" - }; - } - - // Get the list of tenant users. - rpc ListUsers(ListTenantUsersRequest) returns (ListTenantUsersResponse) { - option (google.api.http) = { - get : "/api/tenants/{tenant_id}/users" - }; - } -} - -message Tenant { - // Tenant ID (UUID). - // Note: this value will be automatically generated on create. - string id = 1; - - // Tenant name, - string name = 2; - - // Tenant description. - string description = 3; - - // Can the tenant create and "own" Gateways? - bool can_have_gateways = 4; - - // Max. gateway count for tenant. - // When set to 0, the tenant can have unlimited gateways. - uint32 max_gateway_count = 5; - - // Max. device count for tenant. - // When set to 0, the tenant can have unlimited devices. - uint32 max_device_count = 6; - - // Private gateways (uplink). - // If enabled, then uplink messages will not be shared with other tenants. - bool private_gateways_up = 7; - - // Private gateways (downlink). - // If enabled, then other tenants will not be able to schedule downlink - // messages through the gateways of this tenant. For example, in case you - // do want to share uplinks with other tenants (private_gateways_up=false), - // but you want to prevent other tenants from using gateway airtime. - bool private_gateways_down = 8; - - // Tags (user defined). - // These tags can be used to add additional information to the tenant. These - // tags are NOT exposed in the integration events. - map tags = 9; -} - -message TenantListItem { - // Tenant ID (UUID). - string id = 1; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 2; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 3; - - // Tenant name. - string name = 4; - - // Can the tenant create and "own" Gateways? - bool can_have_gateways = 5; - - // Private gateways (uplink). - bool private_gateways_up = 6; - - // Private gateways (downlink). - bool private_gateways_down = 9; - - // Max gateway count. - // 0 = unlimited. - uint32 max_gateway_count = 7; - - // Max device count. - // 0 = unlimited. - uint32 max_device_count = 8; -} - -message CreateTenantRequest { - // Tenant object to create. - Tenant tenant = 1; -} - -message CreateTenantResponse { - // Tenant ID. - string id = 1; -} - -message GetTenantRequest { - // Tenant ID. - string id = 1; -} - -message GetTenantResponse { - // Tenant object. - Tenant tenant = 1; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 2; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 3; -} - -message UpdateTenantRequest { - // Tenant object. - Tenant tenant = 1; -} - -message DeleteTenantRequest { - // Tenant ID. - string id = 1; -} - -message ListTenantsRequest { - // Max number of tenants to return in the result-set. - uint32 limit = 1; - - // Offset in the result-set (for pagination). - uint32 offset = 2; - - // If set, the given string will be used to search on name. - string search = 3; - - // If set, filters the result set to the tenants of the user. - // Only global API keys are able to filter by this field. - string user_id = 4; -} - -message ListTenantsResponse { - // Total number of tenants. - uint32 total_count = 1; - - // Result-set. - repeated TenantListItem result = 2; -} - -message TenantUser { - // Tenant ID (UUID). - string tenant_id = 1; - - // User ID (UUID). - string user_id = 2; - - // User is admin within the context of the tenant. - // There is no need to set the is_device_admin and is_gateway_admin flags. - bool is_admin = 3; - - // User is able to modify device related resources (applications, - // device-profiles, devices, multicast-groups). - bool is_device_admin = 4; - - // User is able to modify gateways. - bool is_gateway_admin = 5; - - // Email (only used on get and when adding a user to a tenant). - string email = 6; -} - -message TenantUserListItem { - // Tenant ID (UUID). - string tenant_id = 1; - - // User ID (UUID). - string user_id = 2; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 3; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 4; - - // Email. - string email = 5; - - // User is admin within the context of the tenant. - // There is no need to set the is_device_admin and is_gateway_admin flags. - bool is_admin = 6; - - // User is able to modify device related resources (applications, - // device-profiles, devices, multicast-groups). - bool is_device_admin = 7; - - // User is able to modify gateways. - bool is_gateway_admin = 8; -} - -message AddTenantUserRequest { - // Tenant user object. - TenantUser tenant_user = 1; -} - -message GetTenantUserRequest { - // Tenant ID (UUID). - string tenant_id = 1; - - // User ID (UUID). - string user_id = 2; -} - -message GetTenantUserResponse { - // Tenant user object. - TenantUser tenant_user = 1; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 2; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 3; -} - -message UpdateTenantUserRequest { - // Tenant user object. - TenantUser tenant_user = 1; -} - -message DeleteTenantUserRequest { - // Tenant ID (UUID). - string tenant_id = 1; - - // User ID (UUID). - string user_id = 2; -} - -message ListTenantUsersRequest { - // Tenant ID (UUID). - string tenant_id = 1; - - // Max number of tenants to return in the result-set. - uint32 limit = 2; - - // Offset in the result-set (for pagination). - uint32 offset = 3; -} - -message ListTenantUsersResponse { - // Total number of tenants. - uint32 total_count = 1; - - // Result-set. - repeated TenantUserListItem result = 2; -} diff --git a/api/rust/proto/chirpstack/api/user.proto b/api/rust/proto/chirpstack/api/user.proto deleted file mode 100644 index 68a51a5a..00000000 --- a/api/rust/proto/chirpstack/api/user.proto +++ /dev/null @@ -1,182 +0,0 @@ -syntax = "proto3"; - -package api; - -option go_package = "github.com/chirpstack/chirpstack/api/go/v4/api"; -option java_package = "io.chirpstack.api"; -option java_multiple_files = true; -option java_outer_classname = "UserProto"; -option csharp_namespace = "Chirpstack.Api"; - -import "google/api/annotations.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/empty.proto"; - - -// UserService is the service providing API methods for managing users. -service UserService { - // Create a new user. - rpc Create(CreateUserRequest) returns (CreateUserResponse) { - option(google.api.http) = { - post: "/api/users" - body: "*" - }; - } - - // Get the user for the given ID. - rpc Get(GetUserRequest) returns (GetUserResponse) { - option(google.api.http) = { - get: "/api/users/{id}" - }; - } - - // Update the given user. - rpc Update(UpdateUserRequest) returns (google.protobuf.Empty) { - option(google.api.http) = { - put: "/api/users/{user.id}" - body: "*" - }; - } - - // Delete the user with the given ID. - rpc Delete(DeleteUserRequest) returns (google.protobuf.Empty) { - option(google.api.http) = { - delete: "/api/users/{id}" - }; - } - - // Get the list of users. - rpc List(ListUsersRequest) returns (ListUsersResponse) { - option(google.api.http) = { - get: "/api/users" - }; - } - - // Update the password for the given user. - rpc UpdatePassword(UpdateUserPasswordRequest) returns (google.protobuf.Empty) { - option(google.api.http) = { - post: "/api/users/{user_id}/password" - body: "*" - }; - } -} - -message User { - // User ID (UUID). - // Will be set automatically on create. - string id = 1; - - // Set to true to make the user a global administrator. - bool is_admin = 4; - - // Set to false to disable the user. - bool is_active = 5; - - // E-mail of the user. - string email = 6; - - // Optional note to store with the user. - string note = 7; -} - -message UserListItem { - // User ID (UUID). - string id = 1; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 2; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 3; - - // Email of the user. - string email = 4; - - // Set to true to make the user a global administrator. - bool is_admin = 5; - - // Set to false to disable the user. - bool is_active = 6; -} - -message UserTenant { - // Tenant ID. - string tenant_id = 1; - - // User is admin within the context of the tenant. - // There is no need to set the is_device_admin and is_gateway_admin flags. - bool is_admin = 2; - - // User is able to modify device related resources (applications, - // device-profiles, devices, multicast-groups). - bool is_device_admin = 3; - - // User is able to modify gateways. - bool is_gateway_admin = 4; -} - -message CreateUserRequest { - // User object to create. - User user = 1; - - // Password to set for the user. - string password = 2; - - // Add the user to the following tenants. - repeated UserTenant tenants = 3; -} - -message CreateUserResponse { - // User ID. - string id = 1; -} - -message GetUserRequest { - // User ID. - string id = 1; -} - -message GetUserResponse { - // User object. - User user = 1; - - // Created at timestamp. - google.protobuf.Timestamp created_at = 2; - - // Last update timestamp. - google.protobuf.Timestamp updated_at = 3; -} - -message UpdateUserRequest { - // User object. - User user = 1; -} - -message DeleteUserRequest { - // User ID. - string id = 1; -} - -message ListUsersRequest { - // Max number of tenants to return in the result-set. - uint32 limit = 1; - - // Offset in the result-set (for pagination). - uint32 offset = 2; -} - -message ListUsersResponse { - // Total number of users. - uint32 total_count = 1; - - // Result-set. - repeated UserListItem result = 2; -} - -message UpdateUserPasswordRequest { - // User ID. - string user_id = 1; - - // Password to set. - string password = 2; -} diff --git a/api/rust/proto/chirpstack/common/common.proto b/api/rust/proto/chirpstack/common/common.proto deleted file mode 100644 index 22f4069a..00000000 --- a/api/rust/proto/chirpstack/common/common.proto +++ /dev/null @@ -1,224 +0,0 @@ -syntax = "proto3"; - -package common; - -option go_package = "github.com/chirpstack/chirpstack/api/go/v4/common"; -option java_package = "io.chirpstack.api"; -option java_multiple_files = true; -option java_outer_classname = "CommonProto"; -option csharp_namespace = "Chirpstack.Common"; - -import "google/protobuf/timestamp.proto"; - -enum Modulation { - // LoRa - LORA = 0; - - // FSK - FSK = 1; - - // LR-FHSS - LR_FHSS = 2; -} - -enum Region { - // EU868 - EU868 = 0; - - // US915 - US915 = 2; - - // CN779 - CN779 = 3; - - // EU433 - EU433 = 4; - - // AU915 - AU915 = 5; - - // CN470 - CN470 = 6; - - // AS923 - AS923 = 7; - - // AS923 with -1.80 MHz frequency offset - AS923_2 = 12; - - // AS923 with -6.60 MHz frequency offset - AS923_3 = 13; - - // (AS923 with -5.90 MHz frequency offset). - AS923_4 = 14; - - // KR920 - KR920 = 8; - - // IN865 - IN865 = 9; - - // RU864 - RU864 = 10; - - // ISM2400 (LoRaWAN 2.4 GHz) - ISM2400 = 11; -} - -enum MType { - // JoinRequest. - JOIN_REQUEST = 0; - - // JoinAccept. - JOIN_ACCEPT = 1; - - // UnconfirmedDataUp. - UNCONFIRMED_DATA_UP = 2; - - // UnconfirmedDataDown. - UNCONFIRMED_DATA_DOWN = 3; - - // ConfirmedDataUp. - CONFIRMED_DATA_UP = 4; - - // ConfirmedDataDown. - CONFIRMED_DATA_DOWN = 5; - - // RejoinRequest. - REJOIN_REQUEST = 6; - - // Proprietary. - PROPRIETARY = 7; -} - -enum MacVersion { - LORAWAN_1_0_0 = 0; - LORAWAN_1_0_1 = 1; - LORAWAN_1_0_2 = 2; - LORAWAN_1_0_3 = 3; - LORAWAN_1_0_4 = 4; - LORAWAN_1_1_0 = 5; -} - -enum RegParamsRevision { - A = 0; - B = 1; - RP002_1_0_0 = 2; - RP002_1_0_1 = 3; - RP002_1_0_2 = 4; - RP002_1_0_3 = 5; -} - -enum LocationSource { - // Unknown. - UNKNOWN = 0; - - // GPS. - GPS = 1; - - // Manually configured. - CONFIG = 2; - - // Geo resolver (TDOA). - GEO_RESOLVER_TDOA = 3; - - // Geo resolver (RSSI). - GEO_RESOLVER_RSSI = 4; - - // Geo resolver (GNSS). - GEO_RESOLVER_GNSS = 5; - - // Geo resolver (WIFI). - GEO_RESOLVER_WIFI = 6; -} - -enum Aggregation { - // Hour. - HOUR = 0; - - // Day. - DAY = 1; - - // Month. - MONTH = 2; -} - -enum MetricKind { - // Incrementing counters that never decrease (these are not reset on each - // reading). - COUNTER = 0; - - // Counters that do get reset upon reading. - ABSOLUTE = 1; - - // E.g. a temperature value. - GAUGE = 2; -} - -message Location { - // Latitude. - double latitude = 1; - - // Longitude. - double longitude = 2; - - // Altitude. - double altitude = 3; - - // Location source. - LocationSource source = 4; - - // Accuracy. - float accuracy = 5; -} - -message KeyEnvelope { - // KEK label. - string kek_label = 1; - - // AES key (when the kek_label is set, this value must first be decrypted). - bytes aes_key = 2; -} - -message Metric { - // Name. - string name = 1; - - // Timestamps. - repeated google.protobuf.Timestamp timestamps = 2; - - // Datasets. - repeated MetricDataset datasets = 3; - - // Kind. - MetricKind kind = 4; -} - -message MetricDataset { - // Label. - string label = 1; - - // Data. - // Each value index corresponds with the same timestamp index of the Metric. - repeated float data = 2; -} - -enum DeviceClass { - // Class-A. - CLASS_A = 0; - - // Class-B. - CLASS_B = 1; - - // Class-C. - CLASS_C = 2; -} - -// Join-Server context. -message JoinServerContext { - // Session-key ID. - string session_key_id = 1; - - // AppSKey envelope. - KeyEnvelope app_s_key = 2; -} \ No newline at end of file diff --git a/api/rust/proto/chirpstack/gw/gw.proto b/api/rust/proto/chirpstack/gw/gw.proto deleted file mode 100644 index cbd312ff..00000000 --- a/api/rust/proto/chirpstack/gw/gw.proto +++ /dev/null @@ -1,715 +0,0 @@ -syntax = "proto3"; - -package gw; - -option go_package = "github.com/chirpstack/chirpstack/api/go/v4/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"; -import "google/protobuf/duration.proto"; -import "google/protobuf/struct.proto"; - -enum CodeRate { - CR_UNDEFINED = 0; - CR_4_5 = 1; // LoRa - CR_4_6 = 2; - CR_4_7 = 3; - CR_4_8 = 4; - CR_3_8 = 5; // LR-FHSS - CR_2_6 = 6; - CR_1_4 = 7; - CR_1_6 = 8; - CR_5_6 = 9; - CR_LI_4_5 = 10; // LoRa 2.4 gHz - CR_LI_4_6 = 11; - CR_LI_4_8 = 12; -} - -enum DownlinkTiming { - // Send the downlink immediately. - IMMEDIATELY = 0; - - // Send downlink at the given delay (based on provided context). - DELAY = 1; - - // Send at given GPS epoch value. - GPS_EPOCH = 2; -} - -enum FineTimestampType { - // No fine-timestamp available. - NONE = 0; - - // Encrypted fine-timestamp. - ENCRYPTED = 1; - - // Plain fine-timestamp. - PLAIN = 2; -} - -enum CRCStatus { - // No CRC. - NO_CRC = 0; - - // Bad CRC. - BAD_CRC = 1; - - // CRC OK. - CRC_OK = 2; -} - -enum TxAckStatus { - // Ignored (when a previous item was already emitted). - IGNORED = 0; - - // Packet has been programmed for downlink. - OK = 1; - - // Rejected because it was already too late to program this packet for - // downlink. - TOO_LATE = 2; - - // Rejected because downlink packet timestamp is too much in advance. - TOO_EARLY = 3; - - // Rejected because there was already a packet programmed in requested - // timeframe. - COLLISION_PACKET = 4; - - // Rejected because there was already a beacon planned in requested timeframe. - COLLISION_BEACON = 5; - - // Rejected because requested frequency is not supported by TX RF chain. - TX_FREQ = 6; - - // Rejected because requested power is not supported by gateway. - TX_POWER = 7; - - // Rejected because GPS is unlocked, so GPS timestamp cannot be used. - GPS_UNLOCKED = 8; - - // Downlink queue is full. - QUEUE_FULL = 9; - - // Internal error. - INTERNAL_ERROR = 10; -} - -message Modulation { - oneof parameters { - // LoRa modulation information. - LoraModulationInfo lora = 3; - - // FSK modulation information. - FskModulationInfo fsk = 4; - - // LR-FHSS modulation information. - LrFhssModulationInfo lr_fhss = 5; - } -} - -message UplinkTxInfoLegacy { - // Frequency (Hz). - uint32 frequency = 1; - - // Modulation. - common.Modulation modulation = 2; - - oneof modulation_info { - // LoRa modulation information. - LoraModulationInfo lora_modulation_info = 3; - - // FSK modulation information. - FskModulationInfo fsk_modulation_info = 4; - - // LR-FHSS modulation information. - LrFhssModulationInfo lr_fhss_modulation_info = 5; - } -} - -message UplinkTxInfo { - // Frequency (Hz). - uint32 frequency = 1; - - // Modulation. - Modulation modulation = 2; -} - -message LoraModulationInfo { - // Bandwidth. - uint32 bandwidth = 1; - - // Speading-factor. - uint32 spreading_factor = 2; - - // Code-rate. - string code_rate_legacy = 3; - - // Code-rate. - CodeRate code_rate = 5; - - // Polarization inversion. - bool polarization_inversion = 4; - - // Preamble length (for TX). - uint32 preamble = 6; - - // No CRC (for TX). - // If true, do not send a CRC in the packet. - bool no_crc = 7; -} - -message FskModulationInfo { - // Frequency deviation. - uint32 frequency_deviation = 1; - - // FSK datarate (bits / sec). - uint32 datarate = 2; -} - -message LrFhssModulationInfo { - // Operating channel width (OCW) in Hz. - uint32 operating_channel_width = 1; - - // Code-rate. - // Deprecated: use code_rate. - string code_rate_legacy = 2; - - // Code-rate. - CodeRate code_rate = 4; - - // Hopping grid number of steps. - uint32 grid_steps = 3; -} - -message EncryptedFineTimestamp { - // AES key index used for encrypting the fine timestamp. - uint32 aes_key_index = 1; - - // Encrypted 'main' fine-timestamp (ns precision part of the timestamp). - bytes encrypted_ns = 2; - - // FPGA ID. - bytes fpga_id = 3; -} - -message PlainFineTimestamp { - // Full timestamp. - google.protobuf.Timestamp time = 1; -} - -message GatewayStats { - // Gateway ID. - // Deprecated: use gateway_id. - bytes gateway_id_legacy = 1; - - // Gateway ID. - string gateway_id = 17; - - // Gateway time. - google.protobuf.Timestamp time = 2; - - // Gateway location. - common.Location location = 3; - - // Gateway configuration version (this maps to the config_version sent - // by ChirpStack to the gateway). - string config_version = 4; - - // Number of radio packets received. - uint32 rx_packets_received = 5; - - // Number of radio packets received with valid PHY CRC. - uint32 rx_packets_received_ok = 6; - - // Number of downlink packets received for transmission. - uint32 tx_packets_received = 7; - - // Number of downlink packets emitted. - uint32 tx_packets_emitted = 8; - - // Additional gateway meta-data. - map metadata = 10; - - // Tx packets per frequency. - map tx_packets_per_frequency = 12; - - // Rx packets per frequency. - map rx_packets_per_frequency = 13; - - // Tx packets per modulation parameters. - repeated PerModulationCount tx_packets_per_modulation = 14; - - // Rx packets per modulation parameters. - repeated PerModulationCount rx_packets_per_modulation = 15; - - // Tx packets per status. - map tx_packets_per_status = 16; -} - -message PerModulationCount { - // Modulation. - Modulation modulation = 1; - - // Count. - uint32 count = 2; -} - -message UplinkRxInfoLegacy { - // Gateway ID. - bytes gateway_id = 1; - - // RX time (only set when the gateway has a GPS module). - google.protobuf.Timestamp time = 2; - - // RX time since GPS epoch (only set when the gateway has a GPS module). - google.protobuf.Duration time_since_gps_epoch = 3; - - // RSSI. - int32 rssi = 5; - - // LoRa SNR. - double lora_snr = 6; - - // Channel. - uint32 channel = 7; - - // RF Chain. - uint32 rf_chain = 8; - - // Board. - uint32 board = 9; - - // Antenna. - uint32 antenna = 10; - - // Location. - common.Location location = 11; - - // Fine-timestamp type. - FineTimestampType fine_timestamp_type = 12; - - // Fine-timestamp data. - oneof fine_timestamp { - // Encrypted fine-timestamp data. - EncryptedFineTimestamp encrypted_fine_timestamp = 13; - - // Plain fine-timestamp data. - PlainFineTimestamp plain_fine_timestamp = 14; - } - - // Gateway specific context. - bytes context = 15; - - // Uplink ID (UUID bytes). - // Unique and random ID which can be used to correlate the uplink across - // multiple logs. - bytes uplink_id = 16; - - // CRC status. - CRCStatus crc_status = 17; - - // Optional meta-data map. - map metadata = 18; -} - -message UplinkRxInfo { - // Gateway ID. - string gateway_id = 1; - - // Uplink ID. - uint32 uplink_id = 2; - - // Gateway RX time (set if the gateway has a GNSS module). - google.protobuf.Timestamp gw_time = 3; - - // Network Server RX time (set by the NS on receiving the uplink). - google.protobuf.Timestamp ns_time = 17; - - // RX time as time since GPS epoch (set if the gateway has a GNSS module). - google.protobuf.Duration time_since_gps_epoch = 4; - - // Fine-timestamp. - // This timestamp can be used for TDOA based geolocation. - google.protobuf.Duration fine_time_since_gps_epoch = 5; - - // RSSI. - int32 rssi = 6; - - // SNR. - // Note: only available for LoRa modulation. - float snr = 7; - - // Channel. - uint32 channel = 8; - - // RF chain. - uint32 rf_chain = 9; - - // Board. - uint32 board = 10; - - // Antenna. - uint32 antenna = 11; - - // Location. - common.Location location = 12; - - // Gateway specific context. - // This value must be returned to the gateway on (Class-A) downlink. - bytes context = 13; - - // Additional gateway meta-data. - map metadata = 15; - - // CRC status. - CRCStatus crc_status = 16; -} - -message DownlinkTxInfoLegacy { - // Gateway ID. - // Deprecated: replaced by gateway_id in DownlinkFrame. - bytes gateway_id = 1; - - // TX frequency (in Hz). - uint32 frequency = 5; - - // TX power (in dBm EIRP). - int32 power = 6; - - // Modulation. - common.Modulation modulation = 7; - - oneof modulation_info { - // LoRa modulation information. - LoraModulationInfo lora_modulation_info = 8; - - // FSK modulation information. - FskModulationInfo fsk_modulation_info = 9; - } - - // The board identifier for emitting the frame. - uint32 board = 10; - - // The antenna identifier for emitting the frame. - uint32 antenna = 11; - - // Timing defines the downlink timing to use. - DownlinkTiming timing = 12; - - oneof timing_info { - // Immediately timing information. - ImmediatelyTimingInfo immediately_timing_info = 13; - - // Context based delay timing information. - DelayTimingInfo delay_timing_info = 14; - - // GPS Epoch timing information. - GPSEpochTimingInfo gps_epoch_timing_info = 15; - } - - // Gateway specific context. - // In case of a Class-A downlink, this contains a copy of the uplink context. - bytes context = 16; -} - -message DownlinkTxInfo { - // TX frequency (in Hz). - uint32 frequency = 1; - - // TX power (in dBm EIRP). - int32 power = 2; - - // Modulation. - Modulation modulation = 3; - - // The board identifier for emitting the frame. - uint32 board = 4; - - // The antenna identifier for emitting the frame. - uint32 antenna = 5; - - // Timing. - Timing timing = 6; - - // Gateway specific context. - // In case of a Class-A downlink, this contains a copy of the uplink context. - bytes context = 7; -} - -message Timing { - oneof parameters { - // Immediately timing information. - ImmediatelyTimingInfo immediately = 1; - - // Context based delay timing information. - DelayTimingInfo delay = 2; - - // GPS Epoch timing information. - GPSEpochTimingInfo gps_epoch = 3; - } -} - -message ImmediatelyTimingInfo { - // Not implemented yet. -} - -message DelayTimingInfo { - // Delay (duration). - // The delay will be added to the gateway internal timing, provided by the - // context object. - google.protobuf.Duration delay = 1; -} - -message GPSEpochTimingInfo { - // Duration since GPS Epoch. - google.protobuf.Duration time_since_gps_epoch = 1; -} - -message UplinkFrame { - // PHYPayload. - bytes phy_payload = 1; - - // TX meta-data (deprecated). - UplinkTxInfoLegacy tx_info_legacy = 2; - - // RX meta-data (deprecated). - UplinkRxInfoLegacy rx_info_legacy = 3; - - // Tx meta-data. - UplinkTxInfo tx_info = 4; - - // Rx meta-data. - UplinkRxInfo rx_info = 5; -} - -message UplinkFrameSet { - // PHYPayload. - bytes phy_payload = 1; - - // TX meta-data. - UplinkTxInfo tx_info = 2; - - // RX meta-data set. - repeated UplinkRxInfo rx_info = 3; -} - -message DownlinkFrame { - // Downlink ID. - uint32 downlink_id = 3; - - // Downlink ID (UUID). - // Deprecated: use downlink_id. - bytes downlink_id_legacy = 4; - - // 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. - repeated DownlinkFrameItem items = 5; - - // Gateway ID. - // Deprecated: use gateway_id - bytes gateway_id_legacy = 6; - - // Gateway ID. - string gateway_id = 7; -} - -message DownlinkFrameItem { - // PHYPayload. - bytes phy_payload = 1; - - // TX meta-data (deprecated). - DownlinkTxInfoLegacy tx_info_legacy = 2; - - // Tx meta-data. - DownlinkTxInfo tx_info = 3; -} - -message DownlinkTxAck { - // Gateway ID (deprecated). - bytes gateway_id_legacy = 1; - - // Gateway ID. - string gateway_id = 6; - - // Downlink ID. - uint32 downlink_id = 2; - - // Downlink ID (deprecated). - bytes downlink_id_legacy = 4; - - // 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. - repeated DownlinkTxAckItem items = 5; -} - -message DownlinkTxAckItem { - // The Ack status of this item. - TxAckStatus status = 1; -} - -message GatewayConfiguration { - // Gateway ID. - // Deprecated: use gateway_id. - bytes gateway_id_legacy = 1; - - // Gateway ID. - string gateway_id = 5; - - // Configuration version. - string version = 2; - - // Channels. - repeated ChannelConfiguration channels = 3; - - // Stats interval. - google.protobuf.Duration stats_interval = 4; -} - -message ChannelConfiguration { - // Frequency (Hz). - uint32 frequency = 1; - - // Modulation (deprecated). - common.Modulation modulation_legacy = 2; - - oneof modulation_config { - // LoRa modulation config. - LoraModulationConfig lora_modulation_config = 3; - - // FSK modulation config. - FskModulationConfig fsk_modulation_config = 4; - } - - // Board index. - uint32 board = 5; - - // Demodulator index (of the given board). - uint32 demodulator = 6; -} - -message LoraModulationConfig { - // Bandwidth (kHz). - // Deprecated: use bandwidth. - uint32 bandwidth_legacy = 1; - - // Bandwidth (Hz). - uint32 bandwidth = 3; - - // Spreading-factors. - repeated uint32 spreading_factors = 2; -} - -message FskModulationConfig { - // Bandwidth (kHz). - // Deprecated: use bandwidth. - uint32 bandwidth_legacy = 1; - - // Bandwidth (Hz). - uint32 bandwidth = 3; - - // Bitrate. - uint32 bitrate = 2; -} - -message GatewayCommandExecRequest { - // Gateway ID. - // Deprecated: use gateway_id. - bytes gateway_id_legacy = 1; - - // Gateway ID. - string gateway_id = 6; - - // Command to execute. - // This command must be pre-configured in the LoRa Gateway Bridge - // configuration. - string command = 2; - - // Execution request ID. - // The same will be returned when the execution of the command has - // completed. - uint32 exec_id = 7; - - // Standard input. - bytes stdin = 4; - - // Environment variables. - map environment = 5; -} - -message GatewayCommandExecResponse { - // Gateway ID. - // Deprecated: use gateway_id. - bytes gateway_id_legacy = 1; - - // Gateway ID. - string gateway_id = 6; - - // Execution request ID. - uint32 exec_id = 7; - - // Standard output. - bytes stdout = 3; - - // Standard error. - bytes stderr = 4; - - // Error message. - string error = 5; -} - -// 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. -message RawPacketForwarderEvent { - // Gateway ID. - // Deprecated: use gateway_id. - bytes gateway_id_legacy = 1; - - // Gateway ID. - string gateway_id = 4; - - // Payload contains the raw payload. - bytes payload = 3; -} - -// 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. -message RawPacketForwarderCommand { - // Gateway ID. - // Deprecated: use gateway_id. - bytes gateway_id_legacy = 1; - - // Gateway ID. - string gateway_id = 4; - - // Payload contains the raw payload. - bytes payload = 3; -} - -// ConnState contains the connection state of a gateway. -message ConnState { - // Gateway ID. - // Deprecated: use gateway_id. - bytes gateway_id_legacy = 1; - - // Gateway ID. - string gateway_id = 3; - - enum State { - OFFLINE = 0; - ONLINE = 1; - } - - State state = 2; -} diff --git a/api/rust/proto/chirpstack/integration/integration.proto b/api/rust/proto/chirpstack/integration/integration.proto deleted file mode 100644 index 77e3b8e0..00000000 --- a/api/rust/proto/chirpstack/integration/integration.proto +++ /dev/null @@ -1,350 +0,0 @@ -syntax = "proto3"; - -package integration; - -option go_package = "github.com/brocaar/chirpstack/api/go/v4/integration"; -option java_package = "io.chirpstack.api.integration"; -option java_multiple_files = true; -option java_outer_classname = "IntegrationProto"; -option csharp_namespace = "Chirpstack.Integration"; - -import "common/common.proto"; -import "gw/gw.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/struct.proto"; - -enum LogLevel { - // Info. - INFO = 0; - - // Warning. - WARNING = 1; - - // Error. - ERROR = 2; -} - -enum LogCode { - // Unknown type. - UNKNOWN = 0; - - // Error related to the downlink payload size. - // Usually seen when the payload exceeded the maximum allowed payload size. - DOWNLINK_PAYLOAD_SIZE = 1; - - // Uplink codec error. - UPLINK_CODEC = 2; - - // Downlink codec error. - DOWNLINK_CODEC = 3; - - // OTAA error. - OTAA = 4; - - // Uplink frame-counter was reset. - UPLINK_F_CNT_RESET = 5; - - // Uplink MIC error. - UPLINK_MIC = 6; - - // Uplink frame-counter retransmission. - UPLINK_F_CNT_RETRANSMISSION = 7; - - // Downlink gateway error. - DOWNLINK_GATEWAY = 8; - - // Relay new end-device. - RELAY_NEW_END_DEVICE = 9; - - // Downlink frame-counter. - F_CNT_DOWN = 10; -} - -// Device information. -message DeviceInfo { - // Tenant ID (UUID). - string tenant_id = 1; - - // Tenant name. - string tenant_name = 2; - - // Application ID (UUID). - string application_id = 3; - - // Application name. - string application_name = 4; - - // Device-profile ID (UUID). - string device_profile_id = 5; - - // Device-profile name. - string device_profile_name = 6; - - // Device name. - string device_name = 7; - - // Device EUI. - string dev_eui = 8; - - // Device class. - common.DeviceClass device_class_enabled = 10; - - // Device-profile and device tags. - map tags = 9; -} - -// Uplink relay RX information. -message UplinkRelayRxInfo { - // Relay DevEUI. - string dev_eui = 1; - - // Frequency. - uint32 frequency = 2; - - // Data-rate. - uint32 dr = 3; - - // SNR. - int32 snr = 4; - - // RSSI. - int32 rssi = 5; - - // WOR channel. - uint32 wor_channel = 6; -} - -// UplinkEvent is the message sent when an uplink payload has been received. -message UplinkEvent { - // Deduplication ID (UUID). - string deduplication_id = 1; - - // Timestamp. - google.protobuf.Timestamp time = 2; - - // Device information. - DeviceInfo device_info = 3; - - // Device address. - string dev_addr = 4; - - // Device has ADR bit set. - bool adr = 5; - - // Data-rate. - uint32 dr = 6; - - // Frame counter. - uint32 f_cnt = 7; - - // Frame port. - uint32 f_port = 8; - - // Uplink was of type confirmed. - bool confirmed = 9; - - // FRMPayload data. - bytes data = 10; - - // Note that this is only set when a codec is configured in the Device - // Profile. - google.protobuf.Struct object = 11; - - // Receiving gateway RX info. - repeated gw.UplinkRxInfo rx_info = 12; - - // TX info. - gw.UplinkTxInfo tx_info = 13; - - // Relay info. - UplinkRelayRxInfo relay_rx_info = 14; - - // Join-Server context. - // A non-empty value indicatest that ChirpStack does not have access to - // the AppSKey and that the encryption / decryption of the payloads is - // the responsibility of the end-application. - common.JoinServerContext join_server_context = 15; -} - -// JoinEvent is the message sent when a device joined the network. -// Note: this event is sent at the first uplink after OTAA. -message JoinEvent { - // Deduplication ID (UUID). - string deduplication_id = 1; - - // Timestamp. - google.protobuf.Timestamp time = 2; - - // Device info. - DeviceInfo device_info = 3; - - // Device address. - string dev_addr = 4; - - // Relay info. - UplinkRelayRxInfo relay_rx_info = 5; - - // Join-Server context. - // A non-empty value indicatest that ChirpStack does not have access to - // the AppSKey and that the encryption / decryption of the payloads is - // the responsibility of the end-application. - common.JoinServerContext join_server_context = 6; -} - -// AckEvent is the message sent when a confirmation on a confirmed downlink -// has been received -or- when the downlink timed out. -message AckEvent { - // Deduplication ID (UUID). - string deduplication_id = 1; - - // Timestamp. - google.protobuf.Timestamp time = 2; - - // Device info. - DeviceInfo device_info = 3; - - // Downlink queue item ID (UUID). - string queue_item_id = 4; - - // Frame was acknowledged. - bool acknowledged = 5; - - // Downlink frame counter to which the acknowledgement relates. - uint32 f_cnt_down = 6; -} - -// 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. -message TxAckEvent { - // Downlink ID. - uint32 downlink_id = 1; - - // Timestamp. - google.protobuf.Timestamp time = 2; - - // Device info. - DeviceInfo device_info = 3; - - // Downlink queue item ID (UUID). - string queue_item_id = 4; - - // Downlink frame-counter. - uint32 f_cnt_down = 5; - - // Gateway ID. - string gateway_id = 6; - - // TX info. - gw.DownlinkTxInfo tx_info = 7; -} - -// LogEvent is the message sent when a device-related log was sent. -message LogEvent { - // Timestamp. - google.protobuf.Timestamp time = 1; - - // Device info. - DeviceInfo device_info = 2; - - // Log level. - LogLevel level = 3; - - // Log code. - LogCode code = 4; - - // Description message. - string description = 5; - - // Context map. - map context = 6; -} - -// StatusEvent is the message sent when a device-status mac-command was sent -// by the device. -message StatusEvent { - // Deduplication ID (UUID). - string deduplication_id = 1; - - // Timestamp. - google.protobuf.Timestamp time = 2; - - // Device info. - DeviceInfo device_info = 3; - - // The demodulation signal-to-noise ratio in dB for the last successfully - // received device-status request by the Network Server. - int32 margin = 5; - - // Device is connected to an external power source. - bool external_power_source = 6; - - // Battery level is not available. - bool battery_level_unavailable = 7; - - // Battery level. - float battery_level = 8; -} - -// LocationEvent is the message sent when a geolocation resolve was returned. -message LocationEvent { - // Deduplication ID (UUID). - string deduplication_id = 1; - - // Timestamp. - google.protobuf.Timestamp time = 2; - - // Device info. - DeviceInfo device_info = 3; - - // Location. - common.Location location = 4; -} - -// 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. -message IntegrationEvent { - // Deduplication ID (UUID). - string deduplication_id = 1; - - // Timestamp. - google.protobuf.Timestamp time = 2; - - // Device info. - DeviceInfo device_info = 3; - - // Integration name. - string integration_name = 4; - - // Event type. - string event_type = 5; - - // Struct containing the event object. - google.protobuf.Struct object = 6; -} - -// DownlinkCommand is the command to enqueue a downlink payload for the given -// device. -message DownlinkCommand { - // ID (UUID). - // If left blank, a random UUID will be generated. - string id = 1; - - // Device EUI (EUI64). - string dev_eui = 2; - - // Confirmed. - bool confirmed = 3; - - // FPort (must be > 0). - uint32 f_port = 4; - - // Data. - // Or use the json_object field when a codec has been configured. - bytes data = 5; - - // Only use this when a codec has been configured that can encode this - // object to bytes. - google.protobuf.Struct object = 6; -} diff --git a/api/rust/proto/chirpstack/internal/internal.proto b/api/rust/proto/chirpstack/internal/internal.proto deleted file mode 100644 index 489eb97c..00000000 --- a/api/rust/proto/chirpstack/internal/internal.proto +++ /dev/null @@ -1,410 +0,0 @@ -syntax = "proto3"; - -package internal; - -import "common/common.proto"; -import "gw/gw.proto"; -import "google/protobuf/timestamp.proto"; - -message DeviceSession { - // Device address. - bytes dev_addr = 2; - - // LoRaWAN mac-version. - common.MacVersion mac_version = 4; - - // FNwkSIntKey. - bytes f_nwk_s_int_key = 5; - - // SNwkSIntKey. - bytes s_nwk_s_int_key = 6; - - // NwkSEncKey. - bytes nwk_s_enc_key = 7; - - // AppSKey envelope. - common.KeyEnvelope app_s_key = 8; - - // JS Session Key ID. - bytes js_session_key_id = 42; - - // Uplink frame-counter. - uint32 f_cnt_up = 9; - - // Downlink frame-counter (ns). - uint32 n_f_cnt_down = 10; - - // Downlink frame-counter (as). - uint32 a_f_cnt_down = 11; - - // Frame-counter holding the last confirmed downlink frame (n_f_cnt_down or - // a_f_cnt_down). - uint32 conf_f_cnt = 12; - - // Skip uplink frame-counter validation. - bool skip_f_cnt_check = 13; - - // RX1 delay. - uint32 rx1_delay = 14; - - // RX1 data-rate offset. - uint32 rx1_dr_offset = 15; - - // RX2 data-rate. - uint32 rx2_dr = 16; - - // RX2 frequency. - uint32 rx2_frequency = 17; - - // Enabled uplink channels. - repeated uint32 enabled_uplink_channel_indices = 18; - - // Extra user-defined uplink channels. - map extra_uplink_channels = 19; - - // Class-B ping-slot data-rate. - uint32 class_b_ping_slot_dr = 20; - - // Class-B ping-slot frequency. - uint32 class_b_ping_slot_freq = 21; - - // Class-B ping-slot nb. - uint32 class_b_ping_slot_nb = 22; - - // Nb. transmissions. - uint32 nb_trans = 23; - - // TXPowerIndex which the node is using. The possible values are defined - // by the lorawan/band package and are region specific. By default it is - // assumed that the node is using TXPower 0. This value is controlled by - // the ADR engine. - uint32 tx_power_index = 24; - - // DR defines the (last known) data-rate at which the node is operating. - // This value is controlled by the ADR engine. - uint32 dr = 25; - - // ADR defines if the device has ADR enabled. - bool adr = 26; - - // MaxSupportedTXPowerIndex defines the maximum supported tx-power index - // by the node, or 0 when not set. - uint32 max_supported_tx_power_index = 27; - - // MinSupportedTXPowerIndex defines the minimum supported tx-power index - // by the node (default 0). - uint32 min_supported_tx_power_index = 28; - - // Pending rejoin device-session contains a device-session which has not - // yet been activated by the device (by sending a first uplink). - DeviceSession pending_rejoin_device_session = 29; - - // Uplink history for ADR (last 20 uplink transmissions). - // This table is reset in case one of parameters has changed: - // * DR - // * TxPower - // * NbTrans - repeated UplinkAdrHistory uplink_adr_history = 30; - - // Mac-command error count. - map mac_command_error_count = 31; - - // Last device-status request. - google.protobuf.Timestamp last_device_status_request = 32; - - // RejoinRequestEnabled defines if the rejoin-request is enabled on the - // device. - bool rejoin_request_enabled = 33; - - // RejoinRequestMaxCountN defines the 2^(C+4) uplink message interval for - // the rejoin-request. - uint32 rejoin_request_max_count_n = 34; - - // RejoinRequestMaxTimeN defines the 2^(T+10) time interval (seconds) - // for the rejoin-request. - uint32 rejoin_request_max_time_n = 35; - - // Rejoin counter (RJCount0). - // This counter is reset to 0 after each successful join-accept. - uint32 rejoin_count_0 = 36; - - // Uplink dwell time. - bool uplink_dwell_time_400ms = 37; - - // Downlink dwell time. - bool downlink_dwell_time_400ms = 38; - - // Uplink max. EIRP index. - uint32 uplink_max_eirp_index = 39; - - // Region configuration ID. - string region_config_id = 40; - - // Relay state. - Relay relay = 41; -} - -message UplinkAdrHistory { - // Uplink frame-counter. - uint32 f_cnt = 1; - - // Max SNR (of deduplicated frames received by one or multiple gateways). - float max_snr = 2; - - // Max RSSI. - int32 max_rssi = 5; - - // TX Power (as known by the network-server). - uint32 tx_power_index = 3; - - // Number of receiving gateways. - uint32 gateway_count = 4; -} - -message Relay { - // Devices provisioned on the relay. - repeated RelayDevice devices = 1; - - // Filter list. - repeated RelayFilter filters = 2; - - // Relay is enabled. - bool enabled = 3; - - // CAD periodicity. - uint32 cad_periodicity = 4; - - // Default channel index. - uint32 default_channel_index = 5; - - // Second channel freq. - uint32 second_channel_freq = 6; - - // Second channel DR. - uint32 second_channel_dr = 7; - - // Second channel ACK offset. - uint32 second_channel_ack_offset = 8; - - // End-device activation mode. - uint32 ed_activation_mode = 9; - - // End-device smart-enable level. - uint32 ed_smart_enable_level = 10; - - // End-device back-off. - uint32 ed_back_off = 11; - - // Join-request limit reload rate. - uint32 join_req_limit_reload_rate = 12; - - // Notify limit reload rate. - uint32 notify_limit_reload_rate = 13; - - // Global uplink limit reload rate. - uint32 global_uplink_limit_reload_rate = 14; - - // Overall limit reload rate. - uint32 overall_limit_reload_rate = 15; - - // Join-request limit bucket size. - uint32 join_req_limit_bucket_size = 16; - - // Notify limit bucket size. - uint32 notify_limit_bucket_size = 17; - - // Global uplink limit bucket size. - uint32 global_uplink_limit_bucket_size = 18; - - // Overall limit bucket size. - uint32 overall_limit_bucket_size = 19; - - // End-device must communicate through relay only. - // This is stored in the device-session as we need to validate on retrieving - // the device-session. - bool ed_relay_only = 20; - - // End-device WFCnt. - // This holds the last known WFCnt value. ChirpStack will periodically read - // this value from the Relay. - uint32 w_f_cnt = 21; -} - -message RelayDevice { - // Index (used for filter and uplink filters). - // This must be between 0 - 15. - uint32 index = 1; - - // JoinEUI (EUI64). - bytes join_eui = 2; - - // DevEUI (EUI64). - bytes dev_eui = 3; - - // DevAddr. - bytes dev_addr = 4; - - // RootWorSKey. - bytes root_wor_s_key = 5; - - // Provisioned. - bool provisioned = 6; - - // Uplink limit bucket size. - uint32 uplink_limit_bucket_size = 7; - - // Uplink limit reload rate. - uint32 uplink_limit_reload_rate = 8; - - // Timestamp of the last WFCnt request. - // Note that ChirpStack periodically requests the WFCnt from the relay. - google.protobuf.Timestamp w_f_cnt_last_request = 9; -} - -message RelayFilter { - // Index. - // This must be between 0 - 15. - uint32 index = 1; - - // Action. - // * 0: No Rule - // * 1: Forward - // * 2: Filter - uint32 action = 2; - - // DevEUI (EUI64). - bytes dev_eui = 3; - - // JoinEUI (EUI64). - bytes join_eui = 4; - - // Provisioned. - bool provisioned = 5; -} - -message DeviceSessionChannel { - // Frequency Hz. - uint32 frequency = 1; - - // Min. data-rate. - uint32 min_dr = 2; - - // Max. data-rate. - uint32 max_dr = 3; -} - -message DeviceGatewayRxInfo { - // DevEUI (EUI64). - bytes dev_eui = 1; - - // Data-rate. - uint32 dr = 2; - - // Gateway RxInfo elements. - repeated DeviceGatewayRxInfoItem items = 3; -} - -message DeviceGatewayRxInfoItem { - // Gateway ID (EUI64). - bytes gateway_id = 1; - - // RSSI. - int32 rssi = 2; - - // LoRa SNR. - float lora_snr = 3; - - // Antenna. - uint32 antenna = 4; - - // Board. - uint32 board = 5; - - // Context blob. - bytes context = 6; - - // Gateway is private (uplink). - bool is_private_up = 7; - - // Gateway is private (downlink). - bool is_private_down = 8; - - // Tenant ID (UUID). - bytes tenant_id = 9; -} - -message DownlinkFrame { - // Downlink ID. - uint32 downlink_id = 1; - - // DevEUI. - bytes dev_eui = 2; - - // Device queue item ID. - bytes device_queue_item_id = 3; - - // Multicast Group ID. - bytes multicast_group_id = 4; - - // Multicast queue item ID. - bytes multicast_group_queue_item_id = 5; - - // Downlink frames. - gw.DownlinkFrame downlink_frame = 6; - - // Encrypted FOpts (LoRaWAN 1.1). - bool encrypted_fopts = 8; - - // Network session encryption key (for FOpts and FRMPayload mac-commands). - bytes nwk_s_enc_key = 9; - - // NFCntDown (for decrypting mac-commands). - uint32 n_f_cnt_down = 10; - - // AFCntDown (for decrypting FRMPayload in case of Relay). - uint32 a_f_cnt_down = 11; - - // DevEUI of relayed device. - bytes dev_eui_relayed = 12; -} - -message LoraCloudGeolocBuffer { - // Uplinks in buffer. - repeated LoraCloudGeolocBufferUplink uplinks = 1; -} - -message LoraCloudGeolocBufferUplink { - // RxInfo set for a single uplink. - repeated gw.UplinkRxInfo rx_info = 1; -} - -message PassiveRoamingDeviceSession { - // Session ID (UUID). - // Unfortunately we can not use the DevEUI as unique identifier - // as the PRStartAns DevEUI field is optional. - bytes session_id = 1; - - // NetID of the hNS. - bytes net_id = 2; - - // DevAddr of the device. - bytes dev_addr = 3; - - // DevEUI of the device (optional). - bytes dev_eui = 4; - - // LoRaWAN 1.1. - bool lorawan_1_1 = 5; - - // LoRaWAN 1.0 NwkSKey / LoRaWAN 1.1 FNwkSIntKey. - bytes f_nwk_s_int_key = 6; - - // Lifetime. - google.protobuf.Timestamp lifetime = 7; - - // Uplink frame-counter. - uint32 f_cnt_up = 8; - - // Validate MIC. - bool validate_mic = 9; -} diff --git a/api/rust/proto/chirpstack/stream/api_request.proto b/api/rust/proto/chirpstack/stream/api_request.proto deleted file mode 100644 index dd2d80e3..00000000 --- a/api/rust/proto/chirpstack/stream/api_request.proto +++ /dev/null @@ -1,24 +0,0 @@ -syntax = "proto3"; - -package stream; - -option go_package = "github.com/chirpstack/chirpstack/api/go/v4/stream"; -option java_package = "io.chirpstack.api.stream"; -option java_multiple_files = true; -option java_outer_classname = "ApiRequestProto"; -option csharp_namespace = "Chirpstack.Stream"; - -import "google/protobuf/timestamp.proto"; -import "common/common.proto"; -import "gw/gw.proto"; - -message ApiRequestLog { - // API service name. - string service = 1; - - // API method name. - string method = 2; - - // Metadata. - map metadata = 3; -} diff --git a/api/rust/proto/chirpstack/stream/backend_interfaces.proto b/api/rust/proto/chirpstack/stream/backend_interfaces.proto deleted file mode 100644 index ca0957b4..00000000 --- a/api/rust/proto/chirpstack/stream/backend_interfaces.proto +++ /dev/null @@ -1,40 +0,0 @@ -syntax = "proto3"; - -package stream; - -option go_package = "github.com/chirpstack/chirpstack/api/go/v4/stream"; -option java_package = "io.chirpstack.api.stream"; -option java_multiple_files = true; -option java_outer_classname = "BackendInterfacesProto"; -option csharp_namespace = "Chirpstack.Stream"; - -import "google/protobuf/timestamp.proto"; - -message BackendInterfacesRequest { - // Sender ID. - string sender_id = 1; - - // Receiver ID. - string receiver_id = 2; - - // Timestamp. - google.protobuf.Timestamp time = 3; - - // Transaction ID. - uint32 transaction_id = 4; - - // Message-type. - string message_type = 5; - - // Result code. - string result_code = 6; - - // Request body. - string request_body = 7; - - // Request error. - string request_error = 8; - - // Response body. - string response_body = 9; -} diff --git a/api/rust/proto/chirpstack/stream/frame.proto b/api/rust/proto/chirpstack/stream/frame.proto deleted file mode 100644 index 509e1e8b..00000000 --- a/api/rust/proto/chirpstack/stream/frame.proto +++ /dev/null @@ -1,74 +0,0 @@ -syntax = "proto3"; - -package stream; - -option go_package = "github.com/chirpstack/chirpstack/api/go/v4/stream"; -option java_package = "io.chirpstack.api.stream"; -option java_multiple_files = true; -option java_outer_classname = "FrameProto"; -option csharp_namespace = "Chirpstack.Stream"; - -import "google/protobuf/timestamp.proto"; -import "common/common.proto"; -import "gw/gw.proto"; - -message UplinkFrameLog { - // PHYPayload. - bytes phy_payload = 1; - - // TX meta-data. - gw.UplinkTxInfo tx_info = 2; - - // RX meta-data. - repeated gw.UplinkRxInfo rx_info = 3; - - // Message type. - common.MType m_type = 4; - - // Device address (optional). - string dev_addr = 5; - - // Device EUI (optional). - string dev_eui = 6; - - // Time. - google.protobuf.Timestamp time = 7; - - // Plaintext f_opts mac-commands. - bool plaintext_f_opts = 8; - - // Plaintext frm_payload. - bool plaintext_frm_payload = 9; -} - -message DownlinkFrameLog { - // Time. - google.protobuf.Timestamp time = 1; - - // PHYPayload. - bytes phy_payload = 2; - - // TX meta-data. - gw.DownlinkTxInfo tx_info = 3; - - // Downlink ID. - uint32 downlink_id = 4; - - // Gateway ID (EUI64). - string gateway_id = 5; - - // Message type. - common.MType m_type = 6; - - // Device address (optional). - string dev_addr = 7; - - // Device EUI (optional). - string dev_eui = 8; - - // Plaintext f_opts mac-commands. - bool plaintext_f_opts = 9; - - // Plaintext frm_payload. - bool plaintext_frm_payload = 10; -} diff --git a/api/rust/proto/chirpstack/stream/meta.proto b/api/rust/proto/chirpstack/stream/meta.proto deleted file mode 100644 index 83a6b227..00000000 --- a/api/rust/proto/chirpstack/stream/meta.proto +++ /dev/null @@ -1,61 +0,0 @@ -syntax = "proto3"; - -package stream; - -option go_package = "github.com/chirpstack/chirpstack/api/go/v4/stream"; -option java_package = "io.chirpstack.api.stream"; -option java_multiple_files = true; -option java_outer_classname = "MetaProto"; -option csharp_namespace = "Chirpstack.Stream"; - -import "common/common.proto"; -import "gw/gw.proto"; - -message UplinkMeta { - // Device EUI (EUI64). - string dev_eui = 1; - - // TX meta-data. - gw.UplinkTxInfo tx_info = 2; - - // RX meta-data. - repeated gw.UplinkRxInfo rx_info = 3; - - // PHYPayload byte count. - uint32 phy_payload_byte_count = 4; - - // MAC-Command byte count. - uint32 mac_command_byte_count = 5; - - // Application payload byte count. - uint32 application_payload_byte_count = 6; - - // Message type. - common.MType message_type = 7; -} - -message DownlinkMeta { - // Device EUI (EUI64). - string dev_eui = 1; - - // Multicast Group ID (UUID). - string multicast_group_id = 2; - - // TX meta-data. - gw.DownlinkTxInfo tx_info = 3; - - // PHYPayload byte count. - uint32 phy_payload_byte_count = 4; - - // MAC-Command byte count. - uint32 mac_command_byte_count = 5; - - // Application payload byte count. - uint32 application_payload_byte_count = 6; - - // Message type. - common.MType message_type = 7; - - // Gateway ID (EUI64). - string gateway_id = 8; -} diff --git a/api/rust/proto/google/google/api/annotations.proto b/api/rust/proto/google/google/api/annotations.proto deleted file mode 100644 index efdab3db..00000000 --- a/api/rust/proto/google/google/api/annotations.proto +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2015 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.api; - -import "google/api/http.proto"; -import "google/protobuf/descriptor.proto"; - -option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations"; -option java_multiple_files = true; -option java_outer_classname = "AnnotationsProto"; -option java_package = "com.google.api"; -option objc_class_prefix = "GAPI"; - -extend google.protobuf.MethodOptions { - // See `HttpRule`. - HttpRule http = 72295728; -} diff --git a/api/rust/proto/google/google/api/http.proto b/api/rust/proto/google/google/api/http.proto deleted file mode 100644 index 31d867a2..00000000 --- a/api/rust/proto/google/google/api/http.proto +++ /dev/null @@ -1,379 +0,0 @@ -// Copyright 2023 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.api; - -option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations"; -option java_multiple_files = true; -option java_outer_classname = "HttpProto"; -option java_package = "com.google.api"; -option objc_class_prefix = "GAPI"; - -// 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. -message Http { - // A list of HTTP configuration rules that apply to individual API methods. - // - // **NOTE:** All service configuration rules follow "last one wins" order. - repeated HttpRule rules = 1; - - // 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. - bool fully_decode_reserved_expansion = 2; -} - -// # 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¶m=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. -message HttpRule { - // Selects a method to which this rule applies. - // - // Refer to [selector][google.api.DocumentationRule.selector] for syntax - // details. - string selector = 1; - - // Determines the URL pattern is matched by this rules. This pattern can be - // used with any of the {get|put|post|delete|patch} methods. A custom method - // can be defined using the 'custom' field. - oneof pattern { - // Maps to HTTP GET. Used for listing and getting information about - // resources. - string get = 2; - - // Maps to HTTP PUT. Used for replacing a resource. - string put = 3; - - // Maps to HTTP POST. Used for creating a resource or performing an action. - string post = 4; - - // Maps to HTTP DELETE. Used for deleting a resource. - string delete = 5; - - // Maps to HTTP PATCH. Used for updating a resource. - string patch = 6; - - // 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. - CustomHttpPattern custom = 8; - } - - // 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. - string body = 7; - - // 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. - string response_body = 12; - - // 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). - repeated HttpRule additional_bindings = 11; -} - -// A custom pattern is used for defining custom HTTP verb. -message CustomHttpPattern { - // The name of this custom HTTP verb. - string kind = 1; - - // The path matched by this custom verb. - string path = 2; -}